204k views
3 votes
Write the 8086 instruction which will perform the indicated operation.

a. Copy AL to BL.
b. Load 43H into CL.
c. Increment the contents of CX by 1. Course Title: Microprocessor interfacing and embedded system (3 Cr) Assignment 1 Semester: Spring 2023 Section: Names, Student IDs and emails:
d. Copy SP to BP.
e. Add 07H to DL.
f. Multiply AL times BL.
g. Copy AX to a memory location at offset 245AH in the data segment,
h. Decrement SP by 1.
i. Rotate the most significant bit of AL into the least significant bit position,
J. Copy DL to a-memory location whose offset is in BX.
k. Mask the lower 4 bits of BL.
l. Set the most significant bit of AX to a 1, but do not affect the other bits,
m. Invert the lower 4 bits of BL, but do not affect the other bits.

User Cyptus
by
7.4k points

1 Answer

5 votes

Final answer:

Assembly instructions for the Intel 8086 include MOV for data transfer, INC/DEC for incrementing/decrementing, ADD for addition, MUL for multiplication, ROL for bit rotation, AND for bitwise AND, OR for bitwise OR, and XOR for bitwise exclusive OR.

Step-by-step explanation:

The student has asked for the 8086 assembly language instructions to perform various operations. Here are the instructions that correspond to the operations listed:

  • a. Copy AL to BL: MOV BL, AL
  • b. Load 43H into CL: MOV CL, 43H
  • c. Increment the contents of CX by 1: INC CX
  • d. Copy SP to BP: MOV BP, SP
  • e. Add 07H to DL: ADD DL, 07H
  • f. Multiply AL times BL: MUL BL
  • g. Copy AX to a memory location at offset 245AH in the data segment: MOV [245AH], AX
  • h. Decrement SP by 1: DEC SP
  • i. Rotate the most significant bit of AL into the least significant bit position: ROL AL, 1
  • j. Copy DL to a memory location whose offset is in BX: MOV [BX], DL
  • k. Mask the lower 4 bits of BL: AND BL, F0H
  • l. Set the most significant bit of AX to a 1, but do not affect the other bits: OR AX, 8000H
  • m. Invert the lower 4 bits of BL, but do not affect the other bits: XOR BL, 0FH

User YAtOff
by
7.8k points