Assume that you have the instruction format described below: OPCODE MODE 1 OPE1 OPE2 4 bit 2 bit 2 bit 8 bit 8 bit The O

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899559
Joined: Mon Aug 02, 2021 8:13 am

Assume that you have the instruction format described below: OPCODE MODE 1 OPE1 OPE2 4 bit 2 bit 2 bit 8 bit 8 bit The O

Post by answerhappygod »

Assume That You Have The Instruction Format Described Below Opcode Mode 1 Ope1 Ope2 4 Bit 2 Bit 2 Bit 8 Bit 8 Bit The O 1
Assume That You Have The Instruction Format Described Below Opcode Mode 1 Ope1 Ope2 4 Bit 2 Bit 2 Bit 8 Bit 8 Bit The O 1 (160.56 KiB) Viewed 108 times
Assume that you have the instruction format described below: OPCODE MODE 1 OPE1 OPE2 4 bit 2 bit 2 bit 8 bit 8 bit The OPCODE field specifies the instruction as below. Assume the instructions take 2 parameters. Example: SAL RX, 5; performs left arithmetic shift 5 times on RX register. 0001 is the code for SAL (Shift Arithmetic Left) instruction. 0010 is the code for SAR (Shift Arithmetic Right) instruction. 0100 is the code for the ROL (Rotate Left) instruction. Note that the second operand can be stored in a register or memory location. Memory Address Value The MODE field indicates whether either of the OPE1 and OPE2 are register or memory addresses: 00: OPE1 and OPE2 are memory addresses. 01: OPE1 is register, OPE2 is memory address. 10: OPE1 is memory address, OPE2 is register. 11: OPE1 and OPE2 are registers. Code 00 01 10 11 Registers Register RO R1 R2 R3 Value EB B3 00 51 A1 A2 АЗ A4 A5 03 A3 04 A1 03 I field indicates whether indirection is used: 00: No indirection is used for both OPE1 and OPE2. 01: Indirection is used only for OPE1. 10: Indirection is used only for OPE2. 11: Indirection is used for both OPE1 and OPE2. Show the output result and used operands for the following instructions for the given memory and register values by giving full explanation of your solution to get a mark. Use (X) notation to indicate indirection where X can be a register (denote as e.g. R1) or a memory location (denote as e.g. [A1]). I. (5 points) Operands Result (in OPCODE MODE 1 OPE1 OPE2 Used hexadecimal notation) 0100 01 00 00000011 10100101 ii. (5 points) Operands Used OPCODE MODE 1 OPE1 OPE2 Result (in hexadecimal notation) 0001 01 10 00000001 10100100 iii. (5 points) Operands Used OPCODE MODE 1 OPE1 OPE2 Result (in hexadecimal notation) 0010 01 11 0000001010100010
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply