src/emu/cpu/tms9900/tms9900.c
| r15590 | r15591 | |
| 1308 | 1308 | m_state = 0; |
| 1309 | 1309 | IR = inst; |
| 1310 | 1310 | m_get_destination = false; |
| 1311 | m_byteop = false; |
| 1311 | 1312 | |
| 1312 | 1313 | while (!complete) |
| 1313 | 1314 | { |
| r15590 | r15591 | |
| 1336 | 1337 | MPC = -1; |
| 1337 | 1338 | m_command = decoded->id; |
| 1338 | 1339 | if (VERBOSE>7) LOG("tms99xx: Command decoded as id %d, %s, base opcode %04x\n", m_command, opname[m_command], decoded->opcode); |
| 1340 | // Byte operations are either format 1 with the byte flag set |
| 1341 | // or format 4 (CRU multi bit operations) with 1-8 bits to transfer. |
| 1342 | m_byteop = ((decoded->format==1 && ((IR & 0x1000)!=0)) |
| 1343 | || (decoded->format==4 && (((IR >> 6)&0x000f) > 0) && (((IR >> 6)&0x000f) > 9))); |
| 1339 | 1344 | } |
| 1340 | 1345 | m_pass = 1; |
| 1341 | 1346 | } |
| r15590 | r15591 | |
| 1537 | 1542 | MPC = ircopy & 0x0030; |
| 1538 | 1543 | |
| 1539 | 1544 | if (((MPC == 0x0020) && (m_regnumber != 0)) // indexed |
| 1540 | | || ((MPC == 0x0030) && ((IR & 0x1000)!=0))) // byte flag |
| 1545 | || ((MPC == 0x0030) && m_byteop)) // byte operation |
| 1541 | 1546 | { |
| 1542 | 1547 | MPC += 8; // the second option |
| 1543 | 1548 | } |