Prev: 1E5F Up: Map Next: 1E7A
1E67: THE 'GO TO' COMMAND ROUTINE
Used by the routines at RUN and GO_SUB.
The address of this routine is found in the parameter table.
The operand of a GO TO ought to be a line number in the range 1-9999 but the actual test is against an upper value of 61439.
GO_TO 1E67 CALL FIND_INT2 Fetch the operand and transfer it to the HL register pair.
1E6A LD H,B
1E6B LD L,C
1E6C LD D,$00 Set the statement number to zero.
1E6E LD A,H Give the error message 'Integer out of range' with line numbers over 61439.
1E6F CP $F0
1E71 JR NC,REPORT_B_2
This entry point is used by the routines at NEXT, CONTINUE and RETURN to determine the line number of the next line to be handled.
GO_TO_2 1E73 LD ($5C42),HL Enter the line number (NEWPPC) and then the statement number (NSPPC).
1E76 LD (IY+$0A),D
1E79 RET Return - to STMT_RET.
Prev: 1E5F Up: Map Next: 1E7A