0 Members and 1 Guest are viewing this topic.
<<Header>>1803 This skips the next 3 bytesDB06 This changes the flash page to whatever was in aC9 This is executed on the next page, pops the value into PC and picks up the code from there
DB06 This gets the current flash page in a3C This increase a21**** This is the address to jump to on the next pageE5 This pushes HLC38240 This jumps to 2 bytes after the header
diin (6), aout (7), ajp $+4000hld a, 83hout (6), a; Business as usual
No, like this, in asm:Code: [Select]diin (6), aout (7), ajp $+4000hld a, 83hout (6), a; Business as usual
So if I have an app, could I read in the page I'm running on, then swap it into bank 2 and jump to bank 2, where I then swap in the RAM? Probably tough to pull off in Axe, but I have a few ideas.
Another option, with the same caveats, would be to simply leave your app mapped in the 4000-7FFF slot, and temporarily map whichever RAM page you're interested in in the 8000-BFFF slot.
So, I've never made a multi page APP before... Would it be that I could make a code like this:This heads both pagesCode: [Select]<<Header>>1803 This skips the next 3 bytesDB06 This changes the flash page to whatever was in aC9 This is executed on the next page, pops the value into PC and picks up the code from thereContinuing code to some part on the next page:Code: [Select]DB06 This gets the current flash page in a3C This increase a21**** This is the address to jump to on the next pageE5 This pushes HLC38240 This jumps to 2 bytes after the header
Okee, I think I'll give it a try. Meanwhile, I just had a brilliant idea with an interrupt, if only I could manage it in my head. It will be my first interrupt \(^_^)/