MIT-Curricular/ES/Lab/Lab1/Init2/DATATRANSFER.asm

25 lines
No EOL
384 B
NASM

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 ;