Skip to content

Instantly share code, notes, and snippets.

@toptensoftware
Created October 6, 2016 00:38
Show Gist options
  • Select an option

  • Save toptensoftware/89c1a4eef200dfa49564e524b91a92f1 to your computer and use it in GitHub Desktop.

Select an option

Save toptensoftware/89c1a4eef200dfa49564e524b91a92f1 to your computer and use it in GitHub Desktop.
Win3mu - Calling the program entry point
// Setup the CPU's instruction pointer
_cpu.cs = selectorFromSegmentIndex(_module.NeHeader.entryPointCS);
_cpu.ip = _module.NeHeader.entryPointIP;
// Run till done
while (!_stopCondition)
{
_cpu.Step()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment