| Routines

1059: THE 'CURSOR UP EDITING' SUBROUTINE

The address of this routine is derived from an offset found in the editing keys table.
ED_UP | 1059 | BIT 5,(IY+$37) | Return if in 'INPUT mode' (bit 5 of FLAGX set).
| 105D | RET NZ
| 105E | LD HL,($5C49) | Fetch the current line number (E-PPC) and its start address.
| 1061 | CALL LINE_ADDR
| 1064 | EX DE,HL | HL now points to the previous line.
| 1065 | CALL LINE_NO | This line's number is fetched.
| 1068 | LD HL,$5C4A | This is E-PPC-hi.
| 106B | CALL LN_STORE | The line number is stored.
This entry point is used by the routine at ED_DOWN.
ED_LIST | 106E | CALL AUTO_LIST | A new automatic listing is now produced and channel 'K' re-opened before returning to ED_LOOP.
| 1071 | LD A,$00
| 1073 | JP CHAN_OPEN