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 jadoxa Homepage E-mail, Queensland, Australia, 01.01.2026, 02:06

> Module: VV.OBJ(C:\CALSRC24\vv.asm)
>
> 10fb:0c7e      activpg
>
> [...]
>
> Why would Watcom think "activpg" is at two different addresses? (3461:0C4C
> versus 3461:027C)

Isn't that three addresses? The map has it at an even address, not a multiple-of-4. But yes, it's very weird that consecutive instructions are using a different address. Can you look at the object file, does that have the two addresses?

Another question is: since the address is in bx, why not just use [bx]?

 

Complete thread:

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