[Coco] Extended Color BASIC memory

Allen Huffman alsplace at pobox.com
Wed Apr 3 09:56:12 EDT 2013


Ah, the things we re-remember. It has been twenty years since I did anything with Extended Color BASIC, and I wanted to type out what I relearned.

On a 32K or 64K CoCo, Extended Color BASIC offers you 22,823 bytes of memory which is used by the BASIC program and any variables it contains while it runs.

There are four (I think?) blocks of memory reserved for graphics screens, and if you are not using them, you can type "PCLEAR 1" to lower that to just one bank. This gives 27,431 bytes free.

There is no "PCLEAR 0" command (oversight? bug?), but there are assembly routines that accomplish the same thing. Using one of those increases available memory to 28,967.

I used a small assembly routine to get PCLEAR 0. I probably found it in Rainbow magazine. Since I didn't know a "safe" place to store it (and since it was used just once, then thrown away), I stored it at the top of the VDG display screen, ran it, then it was gone.

5 FORA=0TO8:READA$:POKE1024+A,VAL("&H"+A$):NEXTA:EXEC1024:DATAC6,1,96,BC,1F,2,7E,96,A3

So... Someone wanna re-remind me what this actually does to accomplish PCLEAR 0?

-
Allen Huffman - PO Box 22031 - Clive IA 50325 - 515-999-0227 (vmail/TXT only)
Sent from my iPad.


More information about the Coco mailing list