flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Main > .if ~ebx

Author
Thread Post new topic Reply to topic
fasmnewbie



Joined: 01 Mar 2011
Posts: 421
.if ~ebx
I thought the operator ~ was a conditional assembly operator. Turned out it evaluates correctly at compile time as well. Or am I interpreting this wrong altogether? Not very good at this.


Code:
.if ~ebx  ;.if ebx = 0
    mov ax,0x30
    stosw
    stdcall prnstrz,addr valstr
    ret
.endif  

Post 05 Oct 2017, 00:43
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15241
Location: 1I/╩╗Oumuamua
For the native if ~ means a logical not. For the macro .if ~ can mean anything the macro author desires.
Post 05 Oct 2017, 07:30
View user's profile Send private message Visit poster's website 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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.