Professional Documents
Culture Documents
Lab 3
Lab 3
_start:
ldr r1,=source
subs r5,r5,#61
blt loopf
loopb:
ldrb r6,[r7],#1
cmp r6,#0
bne gb
loop:
subs r8,r7,r1
blt loope
ldrb r6,[r7],#-1
beq loop
strb r6,[r3],#1
b loop
loopf:
cmp r2,#0
beq loope
beq loopf
strb r2,[r3],#1
b loopf
loope:
.end
With constant revisions and compilings, I have slowly come to understand string
manipulation and memory addressing. During review at the lab I was able to fully
comprehend and elaborate on my findings as expressed throughout this report.
With each explanation the TA would support my claims and help me dive further
into why and how the computer follows each instruction and manipulates the
string. In the end, my code has been able to function for all the parts that I have
completed.
Figures and Tables:
Figure 1:
Figure 2:
Figure 3:
Figure 4:
Conclusion:
In the end, this lab was successful because I was able to copy a string from one
memory location, both backwards and forward, while removing all of the spaces
that were originally in the string.