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: US
coconut 20 May 2004, 17:21
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: 3499
Location: Bulgaria
JohnFound 20 May 2004, 17:33
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: US
coconut 20 May 2004, 20:59
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-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.