Hence the load indirect 30 results with the fetching

This preview shows page 2 - 6 out of 6 pages.

Hence the load indirect 30 results with the fetching data of 70.
(Que : P2) Consider a 16 bit processor in which the following appears in main memory starting at location.
H 400 1000 R1 = 401.Hence R1 is increated after the executions of instruction. Questions: Assume a stack-oriented processor that includes the stack operations PUSH and POP. Arithmetic operations automatically involve the top one or two stack elements. Begin with an empty stack. What stack elements remain after the following instructions are executed? PUSH 4 PUSH 7 PUSH 8 ADD PUSH 10 SUB MUL Instruction Stack Push 4 4 Push 7 7,4 Push 8 8,7,4 Add 15,4 Push 10 10,15,4 Sub 5,4 Mul 20 Question: PC-relative mode branch instruction is stored in memory at address 62010. The branch is made to location 53010. The address field in the instruction is 10 bits long. What is the binary value in the instruction? As a specified the instruction is of two words , the address part of the instruction is placed at next word. Branch and instruction …. 500….750 Hence a relative address field : Relative address is the kind of instruction in which effective address is equal to the sum of the program counter and the address part of the instruction.
Hence we can see that the operand will be found at the location equal to the sum of the present location and the address part of the instruction. However we can see below solution Effective _address = address _ in _ instruction + prog.counter. 500 = 750 +1+relative_address Relative _ address = 500-751 Reltive _address = -251

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture