Skip to content

Conversation

@shewitt-au
Copy link
Contributor

@shewitt-au shewitt-au commented Sep 26, 2025

Pattern for DOS EXE files

This PR adds a DOS EXE file pattern. It attempts to provide "links" so you can jump around the file. For example jump to the code that an entry in the relocation table referrs to.

Initially this is to get feedback.

Example use

dospat.mp4

@shewitt-au shewitt-au changed the title Initial DOS file Pattern for DOS EXE files Sep 26, 2025
@shewitt-au shewitt-au marked this pull request as ready for review September 26, 2025 15:09
@shewitt-au
Copy link
Contributor Author

shewitt-au commented Oct 21, 2025

@WerWolv

Is this PR OK? I put a bit of work into it. I've never really programmed in real-mode x86 except briefly at uni, so there was a learning curve. I think it’s a pretty good DOS pattern. It does more than just show data. It allows you you jump around the file structure and handles edge cases like EXEs that use the 20-bit address wrap around to get the PSP into the code segment. This took a lot of research, head scratching and testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant