mirror of
https://github.com/holub/mame
synced 2025-05-05 13:54:42 +03:00
i286 - small fix by Carl (no whatsnew)
This commit is contained in:
parent
80e6649ca7
commit
bf0d1b0122
@ -191,7 +191,7 @@ static void i80286_data_descriptor_full(i80286_state *cpustate, int reg, UINT16
|
||||
}
|
||||
if (offset+size) {
|
||||
if ((CODE(r) || !EXPDOWN(r)) && ((offset+size-1) > LIMIT(desc))) throw (reg==SS)?TRAP(STACK_FAULT,(trap&1)):trap;
|
||||
if (!CODE(r) && EXPDOWN(r) && ((offset <= LIMIT(desc)) || ((offset+size) > 0xffff))) throw (reg==SS)?TRAP(STACK_FAULT,(trap&1)):trap;
|
||||
if (!CODE(r) && EXPDOWN(r) && ((offset <= LIMIT(desc)) || ((offset+size-1) > 0xffff))) throw (reg==SS)?TRAP(STACK_FAULT,(trap&1)):trap;
|
||||
}
|
||||
|
||||
SET_ACC(desc);
|
||||
|
Loading…
Reference in New Issue
Block a user