效果图:
直接上代码:
mov ah, 0eh
mov al,0x57
int 10h
mov al,0x72
int 10h
mov al,0x69
int 10h
mov al,0x74
int 10h
mov al,0x74
int 10h
mov al,0x69
int 10h
mov al,0x6e
int 10h
mov al,0x67
int 10h
mov al,0x20
int 10h
mov al,0x62
int 10h
mov al,0x6f
int 10h
mov al,0x6f
int 10h
mov al,0x6b
int 10h
mov al,0x00
int 10h
mov al,0x31
int 10h
mov al,0x2e
int 10h
mov al,0x30
int 10h
mov al,0x0d
int 10h
mov al,0x0a
int 10h
mov al,0x0a
int 10h
jmp start
start:
mov ah, 0h
int 16h
mov ah, 0eh
cmp al,0x0d
JE msg
cmp al,0x00
JE start
jmp show
msg:
mov al,0x0d
int 10h
mov al,0x0a
jmp show
int 10h
show:
int 10h
jmp start
times 510-($-$$) db 0
dw 0x55aa
这个写字本可以将回车的值设定为0x0d,0x0a,将上下左右、fn、esc等无效值忽略掉