flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > How ignor macro if Val <2 ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1878
Roman 10 Dec 2022, 09:22
Fasmw 1.73
Code:
macro mFor num { local ii
;if num > 1
mov [loopstt+_mforOfst],num
;lp_eq_num equ num
ii: lp_eq_lb equ ii
_mforOfst equ _mforOfst+4
;end if
}
macro mNxt {    
      restore _mforOfst
      dec [loopstt+_mforOfst]   
      jnz lp_eq_lb
      restore lp_eq_lb      
      }           
loopstt dd 20 dup (0)
Start:    
                _mforOfst equ 0
                mFor 1             ;must ignored this. This ok if val <2
                mFor 20
                mNxt
                mNxt              ;must ignored this. But this not ignored and fasm get error
    
Post 10 Dec 2022, 09:22
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.