Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: Assembler/compiler error L2321 (E) Section "S" overlaps section "R" , SH7047

$
0
0
Hi Frank, I was able to remove the assembler error and now I have no assembler error and warning, but still I have problem to have correct access to data I set as below: I have simplified and shortened attached two assembly source files to your attention (romData.src and assemblies.src). As you can see from these two files, I have defined in romData.src some constants as follows: ;-----------------------------------; romVal_ver1:                                                                                                                         .DATA.W  H'7165                                                 .DATA.W  H'723E                                                 romVal_ver2:                                                                                                                         .DATA.W  H'3030                                                 .DATA.W  H'2020 ;-----------------------------------; and they are supposed to be exported to assemblies.src in which they are accessed and used. In assemblies.src, I have imported these two data blocks and they are supposed to load R3 as follows: ;----------------------------; MOV.L     #sw_ver1,R0                 MOV.L     @R0,R3           ADD        #H'04,R3   MOV.L     #sw_ver2,R0             MOV.L     @R0,R3 ;----------------------------; I expect R3  gets  7165723E  at the second line and  30302020  at the forth line, but in both MOV.L, it gets unexpected data (garbage). Please take a look at the attached files and let me know what is wrong with my code and definition that R3 is not loaded with the correct data as I expect. Appreciate your time and help. Thanks, Moe

Viewing all articles
Browse latest Browse all 59170

Trending Articles