Prev: BF73 Up: Map Next: BFC1
BFAA: Handler: User Pressed "DELETE"
Used by the routine at Handler_UserInput.
The player pressed DELETE.
UserInput_Delete BFAA EX DE,HL Jump back to UserInput_Loop when the buffer is still empty.
BFAB LD HL,$BB04
BFAE AND A
BFAF SBC HL,DE
BFB1 EX DE,HL
BFB2 JR Z,UserInput_Loop
Rub the previous character off the screen.
BFB4 PUSH HL Keep the buffer pointer safe.
BFB5 LD HL,$BB58 Print " ".
BFB8 CALL PrintString
BFBB POP HL Restore the buffer pointer from the stack.
BFBC DEC HL Step back one character and blank it.
BFBD LD (HL),$20
BFBF JR UserInput_Loop Jump back to UserInput_Loop for the next key.
View the equivalent code in;
Prev: BF73 Up: Map Next: BFC1