A | 8-bit accumulator |
HL | 16-bit accumulator and address register, can be used as separate 8-bit registers H, L |
DE | 16-bit data register, can be used as separate 8-bit registers D, E |
BC | 16-bit data register, can be used as separate 8-bit registers B, C |
IX | 16-bit address register |
IY | 16-bit address register |
C test |
as subtraction |
unsigned numbers "else jump" |
signed numbers "else jump" |
if (a >= b) |
if (a-b >= 0) |
JP C or JR C |
JP PO |
if (a < b) |
if (a-b < 0) |
JP NC or JR NC |
JP PE |
if (a == b) |
if (a-b == 0) |
cascaded JP NZ or JR NZ |
cascaded JP NZ or JR NZ |