Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sedatk
· 2y ago · 0 comments
Z80 has a mirror register set that can be swapped immediately. That makes task switching faster.
Comments
[–]
CodeWriter23
2y ago
For up to two tasks
[–]
sedatk
OP
2y ago
No, for kernel code that handles the switching.
[–]
CodeWriter23
2y ago
EXX doesn’t transfer to RAM, only to the ‘ register set. Great for ISRs (as long as you can single-thread the interrupts) but you’re not going to track task state using it.
[–]
sedatk
OP
2y ago
That's what I said. You can make the kernel's code that handles the task switching faster that way.