Prev: 1582 Up: Map Next: 15CD
15A2: execute_basic_continue: Setup VARS, E-LINE, and OLDPPC, and prepare to execute CONTINUE.
Used by the routine at parse_download.
This routine replaces code from the OEL Issue 2.3 ROM.
execute_basic_continue 15A2 LD HL,$5CCB Set HL to $5CCB.
15A5 LD DE,(prog_length) Add prog_length.
15A9 ADD HL,DE
15AA LD ($5C4B),HL Store result in VARS.
15AD LD DE,(vars_length) Add vars_length.
15B1 ADD HL,DE
15B2 LD ($5C59),HL Store result in E-LINE.
15B5 LD (HL),$E8 Store $E8 (BASIC CONTINUE token) at address in HL.
15B7 INC HL
15B8 LD (HL),$0D Store $0D (BASIC newline) at next address.
15BA INC HL
15BB LD (HL),$80 Store $80 (BASIC terminator) at next address.
15BD INC HL
15BE LD ($5C61),HL Store next address in WORKSP.
15C1 LD HL,(start_address) Copy start_address to OLDPPC.
15C4 LD ($5C6E),HL
15C7 LD A,$01 Set OSPPC to $01 and return.
15C9 LD ($5C70),A
15CC RET
Prev: 1582 Up: Map Next: 15CD