Hello,
My question background:
Compiler: GreenHills 7
SPT tool version: D:\NXP\S32DS_Power_v2.1\S32DS\build_tools\SPT2
Purpose: to define the macro in .spt file.
I tried 3 cases, as below:
case1(no error and no warnings. ) :
.macro __mod .mod24
.endm
case2( error ) :
.macro __mod .mod24
.endm
add.immed .noshift __mod WR_4, (OR_0_0_0), WR_19 //This line is with error
case3(no error and no warnings. ) :
add.immed .noshift .mod24 WR_4, (OR_0_0_0), WR_19
Primary conclusion: The macro define seems well, no error and no warning, but do not work.
I do not know why.
But finally, I replaced all the __mod with .mod24, pass the compile, no warning.
My question:
Is my macro define code correct?
If yes, why do not work?
Thanks very much!
MF