;this program accepts chars from the keyboard and echoes them to
; to the screen
        mov     cx,  20         ;num of keys to process
loopit: mov     ah,  0          ;wait and get a key subfunction
        int     16h             ;keyboard function
;  This returns a key in the al register!!
;  So, let's display it!!
        mov     bh, 0           ;video page
        mov     ah, 0eh         ; teletype subfunction
        int     10h             ;key is already in al!
        sub     cx, 1
        jnz     loopit          ;end of 20 characters??
        int     20h