A simple code example:
AREA SOME_DATA, DATA, READWRITE, ALIGN=2 RSEG SOME_DATA MY_DATA: FIRST_VAR EQU $ - MY_DATA DSD 1 SECOND_VAR EQU $ - MY_DATA DSD 1 AREA SOME_CODE, CODE, READONLY, ALIGN=2 RSEG SOME_CODE FUNCTION PROC CODE32 LDR R2,=MY_DATA LDR R0,[R2,#FIRST_VAR] LDR R1,[R2,#SECOND_VAR] BX LR ENDP END
Sauli, This assembler issue has been corrected in AA version V2.40d. Please rise an issue via Keil international support to get the latest version. As of now, it is not on the web. Regards, Peter
This is not a big issue for me as I am only using the eval version to learn the ARM architecture (and am finding it very useful for that). I can very well wait for an updated evaluation version. Sauli