Skip to main content

Questions tagged [source-reconstruction]

Techniques that attempt to re-create, to the highest extent possible, the source code used to produce a given binary file.

Filter by
Sorted by
Tagged with
4 votes
0 answers
240 views

Is the source code of Alan Dain Sample's m5 macro processor lost?

I've recently come across the User's Guide to the M5 Macro Language by Alan Dain Samples. The guide says that the source code is available at thor.ece.uc.edu:pub/dain/m5. However, this seems not be ...
René Nyffenegger's user avatar
3 votes
2 answers
501 views

Why does my MZ executable's BSS inflate by ~1,5KB after linking fopen() with MSC?

For a game reversing project, I am trying to undo linking with the C library performed by the MSC 5.1 C compiler+linker. To that end, I have created a simple executable that does nothing except ...
neuviemeporte's user avatar
10 votes
3 answers
976 views

How can I make the Microsoft C compiler for DOS emit a loop with an intermediate jump to continue?

I am trying to recreate the exact C source code from some 16bit DOS 8086 assembly generated by the MS C 5.0 compiler. After making some progress, I've hit a wall with the following code (annotated in ...
neuviemeporte's user avatar
8 votes
1 answer
685 views

How to make Microsoft C for MS-DOS emit an immediate-target far call into the data segment?

I am trying to recreate the C source code from some 16bit DOS 8086 assembly generated by the MS C 5.0 compiler. I've hit a wall with this far call instruction. 0000008D 9A2F0CB506 call 0x6b5:...
neuviemeporte's user avatar
20 votes
1 answer
2k views

How can I set up the Microsoft C compiler to make it prefer immediate-mode push instructions?

I started a project to get a better understanding on how to compile a game for Windows 3.x. I tried to set up the build workflow so that it produce the byte-exact clone of a great open sourced Win16 ...
SZIEBERTH Ádám's user avatar
3 votes
1 answer
248 views

How to remove ___EXPORTEDSTUB statement from a NE (Win16) program's MAP?

I started a project to get a better understanding on how to compile a game for Windows 3.x. I tried to set up the build workflow so that it produce the byte-exact clone of a great open sourced Win16 ...
SZIEBERTH Ádám's user avatar