intel MCS BASIC-52 — Intel MCS BASIC-52 Versions 1 & 1.1 Operating and Reference Manual PDF (EN)

int e l 4.35 DESCRIPTION OF STATEMENTS STATEMENT: RROM [integer] (VERSION 1.1 ONLY) MODE: COMMAND AND/OR RUN TYPE: CONTROL RROM stands for RUN ROM. What it does is select a program in the EPROM file, then execute the program. The integer after the RROM statement selects what program in the EPROM file is to be executed. In the COMMAND mode RROM 2 would be equivalent to typing ROM 2, then RUN. But, notice that RROM [integer] is a statement. This means that a program that is already executing can actually force the execution of a completely different program that is in the EPROM file. This gives the user the ability to "change programs" on the fly.

If the user executes a RROM [integer] statement and an invalid integer is entered (say 6 programs are contained in the EPROM file and the user enters RROM 8, or no EPROM is in the system), no error will be generated and MCS BASIC-52 will execute the statement following the RROM [integer] statement. NOTE -- Every time the RROM [integer] statement is executed, all variables and strings are set equal to zero, so variables and strings CANNOT be passed from one program to another by using the RROM [integerl statement. Additionally, all MCS BASIC-52 evoked interrupts are cleared. - 70 -