mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
-unsp: Removed outdated commnet related to Ext Push/Pop ops. The register decoding is correct. (nw)
This commit is contained in:
parent
5041861672
commit
d3bad75b92
@ -55,7 +55,6 @@ void unsp_20_device::execute_extended_group(uint16_t op)
|
|||||||
}
|
}
|
||||||
case 0x02:
|
case 0x02:
|
||||||
{
|
{
|
||||||
// register decoding could be incorrect here
|
|
||||||
// Ext Push/Pop
|
// Ext Push/Pop
|
||||||
if (ximm & 0x8000)
|
if (ximm & 0x8000)
|
||||||
{
|
{
|
||||||
@ -67,9 +66,6 @@ void unsp_20_device::execute_extended_group(uint16_t op)
|
|||||||
|
|
||||||
if ((rx - (size - 1)) >= 0)
|
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--)
|
while (size--)
|
||||||
{
|
{
|
||||||
push(m_core->m_r[(rx--) + 8], &m_core->m_r[rb]);
|
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)
|
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;
|
int realrx = 7 - rx;
|
||||||
|
|
||||||
while (size--)
|
while (size--)
|
||||||
{
|
{
|
||||||
if (rb & 0x8)
|
m_core->m_r[(realrx++) + 8] = pop(&m_core->m_r[rb]);
|
||||||
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]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user