Re:Z-Berry: Z-80 computer
by jacquesm on Thursday June 15, 2017 @01:31PM
(#14562444)
The obvious way to solve the 'will crash when switching banks because next instruction is from different bank' is to replicate the bank switching code to all banks.
[ Parent
| on HN ]
Of course, in order to copy the bank switching code to the other banks you need to switch to them first. Which means that this copying can only be done by the ROM.
No, you'd do that with a little bit of PIC running in one of the other parts of RAM.
Only one bank can be active at a time, so the only RAM you can run the code from is the same bank that you're trying to load code into. Slight chicken-and-egg problem.