41CL: Second set of Extended Memory
|
04-25-2014, 11:32 AM
(This post was last modified: 04-25-2014 01:41 PM by Ángel Martin.)
Post: #1
|
|||
|
|||
41CL: Second set of Extended Memory
You probably know already that the 41CL has 2MB of flash and 512kB of RAM capacity. Perhaps the most intriguing aspect of that additional RAM memory would be to make it somehow available to the OS; exceeding the built-in limits of the original design...
No doubt that would require patching the OS extensively, probably too much for a reasonable undertaking and a lot of effort to say the least. But a lower-hanging fruit could be extending the Extended Memory capacity, definitely more tractable than the main memory space. With that idea in mind I've been fumbling with the X-Mem control and linking registers, trying to add additional EM-blocks to the "chain"; and exploring alternate EM configurations in RAM locations above 0x400. So far the obvious tricks haven't been fruitfull, it appears there too patching the OS code would be required to get it to work. But using a bit of lateral thinking it's easy to come up with easy ways to back up all your X-memory, or even to have an alternative (dual) set of X-Mem configured, so you can switch back and forth between them. Below is the quick and dirty FOCAL program to hot-swap the standard X-Memory configuration with another one located in the higher memory locations, above 0x400. It keeps the same structure (one base block of 128 registers plus two additional ones of 239 each), at equivalent addresses to maintain the parity. This maintains the compatibility for main-RAM back-ups as well, assuming of course that the switching routine would be running from ROM. Interestingly it only uses PEEKR and POKER as non-standard functions, available in the CCD Module and a few of its derivatives. Take it for a spin and report issues or ideas for enhancement, let's see where can this be taken to... Code:
Cheers, ÁM PS. Slightly improved code updated "To live or die by your own sword one must first learn to wield it aptly." |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)