You are on page 1of 35

.

model small
.code
org 100h
start: jmp main
tt db "Sari-Sari Store$"
ca db "[c]andies$"
h db "c[h]ocolates$"
bb db "[b]ubblegums$"
ll db "[l]ollipops$"
bu db "Buy:[ ]$"
qt db "Qty:[ ] pcs$"
ba db "Buy again:[ ] [y]es or [n]o?$"
os db "Sorry, Out of Stock!$"
space db" $"
bura db" $"
dis db"[9]$"
main proc near
call title_up
call frame
call box
call box2
call box3
call box4
begin: call candiesfull
call chocolatesfull
call bubblegumfull
call lollipopsfull
call buy
call quantity
call buyagain
mali: mov dh,18
mov dl,20
mov ah,2
int 10h
mov ah,1
int 21h
cmp al,'c'
je tama
cmp al,'h'
je tama2continue
cmp al,'b'
je tama3continue
cmp al,'l'
je tama4continue
jne mali
begin0: jmp begin
tama: mov ah,2
mov dh,18
mov dl,32
int 10h
mov ah,1
int 21h
cmp al,39h
je candy9
cmp al,38h
je candy8
cmp al,37h
je candy7
cmp al,36h
je candy6
cmp al,35h
je candy5
cmp al,34h
je candy4
cmp al,33h
je candy3
cmp al,32h
je candy2
cmp al,31h
je candy1
cmp al,30h
je candy
jne tama
beginc:jmp begin0
candy: call candiesfull
call continue
jmp beginc
candy1: call pc1candy
jmp beginc
candy2: call pc2candy
jmp beginc
candy3: call pc3candy
jmp beginc
candy4: call pc4candy
jmp beginc
candy5: call pc5candy
jmp beginc
candy6: call pc6candy
jmp beginc
candy7: call pc7candy
jmp beginc
candy8: call pc8candy
jmp beginc
candy9: call candyOS
call erase
jmp beginc
tama2continue: jmp tama2
tama3continue: jmp tama3
tama4continue: jmp tama4
begin1: jmp beginc
tama2: mov ah,2
mov dh,18
mov dl,32
int 10h
mov ah,1
int 21h
cmp al,39h
je choco9
cmp al,38h
je choco8
cmp al,37h
je choco7
cmp al,36h
je choco6
cmp al,35h
je choco5
cmp al,34h
je choco4
cmp al,33h
je choco3
cmp al,32h
je choco2
cmp al,31h
je choco1
cmp al,30h
je choco
jne tama2
beginh: jmp begin1
choco: call chocolatesfull
call continue
jmp beginh
choco1: call pc1choco
jmp beginh
choco2: call pc2choco
jmp beginh
choco3: call pc3choco
jmp beginh
choco4: call pc4choco
jmp beginh
choco5: call pc5choco
jmp beginh
choco6: call pc6choco
jmp beginh
choco7: call pc7choco
jmp beginh
choco8: call pc8choco
jmp beginh
choco9: call chocoOS
call erase
jmp beginh
begin2: jmp beginh
tama3: mov ah,2
mov dh,18
mov dl,32
int 10h
mov ah,1
int 21h
cmp al,39h
je bubble9
cmp al,38h
je bubble8
cmp al,37h
je bubble7
cmp al,36h
je bubble6
cmp al,35h
je bubble5
cmp al,34h
je bubble4
cmp al,33h
je bubble3
cmp al,32h
je bubble2
cmp al,31h
je bubble1
cmp al,30h
je bubble
jne tama3
beginb: jmp begin2
bubble: call bubblegumfull
call continue
jmp beginb
bubble1: call pc1bubble
jmp beginb
bubble2: call pc2bubble
jmp beginb
bubble3: call pc3bubble
jmp beginb
bubble4: call pc4bubble
jmp beginb
bubble5: call pc5bubble
jmp beginb
bubble6: call pc6bubble
jmp beginb
bubble7: call pc7bubble
jmp beginb
bubble8: call pc8bubble
jmp beginb
bubble9: call bubbleOS
call erase
jmp beginb
begin3: jmp beginb
tama4: mov ah,2
mov dh,18
mov dl,32
int 10h
mov ah,1
int 21h
cmp al,39h
je lollipop9
cmp al,38h
je lollipop8
cmp al,37h
je lollipop7
cmp al,36h
je lollipop6
cmp al,35h
je lollipop5
cmp al,34h
je lollipop4
cmp al,33h
je lollipop3
cmp al,32h
je lollipop2
cmp al,31h
je lollipop1
cmp al,30h
je lollipop
jne tama4
beginl: jmp begin3
lollipop: call lollipopsfull
call continue
jmp beginl
lollipop1: call pc1lollipop
jmp beginl
lollipop2: call pc2lollipop
jmp beginl
lollipop3: call pc3lollipop
jmp beginl
lollipop4: call pc4lollipop
jmp beginl
lollipop5: call pc5lollipop
jmp beginl
lollipop6: call pc6lollipop
jmp beginl
lollipop7: call pc7lollipop
jmp beginl
lollipop8: call pc8lollipop
jmp beginl
lollipop9: call lollipopOS
call erase
jmp beginl
main endp
frame proc near
mov dl,10
mov dh,3
mov ah,2
int 10h
mov dl, 201
int 21h
mov cx,58
mov dl,205
x: int 21h
loop x
mov dl,187
int 21h
call down
mov cx,17
mov dh,4
y: mov dl,10
int 10h
mov dl,186
int 21h
mov dl,69
int 10h
mov dl,186
int 21h
call down
inc dh
loop y
call down
mov dl,10
mov dh,21
int 10h
mov dl,200
int 21h
mov cx,58
mov dl,205
z: int 21h
loop z
mov dl,188
int 21h
ret
frame endp
down proc near
mov ah,2
mov dl,10
int 21h
mov dl,13
int 21h
ret
down endp
title_up proc near
mov dl,33
mov dh,5
mov ah,2
int 10h
mov ah,9
lea dx, tt
int 21h
ret
title_up endp
box proc near
mov ah,2
mov dl,15
mov dh, 8
int 10h
mov dl,218
int 21h
mov cx,7
mov dl,196
a: int 21h
loop a
mov dl,191
int 21h
call down
mov cx,5
mov dh,9
b: mov dl,15
int 10h
mov dl,179
int 21h
mov dl,23
int 10h
mov dl,179
int 21h
call down
inc dh
loop b
mov dl,15
mov dh,14
int 10h
mov dl,192
int 21h
mov cx,7
mov dl,196
c: int 21h
loop c
mov dl,217
int 21h
mov dl,15
mov dh,15
int 10h
mov ah,9
lea dx, ca
int 21h
ret
box endp
box2 proc near
mov ah,2
mov dl,28
mov dh, 8
int 10h
mov dl,218
int 21h
mov cx,7
mov dl,196
d: int 21h
loop d
mov dl,191
int 21h
call down
mov cx,5
mov dh,9
e: mov dl,28
int 10h
mov dl,179
int 21h
mov dl,36
int 10h
mov dl,179
int 21h
call down
inc dh
loop e
mov dl,28
mov dh,14
int 10h
mov dl,192
int 21h
mov cx,7
mov dl,196
f: int 21h
loop f
mov dl,217
int 21h
mov dl,26
mov dh,15
int 10h
mov ah,9
lea dx, h
int 21h
ret
box2 endp
box3 proc near
mov ah,2
mov dl,41
mov dh, 8
int 10h
mov dl,218
int 21h
mov cx,7
mov dl,196
g: int 21h
loop g
mov dl,191
int 21h
call down
mov cx,5
mov dh,9
i: mov dl,41
int 10h
mov dl,179
int 21h
mov dl,49
int 10h
mov dl,179
int 21h
call down
inc dh
loop i
mov dl,41
mov dh,14
int 10h
mov dl,192
int 21h
mov cx,7
mov dl,196
j: int 21h
loop j
mov dl,217
int 21h
mov dl,40
mov dh,15
int 10h
mov ah,9
lea dx, bb
int 21h
ret
box3 endp
box4 proc near
mov ah,2
mov dl,55
mov dh, 8
int 10h
mov dl,218
int 21h
mov cx,7
mov dl,196
k: int 21h
loop k
mov dl,191
int 21h
call down
mov cx,5
mov dh,9
l: mov dl,55
int 10h
mov dl,179
int 21h
mov dl,63
int 10h
mov dl,179
int 21h
call down
inc dh
loop l
mov dl,55
mov dh,14
int 10h
mov dl,192
int 21h
mov cx,7
mov dl,196
m: int 21h
loop m
mov dl,217
int 21h
mov dl,54
mov dh,15
int 10h
mov ah,9
lea dx, ll
int 21h
ret
box4 endp
candiesfull proc near
mov ah,2
mov dh,16
mov dl,18
int 10h
mov ah,9
lea dx,dis
int 21h
mov cx,5
mov ah,2
mov dh,13
mov dl,17
int 10h
mov dl,3
n: int 21h
loop n
mov dh,12
mov dl,17
int 10h
mov cx,3
mov dl,3
o: int 21h
loop o
mov dh,11
mov dl,17
int 10h
mov dl,3
int 21h
ret
candiesfull endp
chocolatesfull proc near
mov ah,2
mov dh,16
mov dl,31
int 10h
mov ah,9
lea dx,dis
int 21h
mov cx,5
mov ah,2
mov dh,13
mov dl,30
int 10h
mov dl,4
q: int 21h
loop q
mov dh,12
mov dl,32
int 10h
mov cx,3
mov dl,4
r: int 21h
loop r
mov dh,11
mov dl,34
int 10h
mov dl,4
int 21h
ret
chocolatesfull endp
bubblegumfull proc near
mov ah,2
mov dh,16
mov dl,44
int 10h
mov ah,9
lea dx,dis
int 21h
mov cx,5
mov ah,2
mov dh,13
mov dl,43
int 10h
mov dl,5
s: int 21h
loop s
mov dh,12
mov dl,44
int 10h
mov cx,3
mov dl,5
t: int 21h
loop t
mov dh,11
mov dl,45
int 10h
mov dl,5
int 21h
ret
bubblegumfull endp
lollipopsfull proc near
mov ah,2
mov dh,16
mov dl,58
int 10h
mov ah,9
lea dx,dis
int 21h
mov cx,5
mov ah,2
mov dh,13
mov dl,57
int 10h
mov dl,6
u: int 21h
loop u
mov dh,12
mov dl,57
int 10h
mov cx,4
mov dl,6
v: int 21h
loop v
ret
lollipopsfull endp
buy proc near
mov ah,2
mov dl,15
mov dh,18
int 10h
mov ah,9
lea dx,bu
int 21h
ret
buy endp
quantity proc near
mov ah,2
mov dh,18
mov dl,27
int 10h
mov ah,9
lea dx, qt
int 21h
ret
quantity endp
buyagain proc near
mov ah,2
mov dh,18
mov dl,40
int 10h
mov ah,9
lea dx, ba
int 21h
ret
buyagain endp
candyOS proc near
call display1
mov dl,30h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,17
c0: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop c0
mov dh,20
mov dl,32
int 10h
mov ah,9
lea dx,os
int 21h
call continue
ret
candyOS endp
pc8candy proc near
call display1
mov dl,31h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,17
c1: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop c1
mov dh,13
mov dl,17
int 10h
mov dl,3
int 21h
call continue
ret
pc8candy endp
pc7candy proc near
call display1
mov dl,32h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,17
c2: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop c2
mov dh,13
mov dl,17
int 10h
mov dl,3
int 21h
int 21h
call continue
ret
pc7candy endp
pc6candy proc near
call display1
mov dl,33h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,17
c3: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop c3
mov dh,13
mov dl,17
int 10h
mov cx,3
mov dl,3
a1: int 21h
loop a1
call continue
ret
pc6candy endp
pc5candy proc near
call display1
mov dl,34h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,17
c4: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop c4
mov dh,13
mov dl,17
int 10h
mov cx,4
mov dl,3
a2: int 21h
loop a2
call continue
ret
pc5candy endp
pc4candy proc near
call display1
mov dl,35h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,17
c5: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop c5
mov dh,13
mov dl,17
int 10h
mov cx,5
mov dl,3
a3: int 21h
loop a3
call continue
ret
pc4candy endp
pc3candy proc near
call display1
mov dl,36h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,17
c6: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop c6
mov dh,13
mov dl,17
int 10h
mov cx,5
mov dl,3
a4: int 21h
loop a4
mov dl,17
mov dh,12
int 10h
mov dl,3
int 21h
call continue
ret
pc3candy endp
pc2candy proc near
call display1
mov dl,37h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,17
c7: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop c7
mov dh,13
mov dl,17
int 10h
mov cx,5
mov dl,3
a5: int 21h
loop a5
mov dl,17
mov dh,12
int 10h
mov dl,3
int 21h
int 21h
call continue
ret
pc2candy endp
pc1candy proc near
call display1
mov dl,38h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,17
c8: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop c8
mov dh,13
mov dl,17
int 10h
mov cx,5
mov dl,3
a6: int 21h
loop a6
mov dl,17
mov dh,12
int 10h
mov cx,3
mov dl,3
s1: int 21h
loop s1
call continue
ret
pc1candy endp
chocoOS proc near
call display2
mov dl,30h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,29
cc0: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop cc0
mov dh,20
mov dl,32
int 10h
mov ah,9
lea dx,os
int 21h
call continue
ret
chocoOS endp
pc8choco proc near
call display2
mov dl,31h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,30
cc1: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop cc1
mov dh,13
mov dl,30
int 10h
mov dl,4
int 21h
call continue
ret
pc8choco endp
pc7choco proc near
call display2
mov dl,32h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,30
cc2: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop cc2
mov dh,13
mov dl,30
int 10h
mov dl,4
int 21h
int 21h
call continue
ret
pc7choco endp
pc6choco proc near
call display2
mov dl,33h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,30
cc3: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop cc3
mov dh,13
mov dl,30
int 10h
mov cx,3
mov dl,4
qq1: int 21h
loop qq1
call continue
ret
pc6choco endp
pc5choco proc near
call display2
mov dl,34h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,30
cc4: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop cc4
mov dh,13
mov dl,30
int 10h
mov cx,4
mov dl,4
qq2: int 21h
loop qq2
call continue
ret
pc5choco endp
pc4choco proc near
call display2
mov dl,35h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,30
cc5: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop cc5
mov dh,13
mov dl,30
int 10h
mov cx,5
mov dl,4
qq3: int 21h
loop qq3
call continue
ret
pc4choco endp
pc3choco proc near
call display2
mov dl,36h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,30
cc6: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop cc6
mov dh,13
mov dl,30
int 10h
mov cx,5
mov dl,4
qq4: int 21h
loop qq4
mov dh,12
mov dl,32
int 10h
mov dl,4
int 21h
call continue
ret
pc3choco endp
pc2choco proc near
call display2
mov dl,37h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,30
cc7: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop cc7
mov dh,13
mov dl,30
int 10h
mov cx,5
mov dl,4
qq5: int 21h
loop qq5
mov dh,12
mov dl,32
int 10h
mov dl,4
int 21h
int 21h
call continue
ret
pc2choco endp
pc1choco proc near
call display2
mov dl,38h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,30
cc8: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop cc8
mov dh,13
mov dl,30
int 10h
mov cx,5
mov dl,4
qq6: int 21h
loop qq6
mov dh,12
mov dl,32
int 10h
mov cx,3
mov dl,4
s11: int 21h
loop s11
call continue
ret
pc1choco endp
bubbleOS proc near
call display3
mov dl,30h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,43
b0: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop b0
mov dh,20
mov dl,32
int 10h
mov ah,9
lea dx,os
int 21h
call continue
ret
bubbleOS endp
pc8bubble proc near
call display3
mov dl,31h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,43
b1: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop b1
mov dh,13
mov dl,43
int 10h
mov dl,5
int 21h
call continue
ret
pc8bubble endp
pc7bubble proc near
call display3
mov dl,32h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,43
b2: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop b2
mov dh,13
mov dl,43
int 10h
mov dl,5
int 21h
int 21h
call continue
ret
pc7bubble endp
pc6bubble proc near
call display3
mov dl,33h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,43
b3: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop b3
mov dh,13
mov dl,43
int 10h
mov cx,3
mov dl,5
ww1: int 21h
loop ww1
call continue
ret
pc6bubble endp
pc5bubble proc near
call display3
mov dl,34h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,43
b4: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop b4
mov dh,13
mov dl,43
int 10h
mov cx,4
mov dl,5
ww2: int 21h
loop ww2
call continue
ret
pc5bubble endp
pc4bubble proc near
call display3
mov dl,35h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,43
b5: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop b5
mov dh,13
mov dl,43
int 10h
mov cx,5
mov dl,5
ww3: int 21h
loop ww3
call continue
ret
pc4bubble endp
pc3bubble proc near
call display3
mov dl,36h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,43
b6: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop b6
mov dh,13
mov dl,43
int 10h
mov cx,5
mov dl,5
ww4: int 21h
loop ww4
mov dh,12
mov dl,44
int 10h
mov dl,5
int 21h
call continue
ret
pc3bubble endp
pc2bubble proc near
call display3
mov dl,37h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,43
b7: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop b7
mov dh,13
mov dl,43
int 10h
mov cx,5
mov dl,5
ww5: int 21h
loop ww5
mov dh,12
mov dl,44
int 10h
mov dl,5
int 21h
int 21h
call continue
ret
pc2bubble endp
pc1bubble proc near
call display3
mov dl,38h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,43
b8: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop b8
mov dh,13
mov dl,43
int 10h
mov cx,5
mov dl,5
ww6: int 21h
loop ww6
mov dh,12
mov dl,44
int 10h
mov cx,3
mov dl,5
e11: int 21h
loop e11
call continue
ret
pc1bubble endp
lollipopOS proc near
call display4
mov dl,30h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,57
l0: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop l0
mov dh,20
mov dl,32
int 10h
mov ah,9
lea dx,os
int 21h
call continue
ret
lollipopOS endp
pc8lollipop proc near
call display4
mov dl,31h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,57
l1: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop l1
mov dh,13
mov dl,57
int 10h
mov dl,6
int 21h
call continue
ret
pc8lollipop endp
pc7lollipop proc near
call display4
mov dl,32h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,57
l2: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop l2
mov dh,13
mov dl,57
int 10h
mov dl,6
int 21h
int 21h
call continue
ret
pc7lollipop endp
pc6lollipop proc near
call display4
mov dl,33h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,57
l3: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop l3
mov dh,13
mov dl,57
int 10h
mov cx,3
mov dl,6
zz1: int 21h
loop zz1
call continue
ret
pc6lollipop endp
pc5lollipop proc near
call display4
mov dl,34h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,57
l4: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop l4
mov dh,13
mov dl,57
int 10h
mov cx,4
mov dl,6
zz2: int 21h
loop zz2
call continue
ret
pc5lollipop endp
pc4lollipop proc near
call display4
mov dl,35h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,57
l5: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop l5
mov dh,13
mov dl,57
int 10h
mov cx,5
mov dl,6
zz3: int 21h
loop zz3
call continue
ret
pc4lollipop endp
pc3lollipop proc near
call display4
mov dl,36h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,57
l6: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop l6
mov dh,13
mov dl,57
int 10h
mov cx,5
mov dl,6
zz4: int 21h
loop zz4
mov dl,57
mov dh,12
int 10h
mov dl,6
int 21h
call continue
ret
pc3lollipop endp
pc2lollipop proc near
call display4
mov dl,37h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,57
l7: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop l7
mov dh,13
mov dl,57
int 10h
mov cx,5
mov dl,6
zz5: int 21h
loop zz5
mov dl,57
mov dh,12
int 10h
mov dl,6
int 21h
int 21h
call continue
ret
pc2lollipop endp
pc1lollipop proc near
call display4
mov dl,38h
int 21h
mov cx,3
mov ah,2
mov dh,11
mov dl,57
l8: int 10h
push dx
mov ah,9
lea dx,space
int 21h
mov ah,2
pop dx
inc dh
loop l8
mov dh,13
mov dl,57
int 10h
mov cx,5
mov dl,6
zz6: int 21h
loop zz6
mov dl,57
mov dh,12
int 10h
mov cx,3
mov dl,6
xx1: int 21h
loop xx1
call continue
ret
pc1lollipop endp
continue proc near
sige: mov ah,2
mov dl,51
mov dh,18
int 10h
mov ah,1
cmp al,'y'
je again
int 21h
cmp al,'n'
je tapos
jne sige
tapos: int 20h
again: ret
continue endp
erase proc near
mov ah,2
mov dl,32
mov dh,20
int 10h
mov ah,9
lea dx,bura
int 21h
ret
erase endp
display1 proc near
mov ah,2
mov dh,16
mov dl,19
int 10h
ret
display1 endp
display2 proc near
mov ah,2
mov dh,16
mov dl,32
int 10h
ret
display2 endp
display3 proc near
mov ah,2
mov dh,16
mov dl,45
int 10h
ret
display3 endp
display4 proc near
mov ah,2
mov dh,16
mov dl,59
int 10h
ret
display4 endp
end start

You might also like