8086: Single Character Input and Display that Character

.MODEL SMALL
.CODE
START: MOV AH,1    ;asks for keyboard input.
INT 21H                       ;stored in AL register.
MOV DL,AL                ;DL is the register used to display
MOV AH,2                   ;character output function
INT 21H
END START
END

No comments:

Post a Comment