Login
Back to forumSee the full topicGo to last reply

Posted By

Csabo
on 2013-08-07
19:30:45
 Re: How to checkC16/116 RAM size

Hi Miro,

I think the standard way of checking memory is writing to a location and reading back the value. On a C16, memory areas above $4000 are all mapped to the available memory. (So, for example, writing a value to $1000, or $5000, or $9000 all go to $1000).

Here's the pseudo code:
- Write $AA to $5000, and then write $55 to $1000. (The values don't really matter, all that matters is that they are different.)
- read from $5000. If it's $55, then you have only 16K memory.

Checking for 32K would be done the same way, but with memory locations $1000 and $9000.

Hope this helps, let me know if you need the actual code, but I think based on the above you should be able to write it easily.



Back to top


Copyright © Plus/4 World Team, 2001-2024