🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: bit.listserv.coco
3 messages
3 total messages Started by pomprocker Sun, 19 Feb 2006 04:20
CoCo2 Memory Leak
#40
Author: pomprocker
Date: Sun, 19 Feb 2006 04:20
2 lines
1163 bytes
Hi when i do "print mem" on my 26-3027 coco2 it says 8487. why do i
only have 8k?
Re: CoCo2 Memory Leak
#41
Author: Homer J Simpson
Date: Sun, 19 Feb 2006 07:00
10 lines
1146 bytes
"pomprocker" <brandtdaniels@gmail.com> wrote in message 
news:1140322832.922285.266570@g47g2000cwa.googlegroups.com...

> Hi when i do "print mem" on my 26-3027 coco2 it says 8487. why do i
> only have 8k?

If you have extended Basic,

PCLEAR 1
Re: CoCo2 Memory Leak
#42
Author: Rogelio Perea
Date: Mon, 20 Feb 2006 20:19
24 lines
2200 bytes
"pomprocker" <brandtdaniels@gmail.com> wrote:

> Hi when i do "print mem" on my 26-3027 coco2 it says 8487. why do i
> only have 8k?

The CoCo reserves some RAM for its own use and the biggest chunk gets put 
aside for the high resolution graphics screen. Typically, the CoCo will 
reserve enough RAM for 4 pages, it uses 1,536 bytes per page so that will be 
times 4 = 6,144 bytes, you can say that the CoCo does an automatic PCLEAR 4 
on power up or cold reset; this, plus some RAM set aside for the STRING$ 
operations, variables and other internal computer housekeeping duties will 
eat away from what's available for your Basic program.

From Basic, without doing any fancy commands, the least amount you can set 
the CoCo to reserve as far as graphics go is 1,536 bytes, a single page and 
this is done by issuing a PCLEAR 1 command (as noted in another post here). 
There is a way to clear out that last graphic page - you will loose the 
ability to do any hi-res graphics though - and the commands needed to do 
this will depend on if you are using a disk system or just the CoCo - no 
drives. The disk system will take away 2,048 bytes (full 2 k worth) out of 
the RAM for its own use.


-=[ Rogelio ]=- 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads