Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Debugging and mapping functions (MS Linker) (Developers)

posted by lifelike, 25.03.2025, 23:16

> at the beginning of your .exe file, there is a "relocation" table, meaning
> "when loading the program into RAM at a certain address, please add this
> address to these locations".
> this offset is obviously the same for the entire program.
>
> > I used that to find one function after locating
> > another function that had the same segment in the MAP file. But that was
> a

Thanks for these pointers! I did some more searching and found some detailed explanations how the PSP works and how to find the segment the EXE was loaded to. That will be useful.

> CODEVIEW for MSC
> WDB/WDEB386 for WCC
> ...

Yes... I know I make things difficult for myself, but my project involves trying to make something with the toolchain that Microsoft kindly included in their 2024 release of MS-DOS 4.0. Unfortunately they did not include CODEVIEW.

https://github.com/microsoft/MS-DOS/tree/main/v4.0/src/TOOLS

Besides using the DOSBox-X debugger is (other than the lack of symbols) convenient compared to running a debugger inside of DOS. Especially since it is an application with graphics.

 

Complete thread:

Back to the forum
Board view  Mix view
22477 Postings in 2087 Threads, 400 registered users, 126 users online (0 registered, 126 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum