Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

How to put Assembly code in the absolute address?

$
0
0

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 ?


Viewing all articles
Browse latest Browse all 262198

Trending Articles