diff options
author | 2020-05-22 14:03:43 +0200 | |
---|---|---|
committer | 2020-05-22 14:10:07 +0200 | |
commit | d3bad75b926aa1ef1286b70cc9d46753e5f09455 (patch) | |
tree | 484c2cd81900ff2f932b66c20a08668a176abcde | |
parent | 5041861672ebf0bf11220ec4c76f02b0fbfe28e5 (diff) |
-unsp: Removed outdated commnet related to Ext Push/Pop ops. The register decoding is correct. (nw)
-rw-r--r-- | src/devices/cpu/unsp/unsp_extended.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/devices/cpu/unsp/unsp_extended.cpp b/src/devices/cpu/unsp/unsp_extended.cpp index 948255ff610..ae60b3afdff 100644 --- a/src/devices/cpu/unsp/unsp_extended.cpp +++ b/src/devices/cpu/unsp/unsp_extended.cpp @@ -55,7 +55,6 @@ void unsp_20_device::execute_extended_group(uint16_t op) } case 0x02: { - // register decoding could be incorrect here // Ext Push/Pop if (ximm & 0x8000) { @@ -67,9 +66,6 @@ void unsp_20_device::execute_extended_group(uint16_t op) if ((rx - (size - 1)) >= 0) { - //logerror("(Ext) push %s, %s to [%s]\n", - // extregs[rx - size], extregs[rx], (rb & 0x8) ? extregs[rb & 0x7] : regs[rb & 0x7]); - while (size--) { push(m_core->m_r[(rx--) + 8], &m_core->m_r[rb]); @@ -94,16 +90,11 @@ void unsp_20_device::execute_extended_group(uint16_t op) if ((rx - (size - 1)) >= 0) { - //logerror("(Ext) pop %s, %s from [%s]\n", - // extregs[rx - size], extregs[rx], (rb & 0x8) ? extregs[rb & 0x7] : regs[rb & 0x7]); int realrx = 7 - rx; while (size--) { - if (rb & 0x8) - m_core->m_r[(realrx++) + 8] = pop(&m_core->m_r[(rb & 0x07) + 8]); - else - m_core->m_r[(realrx++) + 8] = pop(&m_core->m_r[rb & 0x07]); + m_core->m_r[(realrx++) + 8] = pop(&m_core->m_r[rb]); } } else |