Question: iv) Consider the following ARM assembly program AREA Prog2, CODE, READONLY ENTRYY main ADR RO,arraya MOV R1 , #7 BL funct MOV R2, RO ADR

 iv) Consider the following ARM assembly program AREA Prog2, CODE, READONLY

iv) Consider the following ARM assembly program AREA Prog2, CODE, READONLY ENTRYY main ADR RO,arraya MOV R1 , #7 BL funct MOV R2, RO ADR RO,arraya STR R2, [R0,#28] stop B stop arraya DCD 0xOF014568, 0xoD156782,0xF215AB20, 0x15000ABC DCD OxEF0000D4,0x891FFFD2,0xFF000000,0x00000000 functSTMFD SP!, R5, R6, LR) MOV R5, #0 loop st LDR CMP BCS MOV SUBS BCS MOV LDMFD R6 , [R0],#4 R5, R6 small R5, R6 R1 , R1 , #1 loop st RO, R5 SP!, R5, R6, PC) Small END a) Explain what the program does b) What are the contents of register R2 and eight words in memory starting from label 'arraya', upon the execution of above code? [4 marks] [4 marks]

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!