10 likes | 112 Views
Homework #1. SUM START 4000 FIRST LDX ZERO LDCH TWO,X LDA ZERO LOOP ADD TABLE,X TIX COUNT JLT LOOP STA TOTAL RSUB TABLE RESW 2000 COUNT RESW 1 ZERO WORD 0 TWO BYTE C’@’
E N D
Homework #1 SUM START 4000 FIRST LDX ZERO LDCH TWO,X LDA ZERO LOOP ADD TABLE,X TIX COUNT JLT LOOP STA TOTAL RSUB TABLE RESW 2000 COUNT RESW 1 ZERO WORD 0 TWO BYTE C’@’ TOTAL RESW 1 END FIRST Translate the above code into object code. Your answer should contain information like figure 2.2 and figure 2.3.