PPT Slide
EVALUATION OF PROGRAMfS ACTION
The studentfs program
P1 START
LEA GR2,0
LD GR1,C0
L ADD GR2,DATA,GR1
ADD GR1,C1
CPA GR1,CN
JMI LOOP
ST G2,ANS
EXIT
CN DC 3
DATA DC 10
DC 20
DC 30
ANS DS 1
C0 DC 0
:
Input:
N 1 5
DATA 5 1 2 3 4 5
Output:
SUM 1 15
Input:
N 1 3
DATA 5 10 -2 0
Output:
SUM 1 8
:
Replace
Compare
Sample data
Previous slide
Next slide
Return to the first slide
Graphics