It wasn't even an emulator, it was a complete gameboy SoC with the pixel stream routed to the SNES's VRAM rather than an LCD screen.
The Super GameBoy is essentially full GameBoy hardware in a cart, that hijacks the SNES PPU for video output and uses SNES controllers for input. There is no hardware emulation going on.