-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXE Loader #315
EXE Loader #315
Conversation
- Code + Data Segments Identified and Loaded - Code Segment Decompiled Properly with Relocation Applied for Data Segment
- Extracted Interrupts into their own Interrupt Handlers - Passing Interrupt Handlers into the CPU Core - Defined PSP Struct - Modified EXE Loader to setup PSP and Environemt Variable Segments
- Added MEMORY as supported target for CALL - Added INT 1Ah - Additional INT 21h APIs - Set values to match DOSBox return values for several Interrupts
- Only return a valid address if running in an EXE context - Otherwise, throw an exception
Currently runs and executed a simple C program compiled with Turbo C: #include <stdio.h>
int main()
{
printf("Hello World!");
return 0;
} Prints the result using INT |
@@ -3,6 +3,7 @@ | |||
<PropertyGroup> | |||
<OutputType>Exe</OutputType> | |||
<TargetFramework>net5.0</TargetFramework> | |||
<LangVersion>preview</LangVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops! Got a little YOLO there
-exe
Command Line switchInterruptHandler
21h
and1Ah