Skip to content
This repository has been archived by the owner on Jul 6, 2018. It is now read-only.

Commit

Permalink
HOTFIX: Clear stack on reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico committed May 22, 2017
1 parent a4dae3e commit 527a0f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Processor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,16 @@ private bool WatchdogTick()
}

/// <summary>
/// Methode um Speicher zurückzusetzen
/// Methode um den PIC zurückzusetzen
/// </summary>
internal void Reset()
{
// Memory auf Standardwerte zurücksetzen
this.memController.ClearMemory();

// Stack zurücksetzen
this.Stack.Clear();

// Spezielle Variablen zurücksetzen
this.memController.PC = 0;
this.Wreg = 0;
Expand Down

0 comments on commit 527a0f7

Please sign in to comment.