Log in

View Full Version : MASM and dword ptr


johndoe1
March 7th, 2004, 09:55
how can i do this in MASM ???

cmp dword ptr [0045A3C1], 0
jnz patch

i need to check memory if this value is changed !!

evlncrn8
March 7th, 2004, 10:18
Quote:
[Originally Posted by johndoe1]how can i do this in MASM ???

cmp dword ptr [0045A3C1], 0
jnz patch

i need to check memory if this value is changed !!



mov eax,045a3c1h

cmp dword ptr [eax],0
jnz patch


is just one of many possibilities that springs to mind

mmk
March 7th, 2004, 10:33
use a segment override, such as ds::
Quote:
mov dword ptr ds:[12345678h],55aa55aah