implemented missing Z80 instructions

This commit is contained in:
FeralChild64 authored and FeralChild64 committed 2021-01-26 00:03:07 +01:00
1 parent 3ed88d3312
commit 99954e8274
1 file changed
+33 -1
+33 -1
View File
@@ -126,6 +126,38 @@ Z80_instr_ED_A9: ; CPD
jmp ZVM_next
Z80_instr_ED_B1: ; CPIR
+Z80_common_CP_block
inw REG_HL
dew REG_BC
beq Z80_common_CPIR_CPDR
+Z80_FETCH_VIA_HL
cmp REG_A
bne Z80_instr_ED_B1
+Z80_PUT_1_VF
jmp ZVM_next
Z80_common_CPIR_CPDR:
+Z80_FETCH_VIA_HL
cmp REG_A
+bne ZVM_next
+Z80_PUT_1_VF
jmp ZVM_next
Z80_instr_ED_B9: ; CPDR
jmp ZVM_next ; XXX provide implementation
+Z80_common_CP_block
dew REG_HL
dew REG_BC
beq Z80_common_CPIR_CPDR
+Z80_FETCH_VIA_HL
cmp REG_A
bne Z80_instr_ED_B9
+Z80_PUT_1_VF
jmp ZVM_next