The Gateway to Computer Science Excellence
+1 vote
152 views
A system has 16 bits instruction that support zero address, one address
and two address instructions Assume each address field size is 5 bits it
is designed for supporting ‘40’ number of two address instructions,
‘400' number of one address instructions. The maximum number of
zero address instructions that can be formulated is
in CO and Architecture by (107 points)
edited by | 152 views

2 Answers

+2 votes

Total no of zero address instruction=11776

by Boss (35.3k points)
+1 vote

Answer : 11,776

Expand Opcode Technique Question.

Two Address Instruction Formulation : 16 - 10 = 6 bits for Opcode. Total Possible Two Address Instructions = $2^6 = 64$

But System has only 40 Two Address Instructions, Thus, Unused combinations for first Six bits = 24

One Address Instruction Formulation : Total possible One Address Instructions = $24$ (Combinations for first 6 Bits) * $2^5$ = 768

But System has only 400 One Address Instructions, Thus, Unused combinations for first Ten bits = 368

Zero Address Instruction Formulation :

Total Possible One Address Instructions = 368 * $2^5$ = 11,776

by Boss (26.1k points)
0
Yes you are right !
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,666 questions
56,167 answers
193,836 comments
93,997 users