Page options cont

Jon,

I tried that example you gave me, and it didn't seem to work. I think there may be problems with the development kit.

David

Parents
  • Opps, I gave the wrong page size before, It should be should be 16k.
    #define PAGESZ 0x4000

    Another idea:
    You can use plain old "xdata variables", if you do not need "xdata mapped IO" or more than 64k of RAM. Just use:

      PageType = 0; //all page banks are ram
      PageFor4000 = 0x1;  // 0_4000 to 0_7FFF
      PageFor8000 = 0x2;  // 0_8000 to 0_BFFF
      PageForC000 = 0x3;  // 0_C000 to 0_FFFF
    

Reply
  • Opps, I gave the wrong page size before, It should be should be 16k.
    #define PAGESZ 0x4000

    Another idea:
    You can use plain old "xdata variables", if you do not need "xdata mapped IO" or more than 64k of RAM. Just use:

      PageType = 0; //all page banks are ram
      PageFor4000 = 0x1;  // 0_4000 to 0_7FFF
      PageFor8000 = 0x2;  // 0_8000 to 0_BFFF
      PageForC000 = 0x3;  // 0_C000 to 0_FFFF
    

Children
More questions in this forum