_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