mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
se3208: make sure the low bits of the stack pointer are always 0 [Luca Elia]
This commit is contained in:
parent
078d8e099a
commit
ac36563426
@ -550,7 +550,7 @@ INST(LEATOSP)
|
||||
else
|
||||
Offset=SEX(4,Offset);
|
||||
|
||||
m_SP=Index+Offset;
|
||||
m_SP=(Index+Offset) & (~3);
|
||||
|
||||
CLRFLAG(FLAG_E);
|
||||
}
|
||||
@ -581,7 +581,7 @@ INST(LEASPTOSP)
|
||||
else
|
||||
Offset=SEX(10,Offset);
|
||||
|
||||
m_SP=m_SP+Offset;
|
||||
m_SP=(m_SP+Offset) & (~3);
|
||||
|
||||
CLRFLAG(FLAG_E);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user