Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Another one: the old Z-80 CPU had two sets of registers, and a single instruction to swap between the main and the alternate register set.

http://landley.net/history/mirror/cpm/z80.html (search for "alternate registers").



Sadly it appears that none of the Z80 C compilers (at least the ones I've used, Hi-Tech C and sdcc) are smart enough to use it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: