📄 e6_9.asm
字号:
stack segment stack
db 256 dup(?)
stack ends
data segment
str1 db 'Branche1','$'
str2 db 'Branche2','$'
str3 db 'Branche3','$'
str4 db 'Branche4','$'
err db 'Error','$'
data ends
code segment
assume cs:code,ds:data,ss:stack
star:mov ax,data
mov ds,ax
Aga: mov ah,01h
int 21h
cmp al,31h
je A1
cmp al,32h
je A2
cmp al,33h
je A3
cmp al,34h
je A4
mov dx,offset err
mov ah,9
int 21h
jmp Fins
A1: mov dx,offset str1
mov ah,9
int 21h
jmp Ente
A2: mov dx,offset str2
mov ah,9
int 21h
jmp Ente
A3: mov dx,offset str3
mov ah,9
int 21h
jmp Ente
A4: mov dx,offset str4
mov ah,9
int 21h
Ente:mov dl,0dh
mov ah,2
int 21h
mov dl,0ah
mov ah,2
int 21h
jmp Aga
Fins:mov ah,4ch
int 21h
code ends
end star
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -