Upload files to "ES/Lab/Lab1/Init2"
This commit is contained in:
parent
3d1c20142d
commit
9ad6f084ca
1 changed files with 25 additions and 0 deletions
25
ES/Lab/Lab1/Init2/DATATRANSFER.asm
Normal file
25
ES/Lab/Lab1/Init2/DATATRANSFER.asm
Normal file
|
@ -0,0 +1,25 @@
|
|||
AREA RESET,DATA,READONLY
|
||||
EXPORT __Vectors
|
||||
|
||||
__Vectors
|
||||
DCD 0x10001000
|
||||
DCD Reset_Handler
|
||||
ALIGN
|
||||
AREA mycode,CODE,READONLY
|
||||
ENTRY
|
||||
EXPORT Reset_Handler
|
||||
|
||||
|
||||
Reset_Handler
|
||||
LDR R0, =SRC ; gives memory address of SRC array
|
||||
LDR R1, [R0] ; writes from first location of SRC array
|
||||
MOV R5, -8;
|
||||
|
||||
STOP
|
||||
B STOP
|
||||
ALIGN;
|
||||
|
||||
SRC DCD 0x12345678, 0xABCDEF55, 0x55
|
||||
|
||||
END ;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue