home *** CD-ROM | disk | FTP | other *** search
- kbuf db 80 ; maximum length of read
- db 0 ; actual length of read
- db 80 dup (0) ; keyboard input goes here
- .
- .
- .
- mov dx,seg kbuf ; set DS:DX = address of
- mov ds,dx ; keyboard input buffer
- mov dx,offset kbuf
- mov ah,0ah ; function 0AH = read buffered line
- int 21h ; transfer to MS-DOS
- ; terminated by a carriage return,
- ; and kbuf+1 = length of input,
- ; not including the carriage return
-