Click to See Complete Forum and Search --> : Operand Size ?


Jackyquah
March 1st, 2006, 12:18 PM
hi, I am new to Asm.
EAX value is contain pointer to memory

cmp [EAX], 65h

how do I know if it's compare byte, word or dword operand size ?

how to make sure that the compare is in byte size not in dword ?

Note : using MASM (VS .Net)

olivthill
March 1st, 2006, 04:17 PM
I think the following syntax is working with Masm:
cmp byte ptr [EAX], 65h

or

cmp word ptr [EAX], 65h

or

cmp dword ptr [EAX], 65h