Skip to content

Commit

Permalink
RESET in console
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Feb 26, 2025
1 parent d40603a commit 1e8c391
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions XT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ public P8086(ref Bus b, string test, TMode t_mode, uint load_test_at, bool termi
_flags |= 2;
}

public void Reset()
{
_cs = 0xf000;
_ip = 0xfff0;
}

public int GetClock()
{
return _clock;
Expand Down
3 changes: 3 additions & 0 deletions main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@
thread.Join();
}

b.ClearMemory();
p.Reset();

runner_parameters.exit.set(false);
thread = CreateRunnerThread(runner_parameters);
running = true;
Expand Down

0 comments on commit 1e8c391

Please sign in to comment.