我选的是STM32F101RC,用keil uvsion4.72.1.0,结果R1寄存器中的值是0不是1,为什么?
Stack_Size EQU 0x00000400
AREA STACK, NOINIT, READWRITE, ALIGN=3
Stack_Mem SPACE Stack_Size
__initial_sp
; <h> Heap Configuration
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
Heap_Size EQU 0x00000200
num EQU 20
AREA HEAP, NOINIT, READWRITE, ALIGN=3
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
PRESERVE8
THUMB
AREA RESET, DATA, READONLY
DCD __initial_sp
DCD Reset_Handler
AREA Block, CODE, READONLY
ENTRY
;CODE32
Reset_Handler  ROC
EXPORT Reset_Handler [WEAK]
ENDP
Start LDR R0,=src
LDR R1,[R0]
B .
AREA BlockData, DATA, READWRITE
src DCD 1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4
dst DCD 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
END
|