Created
October 28, 2013 19:15
-
-
Save vladanghene/7202803 to your computer and use it in GitHub Desktop.
Citeste si scrie (cu echo) un caracter pe ecran.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.model small | |
.stack | |
.data | |
message db "apasati o tasta: ", "$" | |
message2 db "ati tastat: ", "$" | |
.code | |
main proc | |
mov ax,seg message | |
mov ds, ax | |
mov ah, 09h | |
lea dx, message | |
int 21h | |
mov ah,01h | |
int 21h | |
mov bl,al | |
mov ah,02h | |
mov dl,10 | |
int 21h | |
mov ax,seg message2 | |
mov ds, ax | |
mov ah, 09h | |
lea dx, message2 | |
int 21h | |
mov ah,02h | |
mov dl, bl | |
int 21h | |
mov ax,4c00h | |
int 21h | |
main endp | |
end main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment