System Variable MEMBOT


Notes AddressName Contents

N30 23698 MEMBOT Calculator's memory area; used to store numbers that cannot conveniently be put on the calculator stack.

23698 5C92 (IY+$58) MEM-0 1st
23699 5C93 (IY+$59) MEM-0 2nd
23700 5C94 (IY+$5A) MEM-0 3rd
23701 5C95 (IY+$5B) MEM-0 4th
23702 5C96 (IY+$5C) MEM-0 5th
23703 5C97 (IY+$5D) MEM-1 1st
23704 5C98 (IY+$5E) MEM-1 2nd
23705 5C99 (IY+$5F) MEM-1 3rd
23706 5C9A (IY+$60) MEM-1 4th
23707 5C9B (IY+$61) MEM-1 5th
23708 5C9C (IY+$62) MEM-2 1st
23709 5C9D (IY+$63) MEM-2 2nd
23710 5C9E (IY+$64) MEM-2 3rd
23711 5C9F (IY+$65) MEM-2 4th
23712 5CA0 (IY+$66) MEM-2 5th
23713 5CA1 (IY+$67) MEM-3 1st
23714 5CA2 (IY+$68) MEM-3 2nd
23715 5CA3 (IY+$69) MEM-3 3rd
23716 5CA4 (IY+$6A) MEM-3 4th
23717 5CA5 (IY+$6B) MEM-3 5th
23718 5CA6 (IY+$6C) MEM-4 1st
23719 5CA7 (IY+$6D) MEM-4 2nd
23720 5CA8 (IY+$6E) MEM-4 3rd
23721 5CA9 (IY+$6F) MEM-4 4th
23722 5CAA (IY+$70) MEM-4 5th
23723 5CAB (IY+$71) MEM-5 1st
23724 5CAC (IY+$72) MEM-5 2nd
23725 5CAD (IY+$73) MEM-5 3rd
23726 5CAE (IY+$74) MEM-5 4th
23727 5CAF (IY+$75) MEM-5 5th

Notes: This is the calulator's memory area - where temporary values, numbers and string parameters, are stored during calculations. The full range 0-5 are used while printing floating point numbers and circle drawing.

If you want to make use of the calculator then you can access 32 memory locations by moving this area above RAMTOP. The start of this area is determined by the system variable MEM.

The ROM itself moves this location to the variables area when evaluating a FOR-NEXT LOOP so that the three numeric arguments, initial value, last value and step can be easily accessed in mem-0 to mem-2.

The ROM also uses the first eight locations of this area to construct the bit-patterns for the 4-tiled mosaic characters 128-143.

Back   Homepage