Partitioning From Within a Program


You can include instructions in your program to partition memory. This makes it unnecessary to set partitions from the keyboard before running a program. When you set partitions in a program, you must provide all necessary information to the partition function; the function does not prompt you for the information.


Procedure

To set partitions from within a program:
  1. Determine the amount of memory you want to allocate for each of the three areas of user memory.
  2. Have the program place a value in the numeric display register that has the form:

    pppp.ffff

    where pppp is the number of program steps and ffff is the number of bytes of file space you want. (You must include any leading zeros in ffff.)
    • If you do not want to change the size of the file space, make ffff equal to 0.
    • If you want to set the file space to 0 bytes, make ffff in the range 0001 through 0016.
  3. Have the program execute the PAR instruction.
  4. When the sequence pppp.ffff PAR is executed, the calculator:
    • Sets the program memory and file space to the sizes you specified and allocates the remaining user memory to the data registers.
    • Places the resulting number of data registers in the numeric display register.
    • Places the resulting number of program steps and file bytes (in the form pppp.ffff) in the t-register.

Example

The following program segment partitions user memory to the default settings.

PC=

Program Mnemonics

Comments


00001000.52001000 program steps
5200 bytes file space
0009 PARSets the partitions
0010 ...
... (Remainder of the program)



Back