1,691 views

1 Answer

Best answer
10 votes
10 votes

This statement is true actually..

As far as the instruction length is concerned , instructions are divided into two types :

a) Fixed length instructions

b) Variable length instructions

Most of the architectures now use fixed length instructions . So in such instructions , the instruction length as a whole is fixed but its field's length can be altered in turn hence to achieve the same..

Say I have instruction of length 20 in which there is an opcode field of 6 bits and two address fields(one say for source and one for destination) each of 7 bits..

Now say if we need one address instruction while keeping instruction length fixed i.e. 20 bits..So what we do is we use a technique known as expanded opcode technique..So one address field is now appended as a part of opcode..

Hence now opcode bits =  13 bits and addressing bits  =  7 bits. as opposed to 6 bits of opcode and 14 bits of addressing in earlier case..

If we see w.r.t previous type of instruction i.e. 2 address based one , it is for instructions like register to register transfer..But say for stack based instruction in which entire bits are meant for opcode only and no addressing field , the addressing mode is implied addressing mode.

So by variation of addressing modes , we are getting different types of instructions , specifically different number of bits for addressing in each case..Hence the statement should be true.

selected by

Related questions

2 votes
2 votes
1 answer
2
set2018 asked Jul 17, 2017
1,446 views
Self reallocating code required for displacement addressing mode.How ?Please someone explain this concept.
7 votes
7 votes
2 answers
3
Rakesh K asked Oct 30, 2016
2,431 views
What is the number of instrunctions needed to add n numbers in one address mode and store the result in the memory, assuming each number is already loaded in register?(A)...
5 votes
5 votes
1 answer
4