mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 23:58:04 -04:00
z80, minor fixes to drz80 + cz80 to bring them in sync
This commit is contained in:
parent
9961d9fdb8
commit
f061b89d25
2 changed files with 17 additions and 33 deletions
|
@ -286,9 +286,9 @@ z80_xmap_rebase_sp:
|
|||
sub r2,z80pc,r1
|
||||
str r2,[cpucontext,#previouspc]
|
||||
.endif
|
||||
ldrplb r0,[z80pc],#1
|
||||
ldrpl pc,[opcodes,r0, lsl #2]
|
||||
bmi z80_execute_end
|
||||
ldrgtb r0,[z80pc],#1
|
||||
ldrgt pc,[opcodes,r0, lsl #2]
|
||||
ble z80_execute_end
|
||||
.endm
|
||||
|
||||
.macro eatcycles cycs
|
||||
|
@ -1442,8 +1442,8 @@ DrZ80Run:
|
|||
PIC_LDR(opcodes, r0, MAIN_opcodes)
|
||||
|
||||
cmp z80_icount,#0 ;@ irq might have used all cycles
|
||||
ldrplb r0,[z80pc],#1
|
||||
ldrpl pc,[opcodes,r0, lsl #2]
|
||||
ldrgtb r0,[z80pc],#1
|
||||
ldrgt pc,[opcodes,r0, lsl #2]
|
||||
|
||||
|
||||
z80_execute_end:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue