Question

Please write a program in assembly language to realize the following functions: given 100 8-bit binary...

Please write a program in assembly language to realize the following functions: given 100 8-bit binary Numbers stored in storage DATA1 (the specific value is unknown), calculate their MEAN value and coexist in the storage unit MEAN.

0 0
Add a comment Improve this question Transcribed image text
Answer #1


1) MOV SI, 500   (Assign value 500 in SI and 600 in DI)
2) MOV DI, (Move the contents of [SI] in CL)
3) MOV AX, 0000 (Move 0000 in AX)
4) MOV CL, [SI]   (Move the contents of CL to BL)
5) MOV BL, CL   (copy contents of CL to BL)
6) INC SI   (Increment the value of SI by 1)
7) ADD AL, [SI]   (Add the contents of AL and [SI])
8) ADC AH, 00   (Add 00 to AH with previous carry)
9) INC SI           (Increment the value of SI by 1)
10) DEC CL           (Decrements the value of CL by 1)
11) JNZ 40E          
12) 1DIV BL   (Divide the contents of AX by BL)
13) MOV [DI], AX   (Move the contents of AX in [DI])
14) HLT           (Halt the program)

Add a comment
Know the answer?
Add Answer to:
Please write a program in assembly language to realize the following functions: given 100 8-bit binary...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT