| Routines

1C6C: THE 'COMMAND CLASS +04' ROUTINE

The address of this routine is derived from an offset found in the command class table. The command class +04 entry point is used by FOR and NEXT statements.
CLASS_04 | 1C6C | CALL LOOK_VARS | Look in the variables area for the variable being used.
| 1C6F | PUSH AF | Save the AF register pair whilst the discriminator byte is tested to ensure that the variable is a FOR-NEXT control variable.
| 1C70 | LD A,C
| 1C71 | OR $9F
| 1C73 | INC A
| 1C74 | JR NZ,REPORT_C
| 1C76 | POP AF | Restore the flags register and jump to make the variable that has been found the 'variable in assignment'.
| 1C77 | JR VAR_A_1