RMX/SO BASIC-SO

BASIC-SO

Altering BASIC-80 Workspace

The BASIC-80 work.space stores the current BASIC-80 program, variables, con- stants, file buffers, strings. It should be as large as is practical.

Table F-2. Sample Configuration Memory Requirements

Module

PROM (bytes)

RAM (bytes)

 

 

 

RMXBAS.LlB

22287

1415

BOOTCM.OBJ

87

197

BASCM.OBJ

151

538

BOMEM.OBJ

18

Note 1

BOBMEM.OBJ

 

 

 

 

 

Note 1: BQMEM.ASM allocates DFS memory areas and the BASIC-80 workspace. DFS requires 700 bytes, plus 400 bytes per DFS file. An additional 80 bytes are required for the controller stack on a non-boot loaded DFS system. On a boot loaded system, BQBMEM.ASM allocates controller stack area.

The BQMEM.ASM module contains two labels: BQSMEM and BQEMEM. These labels correspond to the starting and ending addresses of the BASIC-80 workspace. The distributed code is written to make the greatest possible area of memory available as workspace:

BQMEM.OBJ is the last module linked, so the starting address of the workspace is at the top of all data areas. BQSMEM uses this address.

ASEG and ORO force the controller addressable areas (if DFS is specified) and boot loader code (in a boot loaded system) to the top of memory. A variable FREE addresses the last free byte below these. FREE is used by BQMEM. Note: the boot loader work area RQPOOL is re-used by BASIC-80.

If you wish to fix the BASIC-80 work area to a specific length or location, BQSMEM and BQEMEM must be modified accordingly. If you want to reserve free memory for BASIC-80 to POKE data into, you need to know the address loaded by BQMEM. This can be determined by examining the code of BQMEM in BQMEM.ASM. In the distributed version, this address is OFI23H. Accordingly, to reserve 1500 bytes of string space and lK bytes to POKE into, the command

CLEAR 1500,OF123H 1024

should be given. If you give this command, the memory between OED24H and OF123H will be unused and available to BASIC-80.

Burning a BASIC-80 Program Into PROM

To burn a BASIC-80 program into a programmable read-only memory (PROM), you must first convert the BASIC-80 program to Intel relocatable object file for- mat. Included with BASIC-80 is a program that does this conversion.

These are the steps required to burn a BASIC-80 program into PROM:

1.Save the program on disk in ASCII format (the A option of the SAVE command). This can be done with either RMX/80 or ISIS-II BASIC-80.

2.Convert the ASCII program file to a relocatable object file with BAPROM.

3.Convert the file to absolute object file format with LOCATE.

4.Read the converted object file into PROM using the UPM READ command with the OBJECT option.

5.Burn the file into PROM with the PROGRAM command.

F-16

Page 108
Image 108
Intel 9800758-02 manual Altering BASIC-80 Workspace, Burning a BASIC-80 Program Into Prom