News for hackers. Stuff that matters.
Re:Z-Berry: Z-80 computer by Someone on Thursday June 15, 2017 @02:44PM (#14563185)
You can use the bank switching logic as a minimalistic/sort of MMU, giving each process a full memory bank and nothing else.

To get real protection of programs against other programs and of the kernel against any programs you would have to make the bank switching logic privileged, but I would think that's doable with some external logic that snoops the memory bus and only allows switching to another bank if either the current bank is bank zero or the destination bank is bank zero and the instruction pointer matches that of the kernel's entry point.

You also would have to force a switch to bank zero to preempt processes. I think the easiest approach would be a timer that, when it expires, switches to bank zero and interrupts the CPU.

With this hardware, that could give you 7 processes, max. I think you could have fun with a minimal Unixlike OS in that.

Edit: it will be a bit of a challenge to pass arguments to the kernel if the kernel can't rely on hitting trusted code when it bank-switches back to a process to, say, read a memory buffer, but that can probably be overcome by force-mapping, say, the last kB of RAM to the kernel's memory space.

Re:Z-Berry: Z-80 computer by pjmlp on Friday June 16, 2017 @02:40AM (#14567052)
Well, one can for sure have CP/M.