| Routines

07276: THE 'COMMAND CLASS 4' ROUTINE

The address of this routine is derived from an offset found in the command class table. The command class 4 entry point is used by FOR and NEXT statements.
CLASS_04 | 07276 | CALL LOOK_VARS | Look in the variables area for the variable being used.
| 07279 | PUSH AF | Save the AF register pair whilst the discriminator byte is tested to ensure that the variable is a FOR-NEXT control variable.
| 07280 | LD A,C
| 07281 | OR 159
| 07283 | INC A
| 07284 | JR NZ,REPORT_C
| 07286 | POP AF | Restore the flags register and jump to make the variable that has been found the 'variable in assignment'.
| 07287 | JR VAR_A_1