0% found this document useful (0 votes)
35 views3 pages

Tema Lab 999

asd

Uploaded by

Dicol Oliviu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views3 pages

Tema Lab 999

asd

Uploaded by

Dicol Oliviu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Tema: Folosirea mijloacelor de sistem de introducere a datelor de la tastatură.

data segment
string1 db 100 dup ('$')
string2 db 100 dup ('$')
ln db 13, 10, '$'
ct db "Citire:",13,10,'$'
af db 13,10, "Afisarea:",'$'
data ends
code segment
assume cs:code, ds: data
start:
mov ax,data
mov ds,ax
mov ah,9
mov dx, offset ct
int 21h
mov ah, 0ah
lea dx, string1
int 21h
mov ah,9
mov dx, offset ln
int 21h
mov ah, 0ah
lea dx, string2
int 21h
mov ah, 9
mov dx, offset ln
int 21h
mov string1+1, 0ah
mov string2+1, 0ah
mov ah, 9
mov dx, offset af
int 21h
mov ah, 9
lea dx, string1+1
int 21h
mov ah,9
lea dx,string2+1
int 21h
mov ax, 4c00h
int 21h
code ends
end start

TITLE Lab 9-1_exe


.MODEL SMALL
.STACK 100h
.CODE
.DATA
mov ax,@data
mov ds,ax
start:
;Citeste o secventa de tastare pana cind se apasa Enter
ReadLoop:mov ah,0
int 16h
cmp al,0
jz ReadLoop
mov ah,0Eh
int 10h
cmp al,0dh
jne ReadLoop
mov ah,4ch
int 21h
END start

You might also like