Skip to content

Commit

Permalink
#32: Added skeleton for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
saku-kaarakainen committed Aug 30, 2016
1 parent 4aac977 commit d0fbe74
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions WinBoyEmulator/GameBoy/CPU/LR35902.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,20 @@ public static LR35902 Instance
}
}

public void Start()
{
var cpuIsRunning = true;
/*while(cpuIsRunning)
{
// Issue #32
//
// Fetch instruction
// Dispatch
// Mask PC to 16 bits
// Add time to CPU clock
}*/
}

public void Reset()
{
// Since we have combined registers, we can use them.
Expand Down
1 change: 1 addition & 0 deletions WinBoyEmulator/GameBoy/Emulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public void StartEmulation(string gamePath)
// Load game.
_readGameFile(gamePath);
MMU.Instance.Load(_game);
LR35902.Instance.Start();
}
}
}

0 comments on commit d0fbe74

Please sign in to comment.