This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with Reading Data fro Data Area

I am using Keil Uvision 4 and try to run following program, but does not read data from Data area correctly.

AREA StrCopy, CODE, READONLY

ENTRY

Start LDR r1, =srcstr

LDR r0, =dststr

BL strcopy

Stop MOV r0, #0x18

LDR r1, =0x20026

SVC #0x123456

strcopy

LDRB r2, [r1],#1

STRB r2, [r0],#1

CMP r2, #0

BNE strcopy

AREA Strings, DATA

srcstr DCB "AAAAAAAAAAAAAAAAAAAA",0

dststr DCB " 0000000000000",0

END