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 boeckmann, Aachen, Germany, 01.01.2026, 23:26

> and also:
>
>             assume  cs:_TEXT, ds:DGROUP, ss:DGROUP
>
> None of the other asm sources had these.
>
> I added them to vv.asm and now i get the expected offset for symbol
> activpg.

Great! While the GROUP definition it strictly neccessary, depending on the exact assembler and version, the ASSUME is not. A86 seems to do its job without, as does WASM. JWASM (and probably MASM 6+??) however throws an errors like

Error A2089: Cannot access label through segment registers: activpg

without the assume. I think that's a good thing, as it helps preventing the sort of errors you encountered. So perhaps you think about "upgrading" from WASM to JWASM.

 

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