trunk/src/emu/cpu/m6809/konami.ops
r21907 | r21908 | |
431 | 431 | { |
432 | 432 | // konami's EXG instruction differs enough from 6809 to fork the code |
433 | 433 | UINT8 param = read_opcode_arg(); |
434 | | exgtfr_register reg1 = read_exgtfr_register(param >> 4); |
435 | | exgtfr_register reg2 = read_exgtfr_register(param >> 0); |
436 | | write_exgtfr_register(param >> 4, reg2); |
437 | | write_exgtfr_register(param >> 0, reg1); |
| 434 | exgtfr_register reg1 = read_exgtfr_register(param >> 0); |
| 435 | exgtfr_register reg2 = read_exgtfr_register(param >> 4); |
| 436 | write_exgtfr_register(param >> 0, reg2); |
| 437 | write_exgtfr_register(param >> 4, reg1); |
438 | 438 | } |
439 | 439 | eat(hd6309_native_mode() ? 3 : 6); |
440 | 440 | return; |
r21907 | r21908 | |
444 | 444 | // konami's TFR instruction differs enough from 6809 to fork the code |
445 | 445 | UINT8 param = read_opcode_arg(); |
446 | 446 | exgtfr_register reg = read_exgtfr_register(param >> 0); |
447 | | write_exgtfr_register((param >> 4) & 0x07, reg); |
| 447 | write_exgtfr_register(param >> 4, reg); |
448 | 448 | } |
449 | 449 | eat(hd6309_native_mode() ? 2 : 4); |
450 | 450 | return; |