View Single Post
Old Mar 3rd, 2005, 11:31 AM   #2
professor63
Newbie
 
Join Date: Mar 2005
Posts: 1
Rep Power: 0 professor63 is on a distinguished road
Pointers in LC3

The problem is to write a program to store the character 'A' that is pointed to by base address 'A' into the memory location pointed to by the base address 'P' .

.ORIG x3000
LEA R2, P
LEA R1, A
LDR R0,R1,#0
STR R0,R2,#0
HALT
A .STRINGZ "A"
P .BLKW 10
.END
professor63 is offline   Reply With Quote