Effects of Partitioning


An increase in one area of user memory must be accompanied by a decrease in at least one of the other areas. To decide which area to decrease, the calculator treats file space, program memory, and data registers with different priorities. Understanding these priorities helps you understand the effects of repartitioning.


File Space

Increasing the file space reduces the data registers and, in necessary, program steps.

When you increase the file space, the calculator shifts the program toward the data registers, replacing the highest-numbered registers with the highest-numbered steps. This preserves the program and the data in the lower numbered registers.

If an increase in file space requires more memory than that available in the data registers alone, the additional memory is taken from the highest-numbered program steps. This preserves program instructions located in the lower-numbered steps.

Reducing the file space increases the number of data registers, while preserving the program in memory. To do this, the calculator shifts the contents of program memory so that step 0000 immediately follows the file space. The memory vacated by the shifted program is then filled with zeros and partitioned as additional data registers.

Note:

you cannot repartition file space that is occupied by files - even by explicitly reducing file space. If you need occupied file space for program memory or data registers, you must first delete one or more of the files and then reduce the file space.

Program Memory

When you change the partition for program memory, only the boundary between data registers and program memory is changed. The change does not affect the contents of memory or the partitioning of file space.

When you increase program steps, the additional steps are taken from the highest-numbered data registers. This preserves data in the lowest-numbered registers, when possible. If you want to increase program steps without decreasing data registers, first decrease the amount of file space and then change the partition for program steps or data registers.

When you reduce program steps, the highest-numbered steps are partitioned as additional data registers. This preserves the lowest-numbered program steps, when possible.

Data Registers

As with a change in program steps, changing the partition for data registers changes only the boundary between data registers and program memory. The change does not affect the contents of memory or the partitioning of file space.

When you increase the number of data registers, the additional registers are taken from the highest-numbered program steps. This preserves the lowest-numbered steps when possible.

When you reduce data registers, the highest-numbered registers are partitioned as additional program steps. This preserves the lowest-numbered registers, when possible.

Clearing Data Registers and Program Memory

If you clear either the data registers or the program memory and subsequently change the partition for either area, you may find that the increased area is no longer completely cleared. For example, if you clear the data registers ( [ 2nd ] [ CMS ] ) and then increase the partition for data registers, the calculator interprets previously-stored program instructions as numeric data.

When you want to make sure a new area is cleared, set its partition first, and then clear the area.




Back