flat assembler
Message board for the users of flat assembler.

flat assembler > Macroinstructions > what's the difference

Author
Thread Post new topic Reply to topic
Mike Gonta



Joined: 26 Dec 2010
Posts: 212
This works:
Code:
  x equ 1,2,3
  some_macro <x>    
This doesn't:
Code:
  x equ <1,2,3>
  some_macro x    

_________________
Mike Gonta
look and see - many look but few see

http://mikegonta.com
Post 27 Sep 2017, 17:51
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6966
Location: Kraków, Poland
The symbolic variables are not processed yet at the time when macro is expanded. Unless the macro uses the "&" syntax, the argument passed is in both cases the same - just plain "x". What happens later depends on what the macro does inside.
Post 27 Sep 2017, 19:19
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-2018, Tomasz Grysztar.

Powered by rwasa.