362 Saving a section of memory This will not be needed by most people writing BASIC programs. It is most often used to record sections of machine code programs. The process is very similar to that employed to record a BASIC program. 1. Insert the cassette in the recorder. 2. Type *SAVE PROG SSSS FFFF EEEE RRRR and press RETURN . 3. Continue as for saving a BASIC program, above. SSSS represents the start address of the data, in hexadecimal (hex). FFFF represents the end address of the data plus one, in hex. As an option the format +LLLL can be used in this position. The plus sign is followed by the length of the data, in hex. EEEE represents the (hex) execution address of the data.
If the program is reloaded into the computer using the command *RUN PROG then once loaded the computer will jump to the specified execution address. The execution address is optional and if it is omitted the execution address will be assumed to be equal to the start address. RRRR represents the (hex) reload address. This is optional, but if used the file will reload (using *LOAD , see below) at address RRRR . If RRRR is omitted then the file will reload at address SSSS . Two examples may make the syntax clearer *SAVE patch 6000 6200 *SAVE match 4C00+0CE9 2A10 2000 Loading a BASIC program A BASIC program saved on cassette tape can be loaded into the computer’s memory in the following way: 1.
Insert the cassette in the recorder. 2. Type LOAD PROG and press RETURN .