This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to put Assembly code in the absolute address?

Follow is assembly code:

                .sect "BootMem"

                .align 

                .clink                                

FimmwareUp  

             ;  bic.b   RTCIE,&RTCCTL         ;  disable hourly interruption

                calla   #ClrBootRAM;          clear memory

 

 follow is Liker file:

MEMORY

{

BootMem_SEC             : origin = 0x2100, length = 0x02FF

}

 

SECTIONS

{

.text:BootMem > BootMem_SEC

}

these code can not work, the code is not located after 0x2100.

Also if add code  “ bic.b   RTCIE,&RTCCTL   “  

there is an error:  [E0004] Illegal un-relocatable operand    ASMEE.s /FisrtProject    line 941 C/C++ Problem

why ?