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 .MODEL SMALL .DATA ARRAY DB 02H, 03H, 05H, 01H, 02H, ___ ______ ____ _____ _________ ___ ________ __________ ___ __________ ________.
__________ ___ ____ _________ _______ _______ _______ ____ ____ ______ __________ ___.
_________ _________ __________ __________ _____ _______ _________ _______ ____ _____.
__________ __________ ___ _________ ____ _________ ____ ______ ________ __________ _____ _______.
____ ________ ___ _________ ________ _______ _____ ________ _______ ___ ______ ________.
____ ___ ______ _____ _______ ______ ________ ________ ____ ________ _______ ___.
____ ________ ____ _______ ___ ___.
______ _____ __________ _________ _________ _____ _____ ________ __________ ___ _____ _________.
___ ________ _______ _________ ___ ____ _________.
__________ ______ ________ _________ ___.
__________ ________ ___ ____ ___ _____ ________ _______ __________ _________ ______ _________.
______ ___ ______ _______ ________ ___ ___ ______ __________ __________ _____.
______ _______ _______ __________ ___ _________ ________ ______ _____ __________.
_____ _____ ________ _______ ______ ____ ________ ___ ______.
_________ ________ ___ _____ __________ _________ ______ _____ ___ __________.
_________ ______ __________ __________ ___ __________ _________.
___ __________ _____ __________ _______ ________ __________ ________ ________.
______ _____ ________ __________ __________ _______ __________.
__________ ____ _________ ____ _______ __________ ___ _________ ______ ______.
____ ________ _____ ________ __________ _________ _________ ___ _____ _________.
__________ ___ ______ ________ _________ _____ ______ __________ ____ ____ _____.
_____ __________ ___ __________ _____ _______ __________ __________ ________.
___ _______ ______ ______ ________ _____ ___ ___ ____ ____ _________.
__________ _________ _______ ______ ________ ________ _________ ________ __________ ______.
_____ ________ ____ ______ _____ _____ ________.
__________ ______ _____ ________ ______ __________ ________ ___ _______.
_________.
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 .MODEL SMALL .DATA ARRAY DB 02H, 03H, 05H, 01H, 02H, ___ ______ ____ _____ _________ ___ ________ __________ ___ __________ ________.
__________ ___ ____ _________ _______ _______ _______ ____ ____ ______ __________ ___.
_________ _________ __________ __________ _____ _______ _________ _______ ____ _____.
__________ __________ ___ _________ ____ _________ ____ ______ ________ __________ _____ _______.
____ ________ ___ _________ ________ _______ _____ ________ _______ ___ ______ ________.
____ ___ ______ _____ _______ ______ ________ ________ ____ ________ _______ ___.
____ ________ ____ _______ ___ ___.
______ _____ __________ _________ _________ _____ _____ ________ __________ ___ _____ _________.
___ ________ _______ _________ ___ ____ _________.
__________ ______ ________ _________ ___.
__________ ________ ___ ____ ___ _____ ________ _______ __________ _________ ______ _________.
______ ___ ______ _______ ________ ___ ___ ______ __________ __________ _____.
______ _______ _______ __________ ___ _________ ________ ______ _____ __________.
_____ _____ ________ _______ ______ ____ ________ ___ ______.
_________ ________ ___ _____ __________ _________ ______ _____ ___ __________.
_________ ______ __________ __________ ___ __________ _________.
___ __________ _____ __________ _______ ________ __________ ________ ________.
______ _____ ________ __________ __________ _______ __________.
__________ ____ _________ ____ _______ __________ ___ _________ ______ ______.
____ ________ _____ ________ __________ _________ _________ ___ _____ _________.
__________ ___ ______ ________ _________ _____ ______ __________ ____ ____ _____.
_____ __________ ___ __________ _____ _______ __________ __________ ________.
___ _______ ______ ______ ________ _____ ___ ___ ____ ____ _________.
__________ _________ _______ ______ ________ ________ _________ ________ __________ ______.
_____ ________ ____ ______ _____ _____ ________.
__________ ______ _____ ________ ______ __________ ________ ___ _______.
_________.
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★★★