Previous 199869 Revisions Next

r21906 Sunday 17th March, 2013 at 12:28:10 UTC by hap
fix EXG order for konami cpu
[src/emu/cpu/m6809]konami.ops

trunk/src/emu/cpu/m6809/konami.ops
r21905r21906
431431   {
432432      // konami's EXG instruction differs enough from 6809 to fork the code
433433      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);
438438   }
439439   eat(hd6309_native_mode() ? 3 : 6);
440440   return;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team