Defining macros in the assembler

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
markflamer
Junior Member
Posts: 6
Joined: Fri Aug 25, 2017 6:32 pm

Defining macros in the assembler

Post by markflamer »

Hi I'm looking to define some macros for common sets of instructions in the assembler. I don't see any mention in the "Assembly Language Manual".

I tried the common.....

Code: Select all

.macro
      ~~~~~~~
.endm
.....and they don't seem to work.

Surely you can define multiline macros in the assembler, right?

Thanks.


User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Hi. Do not believe it is supported. See here for Segher's comments:

http://www.xcore.com/viewtopic.php?t=2150

Code: Select all

http://www.xcore.com/viewtopic.php?t=2150
markflamer
Junior Member
Posts: 6
Joined: Fri Aug 25, 2017 6:32 pm

Post by markflamer »

Darn....that is really a bummer. I guess I can try and use m4 as a preprocessor or something....

Thanks.
Post Reply