Skip to content
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

DCC doesn't work on Turbo Pascal COM binaries #33

Open
rogerd007 opened this issue May 29, 2020 · 1 comment
Open

DCC doesn't work on Turbo Pascal COM binaries #33

rogerd007 opened this issue May 29, 2020 · 1 comment

Comments

@rogerd007
Copy link

DCC includes signatures for Turbo Pascal 3.01 (which only generates MS-DOS COM binaries, not EXEs), however I have not been able to get it to work on even the simplest program.

Attached is a "Hello World" example. DCC either seems to use the wrong offset for the main() function, or if I fix that (to what I think it should be -- could still be wrong!), it always complains about 80386 instructions. Turbo Pascal 3.01 doesn't generate 80386 instructions, so that's clearly not right. It seems odd that DCC includes signatures for Turbo Pascal 3.01 (TP 3.00B and TP 3.02 generate a different signature and are not recognised by DCC, so I'm sure TP 3.01 is the correct version) and yet doesn't appear to work with TP 3.01 generated binaries at all!

Does anyone have any ideas?

TP301.zip

@rogerd007
Copy link
Author

Further investigation reveals that what DCC is interpreting as instructions it doesn't know about is actually data, not code. I'll investigate the parser in further detail to try to see what can be done.

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

No branches or pull requests

1 participant