.model small .code org 100h start: jmp main a db "Welcome!

$" b db "What do you want to do: [A]dd$" c db " [R]emove$" d db "Items to be added:$" e db "Items to be removed:$" f db "Do you want to make another transaction?$" g db " [Y]es$" h db " [N]o$" i db " j db "5$" k db " Thank You !!!!$" l db " Error.....$" m db "Enter Password: $" n db "What do you want? [C]hocolates$" o db " [L]ollipops$" p db "Chocolates$" q db "Lollipops$" newl proc near mov ah,2 mov dl,0ah int 21h mov dl,0dh int 21h ret newl endp main proc near mov bl,"5" ;stock mov bh,"5" push bx mov ah, 6 mov bh, 173 mov cl, 9 mov ch, 0 mov dl, 69 mov dh, 24 int 10h mov ah, 6 mov bh, 144 mov cl, 17 mov ch, 7 mov dl, 27

$"

mov dh, 13 int 10h mov ah, 6 mov bh, 144 mov cl, 15 mov ch, 6 mov dl, 29 mov dh, 6 int 10h mov ah, 6 mov bh, 144 mov cl, 16 mov ch, 5 mov dl, 28 mov dh, 5 int 10h mov ah, 6 mov bh, 144 mov cl, 17 mov ch, 4 mov dl, 27 mov dh, 4 int 10h mov ah, 6 mov bh, 144 mov cl, 18 mov ch, 3 mov dl, 26 mov dh, 3 int 10h mov ah, 6 mov bh, 144 mov cl, 19 mov ch, 2 mov dl, 25 mov dh, 2 int 10h mov ah, 6 mov bh, 144 mov cl, 20 mov ch, 1 mov dl, 24 mov dh, 1 int 10h

mov ah, 6 mov bh, 144 mov cl, 21 mov ch, 0 mov dl, 23 mov dh, 0 int 10h mov ah, 6 mov bh, 144 mov cl, 49 mov ch, 7 mov dl, 59 mov dh, 13 int 10h mov ah, 6 mov bh, 144 mov cl, 47 mov ch, 6 mov dl, 61 mov dh, 6 int 10h mov ah, 6 mov bh, 144 mov cl, 48 mov ch, 5 mov dl, 60 mov dh, 5 int 10h mov ah, 6 mov bh, 144 mov cl, 49 mov ch, 4 mov dl, 59 mov dh, 4 int 10h mov ah, 6 mov bh, 144 mov cl, 50 mov ch, 3 mov dl, 58 mov dh, 3 int 10h mov ah, 6

mov bh, 144 mov cl, 51 mov ch, 2 mov dl, 57 mov dh, 2 int 10h mov ah, 6 mov bh, 144 mov cl, 52 mov ch, 1 mov dl, 56 mov dh, 1 int 10h mov ah, 6 mov bh, 144 mov cl, 53 mov ch, 0 mov dl, 55 mov dh, 0 int 10h mov ah, 6 mov bh, 204 mov cl, 18 mov ch, 8 mov dl, 26 mov dh, 12 int 10h mov ah, 6 mov bh, 121 mov cl, 19 mov ch, 9 mov dl, 25 mov dh, 11 int 10h mov ah, 6 mov bh, 204 mov cl, 50 mov ch, 8 mov dl, 58 mov dh, 12 int 10h mov ah, 6 mov bh, 121 mov cl, 51

mov ch, 9 mov dl, 57 mov dh, 11 int 10h mov ah, 6 mov bh, 249 mov cl, 11 mov ch, 15 mov dl, 67 mov dh, 23 int 10h mov ah,2 mov dl,17 mov dh,6 mov bh, 0 int 10h mov ah,9 mov dx,offset p int 21h mov ah,2 mov dl,22 mov dh,10 mov bh, 0 int 10h mov ah,9 mov dx,offset j int 21h mov ah,2 mov dl,50 mov dh,6 mov bh, 0 int 10h mov ah,9 mov dx,offset q int 21h mov ah,2 mov dl,54 mov dh,10 mov bh, 0 int 10h mov ah,9

mov dx,offset j int 21h mov ah,2 mov dl,20 mov dh,16 mov bh, 0 int 10h mov ah,2 mov dl,25 mov dh,19 int 10h mov ah,9 mov dx, offset m int 21h mov ah,2 mov dl,42 mov dh,19 int 10h mov ah,7 int 21h mov bl,al mov ah,2 mov dl,"*" int 21h mov ah,7 int 21h mov cl,al mov ah,2 mov dl,"*" int 21h mov ah,7 int 21h mov bh,al mov ah,2 mov dl,"*" int 21h cmp bl,"s" je org1 jne exit5

org1: cmp cl,"h" je org2 jne exit5 org2: cmp bh,"e" je she jne exit5 she: mov ah,2 mov dl,0ah int 21h mov dl,0dh int 21h mov ah,2 mov bh,0 mov dl,20 mov dh,16 int 10h mov ah,9 mov dx, offset a int 21h call newl mov ah,2 mov dl,20 mov dh,17 int 10h mov ah,9 mov dx, offset n int 21h call newl mov ah,2 mov dl,20 mov dh,18 int 10h jmp cont9 ;bridge exit exit5: jmp exit4 cont9: mov ah,9 mov dx, offset o int 21h

call newl mov ah,2 mov bh,0 mov dl,50 mov dh,18 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov bh,0 mov dl,20 mov dh,19 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov bh,0 mov dl,20 mov dh,20 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov bh,0 mov dl,20 mov dh,21 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov bh,0 mov dl,20 mov dh,22 int 10h mov ah,9 mov dx,offset i

int 21h mov ah,2 mov bh,0 mov dl,20 mov dh,19 int 10h mov ah,7 int 21h cmp al,"c" je tuloy cmp al,"l" je tuloy12 tuloy: mov ah,2 mov bh,0 mov dl,20 mov dh,17 int 10h mov ah,9 mov dx, offset b int 21h call newl jmp cont8 ;bridge exit exit4: jmp exit3 cont8: mov ah,2 mov dl,49 mov dh,17 int 10h mov ah,9 mov dx, offset i int 21h call newl mov ah,2 mov dl,20 mov dh,18 int 10h mov ah,9

mov dx, offset c int 21h call newl jmp cont7 ;bridge to remove exit3: jmp exit cont7: mov ah,9 mov dx,offset i int 21h mov ah,2 mov dl,20 mov dh,20 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov dl,20 mov dh,21 int 10h jmp cont55 ;bridge tuloy12 tuloy12: jmp tuloy1 cont55: mov ah,9 mov dx,offset i int 21h mov ah,2 mov dl,20 mov dh,22 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov dl,20 mov dh,19 int 10h mov ah,7

int 21h cmp al,"a" je added cmp al,"r" je remove1 mov ah,1 int 21h sub al,"0" mov cl,al mov ah,2 mov dl,22 mov dh,10 mov bh, 0 int 10h pop bx sub bl,cl mov dl,bl int 21h push bx added: mov ah,2 mov dl,20 mov dh,19 int 10h mov ah,9 mov dx,offset d int 21h mov ah,1 int 21h sub al,"0" pop bx add bl,al push bx mov ah,2 mov dl,22 mov dh,10 mov bh, 0 int 10h

mov dl,bl int 21h mov ah,2 mov dl,40 mov dh,19 int 10h mov ah,2 mov dl,20 mov dh,20 int 10h mov ah,9 mov dx,offset f int 21h mov ah,2 mov dl,20 mov dh,21 int 10h jmp cont ;bridge to remove remove1: jmp remove cont: mov ah,9 mov dx,offset g int 21h mov ah,2 mov dl,20 mov dh,22 int 10h mov ah,9 mov dx,offset h int 21h mov ah,2 mov dl,61 mov dh,20 int 10h mov ah,1 int 21h mov ch,al cmp ch,"n"

je exit1 cmp ch,"y" jmp she jne exit2 ret remove: mov ah,2 mov dl,20 mov dh,19 int 10h mov ah,9 mov dx,offset e int 21h mov ah,1 int 21h sub al,"0" pop bx sub bl,al push bx mov ah,2 mov dl,22 mov dh,10 mov bh, 0 int 10h mov dl,bl int 21h mov ah,2 mov dl,40 mov dh,19 int 10h jmp cont5 exit2:jmp exit cont5: mov ah,2 mov dl,20 mov dh,20 int 10h jmp cont1

;bridge to exit exit1: jmp exit cont1: mov ah,9 mov dx,offset f int 21h mov ah,2 mov dl,20 mov dh,21 int 10h mov ah,9 mov dx,offset g int 21h mov ah,2 mov dl,20 mov dh,22 int 10h mov ah,9 mov dx,offset h int 21h mov ah,2 mov dl,61 mov dh,20 int 10h mov ah,1 int 21h mov ch,al cmp ch,"n" je exit7 cmp ch,"y" jmp she jne exit10 tuloy1: mov ah,2 mov bh,0 mov dl,20 mov dh,17 int 10h mov ah,9

mov dx, offset b int 21h call newl jmp cont12 ;bridge exit exit10: jmp exit7 cont12: mov ah,2 mov dl,49 mov dh,17 int 10h mov ah,9 mov dx, offset i int 21h call newl mov ah,2 mov dl,20 mov dh,18 int 10h mov ah,9 mov dx, offset c int 21h call newl jmp cont15 ;bridge to remove exit7: jmp exit cont15: mov ah,9 mov dx,offset i int 21h mov ah,2 mov dl,20 mov dh,20 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov dl,20

mov dh,21 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov dl,20 mov dh,22 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov dl,20 mov dh,19 int 10h mov ah,7 int 21h cmp al,"a" je added1 cmp al,"r" je remove12 mov ah,1 int 21h sub al,"0" mov cl,al mov ah,2 mov dl,54 mov dh,10 int 10h pop bx sub bh,cl push bx mov dl,bh int 21h added1: mov ah,2 mov dl,20

mov dh,19 int 10h mov ah,9 mov dx,offset d int 21h mov ah,1 int 21h sub al,"0" mov ah,2 mov bh,0 mov dl,54 mov dh,10 int 10h pop bx add bh,al push bx mov dl,bh int 21h mov ah,2 mov bh,0 mov dl,40 mov dh,19 int 10h mov ah,2 mov dl,20 mov dh,20 int 10h mov ah,9 mov dx,offset f int 21h mov ah,2 mov dl,20 mov dh,21 int 10h jmp cont17 ;bridge to remove remove12: jmp remove2 cont17: mov ah,9 mov dx,offset g

int 21h mov ah,2 mov dl,20 mov dh,22 int 10h mov ah,9 mov dx,offset h int 21h mov ah,2 mov dl,61 mov dh,20 int 10h mov ah,1 int 21h mov ch,al cmp ch,"n" je exit9 cmp ch,"y" jmp she jne exit9 ret remove2: mov ah,2 mov dl,20 mov dh,19 int 10h mov ah,9 mov dx,offset e int 21h mov ah,1 int 21h sub al,"0" mov ah,2 mov bh,0 mov dl,54 mov dh,10 int 10h

pop bx sub bh,al push bx jmp cont11 ;bridge exit exit9: jmp exit cont11: mov dl,bh int 21h

mov ah,2 mov bh,0 mov dl,40 mov dh,19 int 10h jmp cont16 exit14:jmp exit cont16: mov ah,2 mov dl,20 mov dh,20 int 10h jmp cont18 ;bridge to exit exit19: jmp exit cont18: mov ah,9 mov dx,offset f int 21h mov ah,2 mov dl,20 mov dh,21 int 10h mov ah,9 mov dx,offset g int 21h mov ah,2 mov dl,20 mov dh,22 int 10h

mov ah,9 mov dx,offset h int 21h mov ah,2 mov dl,61 mov dh,20 int 10h mov ah,1 int 21h mov ch,al cmp ch,"n" je exit cmp ch,"y" jmp she jne exit exit: mov ah,2 mov dl,20 mov dh,16 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov dl,20 mov dh,17 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov dl,20 mov dh,18 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2

mov bh,0 mov dl,20 mov dh,19 int 10h mov ah,9 mov dx, offset k int 21h mov ah,2 mov dl,20 mov dh,20 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov dl,20 mov dh,21 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov dl,20 mov dh,22 int 10h mov ah,9 mov dx,offset i int 21h mov ah,2 mov dl,20 mov dh,23 int 10h mov ah,9 mov dx,offset i int 21h int 20h main endp end start

Sign up to vote on this title
UsefulNot useful