Question: Consider the following code snippet. Aesume ARM 7 TIMI - 3 stage pipeline processor. The execution of the branch instruction happens in the execute stage.
Consider the following code snippet. Aesume ARMTIMI stage pipeline processor. The execution of the branch instruction happens in the execute stage.
TEXT
LDR RA
LDR R B
LDR ROR
LDR RR
GCD: CMP RO R
BEQ RES
BLT LOOP
SUB ROROR
B GCD
LOOP: SUB R R RO
B GCD
RES: MOV RRO
SWI OX
END
Determine the hexadecimal equivalent instruction encoding for the branch instruction BEQ and B instructions.
The encoding pattern for a branch instruction is as given below with the condition
code for EQLT and AL being and respectively
bit encodingcond bit,L bit,offset
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
