flat assembler
Message board for the users of flat assembler.

Index > Main > if "not" operator (like "!" in C)

Author
Thread Post new topic Reply to topic
alorent



Joined: 05 Dec 2005
Posts: 221
alorent 30 Oct 2008, 10:58
Hi guys,

Don't know if it has been asked before, but cannot find it in the forum.

Does FASM support the not "!" operator like:

.if !eax

.endif

Of course, I can just put:

.if eax = 0

.endif

But it's more ellegant the "!" operator, right? Smile

Thanks!
Post 30 Oct 2008, 10:58
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 30 Oct 2008, 11:07
In fasm it's the "~" operator.
Post 30 Oct 2008, 11:07
View user's profile Send private message Visit poster's website Reply with quote
alorent



Joined: 05 Dec 2005
Posts: 221
alorent 30 Oct 2008, 11:29
Hi Tomasz,

Thanks a lot for your fast reply!!!
Post 30 Oct 2008, 11:29
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.