Created
October 6, 2016 00:38
-
-
Save toptensoftware/89c1a4eef200dfa49564e524b91a92f1 to your computer and use it in GitHub Desktop.
Win3mu - Calling the program entry point
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
| // 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