05-21-2010, 08:29 AM
Very nicely done, Na_th_an. That's half the game for a 128!
I was thinking that I could force page swapping on a 128, by coding a routine to do it manually. Then I realized I'd have to call code in other pages by inference, and that would be a pain.
I did wonder if I could get the compiler to do
[code]
org 49152
[code for one page]
org 49152
[code for next page]
org 49152
[code for next page]
And so on. Yes, it would overwrite itself - but the location references for calls would be correct in the generated code.
On the whole though, I've found the results of using ORG in the code to be rather unfortunate
Then of course, compile each page as an item separately, and save out 16K blocks of code, and then load them in, and page flip to load each successive one. Voila. Data in multiple pages...
it's a crazy plan, but it might just work :-)
I've shown that one can manually push the compiler to set up an ISR Mode 2 routine! Remember this? : <!-- m --><a class="postlink" href="http://britlion.googlepages.com/Sprity.z80">http://britlion.googlepages.com/Sprity.z80</a><!-- m -->
I was thinking that I could force page swapping on a 128, by coding a routine to do it manually. Then I realized I'd have to call code in other pages by inference, and that would be a pain.
I did wonder if I could get the compiler to do
[code]
org 49152
[code for one page]
org 49152
[code for next page]
org 49152
[code for next page]
And so on. Yes, it would overwrite itself - but the location references for calls would be correct in the generated code.
On the whole though, I've found the results of using ORG in the code to be rather unfortunate

Then of course, compile each page as an item separately, and save out 16K blocks of code, and then load them in, and page flip to load each successive one. Voila. Data in multiple pages...
it's a crazy plan, but it might just work :-)
I've shown that one can manually push the compiler to set up an ISR Mode 2 routine! Remember this? : <!-- m --><a class="postlink" href="http://britlion.googlepages.com/Sprity.z80">http://britlion.googlepages.com/Sprity.z80</a><!-- m -->