more Z80 optimizations
This commit is contained in:
1 parent
05c68cd79d
commit
9e26e7e085
17 files changed
+108
-162
No files matched your search
+32
-32
@@ -872,51 +872,51 @@ Z80_instr_CB_FF: ; SET 7,A
|
||||
|
||||
Z80_instr_CB_C6: ; SET 0,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
ora #%00000001
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_CE: ; SET 1,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
ora #%00000010
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_D6: ; SET 2,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
ora #%00000100
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_DE: ; SET 3,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
ora #%00001000
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_E6: ; SET 4,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
ora #%00010000
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_EE: ; SET 5,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
ora #%00100000
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_F6: ; SET 6,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
ora #%01000000
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_FE: ; SET 7,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
ora #%10000000
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_xDCB_C6: ; SET 0,(IXY+d)
|
||||
|
||||
@@ -1256,51 +1256,51 @@ Z80_instr_CB_BF: ; RES 7,A
|
||||
|
||||
Z80_instr_CB_86: ; RES 0,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
and #%11111110
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_8E: ; RES 1,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
and #%11111101
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_96: ; RES 2,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
and #%11111011
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_9E: ; RES 3,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
and #%11110111
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_A6: ; RES 4,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
and #%11101111
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_AE: ; RES 5,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
and #%11011111
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_B6: ; RES 6,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
and #%10111111
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_CB_BE: ; RES 7,(HL)
|
||||
|
||||
jsr (VEC_fetch_via_HL_back)
|
||||
jsr (VEC_fetch_via_HL)
|
||||
and #%01111111
|
||||
jmp ZVM_store_next
|
||||
jmp ZVM_store_via_HL_next
|
||||
|
||||
Z80_instr_xDCB_86: ; RES 0,(IXY+d)
|
||||
|
||||
|
||||
Reference in new issue
Block a user