| bencollver 31.12.2025, 23:25 (edited by bencollver, 01.01.2026, 16:47) |
Watcom ASM + C puzzle, variable has conflicting addresses (Developers) |
I am working on porting Paul Vojta's calvin editor from Turbo-C and A86 to Watcom. I am currently troubleshooting a puzzle related to the asm sources. The file vv.asm has a symbol named "activpg" for one byte that is initialized to 0 |
| jadoxa Queensland, Australia, 01.01.2026, 02:06 @ bencollver |
Watcom ASM + C puzzle, variable has conflicting addresses |
> |
| Rugxulo Usono, 01.01.2026, 03:44 @ jadoxa |
Watcom ASM + C puzzle, variable has conflicting addresses |
> Can you look at the object file, does that have the two addresses? |
| Japheth Germany (South), 01.01.2026, 09:01 @ bencollver |
Watcom ASM + C puzzle, variable has conflicting addresses |
> I linked a large memory model executable v.exe --- |
| bencollver 01.01.2026, 16:35 @ Japheth |
Watcom ASM + C puzzle, variable has conflicting addresses |
Thank you for your helpful replies! |
| Japheth Germany (South), 01.01.2026, 18:57 @ bencollver |
Watcom ASM + C puzzle, variable has conflicting addresses |
Your map file looks good and the memory models for C and ASM are also ok. --- |
| bencollver 01.01.2026, 21:07 @ Japheth |
Watcom ASM + C puzzle, variable has conflicting addresses |
> I'm not sure if WD supports write watchpoints - that would surely help |
| boeckmann Aachen, Germany, 01.01.2026, 21:09 @ bencollver |
Watcom ASM + C puzzle, variable has conflicting addresses |
> Why would Watcom think "activpg" is at two different addresses? (3461:0C4C |
| bencollver 01.01.2026, 21:32 @ boeckmann |
Watcom ASM + C puzzle, variable has conflicting addresses |
> this is indeed puzzling. Can you upload the .OBJ file? Then I can verify |
| Japheth Germany (South), 01.01.2026, 21:51 @ bencollver |
Watcom ASM + C puzzle, variable has conflicting addresses |
> Here is a .zip archive containing vv.asm and vv.obj: --- |
| boeckmann Aachen, Germany, 01.01.2026, 21:56 @ bencollver |
Watcom ASM + C puzzle, variable has conflicting addresses |
> > this is indeed puzzling. Can you upload the .OBJ file? Then I can verify |
| boeckmann Aachen, Germany, 01.01.2026, 21:58 @ boeckmann |
Watcom ASM + C puzzle, variable has conflicting addresses |
> > > this is indeed puzzling. Can you upload the .OBJ file? Then I can |
| bencollver 01.01.2026, 22:54 @ boeckmann |
Watcom ASM + C puzzle, variable has conflicting addresses |
> > There are two ways to fix this: The MASM way is to ASSUME: |
| boeckmann Aachen, Germany, 01.01.2026, 23:26 @ bencollver |
Watcom ASM + C puzzle, variable has conflicting addresses |
> and also: |
| bencollver 02.01.2026, 17:42 @ boeckmann |
Watcom ASM + C puzzle, variable has conflicting addresses |
> JWASM (and probably MASM 6+??) however throws an errors like |
| bencollver 03.01.2026, 18:09 @ bencollver |
Watcom ASM + C puzzle, variable has conflicting addresses |
> Thanks for the suggestion. I will try JWASM. |
| ecm Düsseldorf, Germany, 03.01.2026, 21:23 @ bencollver |
Watcom ASM + C puzzle, variable has conflicting addresses |
> --- |
| bencollver 16.01.2026, 04:44 @ bencollver |
Watcom ASM + C puzzle, variable has conflicting addresses |
> IFDEF __JWASM__ |
| Japheth Germany (South), 04.01.2026, 05:21 @ boeckmann |
Watcom ASM + C puzzle, variable has conflicting addresses |
> Great! While the GROUP definition it strictly neccessary, depending on the --- |
| rr Berlin, Germany, 04.01.2026, 11:40 @ Japheth |
Watcom ASM + C puzzle, variable has conflicting addresses |
> It's still not 100% clear why DGROUP has to be defined explicitely in this --- |
| bencollver 04.01.2026, 15:31 @ rr |
Watcom ASM + C puzzle, variable has conflicting addresses |
> Maybe it's time to ask which version of the Watcom toolchain Ben is using. |
| Japheth Germany (South), 04.01.2026, 16:21 @ bencollver |
Watcom ASM + C puzzle, variable has conflicting addresses |
> --- |
| samwdpckr 02.01.2026, 08:50 @ bencollver |
Watcom ASM + C puzzle, variable has conflicting addresses |
|
| bretjohn Rio Rancho, NM, 08.01.2026, 21:53 @ samwdpckr |
Watcom ASM + C puzzle, variable has conflicting addresses |
> Accessing data where DS points to does not need a segment override, but |
Thread view![[image]](http://0x0.st/P-wj.png)