mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
Merge pull request #3785 from MoochMcGee/i386-fix
i386: Properly fix that detection check this time (nw)
This commit is contained in:
commit
b4a0012777
@ -335,6 +335,7 @@ uint32_t i386_device::get_flags() const
|
||||
|
||||
void i386_device::set_flags(uint32_t f )
|
||||
{
|
||||
f &= m_eflags_mask;
|
||||
m_CF = (f & 0x1) ? 1 : 0;
|
||||
m_PF = (f & 0x4) ? 1 : 0;
|
||||
m_AF = (f & 0x10) ? 1 : 0;
|
||||
@ -349,11 +350,11 @@ void i386_device::set_flags(uint32_t f )
|
||||
m_NT = (f & 0x4000) ? 1 : 0;
|
||||
m_RF = (f & 0x10000) ? 1 : 0;
|
||||
m_VM = (f & 0x20000) ? 1 : 0;
|
||||
if(m_cpu_version >= 0x400) m_AC = (f & 0x40000) ? 1 : 0;
|
||||
m_AC = (f & 0x40000) ? 1 : 0;
|
||||
m_VIF = (f & 0x80000) ? 1 : 0;
|
||||
m_VIP = (f & 0x100000) ? 1 : 0;
|
||||
m_ID = (f & 0x200000) ? 1 : 0;
|
||||
m_eflags = f & m_eflags_mask;
|
||||
m_eflags = f;
|
||||
}
|
||||
|
||||
void i386_device::sib_byte(uint8_t mod, uint32_t* out_ea, uint8_t* out_segment)
|
||||
|
Loading…
Reference in New Issue
Block a user