Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Watcom ASM + C puzzle, variable has conflicting addresses (Developers)

posted by Japheth Homepage, Germany (South), 01.01.2026, 18:57

Your map file looks good and the memory models for C and ASM are also ok.

As you already have verified, register DS is correctly setup to DGROUP.

The line in the assembly window:


          mov    bh, byte ptr 027C


suggests that "someone" has modified the code segment, changing offset 0xC4C to 0x27C.

I'm not sure if WD supports write watchpoints - that would surely help here. But first I'd verify that on program entry the interesting code part is still correct, that is, the line "mov bh, [activpg]" is encoded 8A 3E 4C 0C.

---
MS-DOS forever!

 

Complete thread:

Back to the forum
Board view  Mix view
23154 Postings in 2179 Threads, 404 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum