00:01
Here is the lc3 machine code program that meets the specified requirement.
00:07
So, code for this is .orgx3000ldr1data into r1.
00:16
Ldr2 result load address to store the result into r2.
00:22
Then ldr3 index, it load the address of index into r3.
00:26
Loop add r4, r1, r3.
00:30
It add the index to value.
00:32
Output sum as ascii character.
00:36
Add r3, r3, hashtag 1, increment index.
00:40
Ldr r5, r1, hashtag 0.
00:42
Load in next data value.
00:45
Brz halt, halt if terminating value it is reached.
00:52
Brnzp loop, repeat for next data value...