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

4. Explain the purpose of jump-and-link(jal) instruction. (10%)
4. Explain the purpose of jump-and-link(jal) instruction. (10%)
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
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.
Assembly Language Programming: a)If eax = 0FFFFFFFFH, and edx = 0FFFFFFFFH, then the instruction                            
Assembly Language Programming: a)If eax = 0FFFFFFFFH, and edx = 0FFFFFFFFH, then the instruction                              imul edx will leave the value ______________________________ in the edx register. b)If eax = 0D000000DH, and edx = 50000005H, then the instruction                              idiv dl will leave the value ______________________________ in the eax register. c)If ax = 3BC4H, then the following instructions                              cmp ah, al jg   Label will / will not cause a jump to Label. d)If ax = 3BC4H, then...
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
Given the following memory values and address instruction with an accumulator. Determine the values with the...
Given the following memory values and address instruction with an accumulator. Determine the values with the following instructions load into accumulator. Word 16 contains 22 Word 18 contains 24 Word 20 contains 26 Word 22 contains 28 Word 24 contains 30 Word 26 contains 32 Word 28 contains 34 i. LOAD IMMEDIATE 16 ii. LOAD DIRECT 16 iii. LOAD INDIRECT 16 iv. LOAD IMMEDIATE 18 v. LOAD DIRECT 18 vi. LOAD INDIRECT 20 vii. LOAD IMMEDIATE 24 viii. LOAD DIRECT...
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.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT