TXG/MNX Posted January 27 Share Posted January 27 Hi, I know I can load or embed relocatable machine code in basic and use the USR command. But I like to reserve a fixed block lets say $6000 - $7000 in my program is that possible? Quote Link to comment Share on other sites More sharing options...
thorfdbg Posted January 27 Share Posted January 27 (edited) Only by the same methods as you also reserve memory in Atari Basic. You can adjust MEMLO, (2E7,2E8) then continue with NEW. This reserves memory at the lower end, from the previous MEMLO, up to the new (hopefully higher) MEMLO. The next reset, however, re-sets MEMLO. Alternatively, you can reduce MEMTOP (2e5,2e6), and then reserve memory between MemTop and the previous version. Note that MemTop will be adjusted on opening graphics modes. Or, you can use all memory between AppMemHi (E,F) and RamTop. Or you can reduce RamTop (6a), re-open the graphics mode, and then use memory above the graphics screen. In short, basic uses the memory between MemLo and AppMemHi. It adjusts AppMemHi as its own programs and data grows, until AppMemHi reaches MemTop. The screen/editor handler uses RAM between MemTop and RamTop. It adjusts MemTop (downwards) to reserve its memory, and fails if this approaches memory regions below AppMemHi, the end of application memory. Edited January 27 by thorfdbg Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.