#177108 - Dwedit - Sun Dec 11, 2011 11:48 pm
Don't use inline asm unless you really need it to be in-line, use separate source files instead, saves a lot of grief.
That said, make a separate file, declare your code as ARM, and code away.
If you really need inline ARM assembly in what would otherwise be a thumb source file, you need to change the mode the assembler emits, and also change the mode the processor is executing, then change the modes back afterwards.
.thumb
adr r0,someLabel
bx r0
.arm
someLabel:
... code here
adr r0,someLabel2
bx r0
.thumb
someLabel2:
nop
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."
#177111 - Miked0801 - Mon Dec 12, 2011 7:23 pm
.code16 or .thumb for Thumb
.code32 or .arm for ARM