#68720 - ProblemBaby - Thu Jan 26, 2006 3:06 pm
Hi
Just a small question I want to call a c-function from my asm routine. Since ive to push some regs to the stack i get problems.
r4 is correct, the problem is that it doesnt get to the code after BX r4 and I dont know how to solve this in thumb.
thanks
Just a small question I want to call a c-function from my asm routine. Since ive to push some regs to the stack i get problems.
Code: |
.thumb_func .global myFunc myFunc: PUSH { r4 } LDR r4, [r0, #0] MOV r0, #1 MOV r1, #2 MOV r2, #3 MOV r3, #4 BX r4 POP { r4 } BX lr |
r4 is correct, the problem is that it doesnt get to the code after BX r4 and I dont know how to solve this in thumb.
thanks