mirror of
https://github.com/holub/mame
synced 2025-05-30 09:33:05 +03:00
i386.c: x87 condition code flag C1 must be 1 in case of a stack overflow, 0 in case of a stack undeflow (nw)
This commit is contained in:
parent
dd7ea6355b
commit
556b4259c9
@ -226,13 +226,13 @@ void i386_device::x87_write_stack(int i, floatx80 value, int update_tag)
|
||||
|
||||
void i386_device::x87_set_stack_underflow()
|
||||
{
|
||||
m_x87_sw |= X87_SW_C1 | X87_SW_IE | X87_SW_SF;
|
||||
m_x87_sw &= ~X87_SW_C1;
|
||||
m_x87_sw |= X87_SW_IE | X87_SW_SF;
|
||||
}
|
||||
|
||||
void i386_device::x87_set_stack_overflow()
|
||||
{
|
||||
m_x87_sw &= ~X87_SW_C1;
|
||||
m_x87_sw |= X87_SW_IE | X87_SW_SF;
|
||||
m_x87_sw |= X87_SW_C1 | X87_SW_IE | X87_SW_SF;
|
||||
}
|
||||
|
||||
int i386_device::x87_inc_stack()
|
||||
|
Loading…
Reference in New Issue
Block a user