Prev: 49011 Up: Map Next: 49089
49066: Handler: User Pressed "DELETE"
Used by the routine at Handler_UserInput.
The player pressed DELETE.
UserInput_Delete 49066 EX DE,HL Jump back to UserInput_Loop when the buffer is still empty.
49067 LD HL,47876
49070 AND A
49071 SBC HL,DE
49073 EX DE,HL
49074 JR Z,UserInput_Loop
Rub the previous character off the screen.
49076 PUSH HL Keep the buffer pointer safe.
49077 LD HL,47960 Print " ".
49080 CALL PrintString
49083 POP HL Restore the buffer pointer from the stack.
49084 DEC HL Step back one character and blank it.
49085 LD (HL),32
49087 JR UserInput_Loop Jump back to UserInput_Loop for the next key.
View the equivalent code in;
Prev: 49011 Up: Map Next: 49089