Skip to content

Instantly share code, notes, and snippets.

@toptensoftware
Created September 25, 2016 03:01
Show Gist options
  • Save toptensoftware/9c69a7418fe18a1bb189c06170fd1de6 to your computer and use it in GitHub Desktop.
Save toptensoftware/9c69a7418fe18a1bb189c06170fd1de6 to your computer and use it in GitHub Desktop.
Typical Sharp86 Usage Pattern
// 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