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

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -