The MASM Forum

General => The Campus => Topic started by: xandaz on November 07, 2021, 06:57:28 AM

Title: what does .IF SomeRegister&&SomeFlag really do?
Post by: xandaz on November 07, 2021, 06:57:28 AM
    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.
Title: Re: what does .IF SomeRegister&&SomeFlag really do?
Post by: jj2007 on November 07, 2021, 08:46:31 PM
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.
Title: Re: what does .IF SomeRegister&&SomeFlag really do?
Post by: xandaz on November 07, 2021, 09:26:41 PM
   JJ. You're such an inspiration to me.  Thanks a lot.