Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to put zxbasic code in memory banks
#7
That's right. As Britlion says, the fastest solution (well, workaround) is to make bank-switching funtions. I think there are bank switching functions already in the library. Other people has managed to program with them. Think like it was in BASIC with the LOAD! and SAVE! functions. However, another not so cheap solution is to use other banks for thinks like Array data, and maybe the HEAP.

For example, I imagine one can declare an array at a given BANK, like:
Code:
REM Declares A at BANK 4, Address 12000 Within the bank
DIM A(5, 6) As Ubyte AT #4:12000
Or something like that, but this will require to change big areas of the compiler at the moment, not only syntax, because whenever you access an array, a bank switch must be done automatically for you, etc...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)