从键盘读取一个字符并换行输出
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-11-04 10:11:12
2024-11-04 10:11:10
2024-11-04 10:11:09
2024-11-04 10:11:09
2024-11-04 10:11:05
2024-11-04 10:11:05
2024-11-04 10:11:57
2024-05-08 10:05:36
2024-11-04 10:11:11
2024-11-04 10:11:08