Page 1 of 1

nasm ?

Posted: Sat Apr 12, 2003 11:00 pm
by echristian
the tasm code  
    LDS  SI,DS:[BX] does not work in nasm

it gives me the error 'invalid combination of opcode and operands'

how would you do this in nasm?

RE:nasm ?

Posted: Sat Apr 12, 2003 11:00 pm
by carbonBased
If I recall correctly, nasm uses a different syntax for memory operands:

Try:
lds si, [ds:bx]

Cheers,
Jeff

RE:nasm ?

Posted: Sat Apr 12, 2003 11:00 pm
by echristian
it worked
thanks