flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Flags range. How do this?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 2048
Roman 31 Jan 2026, 04:14
Fasmw 1.73
Code:
FlagsIgnor equ 5,8,2

macro ifFlg num { if num not equal FlagsIgnor ;how do this? 
Call dword [tabProcs+num*4]
End if
} 

;in code
ifFlg 1 ;must do call
ifFlg 8 ;must ignored
ifFlg 5 ;must ignored
ifFlg 9 ;must do call
    
Post 31 Jan 2026, 04:14
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20859
Location: In your JS exploiting you and your system
revolution 31 Jan 2026, 06:35
Use in
Code:
FlagsIgnor equ 5,8,2

macro ifFlg num {
        if ~ num in <FlagsIgnor> ;how do this?
                display "call ",`num,13,10
        End if
}

;in code
ifFlg 1 ;must do call
ifFlg 8 ;must ignored
ifFlg 5 ;must ignored
ifFlg 9 ;must do call    
Code:
flat assembler  version 1.73.31  (16384 kilobytes memory)
call 1
call 9
1 passes, 0 bytes.    
Post 31 Jan 2026, 06:35
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 2048
Roman 31 Jan 2026, 08:18
Thanks.
Post 31 Jan 2026, 08:18
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-2026, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.