News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

what does .IF SomeRegister&&SomeFlag really do?

Started by xandaz, November 07, 2021, 06:57:28 AM

Previous topic - Next topic

xandaz

    I'm working on a routine for the FINDMSGSTRING and was wondering if .IF [esi,FINDREPLACE],Flags&&FR_DOWN ...performs an AND or a TEST instruction, since if it's an AND it will change the primary membber and i need it unchanged for further conditions. Thanks in advance for the help.

jj2007

No and, no test, just a cmp..., 0

It would be very clever of you if
a) you tested if your stuff assembles (it doesn't, of course)
b) you inserted an int 3 and ran Olly instead of letting others do that

If you had done that, you might even understand why there is only a cmp [...], 0 instead of the test [...], FR_DOWN that you expected to see.

xandaz

   JJ. You're such an inspiration to me.  Thanks a lot.