I've problem with FASM asm compiler:
I'm writing something like that:
cmp byte [DS:DX], 0

and FASM is writing an error:
'reserved word used as symbol'

And i don't know why, I haven't heard that DX is some kind of special register, but I'm newbie in asm, so please be tolerant :)

BTW: Sorry 4 my english, it is't my native language :)

Posted on 2004-08-29 06:31:34 by pure_asm_fan
There is no addressing mode .
Valid addressing modes are:

[16-bit address]

[32-bit address]

If doesn't work, try DS: instead. The DS: prefix is only effective when the base register is BP, EBP or ESP. Otherwise, DS is the default.
Posted on 2004-08-29 06:58:44 by Sephiroth3