trunk/src/emu/cpu/hmcs40/hmcs40op.inc
| r244823 | r244824 | |
| 658 | 658 | // destination is determined by the 2 highest bits |
| 659 | 659 | if (o & 0x100) |
| 660 | 660 | { |
| 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; |
| 662 | 663 | m_b = o >> 4 & 0xf; |
| 663 | 664 | } |
| 664 | 665 | if (o & 0x200) |
| 665 | 666 | { |
| 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); |
| 668 | 671 | } |
| 669 | 672 | } |