flat assembler
Message board for the users of flat assembler.

Index > Windows > .if eax!=0

Author
Thread Post new topic Reply to topic
semiono



Joined: 31 Aug 2007
Posts: 176
Location: section '.code' executable
semiono
Is it unsupported operator in Fasm?

include 'if.inc'
...
invoke OpenClipboard,NULL
invoke GetClipboardData,CF_TEXT
.if eax!=0
mov Clip, eax
invoke GlobalLock, eax
invoke MessageBoxA, NULL, eax, NULL, MB_OK
invoke GlobalUnlock, Clip
.endif
invoke CloseClipboard


!= ?

_________________
Memory=8388608
Post 23 Aug 2013, 11:58
View user's profile Send private message ICQ Number Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
RTFM : http://flatassembler.net/docs.php?article=win32#2.2

RTFS:

Code:
      match =COND v1<>v2, COND c
      \\\{
          cmp v1,v2
          je label
          define COND
      \\\}
    


> Is it unsupported operator in Fasm?

Note that HLL stuff like this is processed by "IF.INC" and NOT the FASM compiler core.

> != ?

Try "<>" - we are not in C. Smile
Post 23 Aug 2013, 14:40
View user's profile Send private message Reply with quote
semiono



Joined: 31 Aug 2007
Posts: 176
Location: section '.code' executable
semiono
Very Happy
Post 23 Aug 2013, 18:06
View user's profile Send private message ICQ Number 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-2020, Tomasz Grysztar.

Powered by rwasa.