|
|
|
|
|
by Doctor_Fegg
2718 days ago
|
|
Like any 8-bit CPU, the Z80 had plenty of coding optimisations you soon learned. First one that came to mind reading this: instead of ld bc,4; ldir, it’s faster just to do ldi; ldi; ldi; ldi. There’s also a set of “alternate registers” you could swap in with exx, which sometimes enabled faster arithmetic without hitting memory. |
|