flat assembler
Message board for the users of flat assembler.

Index > Windows > Checking some values

Author
Thread Post new topic Reply to topic
dacid



Joined: 31 Aug 2008
Posts: 57
dacid 01 Oct 2008, 21:20
mm i need to check some values in some PE fields:

400
50

So EAX can be:

A3000
A3050
A3400
A3450 -> 400 + 50


I use:

cmp al,50h
jz this

and ax,1FFh
cmp ax,400h
jz that

But how to check for 400 if the value is 450 for example?

A3450 -> 400 + 50 (this+that)

and ax,1FFh
cmp ax,4xx?

Confused
Post 01 Oct 2008, 21:20
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 09 Oct 2008, 21:08
dacid,

cmp al, 50h will jz for eax==0xffffff50 too… Wink

After and ax, 1FFh ax will never be greater than 1FFh, not to mention equal to 400h…

Simple sequence of cmp eax, XXXh/je YYY will not work?

May be if you describe your problem more precisely…
Post 09 Oct 2008, 21:08
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.