_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