Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .model small
- .stack 100h
- .data
- select db 13, 10, 'Input 0 for exit',13,10, 'Pritn mark >', 13, 10, "$"
- one db ' - Col', "$"
- two db ' - Unsatisfactory', "$"
- three db ' - Satisfactory',"$"
- four db ' - Ok', "$"
- five db ' - Excellent', "$"
- undef db ' - no mark','$'
- .code
- start:
- mov ax, @data
- mov ds, ax
- mov ah, 09h
- mov dx, offset select
- int 21h
- mov ah, 01h
- int 21h
- cmp al, '1'
- je c1
- cmp al, '2'
- je c2
- cmp al, '3'
- je c3
- cmp al, '4'
- je c4
- cmp al, '5'
- je c5
- cmp al, '0'
- je exit
- mov ah, 09h
- mov dx, offset undef
- int 21h
- jmp start
- c1:
- mov ah, 09h
- mov dx, offset one
- int 21h
- jmp start
- c2:
- mov ah, 09h
- mov dx, offset two
- int 21h
- jmp start
- c3:
- mov ah, 09h
- mov dx, offset three
- int 21h
- jmp start
- c4:
- mov ah, 09h
- mov dx, offset four
- int 21h
- jmp start
- c5:
- mov ah, 09h
- mov dx, offset five
- int 21h
- jmp start
- exit:
- mov ax, 4c00h
- int 21h
- end start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement