Mercurial > repos > blastem
comparison m68k_to_x86.c @ 156:3900cfde9dbb
Add cycles for Bcc (needs work, but this changes keeps some ROMs from making the emulator unresponsive)
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 04 Jan 2013 23:25:23 -0800 |
parents | 94a65fb4e1c7 |
children | 301470eb870b |
comparison
equal
deleted
inserted
replaced
155:94a65fb4e1c7 | 156:3900cfde9dbb |
---|---|
1420 return dst; | 1420 return dst; |
1421 } | 1421 } |
1422 | 1422 |
1423 uint8_t * translate_m68k_bcc(uint8_t * dst, m68kinst * inst, x86_68k_options * opts) | 1423 uint8_t * translate_m68k_bcc(uint8_t * dst, m68kinst * inst, x86_68k_options * opts) |
1424 { | 1424 { |
1425 //TODO: Add cycles | 1425 dst = cycles(dst, 10);//TODO: Adjust this for branch not taken case |
1426 int32_t disp = inst->src.params.immed; | 1426 int32_t disp = inst->src.params.immed; |
1427 uint32_t after = inst->address + 2; | 1427 uint32_t after = inst->address + 2; |
1428 uint8_t * dest_addr = get_native_address(opts->native_code_map, after + disp); | 1428 uint8_t * dest_addr = get_native_address(opts->native_code_map, after + disp); |
1429 if (inst->extra.cond == COND_TRUE) { | 1429 if (inst->extra.cond == COND_TRUE) { |
1430 if (!dest_addr) { | 1430 if (!dest_addr) { |