Skip to content

Commit

Permalink
Fix for the segment fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Aug 23, 2023
1 parent 224b3f3 commit 57e83cc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions XT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,6 @@ public ushort ReadMemWord(ushort segment, ushort offset)

if (reg == 6)
{
Log.DoLog("HIERO");
a = _bp;
name = "[BP]";
cycles = 5;
Expand Down Expand Up @@ -2614,7 +2613,12 @@ public bool Tick()
}
else
{
if (a_valid && reg2 == 5 && word)
bool override_to_ss = a_valid && word && _segment_override_set == false &&
(
((reg2 == 2 || reg2 == 3) && mod == 0)
);

if (override_to_ss)
{
seg = _ss;
#if DEBUG
Expand Down

0 comments on commit 57e83cc

Please sign in to comment.