Lab Assesement - 3
Sum _@ Number
Atm:
To write ALP for aum % on numbers Laing.
£086 emu i
Alcortm:
ope sx by fe value toot
load te value SE info CL
i) Decomett CL fy!
MTeromont SD i
Dlad Ae Value st info AL
vi) Incemont ST by | ‘
vidlakel back - toad fa Valea ST tolo BL
Add AL and B
vit) Increment SE by}
I) Decrront cL bay |
x) Sump b Saber ce until fo viaudt gto
4 yout Is O bead tHe Value |200f{ nfo DI
Wi) Sore Fe vole AL int oyset DE
Mi) Halt Fo Progrom
Aystom Required :
ystom Requit =
se eatt ‘ eeof’
org \ooH
inv ST, Now
mov CL, [8rJ
DEC CE
rnc $L
mov At, fst
VC” Se
Back:
MoV BL, [sr]
PDb OL, BL
inc a
DEC CL
tv2 Bak
MoV Dt, |200H
inoV Cor SAL
Hat
Tipu
loo 3 OS
lol 30]
1\02 70
lol 20)
al" Oe Se
)a ace to caccopt He chorea én
keyboarck and disphy dung emus0s b
a Move He veua_ o/h jedo ho AH rage ste ahh
js lod hal apt
3. Tage an inkooupt 2h to Joput a chiral
{. Move Yalus from ALC (te inp charter )
info Ha. be vegestes
y 0
6 Tigger O° oa inforup) 2th to oul He
charechya Stored ih DL
+ Taminade the program (enit)
Selhware vequired ;
The aygitom vuquindk is amu coremain ae
may aN i
IM DI
mov olf, all
mov’ ah, a2h
int ath
“out
fron ondP
ond man
DS
Culpa
Ps
> Ban a simple. charedker gn seven
dt tp CS I
2 Mey Pe fiscll velue gf He chader 'D°A Se Re OH vegecor to 2, hrch 4g He fonts)
numbs, for displaying @ single charadlea in Dos «
Ss Set tee end fe main proodume
o- end dh program.
Seftoare Required:
the stone “eq veel Js emusOso
CodeV pie!
Mes
2