04-06-2015, 03:09 PM
(04-04-2015, 11:21 PM)Chibill Wrote: How would you change what page of ram your on.
Well my addressing will take care of that.
when you use an address to access RAM (16 pages of 8bytes,,, 128 bytes total).. It will depend on if you are using RAM to interact with the CPU or external storage. If you are using external storage interface (page based) the addressing will ignore the lower 3 bits of the 7, giving you the upper 4 bits to address the 16 pages. To which u address a page in external (external is addressed based on pages, so you never choose which byte,just the page the byte you want is in) Memory.
example:
Import 4-167 13 *3
will take Sector 4, page 167,168,169 (3 of them since it's *3). And put it in RAM pages 13, 14, 15.
I you are using RAM with the CPU then u only address the RAM by bytes.
some sections of the memory outside of that 128 are special cases, so they are a bit funky.