in CO and Architecture
283 views
0 votes
0 votes

How to solve?

in CO and Architecture
by
283 views

1 Answer

1 vote
1 vote
Best answer

Address field = 9 bits.

For two address instructions, 18 bits will be for address. Remaining (32-18) = 14 bits will be for opcode.

Using 14 bit opcode, 214 opcodes are possible. But there are only 400 two address instructions.

So, remaining (214-400) opcodes can be used for one address instructions.

Possible one address instructions = (214-400) * 29 [using opcode expand technique]

selected by

3 Comments

what exactly this 

opcode expand technique

 is??

i googled bt can't find proper meaning and use of that. 

0
0

See,

First of all the assumption here is, suppose there are two instructions ADD A,B and ADD C,D.

These two are considered the same instructions. 

Likewise, if there are 14 bits for opcodes, then 214 two address instructions are possible.

But only 400 two address instructions are allowed.

So, (214-400) opcodes are not used by two address instructions. These can be given to one address instructions. Now for an instruction to be one address, we dedicate 9 bits for address part. Rest 9 bits is free. So we use these 9 unused bits for opcodes (this is opcode expand technique).

So, no of opcodes for one address instructions = (214-400) * 29

1
1
Nicely explained.. thank u.. :)
1
1

Related questions