Click to See Complete Forum and Search --> : please anyone help in my lc3 program i don't know wat's wrong in that


lucky123
March 29th, 2006, 11:05 AM
Write an assembly lc3 language program to read in a tw0 digit decimal number whose digits add up to less than 18 and then display the sum of those digits in the next line
for example 99=9+9=18


.ORIG x3050
AND R0,R0,#0
AND R1,R1,#0
GETC
ST R0,CHAR1
GETC
ST R1,CHAR2
ADD R1,R1,R0
LEA R1,MSG1
HALT
;Data
MSG1 .STRINGZ "Output"
CHAR1 .BLKW 1
CHAR2 .BLKW 1
.END