flat assembler
Message board for the users of flat assembler.

Index > Windows > compare x amount of bytes

Author
Thread Post new topic Reply to topic
coconut



Joined: 02 Apr 2004
Posts: 326
Location: usa
coconut
trying to compare the first 4 bytes out of 20 in a struct whos address is sent in lParam to my callback

Code:
cmp   [lparam+4], SOME_VALUE
    


isnt doing it for me Confused
Post 20 May 2004, 17:21
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
Code:
    mov  eax, [lparam]    ; now eax is pointer to my structure...
    cmp  dword [eax+4], SOME_VALUE
    


Regards
Post 20 May 2004, 17:33
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
coconut



Joined: 02 Apr 2004
Posts: 326
Location: usa
coconut
thanks john
Post 20 May 2004, 20:59
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.