diff options
author | Michael Pavone <pavone@retrodev.com> | 2018-04-08 12:26:18 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2018-04-08 12:26:18 -0700 |
commit | dfeebb19dd02e127701ffc3b62fc7beb722f948a (patch) | |
tree | dcf156636c10c548c726e9f6539961df187fe7bb | |
parent | b8208b3ca4e0a2382e1854a330cbc9568fe51804 (diff) |
Fix timing for Z80 JP cc, nn instruction
-rw-r--r-- | z80_to_x86.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/z80_to_x86.c b/z80_to_x86.c index 6e9629c..d2341a2 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -2075,7 +2075,7 @@ void translate_z80inst(z80inst * inst, z80_context * context, uint16_t address, break; } case Z80_JPCC: { - cycles(&opts->gen, num_cycles + 3);//T States: 4,3 + cycles(&opts->gen, num_cycles + 6);//T States: 4,3,3 uint8_t cond = CC_Z; switch (inst->reg) { @@ -2102,7 +2102,6 @@ void translate_z80inst(z80inst * inst, z80_context * context, uint16_t address, } uint8_t *no_jump_off = code->cur+1; jcc(code, cond, code->cur+2); - cycles(&opts->gen, 5);//T States: 5 uint16_t dest_addr = inst->immed; code_ptr call_dst = z80_get_native_address(context, dest_addr); if (!call_dst) { |