Previous 199869 Revisions Next

r36312 Saturday 7th March, 2015 at 23:46:37 UTC by hap
fix P opcode madness
[src/emu/cpu/hmcs40]hmcs40op.inc

trunk/src/emu/cpu/hmcs40/hmcs40op.inc
r244823r244824
658658   // destination is determined by the 2 highest bits
659659   if (o & 0x100)
660660   {
661      m_a = o & 0xf;
661      // B3 B2 B1 B0 A0 A1 A2 A3
662      m_a = BITSWAP8((UINT8)o,7,6,5,4,0,1,2,3) & 0xf;
662663      m_b = o >> 4 & 0xf;
663664   }
664665   if (o & 0x200)
665666   {
666      write_r(2, o >> 4 & 0xf);
667      write_r(3, o & 0xf);
667      // R20 R21 R22 R23 R30 R31 R32 R33
668      o = BITSWAP8((UINT8)o,0,1,2,3,4,5,6,7);
669      write_r(2, o & 0xf);
670      write_r(3, o >> 4 & 0xf);
668671   }
669672}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team