从键盘读取一个字符并换行输出
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-08-27 09:08:17
2024-05-09 11:05:34
2024-06-06 10:06:47
2024-04-22 09:04:34
2024-03-29 15:03:20
2024-04-20 17:04:38
2024-05-10 08:05:15
2024-10-30 21:10:12