MediaWiki:Sitenotice:
2024-03-02: The wiki ran out of disk space, so things were not working. This has been resolved by adding another 5GB of quota ;-) Thanks to Tim Lindner for reporting the issues. 2020-05-17: If a page gives you an error about some revision not being found, just EDIT the page and the old page should appear in the editor. If it does, just SAVE that and the page should be restored. OS-9 Al (talk) 12:22, 17 May 2020 (CDT)

More Memory for Basic: Difference between revisions

From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
Jump to navigation Jump to search
(Created page with "''Rainbow V01N02 Pag. 4'' Normally ECB reserves 4 pages for graphics, for a total of 22824 Basic memory, If your program does not need graphics, you should be able to use PCL...")
 
(Category)
 
Line 13: Line 13:
One way to avoid this problem if you did not plan ahead would be to CSAVE the program, reset the memory and then CLOAD the Program back in.<br/><br/>
One way to avoid this problem if you did not plan ahead would be to CSAVE the program, reset the memory and then CLOAD the Program back in.<br/><br/>
As Bob Hope said...
As Bob Hope said...
[[Category:Programming]]

Latest revision as of 20:08, 10 September 2015

Rainbow V01N02 Pag. 4

Normally ECB reserves 4 pages for graphics, for a total of 22824 Basic memory, If your program does not need graphics, you should be able to use PCLEAR 0, but this command fails due to an error in the ECB, to solve this we use POKE 25,6: NEW

With PCLEAR 1 the total is 27432 and With POKE 25,6:NEW (PCLEAR 0) the total memory is 31016

PRINT MEM<RETURN> ==> 22824
PCLEAR 1:PRINT MEM<RETURN> ==> 27432
POKE 25,6:NEW ' (PCLEAR 0)
PRINT MEM<RETURN> ==> 31016

You have to plan in advance. The Poke doesn't work if you leave off the :NEW, and, if you have a program resident in memory, the NEW will wipe.
One way to avoid this problem if you did not plan ahead would be to CSAVE the program, reset the memory and then CLOAD the Program back in.

As Bob Hope said...