Search

sample undone sub menu w/ color txt, color box in assembly

model small.stack 100h.data
cr equ 13lf equ 10msg db cr,lf,"enter ur choice: [1-5]$"una db cr,lf,"one$"duha db cr,lf,"two$"tulo db cr,lf,"three$"upat db cr,lf,"four$"lima db cr,lf,"five$"pawala db cr,lf,"error input$".codestart:human: mov ax,@data mov ds,ax
mov dx,offset msg mov ah,09h int 21h
mov ax,0600hmov bh,00hmov cx, 221bhmov dx,1e33hint 10h
mov ax, 0600hmov bh, 42hmov cx,1019hmov dx,1c31hint 10h
;input mov ah, 01h int 21h mov dl,al

;enter xor ah,ah int 16h
cmp dl, '1' je one
cmp dl, '2' je two
cmp dl, '3' je three
cmp dl, '4' je four
cmp dl, '5' je five
jne exit
one: mov dx, offset una mov ah, 09h int 21h je human
two: mov dx, offset duha mov ah, 09h int 21h je human three: mov dx, offset tulo mov ah, 09h int 21h je human
four: mov dx, offset upat mov ah, 09h int 21h je human
five: mov dx, offset lima mov ah, 09h int 21h je human
exit: mov dx, offset pawala mov ah, 09h int 21h je human

mov ax, 4c00h int 21h
end start

0 comments: