Question: n the following ARM 9 program, there are two examples of data forwarding and one further example of a read - after - write hazard

n the following ARM9 program, there are two examples of data
forwarding and one further example of a read-after-write hazard that
results in an interlock. Identify all three.
Mnemonic Comment
MOV r1, #0x0004A000 ; move 0x0004A000 into r1
MOV r2, #0x00003BC0 ; move 0x00003BC0 into r2
MOV r0, r1, LSL #4 ; left shift r1 by 4 bits
SUB r3, r2, r1 ; subtract r1 from r2
ADD r4, r1, r2 ; add r1 and r2, sum in r4
RSB r5, r4, r0 ; subtract r4 from r0
MOV r6, #0x000002E4 ; move 0x000002E4 into r6
MOV r7, #0x0002E400 ; move 0x0002E400 into r7
ADD r2, r1, r0 ; add r1 and r0, sum in r2

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!