flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > EQU value in macro.

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1847
Roman 21 Jan 2019, 09:15
Fasm version 1.73
Code:
macro df [arg*] {
      forward
      dd arg#.#flt  }     


In code:
Code:
flt EQU 45
zyt: df  1,3,22,88    


Fasm get error "dd 1.flt reserved word used as symbol"

I try do:
Code:
macro df [arg*] {
      forward
      dd arg#.\flt  }     

Fasm get error "dd 1. 45 reserved word used as symbol"

If i write this then no errors and compile fine:
Code:
macro df [arg*] {
      forward
      dd arg#.0  }     
Post 21 Jan 2019, 09:15
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20445
Location: In your JS exploiting you and your system
revolution 21 Jan 2019, 09:51
You can use match to do the equ lookup.
Code:
something equ 42
match x,something {dd 1.#x}    
Post 21 Jan 2019, 09:51
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.