Re:SymbOS: Graphical Z80 Multitasking Operating System
by Sir_Cmpwn on Friday January 05, 2018 @08:26PM
(#16083262)
For fun, I took a "happy medium" approach in KnightOS. Programs are written with RSTs (basically the z80 version of traps) next to each instruction with a relative address, then the kernel looks up the return address on the stack, partially decodes the next instruction, and then modifies the code in RAM to update the address to the correct one. It's basically just-in-time PIC.
https://github.com/KnightOS/kernel/blob/master/src/00/restar...