mit:
loop:
loopbody:
iterate:
loco |
1 | |
stod |
i | |
loco |
1 | |
stod |
incr |
/keep it generał |
lodd |
X | |
stod |
iend |
/just to keep it |
loco |
0 | |
stod |
z |
/z: =0 |
lodd |
i | |
subd |
iend |
/and if this is > |
jneg |
loopbody | |
jzer |
loopbody | |
jump |
end |
/i > iend, so we> |
lodd |
z | |
addd |
y | |
stod |
z | |
lodd |
i | |
addd |
incr | |
stod |
i | |
jump |
loop |
neg’ or do loop again
end:
If init: is at 100H, then end: will be 115H — why?