summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-01-04 23:25:23 -0800
committerMike Pavone <pavone@retrodev.com>2013-01-04 23:25:23 -0800
commite18f34129678afeeffbf6fc38d9ec7d3b73452fb (patch)
tree895787f383bc76463ca8e3a9d2e31c7be2c9cb57
parentb6daf2b7bc951d54ffe49e83cc96b30d7f34bc23 (diff)
Add cycles for Bcc (needs work, but this changes keeps some ROMs from making the emulator unresponsive)
-rw-r--r--m68k_to_x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/m68k_to_x86.c b/m68k_to_x86.c
index 70c471a..0e46067 100644
--- a/m68k_to_x86.c
+++ b/m68k_to_x86.c
@@ -1422,7 +1422,7 @@ uint8_t * translate_m68k_bsr(uint8_t * dst, m68kinst * inst, x86_68k_options * o
uint8_t * translate_m68k_bcc(uint8_t * dst, m68kinst * inst, x86_68k_options * opts)
{
- //TODO: Add cycles
+ dst = cycles(dst, 10);//TODO: Adjust this for branch not taken case
int32_t disp = inst->src.params.immed;
uint32_t after = inst->address + 2;
uint8_t * dest_addr = get_native_address(opts->native_code_map, after + disp);