The Gateway to Computer Science Excellence
0 votes
430 views

Consider the hypothetical processor is supports both 2 address and one address instructions. It has 128-word memory A 16-bit instruction is placed in the one memory word.

Q1.What is the range of two address and one address instructions are supported?

A)1 to 3 and 128 to 364 B)1 to 3 and 128 to 384 C) 0 to 4 and 120 to 380 D) 0 to 3 and 64 to 256

Q2.If two 2-address instructions are already existed. How many one address instructions can be supported?

A)128 B)2 C)256 D)32

PLEASE GIVE SOLUTION IN DETAILED MANNER...ESPECIALLY FOR  PART 1.

in CO and Architecture by Active (3.3k points) | 430 views

1 Answer

0 votes

PART 1

no of combination =2^2 // 2 opcode bits

range of 1-address instruction

1×2^7  to (4-1)× 2^7  = 128 to 384

 

range of 2-address instruction

1  to (4-1) = 1 to 3

Answer B

by (443 points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,833 questions
57,745 answers
199,472 comments
108,081 users