Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Comp 5300 4B AdXComp 5300 Homework 48 pdt x 300%20Homework%2048 pdf What does th

ID: 3749726 • Letter: C

Question

Comp 5300 4B AdXComp 5300 Homework 48 pdt x 300%20Homework%2048 pdf What does the following program do? When does it stop? What are the values in memory starting from the location pointed by String2? Use Keil uVision5 to confirm the result, show the simulation screen shots. AREA scan, CODE, READWRITE Entry ADR rO,String1 ADR r1,String2 LDRB STRB r2,[r1],#1 CMP r2,#0x00 BNE Copy SVC #0x123456 String 1 DCB "this is a string", 000 String2 SPACE 20 rO points to the source string r1 points to the dest string read a byte and update pointer copy the byte and update ptr test for terminator Copy r2,[r01,#1 repeat until terminator found stop ;dummy string reserve 20 bytes for copy END DELL 8 WE SDF

Explanation / Answer

This is a string copy program.

When it will get string terminator character in string1 then it will stop. Generally the ASCII value of '' is the terminator string.

After execution of this program string2 will contain "this is a string".

Few explanation:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote