assembly - GNU as .macro placeholder immediately followed by character -


in gnu assembler, defined macro this.

.macro test_cond condition, index     str\conditionb r4, [r6, #\index*17] .endm  test_cond eq, 0 

it supposed expand to

streqb r4, [r6, #0*17] 

instead fails with

bad instruction `streq\conditionb r4,[r6,#0*17]' 

is there way have placeholder in macro followed character?

use \()construct separate macro argument character follows it:

.macro test_cond condition, index     str\condition\()b r4, [r6, #\index*17] .endm 

Comments

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -