flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > what's the difference

Author
Thread Post new topic Reply to topic
Mike Gonta



Joined: 26 Dec 2010
Posts: 243
Mike Gonta 27 Sep 2017, 17:51
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

https://mikegonta.com
Post 27 Sep 2017, 17:51
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 27 Sep 2017, 19:19
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.