Question

In: Computer Science

The machine language form of a jump instruction (j) is 00001001001100101000110001010110. The address of the jump...

The machine language form of a jump instruction (j) is 00001001001100101000110001010110. The address of the jump instruction (PC) is 0x20201018. What address this the program will jump to?

Solutions

Expert Solution

The answer for the above mentioned question is explained below ::

The program will jump to the following address :

00100100110010100011000101011000

Explanation is as follows ::

Given that , the machine language form for jump instruction is

000010 01001100101000110001010110

where , first six bits represent opcode i.e., here 000010 represents the opcode j .

The remaining 26 bits represents the address , to get the final address to which the given instruction jumps , we have to multiply the 26 bit address field by 4 , so after multiplication of 26 bits by 4 we get 28 bits and we append most significant 4 bits from the PC , i.e., here PC is 0x20201018 here most significant 4 bits is 0010 . Therefore the above program will jump to the address 00100100110010100011000101011000 .

Explanation in terms of Addresses ::

Machine language form for jump instruction is ::

00001001001100101000110001010110

Here first 6 bits represents opcode j i.e., 000010 represents j and remaining 26 bits represents the target address i.e., 01001100101000110001010110

To get the resultant address to which the given program jump is first 4 bits are taken from the most significant 4 bits of PC and next 28 bits are taken from the (26 bit *4) .

i.e., Here most significant 4 bits of PC is 0010 .

and 26 bits *4 is 0100110010100011000101011000

Therefore the given program jump to the address

00100100110010100011000101011000


Related Solutions

Provide the instruction type, assembly language instruction, and binary representation of the instruction described by the...
Provide the instruction type, assembly language instruction, and binary representation of the instruction described by the following LEGv8 fields: op = 0x458, Rm = 14, Rn = 16, Rd = 18, shamt = 0
4. Explain the purpose of jump-and-link(jal) instruction. (10%)
4. Explain the purpose of jump-and-link(jal) instruction. (10%)
1. What different types of data can be part of a machine language instruction? 2. What...
1. What different types of data can be part of a machine language instruction? 2. What are some differences between RISC and CISC computers? 3. What is the general architecture of most modern computers: VonNeumann, Harvard, or Modified Harvard? 4. What descriptors from 2 and 3 above would you use to classify today's personal computers? 5. Why is it important to know whether a machine is Big-Endian or Little Endian when converting 16-bit or 32-bit data from one type of...
A horse trainer teaches horses to jump by using two methods of instruction. Horses being taught...
A horse trainer teaches horses to jump by using two methods of instruction. Horses being taught by method A have a lead horse that accompanies each jump. Horses being taught by method B have no lead horse. The table shows the number of training sessions required before each horse performed the jumps properly. Method A 43 23 49 44 39 22 Method B 27 25 48 31 37 46 Method A 47 26 29 33 36 42 Method B 28...
(b) Determine whether the JMP instruction are SHORT, NEAR, or FAR jump. Explain your answer.
(b) Determine whether the JMP instruction are SHORT, NEAR, or FAR jump. Explain your answer.
Suppose the address of the first instruction is 5F370654 in hexadecimal in the following code. Show...
Suppose the address of the first instruction is 5F370654 in hexadecimal in the following code. Show in decimal the immediate value (i.e. offset) in the beq and bne instruction, and in hexadecimal (of 7 digits) the psedudo address in the j instruction. Separate the numbers by comma. label1: beq $t1, $t2, label3 (17 instructions here) label2: bne $t3, $t4, label1 (46 instructions here) label3: j label2
i)In a computer, an instruction is composed of two fields: the opcode and an operand address....
i)In a computer, an instruction is composed of two fields: the opcode and an operand address. what is the minimum size of your instruction in bits if an instruction set of 327 opcodes and an address space of 128 Mbytes is required? NB. Use 1 Mbyte = 2^20 bytes ii) Instead of hard-writing the units, the software is used to interpret and execute instructions in a general-purpose system. Is the statement true or false
True and False 1. The instruction register stores machine code for the instruction being executed. 2....
True and False 1. The instruction register stores machine code for the instruction being executed. 2. Before a digital computer may execute an instruction, the instruction code must be fetched from memory. 3. A pointer is a binary code for data in the arithmetic logic unit. 4. Von Neumann computer architecture stores data and instruction codes in the same memory. 5. Complex instruction set computers have instructions with greater speed than those in reduced instruction set computers.
If A is a 32-bit address, typically an instruction sequence such as: lui x19, A_upper addi...
If A is a 32-bit address, typically an instruction sequence such as: lui x19, A_upper addi x19, x19, A_lower can be used to load the word at A into a register (in this case x19). a) How many bits of A are in A_upper? b) If the MSB of A_upper is 1, what would be the value of the leftmost 32-bits of register x19. Provide your answer in decimal. c) After the lui instruction, the rightmost 12-bits of x19 would...
Assisted Instruction: Has to be in PERL SCRIPTING LANGUAGE with NO SUBROUTINES Programming Exercise: Write a...
Assisted Instruction: Has to be in PERL SCRIPTING LANGUAGE with NO SUBROUTINES Programming Exercise: Write a program in PERL with NO SUBROUTINES to allow the user to pick a type of arithmetic problem to study. An option of 1 means addition problems only, 2 means subtraction problems only, 3 means multiplication problems only, 4 means division problems only and 5 means random mixture of all these types. (Computer- Assisted Instruction) The use of computers in education is referred to as...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT