Pachu,The following should work: .cpu cortex-a8 .text .align 2 .global myfunc .type myfunc, %functionmyfunc: stmfd sp!, {r4, lr} @ preserve LR, keep SP aligned adr r0, mystring @ point first param to string mov r1, #123 @ set second param to 123 bl printf @ call printf ldmfd sp!, {r4, lr} @ restore LR and R4 bx lr @ return from this function .datamystring: .ascii "Test %d\n\0" @ nul terminated string .size myfunc,. -myfunchths.
.cpu cortex-a8 .text .align 2 .global myfunc .type myfunc, %functionmyfunc: stmfd sp!, {r4, lr} @ preserve LR, keep SP aligned adr r0, mystring @ point first param to string mov r1, #123 @ set second param to 123 bl printf @ call printf ldmfd sp!, {r4, lr} @ restore LR and R4 bx lr @ return from this function .datamystring: .ascii "Test %d\n\0" @ nul terminated string .size myfunc,. -myfunc