Question
Write a program using 8086 assembly Language (with proper comments) that accepts two different digits as input from the keyboard. Each digit is converted to its binary equivalent value. These converted digits are stored in registers BL and CL. The program then stores the smaller of these two values in AL register. The program also checks if the present AL value is larger than all the values contained in a byte array of size 6, which is stored in the memory. If so, then a value 1 is moved to DL register, else a value 0 is moved to DL register. You may assume the byte array has the values 02h, 03h, 05h, 01h, 02h, 03h. Make suitable assumptions, if any.
Answer :
Word Count : 314
```asm ; Program: 8086 Assembly Program to compare two digits and check with array ; Assumptions: ; - Inputs are ASCII digits ('0' to '9') ; - Inputs are different digits ; - Byte array is stored at memory location DATA_SEG:ARRAY ; - Byte array values: 02h, 03h, 05h, 01h, 02h, 03h ______ _______ _______ _____ _________ ____ __________ _____ _______.
_____ ____ ______ ________ _________ _______ _________ _____ _______ ______.
_______ ___ __________ _______ _____ _____ _____.
________ __________ ______ ___ _________ ___ ________ ____ ________ __________.
_____ ____ __________ _____ ___ __________ _________ _________ _______.
_______ _______ ________ _____ _________ __________ ___ _____ _______ _______ __________ ____.
___ ________ ________ __________ ________.
________ _________ ______ __________ ________ ___ ___ _______ ______ _____ _____.
__________ __________ ____ ____ _____ ______ _____ _________ ______ ____ __________.
______ ________ ________ _______ ______ ___.
_________ ___ ______ ______ _______ _______ ________ __________ ___.
______ _______ ________ ___ _________.
______ _________ ____ ______ _______ ___ __________ _____.
_______ __________ _________ _____ ____ _________ _________ __________ ______ __________.
___ __________ ________ ______ _________.
_____ ______ ______ ___ __________ _____.
____ ___ ______ _______ __________ ______ ______.
___ _____ ________ __________ _______ ______ __________ __________.
________ ____ ____ _________ ___.
_______ ____ ________ ________ __________ ____ ______ _________ _____ __________ ___ ______.
_____ __________ __________ ________ _______ _______ ______ ____.
_________ _____ _________ _____ __________ ________.
__________ ____ ________ ___ ________.
_________ _____ ______ _________ _____ ________ ________ ___.
________ ______ ___ _________ __________ ____ _________ __________.
__________ ____ _____ ____ ________.
_______ ______ _______ _______ _______ ________.
_____ __________ __________ _________ ______.
___ _______ _____ ________ __________ _______ ___ _____.
____ _______ ____ __________ _____ _________.
__________ _________ _________ _________ ________ _________.
__________ _______ ______ ___ _____ _______ __________ _____ ______.
______ _______ __________ ___ _______ _______.
__________ ________ __________ ________ ______ _________.
_________ _______ ______ _______ ___.
Get Full Answer on WhatsApp
```asm ; Program: 8086 Assembly Program to compare two digits and check with array ; Assumptions: ; - Inputs are ASCII digits ('0' to '9') ; - Inputs are different digits ; - Byte array is stored at memory location DATA_SEG:ARRAY ; - Byte array values: 02h, 03h, 05h, 01h, 02h, 03h ______ _______ _______ _____ _________ ____ __________ _____ _______.
_____ ____ ______ ________ _________ _______ _________ _____ _______ ______.
_______ ___ __________ _______ _____ _____ _____.
________ __________ ______ ___ _________ ___ ________ ____ ________ __________.
_____ ____ __________ _____ ___ __________ _________ _________ _______.
_______ _______ ________ _____ _________ __________ ___ _____ _______ _______ __________ ____.
___ ________ ________ __________ ________.
________ _________ ______ __________ ________ ___ ___ _______ ______ _____ _____.
__________ __________ ____ ____ _____ ______ _____ _________ ______ ____ __________.
______ ________ ________ _______ ______ ___.
_________ ___ ______ ______ _______ _______ ________ __________ ___.
______ _______ ________ ___ _________.
______ _________ ____ ______ _______ ___ __________ _____.
_______ __________ _________ _____ ____ _________ _________ __________ ______ __________.
___ __________ ________ ______ _________.
_____ ______ ______ ___ __________ _____.
____ ___ ______ _______ __________ ______ ______.
___ _____ ________ __________ _______ ______ __________ __________.
________ ____ ____ _________ ___.
_______ ____ ________ ________ __________ ____ ______ _________ _____ __________ ___ ______.
_____ __________ __________ ________ _______ _______ ______ ____.
_________ _____ _________ _____ __________ ________.
__________ ____ ________ ___ ________.
_________ _____ ______ _________ _____ ________ ________ ___.
________ ______ ___ _________ __________ ____ _________ __________.
__________ ____ _____ ____ ________.
_______ ______ _______ _______ _______ ________.
_____ __________ __________ _________ ______.
___ _______ _____ ________ __________ _______ ___ _____.
____ _______ ____ __________ _____ _________.
__________ _________ _________ _________ ________ _________.
__________ _______ ______ ___ _____ _______ __________ _____ ______.
______ _______ __________ ___ _______ _______.
__________ ________ __________ ________ ______ _________.
_________ _______ ______ _______ ___.
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★★★