Skip to content

Instantly share code, notes, and snippets.

@jeasonstudio
Last active November 16, 2017 14:19
Show Gist options
  • Save jeasonstudio/6c69d4066a70f3bcd8834b50f64692f5 to your computer and use it in GitHub Desktop.
Save jeasonstudio/6c69d4066a70f3bcd8834b50f64692f5 to your computer and use it in GitHub Desktop.
MOV AX, DATA
MOV DS, AX ; begin
MOV AH,1 ; read a character
INT 21H ; character gets put in AL
MOV AH, 2 ; write a character
MOV DL, AL ; ascii code goes in DL
INT 21H
MOV AH, 4CH
INT 21H ; close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment