Question

Write a program using 8086 assembly Language (with proper comments) that accepts three different digits as input from the keyboard. Each digit is first converted to a binary equivalent. The binary values of these three digits are compared and the middle value is put in the AL register. This AL register is multiplied with each value of a byte array of size 6, which is stored in the memory. The result of the multiplication is stored in the same memory location. You may assume the byte array has the values 02h, 06h, 08h, 03h, 01h, 05h. Make suitable assumptions, if any.

07 Aug 2023
Answer :
Word Count : 768

here's an 8086 assembly language program that fulfills your requirements. The program takes three different digits as input, converts them to binary equivalents, compares the binary values, and then multiplies the middle value with each element of a byte array. I'll provide comments to explain each part of the code.

ORG 100h   ; Set the origin address

MOV AH, 0   ; Clear AH register

; Accept three digits as input
MOV DX, 0   ; Clear DX register (will be used to store the input)
MOV AH, 1   ; Set AH to read character input
INT 21h     ; Read the first digit
SUB DL, '0' ; Convert ASCII to binary
MOV BX, DX  ; Store the first digit in BX

MOV AH, 1   ; Set AH to read character input
INT 21h     ; Read the second digit
SUB __________ ___ _____ ______ _____ _____.
_________ _________ ________ ________ _________ ________ ______ ________ ______.
__________ ______ ________ _______ ______.
___ _________ ______ __________ _____ __________ _____.
____ ______ ___ _______ ___ __________ ___ ________.
___ ______ __________ _____ ________ _____ ____ ___ _____ _____.
________ ____ ________ _______ ____ ________ _________ _________ ___ _____.
___ _____ _______ _________ ____ ____ _________ ______ ____.
______ ______ _________ ___ ___ __________ _________ ______ ____.
________ __________ _________ _________ __________.
_______ ___ ________ ________ _____.
_____ ____ _____ __________ ______ ______ ______ ________ ____ ________ ______ ______.
_____ __________ _________ _________ ______ __________ _______ __________ _________ __________ ______.
____ _________ ____ ___ __________ ___ __________ ___ ________.
_____ ___ ________ _________ ______ _______ _____ ___ _________.
__________ ____ _________ _____ _______.
_____ ________ ____ ________ _________.
___ ______ ________ _______ ________ _______ _____.
________ ________ __________ ___ _____ ______ _______ _____ ____ _______.
__________ ______ ________ __________ ______.
______ _________ _________ ___ _______ ___.
_______ _________ __________ ___ _______ ______.
_____ ____ _________ _____ ________.
__________ ________ _______ ________ __________ _________.
_____ ______ ____ _________ _______.
_______ ________ ____ ______ ______ _____.
_______ ____ ___ ___ __________ __________.
_________ ________ __________ ___ ___ _______.
________ ______ _________ ____ _______ ___.
_______ ______ _______ _____ _________ _______ ____ __________ _____.
____ _______ __________ ___ _________ __________ ____ ____ _______ ________.
_______ ____ _____ _________ _________ _________ _____ ____ ________ _____ __________ _____.
______ _________ ___ ________ _____ ____ _______ ___.
________ __________ _______ ______ _____ _________ _____ _________ ___ __________.
___ ___ ___ _________ _______.
_______ ___ _____ ____ _______ ___ __________ _____ ____ ______ ____.
_____ ____ ___ __________ _______ _________ ______ __________ _____.
________ ___ ___ _________ __________ ______ ____ ______ ______ ___.
________ _______ ___ ____ _____ _________ __________ __________ ________.
____ ____ ___ _________ ______ ____ _____ _______ ____ ________.
______ ___ ______ _________ _________ ____ __________ ___ _________ ________.
_______ ______ ___ _____ _______ _____ ______ ____ ____ _____ ____ ______.
_________ _____ _____ ______ _________ ____ ___ _______ ________ _____ ___.
____ __________ _________ ___ ______ _____ ________.
__________ ____ _______ ____ ____ ___.
____ __________ ______ _______ _________ ______ ________ ____ _____ _________ _____ _______.
________ _____ ____ _______ ___ _________ ___.
_______ ________ _______ __________ ______ ________ _____ _______ ______ ______ ____.
__________ _______ __________ _______ ____ ________.
____ ______ __________ ___ _______ ____ __________ _________ _________ ________.
__________ ____ _______ _________ ______ _______ ____.
_______ ________ ____ ______ ___ __________ _________.
_________ _________ _______ __________ ______ ___ ________ _______ ________.
_____ ___ ______ ________ ___ _____ __________ ____.
_____ ___ __________ ____ _____ ____ __________ _____.
____ _____ _______ ______ _________ __________ ___ _________ __________.
_______ ____ _____ __________ _______ _______ _____.
___ ______ _______ ________ _______ __________ __________ __________ _____ _______ _________.
________ ________ _______ __________ _______ ________ ________ ______ __________ ___ __________.
____ ________ ______ ____ ____ _______ ______.
__________ ________ __________ _____ _____ ___ __________ ____ ____ ______ _________ _______.
______ ______ _______ _________ ___ ___ ________ __________ _________ _________ ______.
____ _________ __________ ___ ___ ___ __________.
_________ ________ _____ ________ _______.
_________ ______ ____ ______ ___ __________.
___ _______ ______ ____ ___ _______ ____ __________ _____ ______.
__________ ______ __________ ______ __________ _________ _________ __________ __________ __________ ___.
__________ ______ ____ _________ ________ __________ __________ _________ _________ ________ _____.
__________ ______ _________ __________ _____.
__________ ___ __________ __________ __________ _____ ___ ___ ____ _________ _____.
___ __________ _______ _________ ________.
____ _________ _____ _______ _________ ___ _______ _________.
______ ___ __________ _______ ___ __________ __________ _____ _____ _________ ______.
____ _________ ________ _______ _________ ________.
___ _________ ___ ________ _______.
________ __________ __________ ______.
Get Full Answer on WhatsApp

IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Write a program using 8086 assembly Language (with proper comments) th
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→