Ask your own question, for FREE!
OpenStudy Feedback 16 Online
OpenStudy (anonymous):

Write a program that defines 100 bytes in DATA SEGMENT with Label LIST_A and 50 bytes in EXTRA SEGMENT with Label LIST_B. The Program Code Receives 50BCD Number At DATA Port in unpacked Form and save At Even memory Address of LIST_A and Store 0 at Odd memory locations ,After Successful saving copy only saved BCD Number from LIST_A to LIST_B

OpenStudy (anonymous):

I think i can help you. This ASM program starts from here: ;Define Part DATA SEGMENT LIST_A DB 100 DUP(?) DATA ENDS EXTRA SEGMENT LIST_B DB 50 DUP(?) EXTRA ENDS ;I assume that CPU and I/O Interface are in unconditional transfer mode ;Receiving Part MOV AX,DATA MOV DS,AX MOV CX,50 LEA SI,LIST_A LOP: IN AL,DATA ; DATA is a port MOV [SI],AL INC SI MOV AL,0H MOV [SI],AL INC SI LOOP LOP ;Copy BCD from A to B MOV CX,50 LEA SI,LIST_A LEA DI,LIST_B LOP2: MOVS BYTE PTR [DI],BYTE PTR [SI] INC SI INC SI INC DI LOOP LOP2

OpenStudy (callisto):

Please post this question in the Computer Science group. Thank you. Link to the Computer Science group: http://openstudy.com/study#/groups/Computer%20Science

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Breathless: Spooky witch but cute
5 hours ago 3 Replies 0 Medals
Arriyanalol: help
5 hours ago 10 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
1 day ago 5 Replies 4 Medals
Jaded012023: Please tell me what you all think of this song
7 hours ago 6 Replies 1 Medal
Arriyanalol: bro how
7 hours ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
1 day ago 12 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!