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