Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 ARM7TIMI -3stage pipeline processor. The execution of the branch instruction happens in the execute stage.
TEXT
LDR R3,=A
LDR R4,= B
LDR RO,[R3]
LDR R1,[R4]
GCD: CMP RO, R1
BEQ RES
BLT LOOP
SUB RO,RO,R1
B GCD
LOOP: SUB R1, R1, RO
B GCD
RES: MOV R2,RO
SWI OX011
.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 EQ,LT and AL being 0000,101 and 1110 respectively
(32 bit encoding){cond -4 bit,101,L-1 bit,offset)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions