Mercurial > repos > blastem
comparison m68k_to_x86.c @ 104:a0fdaa134964
Use unsigned comparisons for address decoding, exit when we hit an unhandled addressing mode for jmp
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 27 Dec 2012 23:00:11 -0800 |
parents | bfaca67eeb78 |
children | 1a0fd122ca8f |
comparison
equal
deleted
inserted
replaced
103:a71544cd01ea | 104:a0fdaa134964 |
---|---|
1374 } | 1374 } |
1375 dst = jmp(dst, dest_addr); | 1375 dst = jmp(dst, dest_addr); |
1376 break; | 1376 break; |
1377 default: | 1377 default: |
1378 printf("address mode %d not yet supported (jmp)\n", inst->src.addr_mode); | 1378 printf("address mode %d not yet supported (jmp)\n", inst->src.addr_mode); |
1379 exit(1); | |
1379 } | 1380 } |
1380 return dst; | 1381 return dst; |
1381 } | 1382 } |
1382 | 1383 |
1383 uint8_t * translate_m68k_jsr(uint8_t * dst, m68kinst * inst, x86_68k_options * opts) | 1384 uint8_t * translate_m68k_jsr(uint8_t * dst, m68kinst * inst, x86_68k_options * opts) |