| Routines

04496: THE 'SET-HL' AND 'SET-DE' SUBROUTINES

Used by the routine at CLEAR_SP. These subroutines return with DE pointing to the first location and HL to the last location of either the editing area or the work space.
Output
DE | Address of the first byte of the editing area or work space
HL | Address of the last byte of the editing area or work space
SET_HL | 04496 | LD HL,(23649) | Point to the last location of the editing area (WORKSP-1).
| 04499 | DEC HL
| 04500 | AND A | Clear the carry flag.
This entry point is used by the routines at ED_EDGE and ED_COPY with the carry flag set.
SET_DE | 04501 | LD DE,(23641) | Point to the start of the editing area (E-LINE) and return if in 'editing mode' (bit 5 of FLAGX reset).
| 04505 | BIT 5,(IY+55)
| 04509 | RET Z
| 04510 | LD DE,(23649) | Otherwise point DE at the start of the work space (WORKSP).
| 04514 | RET C | Return if now intended.
| 04515 | LD HL,(23651) | Fetch STKBOT and then return.
| 04518 | RET