home *** CD-ROM | disk | FTP | other *** search
/ Outlet 53 / outlet-53.mgt / m2 < prev    next >
Text File  |  2021-04-18  |  5KB  |  1 lines

  1.         The memory can be relocated by m/c programming to any   area in RAM; five bytes are required for each FP number         location. There are only six locations in the MEMBOT system, butif memory is relocated 340F get-mem and 342D st-mem can address up to 32d locations through calls by CALCULATE literals, and up to 33h/51d locations by direct calls, see entry on get-mem. MEM is reset to 5C92 MEMBOT each time 16C5 SET STK is called.               The memory is temporarily relocated in the ROM by 1D16 FREORDER, leading into 1D34 F L&S, see under 1D03 FOR; here 15d  places in a FOR ... NEXT loop control variable are made into a  memory area for the VALUE, LIMIT, and STEP of the loop.                Written by:                                                      16C5 SET STK                                                    1D16 F REORDER                                                  1DAB NEXT                                                      Read by:                                                         340F get-mem                                                    342D st-mem                                                                                                                 MEMBOT system variable 5C92                                        Bytes: 1Eh/30d                                                   The area set aside for the calculator memory; see 335B  CALCULATE and MEM above. Usually it is written to by 342D st-   mem and read by 340F get-mem, but of course it can also be      written or read directly: either straightforwardly, for example 5CAC the second byte of mem-5 is set at 2E56 PF LARGE, or using the IY index. Since IY is set at 5C3A, MEMBOT is IY+58h, and forexample the first byte of mem-2 is IY+62h; see 235A C ARC GE1.          The MEMBOT area can also be used for other purposes,    provided it doesn't matter that the calculator memory will be   corrupted. Eg in ROM:                                                   - the first eight bytes are used to construct a         character form for one of the standard "graphics" at 0B24 PO ANY        - the first five bytes are used as a spare calculator   stack for line numbers at 19FB E LINE NO                                - the first byte is used as a flag at 2D55 E SAVE               - mem-3 and the 14d bytes following are used as a print buffer for number print-outs by 2DE3 PRINT FP and following.           Written by:                                                      0B38 PO GR 1 (with 0B4C PO GR 3)                                235A C ARC GE1                                                  2D55 E SAVE (with 350B FP 0/1)                                  2E24 PF SMALL                                                   2E56 PF LARGE                                                   2E7B PF BITS                                                    2E8A PF BYTES                                                   2EA9 PF INSERT                                                  2EB8 PF ALL 9                                                   2EEF PF FR EXX                                                  2F18 PF RND LP                                                  2F25 PF R BACK                                                  2F2D PF COUNT                                                  Read by:                                                         03F8 BEEP                                                       0B24 PO ANY (with 0B7F PR ALL, etc)                             16C5 SET STK                                                    19FB E LINE NO                                                  2E24 PF SMALL                                                   2E56 PF LARGE                                                   2E8A PF BYTES                                                   2EB8 PF ALL 9                                                   2EDF PF FRN LP                                                  2EEF PF FR EXX                                                  2F0C PF ROUND                                                   2F2D PF COUNT                                                  Rems:                                                            16C5 SET STK value of MEMBOT put in MEM                         19FB E LINE NO value of MEMBOT put in STKEND                    2DE3 PRINT FP ad hoc print buffer at MEMBOT                     2E6F PF MEDIUM used to store integer part of number                                                                         memory (calculator) see 335B CALCULATE                                                                                          MEMORY LOCATION SUBROUTINE see 3406 LOC MEM