从键盘读取一个字符并换行输出
assume cs:code
code segment
start:
mov ah, 1
int 21h
mov bl, al
mov dl, 10
mov ah, 2
int 21h
mov dl, bl
mov ah, 2
int 21h
mov ah, 4ch
int 21h
code ends
end start
效果演示:
从键盘读取一个字符并换行输出
assume cs:code
code segment
start:
mov ah, 1
int 21h
mov bl, al
mov dl, 10
mov ah, 2
int 21h
mov dl, bl
mov ah, 2
int 21h
mov ah, 4ch
int 21h
code ends
end start
效果演示:
2024-10-30 21:10:12
2024-11-10 09:11:04
2024-11-10 09:11:50
2024-11-10 09:11:48
2024-11-10 09:11:32
2024-11-10 09:11:16
2024-11-10 09:11:06
2024-11-10 09:11:04
2024-11-10 09:11:58
2024-11-10 09:11:24