Write and run an 8086-assembly language program that accepts two input digits from the keyboard and converts it into a two-digit packed BCD number. This resultant number should be stored in a byte location in the memory. For example, if you input digit ‘3’ and ‘5’ then it should be converted to packed BCD number 35, which is 001101012. This result should be stored in a byte memory location
8086 assembly language program that accepts two input digits from the keyboard and converts them into a two-digit packed BCD number:
;Accept two input digits from the keyboard
mov ah,1 ;function code for keyboard input
int 21h _____ __________ ______ _________ _____.
___ ______ _____ ___ _____ ___ ___ _____ ____ ________ ___.
_________ ___ ________ ____ ________ ________.
_________ _____ ________ __________ ________ ______ ______ _________ ____ __________ __________ _______.
__________ ___ _______ _______ _____.
_______ _____ _________ ____ ___ _____ _________ _____.
________ __________ ______ _________ ____.
________ ___ _______ ___ ________ _____ __________ ___ __________ ______ ____ __________.
_____ ________ ___ _________ ___ ____ _________ ______ __________ ________ ________ ______.
_____ ___ ________ _____ ____ _______.
_____ __________ _____ ________ ____ _________ _____.
__________ __________ _________ ___ ______ ______.
____ _________ _______ ______ _________ _________ ________.
______ _______ _______ ________ ______ __________ ________ ______.
__________ ________ ______ ___ _____.
___ ________ ___ ________ __________ __________ ______ ________ ________ ________.
________ _________ _____ _______ ________ _____ __________ __________ ________ __________ ___.
____ ___ _____ _____ _________ ____.
______ ________ ________ ___ ______ _________ ___.
______ _________ ______ ______ _______ __________ ____.
________ ______ __________ ________ __________ __________ ________ _____ _________.
_________ ______ __________ ________ _____ _____ ______ _________ _____ _____ ___ ___.
____ ____ _____ ____ ____ _____ _______ _______ ____.
______ _________ ____ ___ ___ ____ ________ _________.
____ ________ ____ _________ __________ __________ _____ ________ _________ ______.
____ _____ ________ ________ _______.
Get Full Answer on WhatsApp