quill | Routines |
Prev: 26033 | Up: Map | Next: 26067 |
|
||||
ACTION_QUIT | 26037 | LD HL,12 | "Are you sure you want to quit?" | |
26040 | CALL PRINT_SYSMSG_NEWLINE | Print system message | ||
26043 | PUSH BC | |||
26044 | CALL KEYBOARD_HANDLER | Keyboard processing loop | ||
26047 | POP BC | |||
26048 | LD A,(HL) | A=first character of word entered | ||
26049 | LD HL,(27553) | HL = Address of system messages table | ||
26052 | LD DE,60 | Offset of 'Yes' response | ||
26055 | ADD HL,DE | |||
26056 | LD E,(HL) | E=LSB of yes response | ||
26057 | INC HL | |||
26058 | LD D,(HL) | D=MSB of yes response | ||
26059 | EX DE,HL | HL=Yes response | ||
26060 | CPL | |||
26061 | CP (HL) | Does first character of Yes response match first character entered? | ||
26062 | JR NZ,ACTION_DONE | If not, jump to DONE action | ||
26064 | JP NEXT_ACTION | Onto next action |
Prev: 26033 | Up: Map | Next: 26067 |