新闻中心

EEPW首页>嵌入式系统>设计应用> ARM微处理器的指令集概述三—— .word的含义

ARM微处理器的指令集概述三—— .word的含义

作者: 时间:2016-11-20 来源:网络 收藏
_undefined_instruction是一个标号,处理到这里时,as会把undefined_instruction的值按16bit的形式放在此标号处。

本文引用地址://m.amcfsurvey.com/article/201611/318741.htm

ldr pc, _undefined_instruction
就是从_undefined_instruction处取值,即undefined_instruction, 并设置到pc中

比如:

ldr r1, _rWTCON_rWTCON: .word 0x15300000
是把地址_rWTCON上的内容放到r1,而地址_rWTCON上的内容是0x15300000。实际上就是把r1设置为0x15300000 .


关键词:ARM微处理器指令

评论


技术专区

关闭