现在的位置: 首页 > 综合 > 正文

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

2012年12月19日 ⁄ 综合 ⁄ 共 419字 ⁄ 字号 评论关闭
_undefined_instruction: .word undefined_instruction
ldr pc, _undefined_instruction

_undefined_instruction是一个标号,处理到这里时,as会把undefined_instruction的值按16bit的形式放在此标号处。

ldr pc, _undefined_instruction 

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

比如:

   ldr r1, _rWTCON
_rWTCON: .word 0x15300000

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

本文引用通告地址:http://mayer.spaces.eepw.com.cn/articles/trackback/item/59142

抱歉!评论已关闭.