CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

An instruction of size 4 Bytes is stored in memory. Which is a branch instruction and it uses PC relative mode. The target for this instruction is stored on address 560. The relative address field of instruction contains value 230. The value of program counter (PC) before the fetch of this instructions (Assume all the numbers in decimal) is

A
426
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
566
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
226
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
326
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D 326
option (b)

Target address = PC + relative address field value

560 = PC + 230

PC = 560 - 230

PC = 330

This is the value of PC after instruction fetch.

before fetch = 330 - 4 [Size of instruction = 4 ]

= 326

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Addressing Modes 3
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon