Question

In: Computer Science

In a computer instruction format, the instruction length is 12 bits and the size of an...

In a computer instruction format, the instruction length is 12 bits and the size of an address field is 5 bits. The system architect has already designed three 2-address instructions and thirty one 1-address instructions. How many 0-address instructions can still be possibly accommodated?

Solutions

Expert Solution

Total Number of possible Instructions= 212=4096

size of address field = 5 bits.

There are 3 2-address Instruction, these 10 bits are used for address & Remaining 2 bits are used to select one out of the 3 possible Instructions.

Total bit pattern needed= 3* 25*25

                                             =3*210

                                             =3*1024

                                              =3072

For thirty-one 1-address instruction, bit Patton needed=31*25

=31*2*2*2*2*2

=31*32

=992
Total number of used bit patterns = 3072(3 2-address)+992(thirty one 1-address)

=3072+992

=4064

Number of 0-address instructions possible=4096( Total Number of possible Instructions)-4064( Total number of used bit patterns)

=4096-4064

=32


Related Solutions

In a computer instruction format, the instruction length is 11 bits and the size of an...
In a computer instruction format, the instruction length is 11 bits and the size of an address field is 4 bits. Is it possible to have 5 two-address instructions 45 one-address instructions 32 zero-address instructions using the specified format? Justify your answer.
Computer Architecture 1. Define what a "word" is in computer architecture: The size (number of bits)...
Computer Architecture 1. Define what a "word" is in computer architecture: The size (number of bits) of the address The total number of bits of an instruction (e.g. 16 bits) Word and width are synonymous. A word is the contents of a memory register. 2. What is the difference between a register’s width and a register’s address? (choose all that apply - there may be more than one correct answer) They are both the same! Address is the same for...
13. A digital computer has a memory unit with 32 bits per word. The instruction set...
13. A digital computer has a memory unit with 32 bits per word. The instruction set consists of 260 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory. a) How many bits are needed for the opcode? b) How many bits are left for the address part of the instruction? c) What is the maximum allowable size for memory? d) What...
1. A hypothetical computer stores 12 bits of information. The first bit is used for the...
1. A hypothetical computer stores 12 bits of information. The first bit is used for the sign of the number; the second bit is used for the sign of the exponent. Four bits are used for the magnitude of the exponent and six bits are used for the magnitude of the mantissa. a. Represent the number -147.32 in Binary scientific notation b. How would the number be represented in the computer? c. Calculate the true error and absolute relative true...
6.35 (Computer-Assisted Instruction) The use of computers in education is referred to as computer-assisted instruction (CAI)....
6.35 (Computer-Assisted Instruction) The use of computers in education is referred to as computer-assisted instruction (CAI). Write a program that will help an elementary school student learn multiplication. Use a SecureRandom object to produce two positive one-digit integers. The program should then prompt the user with a question, such as How much is 6 times 7? The student then inputs the answer. Next, the program checks the student’s answer. If it’s correct, display the message "Very good!" and ask another...
5. On a machine, an instruction is always 16 bits long, and there are 16 registers....
5. On a machine, an instruction is always 16 bits long, and there are 16 registers. There are only two types of instruction supported: dyadic operation, which has 2 operands, and monadic operations, which has only 1 operand. If we want to make sure the machine can support 64 different monadic instructions, then how many dyadic instructions can it support at most? (10%) -------------------------------- 6. Let us assume we have such a machine. The physical RAM has 32 bytes, and...
Encode the following instruction (1) identify the instruction format that will be used (2) indicate the...
Encode the following instruction (1) identify the instruction format that will be used (2) indicate the values of each of the fields for that format in decimal (3) convert each of these decimal val- ues to binary (4) represent the entire instruction as one hexadecimal value j L2. # where L2 is at the decimal byte address 1,048,608
Encode the following instruction opcode: 100011 (1) identify the instruction format that will be used (2)...
Encode the following instruction opcode: 100011 (1) identify the instruction format that will be used (2) indicate the values of each of the fields for that format in decimal (3) convert each of these decimal values to binary (4) represent the entire instruction as one hexadecimal value. subu $t3,$v1,$s2
IEEE 754 format of 32-bit floating-point is as follows. 1 8 (bits) 23 (bits) What’s stored...
IEEE 754 format of 32-bit floating-point is as follows. 1 8 (bits) 23 (bits) What’s stored in each region? What’s the bias value and how to get it? For decimal fraction: – 0.625, please represent it as given format (Note: you must show the specific procedure/stepsin order to get full credits. If you only present final result directly, you will only get half of the credits even if it is correct.).  
Write instruction(s) in C to get bits 4 and 7 of Port-C, then compute the “XOR...
Write instruction(s) in C to get bits 4 and 7 of Port-C, then compute the “XOR (exclusive OR)” of these two bits and write the result of the “XOR operation” to bit 4 of Port-D.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT