Question
Write a program in 8086 assembly language program to divide a 16-bit number stored in memory locations 2501 and 2502 H with an 8-bit divisor stored in the memory location 2503 H. Store the quotient in 2504 H and remainder in 2505 H.
Answer :
Word Count : 419
____ __________ _______ _____ _________ ___ ______ _________.
______ __________ ______ ___ __________ __________ _________.
____ _______ ______ _________ ___.
____ _________ _______ ______ _________ _________ _________ ____ _________ _____.
_______ ___ __________ __________ ______ _______ ________ _____ ____ __________.
__________ ______ ________ _____ __________ ___ ___ ________ ________ ____ ______.
__________ _______ _________ __________ _____ ____ ____ ______ __________ _______ ____.
___ ___ _______ ____ _________ _____ _______ _________ ____ ___.
__________ ___ ________ ______ _______ _____ _____.
_______ _____ _____ ___ _______ ______.
_______ ______ _________ ________ ________ ___ __________ __________ _____ _____ _____.
__________ _____ ________ ______ __________ _________ ________ ___.
_____ _________ __________ _____ ______ _________ _____ __________ ____ _______.
__________ _________ _______ ____ ____.
_____ ________ ______ ___ __________ __________ _________ ______ __________ ______ ________ ___.
______ _____ ___ ________ ___ ______ ________ _________ _____.
___ ________ _______ ____ _____.
___ ________ _____ ________ __________ _______ _______ ______ _____ ____ ____ ___.
___ _______ ______ ________ _______ __________ ______ ___ ________ _______ _______ ________.
_______ ___ ____ ____ _________ ________ ____ _________ _____ ____ __________.
__________ ____ _____ _______ _______ ________ __________ ______ ______ _____ _____ _________.
____ ___ __________ _______ _____.
____ ________ ____ _____ ____ ___ ___ ________ __________.
____ ____ _________ _______ __________ _________ _____.
___ _____ ______ _________ __________ ____ _____ __________ _________ _________.
__________ ___ _______ __________ ________ ______ __________.
________ ____ ______ ____ _____ __________ _______ __________ _______.
__________ _____ ___ ___ ________ ___ ______ ________.
______ ______ _____ _________ ___ _____ _______ ___.
______ ____ ___ _______ ______ ________.
__________ ____ _____ _____ ____ _______ __________.
_______ ________ ___ ________ ________ ______ ___ ____ __________ _________ ___ ____.
______ _______ _________ _________ _______ ___ _____ ____ ___.
____ ______ _________ _______ ________ ___ _______ ___ __________ ___.
__________ _______ ___ ______ _________.
_________ _____ ___ ______ ______ _________ _______ ________ ________ ____.
Skip in 10
Here is the 8086 assembly language program to divide a 16-bit number stored in memory locations `2501` and `2502` by an 8-bit divisor stored in the memory location `2503`. The quotient will be stored in `2504` and the remainder in `2505`:
```assembly
.model small
.data
num1 db 0x01, 0x25 ; 16-bit number (2501H:2502H)
divisor db 0x08 ; 8-bit divisor (2503H)
quotient db 0 ; 8-bit quotient (2504H)
remainder db 0 ; 8-bit remainder (2505H)
.code
______ __________ ______ ___ __________ __________ _________.
____ _______ ______ _________ ___.
____ _________ _______ ______ _________ _________ _________ ____ _________ _____.
_______ ___ __________ __________ ______ _______ ________ _____ ____ __________.
__________ ______ ________ _____ __________ ___ ___ ________ ________ ____ ______.
__________ _______ _________ __________ _____ ____ ____ ______ __________ _______ ____.
___ ___ _______ ____ _________ _____ _______ _________ ____ ___.
__________ ___ ________ ______ _______ _____ _____.
_______ _____ _____ ___ _______ ______.
_______ ______ _________ ________ ________ ___ __________ __________ _____ _____ _____.
__________ _____ ________ ______ __________ _________ ________ ___.
_____ _________ __________ _____ ______ _________ _____ __________ ____ _______.
__________ _________ _______ ____ ____.
_____ ________ ______ ___ __________ __________ _________ ______ __________ ______ ________ ___.
______ _____ ___ ________ ___ ______ ________ _________ _____.
___ ________ _______ ____ _____.
___ ________ _____ ________ __________ _______ _______ ______ _____ ____ ____ ___.
___ _______ ______ ________ _______ __________ ______ ___ ________ _______ _______ ________.
_______ ___ ____ ____ _________ ________ ____ _________ _____ ____ __________.
__________ ____ _____ _______ _______ ________ __________ ______ ______ _____ _____ _________.
____ ___ __________ _______ _____.
____ ________ ____ _____ ____ ___ ___ ________ __________.
____ ____ _________ _______ __________ _________ _____.
___ _____ ______ _________ __________ ____ _____ __________ _________ _________.
__________ ___ _______ __________ ________ ______ __________.
________ ____ ______ ____ _____ __________ _______ __________ _______.
__________ _____ ___ ___ ________ ___ ______ ________.
______ ______ _____ _________ ___ _____ _______ ___.
______ ____ ___ _______ ______ ________.
__________ ____ _____ _____ ____ _______ __________.
_______ ________ ___ ________ ________ ______ ___ ____ __________ _________ ___ ____.
______ _______ _________ _________ _______ ___ _____ ____ ___.
____ ______ _________ _______ ________ ___ _______ ___ __________ ___.
__________ _______ ___ ______ _________.
_________ _____ ___ ______ ______ _________ _______ ________ ________ ____.
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.