Question: 3. Question (50 points): Here is a example code to add numbers in array with 5 elements: AREA program,CODE,READONLY ENTRY MOV RO,#5 ; Initializing counter

3. Question (50 points): Here is a example code to add numbers in array with 5 elements: AREA program,CODE,READONLY ENTRY MOV RO,#5 ; Initializing counter register LDR R1,=array ; Loading base address to a register loop LDR R2, [R1],#4 Loading value from array and updating(increment) the address ADD R3, R3, R2 Sum is stored in R3 register SUB RO,RO,#1 ; Decrementing counter value CMP RO,#00 ; Checking counter value BNE loop array DCD 0x00000001,0x000000AF,0x00000002,0x00000DC,0x000001FB END Question (50 points): Here is a example code to add numbers in array with 5 elements: AREA program,CODE,READONLY ENTRY MOV RO,#5 Initializing counter register LDR R1,=array Loading base address to a register op LDR R2, [R1],#4 Loading value from array and updating increment) the address ADD R3, R3, R2 Sum is stored in R3 register SUB RO,RO,#1 Decrementing counter value CMP RO,#00 ; Checking counter value BNE loop ray DCD 0x00000001,0x000000 AF,0x00000002,0x00000DC,0x000001F8 END Find the binary machine codes for each nstruction. Use binary encoding of each nstruction (instruction format). Show each bit Field of each instruction in detail. Convert binary machine codes to a hexadecimal pase. You should show the details in binary ormat. Then show how the bytes of this machine code is stored in a big-endian memory byte by byte in hexadecimal base..

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 Programming Questions!