Howdy all,

Kinda new, but I really don't know whats going on here. I know its simple, and I've just forgotten a basic, but I can't figure out why I can't use SUB.


LOCAL bla:DWORD
LOCAL bla2:DWORD
;put values into them here
sub bla,bla2

It gives me an invalid operands error.

Any help would be much appreciated..

Phreak
Posted on 2004-07-08 19:22:01 by ktk
IA-32 doesn't allow direct mem/mem operations.

mov eax,bla
sub eax,bla2
Posted on 2004-07-08 19:28:50 by wizzra
Ah, ok. Now I know.. :)

Thanks again,

Phreak
Posted on 2004-07-08 19:34:59 by ktk