Question: 1. How do you change the prototype code so that you can pass count to the function instead of using the global variable? 2. How

1. How do you change the prototype code so that you can pass count to the function instead of using the global variable?

2. How do you change the assembly code so that you can use the passed argument for count instead of the global variable?

1. How do you change the prototype code so that you can

AREA strcopy, CODE IMPORT count EXPORT strcopy_asm_in_s ALIGN strcopy_asm in s PROCI LDR r2, = count LDR r2, [r2] SUB r2, r2, #1 loop CMP r2, #0 BEQ end_loop LDRB r3, [ro], #1 STRB r3, [ro], #1 r3, #1 SUB loop end_loop STRB r2, [rl] lr BX " ENDP END AREA strcopy, CODE IMPORT count EXPORT strcopy_asm_in_s ALIGN strcopy_asm in s PROCI LDR r2, = count LDR r2, [r2] SUB r2, r2, #1 loop CMP r2, #0 BEQ end_loop LDRB r3, [ro], #1 STRB r3, [ro], #1 r3, #1 SUB loop end_loop STRB r2, [rl] lr BX " ENDP END

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!