Created
September 25, 2016 03:01
-
-
Save toptensoftware/9c69a7418fe18a1bb189c06170fd1de6 to your computer and use it in GitHub Desktop.
Typical Sharp86 Usage Pattern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a CPU | |
_cpu = new CPU(); | |
// Setup the memory bus | |
_cpu.Bus = _memoryHeap; | |
// Setup some registers | |
_cpu.cs = 0x10; | |
_cpu.ip = 0x100; | |
_cpu.ax = whatever; | |
// Run! | |
while (_shouldContinue) | |
{ | |
_cpu.Step(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment