Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
panky Guru Joined: 02/10/2012 Location: AustraliaPosts: 1116
Posted: 05:39am 28 Feb 2018
Copy link to clipboard
Print this post
I am working on an emeulation program for an old 8 bit computer and needed to simulate the memory. I need to read and write 8 bits of data at a time with an indexing pointer (the Program Counter in old 8 bit machines).
I looked at Long Strings but decided I could do it with an integer array and developed the two routines below to simulate reading from and writing to an arbitrary length memory stack from address 0 to whatever maximum is desired within the constraints of the MMs available memory.
I hope this may be of use to anyone doing anything similar.
Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!