Hi all, when i am running the code below i am getting the follwing error.Can anyone tell me how to get out of this error. test_blocks.a(4): error A45: UNDEFINED SYMBOL test_blocks.a(5): error A45: UNDEFINED SYMBOL test_blocks.a(8): error A9: SYNTAX ERROR test_blocks.a(8): error A9: SYNTAX ERROR test_blocks.a(9): error A9: SYNTAX ERROR test_blocks.a(9): error A9: SYNTAX ERROR
AREA Block, CODE, READONLY start LDR r0, =src LDR r1, =dst AREA BlockData, DATA, READWRITE src DCD 1234 dst DCD 4567 END
Labels need a colon (:). Correct syntax is:
AREA Block, CODE, READONLY start: LDR r0, =src LDR r1, =dst AREA BlockData, DATA, READWRITE src: DCD 1234 dst: DCD 4567 END
LDR r0, =src