trunk/src/emu/cpu/m6809/konami.ops
r21905 | r21906 | |
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 >> 0); |
435 | | exgtfr_register reg2 = read_exgtfr_register(param >> 4); |
436 | | write_exgtfr_register(param >> 0, reg2); |
437 | | write_exgtfr_register(param >> 4, reg1); |
| 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); |
438 | 438 | } |
439 | 439 | eat(hd6309_native_mode() ? 3 : 6); |
440 | 440 | return; |