OEL TTX2000 Issue 2.3 | Routines |
Prev: 0FA2 | Up: Map | Next: 0FFB |
Used by the routine at wait_and_decode_page.
|
||||
handle_keypress | 0FB2 | CALL get_keypress | Get a keypress. | |
0FB5 | CP $0D | If key code equals 'enter' jump to display_menu. | ||
0FB7 | JP Z,display_menu | |||
0FBA | CP $50 | Else if key code equals 'P' jump to enter_page_and_clear. | ||
0FBC | JP Z,enter_page_and_clear | |||
0FBF | CP $43 | Else if key code equals 'C' jump to select_channel. | ||
0FC1 | JP Z,select_channel | |||
0FC4 | CP $48 | Else if key code equals 'H' jump to hold_page. | ||
0FC6 | JP Z,hold_page | |||
0FC9 | CP $54 | Else if key code equals 'T' jump to handle_keypress_0. | ||
0FCB | JR Z,handle_keypress_0 | |||
0FCD | CP $52 | Else if key code equals 'R' jump to toggle_reveal. | ||
0FCF | JP Z,toggle_reveal | |||
0FD2 | CP $42 | Else if key code equals 'B' jump to toggle_bright. | ||
0FD4 | JP Z,toggle_bright | |||
0FD7 | CP $45 | Else if key code equals 'E' jump to address in exit_pointer. | ||
0FD9 | JP NZ,handle_keypress_1 | |||
0FDC | LD HL,(exit_pointer) | |||
0FDF | JP (HL) | |||
handle_keypress_0 | 0FE0 | LD HL,(telesoftware_pointer) | Jump to address in telesoftware_pointer. | |
0FE3 | JP (HL) | |||
handle_keypress_1 | 0FE4 | CP $5A | Else if key code equals 'Z' jump to address in print_pointer. | |
0FE6 | JR NZ,handle_keypress_2 | |||
0FE8 | LD HL,(print_pointer) | |||
0FEB | JP (HL) | |||
handle_keypress_2 | 0FEC | CP $53 | Else if key code equals 'S' set save_return_pointer to address of wait_and_decode_page and jump to address in save_page_pointer (copy of save_routine in main RAM). | |
0FEE | JR NZ,handle_keypress_3 | |||
0FF0 | LD HL,wait_and_decode_page | |||
0FF3 | LD (save_return_pointer),HL | |||
0FF6 | LD HL,(save_page_pointer) | |||
0FF9 | JP (HL) | |||
handle_keypress_3 | 0FFA | RET | Else return. |
Prev: 0FA2 | Up: Map | Next: 0FFB |