Page 1 of 1

Defining macros in the assembler

Posted: Sun Sep 02, 2018 5:12 am
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.

Re: Defining macros in the assembler

Posted: Mon Sep 03, 2018 3:27 pm
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

Re: Defining macros in the assembler

Posted: Wed Sep 05, 2018 1:32 am
by markflamer
Darn....that is really a bummer. I guess I can try and use m4 as a preprocessor or something....

Thanks.