more Z80 work

This commit is contained in:
FeralChild64 authored and FeralChild64 committed 2021-01-26 00:03:07 +01:00
1 parent 24b3f9ebdb
commit 76ed769d7b
7 files changed
+608 -210

No files matched your search

+15
View File
@@ -65,3 +65,18 @@ Z80_instr_D9: ; EXX
stx REG_L_SH
jmp ZVM_next
!macro Z80_EX_VIA_SP_REGnn .REGnn {
lda .REGnn+0
jsr (VEC_xchng_stack_lo)
sta .REGnn+0
lda .REGnn+1
jsr (VEC_xchng_stack_hi)
sta .REGnn+1
jmp ZVM_next
}
Z80_instr_E3: +Z80_EX_VIA_SP_REGnn REG_HL ; EX (SP),HL
Z80_instr_DD_E3: +Z80_EX_VIA_SP_REGnn REG_IX ; EX (SP),IX
Z80_instr_FD_E3: +Z80_EX_VIA_SP_REGnn REG_IY ; EX (SP),IY