What is non-aligned access? (ARM/Keil)

前端 未结 5 1878
抹茶落季
抹茶落季 2020-12-16 05:49

I\'m using Keil to write Assembly for ARM 7.

I have the following runtime error:

Non-aligned Access: ARM Instruction at 000000F8H, Memory Access at 7         


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-12-16 06:26

    Everything above is correct but i am not sure that the code you show will do what you really want: I guess you define correctly LABEL which is word aligned so why to load an hex address as the place you want to store. Maybe you just want to store the value x'7F7F7F7F' at the memory place LABEL. In this case you will have to write STR R0, [R1]

提交回复
热议问题