i86: wrap at end of segment not at 64k boundary

This commit is contained in:
cracyc 2022-02-06 14:04:48 -06:00
parent b82852476d
commit 4c9d66fec1
2 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@ license:CC0
-->
<softwarelist name="vis" description="Tandy/Memorex Video Information System CD-ROM images">
<!-- Garbled text -->
<software name="amherit" supported="no">
<!-- Some images only fill half the screen -->
<software name="amherit" supported="partial">
<!--
Origin: redump.org
<rom name="American Heritage - Illustrated Encyclopedic Dictionary (USA).bin" size="437163888" crc="4f245ee3" sha1="4b12b3686c109a82d86f76394f8f6c4513ce4911"/>

View File

@ -378,7 +378,7 @@ inline uint16_t i8086_common_cpu_device::GetRMWord()
inline uint16_t i8086_common_cpu_device::GetnextRMWord()
{
return read_word((m_ea & ~0xffff) | ((m_ea + 2) & 0xffff));
return read_word((m_ea - m_eo) + ((m_eo + 2) & 0xffff));
}