| Previous | 199869 Revisions | Next |
| r36226 Tuesday 3rd March, 2015 at 22:03:44 UTC by Samuele Zannoli |
|---|
| i386.c: x87 condition code flag C1 must be 1 in case of a stack overflow, 0 in case of a stack undeflow (nw) |
| [src/emu/cpu/i386] | x87ops.inc |
| r244737 | r244738 | |
|---|---|---|
| 226 | 226 | |
| 227 | 227 | void i386_device::x87_set_stack_underflow() |
| 228 | 228 | { |
| 229 | m_x87_sw |= X87_SW_C1 | X87_SW_IE | X87_SW_SF; | |
| 229 | m_x87_sw &= ~X87_SW_C1; | |
| 230 | m_x87_sw |= X87_SW_IE | X87_SW_SF; | |
| 230 | 231 | } |
| 231 | 232 | |
| 232 | 233 | void i386_device::x87_set_stack_overflow() |
| 233 | 234 | { |
| 234 | m_x87_sw &= ~X87_SW_C1; | |
| 235 | m_x87_sw |= X87_SW_IE | X87_SW_SF; | |
| 235 | m_x87_sw |= X87_SW_C1 | X87_SW_IE | X87_SW_SF; | |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | 238 | int i386_device::x87_inc_stack() |
| https://github.com/mamedev/mame/commit/556b4259c9ffe8ff847b0c8375b71a29a75cdab0 |
| Previous | 199869 Revisions | Next |