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
__________ ____ _________ ____ __________ _________ ________ __________.
_______ ________ ____ _______ ___ ______ ___ __________ __________ ___ __________.
__________ ____ ______ _________ ____ _______ _________ _________ ____ __________ ____ _________.
__________ ________ _________ _____ ____ _____ ________ ______ _____.
_______ _____ _____ _______ _______ _______.
__________ ________ ________ ______ _____ _____ _____ _________.
___ _________ ____ ______ ___ ________ _____ ______ _________.
____ _________ __________ ____ ______ __________ _____.
___ __________ ________ _______ ________ __________ _____ _____.
_________ _________ __________ ______ __________ ______ _________ __________.
___ ________ ______ ________ ________ _____ ________ ______ ___ ______.
______ __________ ________ ________ _____.
_________ __________ __________ __________ ______ __________ ________ ____ ________ _________.
_________ ___ __________ ____ ________ __________ _________ _____.
_____ _______ __________ _____ ___ _________ _______ ___.
___ _______ ______ ___ _________ ______ _________ ________ ______.
____ _____ _____ ________ ______ _______ _________ ________ _____ _________.
___ ___ _______ __________ ______ _________ _______ ___ ______ ___ ________.
___ ___ ______ ______ ________ ______.
________ ____ _______ ________ ________ _____ ___ _________ _____.
_________ ___ ________ _________ ______ __________.
___ _______ ____ _________ _______.
_________ __________ ____ ____ _________.
______ _______ _____ __________ _________ ___ ___.
________ ___ ____ ___ __________ ___ _________ _______.
__________ ___ _______ __________ ______ _____.
________ ____ ___ ____ ________ ______ ________ _____.
_______ ________ ______ ________ _________ __________.
_______ _____ _____ _______ _____ _____ ____ _____ ________ _________.
Skip in 10
```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, 03H ; Byte array of size 6 .CODE .STARTUP ;
____ __________ _________ _________ __________ _______ ___ ________ ____.__________ ____ _________ ____ __________ _________ ________ __________.
_______ ________ ____ _______ ___ ______ ___ __________ __________ ___ __________.
__________ ____ ______ _________ ____ _______ _________ _________ ____ __________ ____ _________.
__________ ________ _________ _____ ____ _____ ________ ______ _____.
_______ _____ _____ _______ _______ _______.
__________ ________ ________ ______ _____ _____ _____ _________.
___ _________ ____ ______ ___ ________ _____ ______ _________.
____ _________ __________ ____ ______ __________ _____.
___ __________ ________ _______ ________ __________ _____ _____.
_________ _________ __________ ______ __________ ______ _________ __________.
___ ________ ______ ________ ________ _____ ________ ______ ___ ______.
______ __________ ________ ________ _____.
_________ __________ __________ __________ ______ __________ ________ ____ ________ _________.
_________ ___ __________ ____ ________ __________ _________ _____.
_____ _______ __________ _____ ___ _________ _______ ___.
___ _______ ______ ___ _________ ______ _________ ________ ______.
____ _____ _____ ________ ______ _______ _________ ________ _____ _________.
___ ___ _______ __________ ______ _________ _______ ___ ______ ___ ________.
___ ___ ______ ______ ________ ______.
________ ____ _______ ________ ________ _____ ___ _________ _____.
_________ ___ ________ _________ ______ __________.
___ _______ ____ _________ _______.
_________ __________ ____ ____ _________.
______ _______ _____ __________ _________ ___ ___.
________ ___ ____ ___ __________ ___ _________ _______.
__________ ___ _______ __________ ______ _____.
________ ____ ___ ____ ________ ______ ________ _____.
_______ ________ ______ ________ _________ __________.
_______ _____ _____ _______ _____ _____ ____ _____ ________ _________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.