Prev: 07091 Up: Map Next: 07121
07103: THE 'LINE-USE' ROUTINE
Used by the routine at LINE_NEW.
The routine at LINE_END continues here.
This short routine has three functions:
  • Change statement zero to statement '1'.
  • Find the number of the new line and enter it into PPC.
  • Form the address of the start of the line after.
Input
A Statement number
HL Start address of the line
LINE_USE 07103 CP 1 Statement zero becomes statement '1'.
07105 ADC A,0
07107 LD D,(HL) The line number of the line to be used is collected and passed to PPC.
07108 INC HL
07109 LD E,(HL)
07110 LD (23621),DE
07114 INC HL Now find the 'length' of the line.
07115 LD E,(HL)
07116 INC HL
07117 LD D,(HL)
07118 EX DE,HL Switch over the values.
07119 ADD HL,DE Form the address of the start of the line after in HL and the location before the 'next' line's first character in DE.
07120 INC HL
This routine continues into NEXT_LINE.
Prev: 07091 Up: Map Next: 07121