why the masm32 can't compile this

aam    10h

:error A2008: syntax error : integer

i have to modify it in my hex editor

D4 0A -> D4 10

so ...faint....
Posted on 2007-04-28 16:02:37 by unest
because that not the way to opcode is written.
AAM doesn't have anything following it.
What did you want the 10h to do?
Posted on 2007-04-28 16:20:57 by JimG
oh...u r right

i find my Intel's manul

D4 ib  (No mnemonic)

have to do like this....

db 0D4h, 010h


thank u :)
Posted on 2007-04-28 16:41:59 by unest
strange strange opcode, hiew shows d4 10 as 'aam 10' though
very very odd indeed
Posted on 2007-04-29 09:53:53 by evlncrn8
aam, aad,..., are(were) undocumented opcodes (in their full form), therefore are not supported in masm.
however, there is a simple workaround (instead of ugly hardcoded bytes):
option nokeyword:<aad,aam>
aad macro i:=<10d>
db 0d5h,i
endm
aam macro i:=<10d>
db 0d4h,i
endm

Posted on 2007-04-29 10:59:20 by drizz