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 bencollver Homepage, 16.01.2026, 04:44

> IFDEF __JWASM__
> lodsb es:0
> ELSE
> es lodsb
> ENDIF

This worked for jwasm, but wasm didn't do what i expected. It silently discarded the segment override prefix. The source code says "es lodsb" but the wdis output shows an unqualified "lodsb".

The following works correctly in both assemblers.

lods byte ptr es:[si]

 

Complete thread:

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