Question
Write an Assembly language program for microcontroller 8051 to compute the average of 6 bytes data stored from RAM location 45H and store the result at RAM location 30H.
Answer :
Word Count : 112
_____ _______ __________ ______ ____.
____ _____ ____ _______ ___ _____ ________ _________ _______ ________ _____ ________.
__________ __________ _________ ____ _____ __________ _______ ______ ______ _________ _________ ___.
_____ __________ ______ ___ _________.
________ _______ ___ ______ ______ __________ ___.
__________ ________ _______ __________ ____ ________ ______ ___ _____ __________ __________.
____ ____ ____ ____ ________ ___.
_______ _________ ________ _______ _______ _______ _____.
_________ _______ ______ ______.
Skip in 10
ORG 0000H MOV R0, #45H ; Initialize R0 to point to first data byte MOV A, #00H ; Clear accumulator for sum MOV R1, #06H ; Set counter for 6 bytes AGAIN:
______ __________ ____ ____ ___ _______ ___ ___ ___ _____ ____._____ _______ __________ ______ ____.
____ _____ ____ _______ ___ _____ ________ _________ _______ ________ _____ ________.
__________ __________ _________ ____ _____ __________ _______ ______ ______ _________ _________ ___.
_____ __________ ______ ___ _________.
________ _______ ___ ______ ______ __________ ___.
__________ ________ _______ __________ ____ ________ ______ ___ _____ __________ __________.
____ ____ ____ ____ ________ ___.
_______ _________ ________ _______ _______ _______ _____.
_________ _______ ______ ______.
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.