; ============================================================================= ; tty.asm - console output over the serial port (emulator debug channel). ; A real gbos would render to VRAM; serial is a zero-VRAM stub that shows up ; in emulator serial logs (bgb/SameBoy) and on link hardware. ; ============================================================================= INCLUDE "include/gbos.inc" SECTION "tty", ROM0 ; PutChar - A = character. Push to serial data and kick a transfer. PutChar:: ld [rSB], a ld a, $81 ; start transfer, internal clock ld [rSC], a ret