Prev: FD00 Up: Map Next: FDCE
FD80: Blah
Used by the routine at CAE7.
FD80 JR $FD84 Jump to FD84.
FD82 JR $FDA8 Jump to FDA8.
FD84 LD A,$FD Read from the keyboard;
Port Number Bit
0 1 2 3 4
FD A S D F G
FD86 IN A,($FE)
FD88 RRA
FD89 JR NC,$FD8D Jump to FD8D if "A" is pressed.
FD8B JR $FDA3 Jump to FDA3.
FD8D LD A,$BF Read from the keyboard;
Port Number Bit
0 1 2 3 4
$BF ENTER L K J H
FD8F IN A,($FE)
FD91 RRA Jump to FD95 if "ENTER" is pressed.
FD92 JR NC,$FD95
FD94 RET Return.
FD95 LD DE,$5B80 DE=Print_TwoToneText_Alias.
FD98 LD BC,$0040 BC=40.
FD9B LDIR Copy...
FD9D LD HL,($5B86) Load the contents of Lives_Address into HL.
FDA0 LD (HL),$FF Write FF to HL.
FDA2 RET Return.
FDA3 LD SP,$5FF0 SP=5FF0.
FDA6 JR $FDBC Jump to FDBC.
FDA8 EI Enable interrupts.
FDA9 DEFS $08 No-operation.
Oddly enable both keyboard and kempston joystick input methods at the same time.
FDB1 LD HL,$0101 Write 0101 to Controller.
FDB4 LD ($5CB0),HL
Set the border to black and blank the screen buffer.
FDB7 LD A,$00 A=00.
FDB9 CALL $229B Call BORDER routine (not from the start).
FDBC LD HL,$4000 Writes $00 to all 1AFF bytes of the screen buffer (i.e. "blanks it").
FDBF LD DE,$4001
FDC2 LD BC,$1AFF
FDC5 LD (HL),$00
FDC7 LDIR
FDC9 CALL New_Game Call New_Game.
FDCC JR $FDBC Jump to FDBC.
Prev: FD00 Up: Map Next: FDCE