diff options
author | cracyc <cracyc@users.noreply.github.com> | 2018-06-01 13:53:43 -0500 |
---|---|---|
committer | cracyc <cracyc@users.noreply.github.com> | 2018-06-01 13:53:43 -0500 |
commit | 84b2fd459163067d6ba4ae51c809c3d7018d9e7d (patch) | |
tree | 20ee48a2420cc0be53597418637c180c6a4dbe6e /src/devices/cpu | |
parent | e99efd87bcc2615ffd9ea5fd6437c223fe9f3873 (diff) |
i386: don't mask top 8 bits of sgdt for 486 too, fixes win32s (nw)
Diffstat (limited to 'src/devices/cpu')
-rw-r--r-- | src/devices/cpu/i386/i486ops.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/i386/i486ops.hxx b/src/devices/cpu/i386/i486ops.hxx index 2db6a8eada0..b86a6068d24 100644 --- a/src/devices/cpu/i386/i486ops.hxx +++ b/src/devices/cpu/i386/i486ops.hxx @@ -220,7 +220,7 @@ void i386_device::i486_group0F01_16() // Opcode 0x0f 01 ea = GetEA(modrm,1); } WRITE16(ea, m_gdtr.limit); - WRITE32(ea + 2, m_gdtr.base & 0xffffff); + WRITE32(ea + 2, m_gdtr.base); CYCLES(CYCLES_SGDT); break; } @@ -236,7 +236,7 @@ void i386_device::i486_group0F01_16() // Opcode 0x0f 01 ea = GetEA(modrm,1); } WRITE16(ea, m_idtr.limit); - WRITE32(ea + 2, m_idtr.base & 0xffffff); + WRITE32(ea + 2, m_idtr.base); CYCLES(CYCLES_SIDT); break; } |