Author Topic: what does .IF SomeRegister&&SomeFlag really do?  (Read 766 times)

xandaz

  • Member
  • ****
  • Posts: 529
  • I luv you babe
    • My asm examples
what does .IF SomeRegister&&SomeFlag really do?
« on: November 07, 2021, 06:57:28 AM »
    I'm working on a routine for the FINDMSGSTRING and was wondering if
Code: [Select]
.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.
« Last Edit: November 16, 2021, 05:00:14 AM by xandaz »

jj2007

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: what does .IF SomeRegister&&SomeFlag really do?
« Reply #1 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.

xandaz

  • Member
  • ****
  • Posts: 529
  • I luv you babe
    • My asm examples
Re: what does .IF SomeRegister&&SomeFlag really do?
« Reply #2 on: November 07, 2021, 09:26:41 PM »
   JJ. You're such an inspiration to me.  Thanks a lot.