Jump to content
IGNORED

Can you 'reserve a part of memory' in Turbobasic ?


Recommended Posts

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 by thorfdbg
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...