flat assembler
Message board for the users of flat assembler.

Index > Main > .if ~ebx

Author
Thread Post new topic Reply to topic
fasmnewbie



Joined: 01 Mar 2011
Posts: 555
fasmnewbie 05 Oct 2017, 00:43
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: 20306
Location: In your JS exploiting you and your system
revolution 05 Oct 2017, 07:30
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


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.