0 0 votes A computer has 40-bit instruction format. It uses 1 register operand and 1 memory operand. There are 128 general purpose registers and 256 M bytes of RAM. Q. 15 How many different operations the computer can perform if the indirect bit (mode) is used as the part of the operation code. 32 16 17 8 CO & Architecture co-and-architecture addressing-modes opcode made-easy-booklet + – Deepalitrapti 1.5k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
Best answer 0 0 votes Here the case is like MODE bit is one only as it indicate the Indirect mode MODE -1bit OPCODE-? REGISTER OPERAND require 7 bits (128 registers are there) MEMORY OPERAND require 28 bits Now total length of INSTRUCTION is 40 so total bits for OPCODE= 40-28-7-1=4 bits .. So total operations possible are 2^4 = 16 SHUBHAM SHASTRI answered Sep 7, 2018 • selected Sep 7, 2018 by Deepalitrapti SHUBHAM SHASTRI comment Share Follow See all 7 Comments 7 7 Comments reply Deepalitrapti commented Sep 7, 2018 reply Follow flag Why we use 1 bit for mode 0 0 replyShare SHUBHAM SHASTRI commented Sep 7, 2018 reply Follow flag in question they told that we have indirect mode ...so we assign 1 bit only ....now say in question if they told that we have direct , indirect and immediate mode then ..? Then we have to assign 3 bits for MODE and we can have only 2 bits for OPCODE ..so we might be able to do only 4 operations ... 0 0 replyShare Deepalitrapti commented Sep 7, 2018 reply Follow flag How we check how bits used for direct indirect immediate i m confused 0 0 replyShare SHUBHAM SHASTRI commented Sep 7, 2018 reply Follow flag like 3 bits are allocated so 000-> direct mode 001-> Indirect mode 010->Immediate mode like that 0 0 replyShare Deepalitrapti commented Sep 7, 2018 reply Follow flag This bits are fixed?? 0 0 replyShare SHUBHAM SHASTRI commented Sep 7, 2018 reply Follow flag no ..its a defined at the time of creation of INSTRUCTION set 0 0 replyShare Deepalitrapti commented Sep 7, 2018 reply Follow flag How wo can define indirect mode bit for this question 0 0 replyShare Please log in or register to add a comment.