ARM assembly: bad instruction 'ldrbcc' -


i writing arm assembly code. in there snippet:

cmp r3, r2 ldrbcc r6, [r3], #1 

i want express if r3 less r2, load [r3] register r6. when compile linaro toolchain(version 13.04):

arm-linux-gnueabihf-as -march=armv7-a -mcpu=cortex-a9 test.s -o test 

the compiler outputs:

error: bad instruction `ldrbcc r6,[r3],#1' 

i can't figure out. can me? thanks.

ldrbcc modern "unified assembly language"; assembler defaulting older pre-ual syntax , expects ldrccb. could change code use pre-ual syntax, better solution tell assembler using ual style adding ".syntax unified" directive before code.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -