This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to place assembler function in ram

a function could be placed in ram by assigning the
__ram switch.
How to do this for assembler functions?

//*********************************************************************
// 32*32 bit signed/unsigned multiply in ARM Assembler
// Returns 64 bit result in R0,R1
//*********************************************************************
AREA ?C?bla, CODE, READONLY, ALIGN=2

PUBLIC S_MUL32x32?A
S_MUL32x32?A            PROC CODE32

                SMULL   R2,R0,R1,R0                     ; R0,R2 := R1*R0
                mov     R1,R2
                bx      lr
                ENDP

PUBLIC U_MUL32x32?A
U_MUL32x32?A            PROC CODE32

                UMULL   R2,R0,R1,R0                     ; R0,R2 := R1*R0
                mov     R1,R2
                bx      lr
                ENDP

                END
//*********************************************************************

maybe there is a chance in the red line.
i'm not sure i just copied this line from an example-programm...

0