[Solved]Lc 3 Displaying Sum Every 2 Input Values Data File Could Someone Please Help Stuck Couple Q37053027

LC-3 – displaying sum of every 2 input values from a datafile.
Could someone please help me with this. I have been stuck onthis for a couple of days. Any help is appreciated, Thankyou.
; Initialization ORIG LD LD AND ADD OUT x3000 R6, EMPTY R5, PTR R0, R0, #0 R0,R0, #10 ; R6 is the stack pointer ; R5 is pointer to characters : Print a new line REDO LDR R3, R5, #0 ; R3 gets character ; Test character for end of file ADD R4, R3, #-10 ; Test for end of line (ASCII xA) BRz EXIT LD R4. ZERO ADD R3, R3, R4 JSR CONV ADD R5, R5, #1 AND R4, R5, #1 BRz EVEN ADD R2, R3, #0 LD RO, PLUS OUT BRnzp REDO LD RO, EQUAL;’- OUT ; If done, quit : Get the decimal value from ASCII ; check odd/even Save the first operand to R2 EVEN ; Start calculation AND R3, R2, R3 ; The second operand is at R3 JSR CONV AND R0, R0,#0 ADD R0, R0, #10 OUT BRnzp REDO : Print a new line ; A subroutine to output a 3-digit decimal result CONV EXIT ; Halt machine HALT You now revise the program of the sample file (Q0.asm) so the output will display the addition result (sum) of every two input values from the “data.asm”. Save the program as the file Q1.asm. 009+008-017 008+007-015 007+006-013 006+005-011 005+004-009 004+003-007 003+002-005 002+001-003 Show transcribed image text ; Initialization ORIG LD LD AND ADD OUT x3000 R6, EMPTY R5, PTR R0, R0, #0 R0,R0, #10 ; R6 is the stack pointer ; R5 is pointer to characters : Print a new line REDO LDR R3, R5, #0 ; R3 gets character ; Test character for end of file ADD R4, R3, #-10 ; Test for end of line (ASCII xA) BRz EXIT LD R4. ZERO ADD R3, R3, R4 JSR CONV ADD R5, R5, #1 AND R4, R5, #1 BRz EVEN ADD R2, R3, #0 LD RO, PLUS OUT BRnzp REDO LD RO, EQUAL;’- OUT ; If done, quit : Get the decimal value from ASCII ; check odd/even Save the first operand to R2 EVEN ; Start calculation AND R3, R2, R3 ; The second operand is at R3 JSR CONV AND R0, R0,#0 ADD R0, R0, #10 OUT BRnzp REDO : Print a new line ; A subroutine to output a 3-digit decimal result CONV EXIT ; Halt machine HALT You now revise the program of the sample file (Q0.asm) so the output will display the addition result (sum) of every two input values from the “data.asm”. Save the program as the file Q1.asm. 009+008-017 008+007-015 007+006-013 006+005-011 005+004-009 004+003-007 003+002-005 002+001-003
Expert Answer
Answer to LC-3 – displaying sum of every 2 input values from a data file. Could someone please help me with this. I have been stuc… . . .
OR

