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

Consider a system which uses 2M K bytes of memory with a byte addressable scheme. The system supports 3-address instructions. If there are total 2i number instructions supported by the system then the size of an instruction in bytes, for M = 2 and i = 4 is

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

The correct option is D 5
option (c)

Memory size=2M K bytes=2M10bytes

Address size = M +10 bits

Number of instruction =2i

Opcode-bits = i-bits

Instruction

i M+10 M+10 M+10
Opcode add.1 add.2 add.3

Total size = (i + 3M + 30) bits
For i = 4 and M= 2
Instruction size = 4 + 3 * 2 + 30
= 40 - bits
= 5 bytes

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Instruction Formats: 3, 2 and 1 Address Instruction
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon