<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Asamblare - Laborator 2]]></title>
		<link>http://asm.natea.ro/</link>
		<description><![CDATA[Asamblare - http://asm.natea.ro]]></description>
		<pubDate>Thu, 29 Oct 2026 04:06:11 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Aplicatie 4]]></title>
			<link>http://asm.natea.ro/showthread.php?tid=4</link>
			<pubDate>Mon, 22 Oct 2018 21:47:07 +0300</pubDate>
			<guid isPermaLink="false">http://asm.natea.ro/showthread.php?tid=4</guid>
			<description><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>.model small<br />
.stack 100<br />
.data   <br />
adr1 dw 1234h<br />
adr2 dw 5678h<br />
adr3 dw 9012h<br />
adr4 dw 3456h<br />
tabela dd adr1, adr2, adr3, adr4<br />
.code<br />
start: mov  ax, @data<br />
mov  ds, ax<br />
mov cx, 1<br />
mov  bx, cx<br />
add  bx, bx<br />
add bx, bx<br />
les  di, tabela[bx]<br />
mov ax, es:[di]<br />
mov ah, 4ch<br />
int  21h<br />
end start</code></div></div>]]></description>
			<content:encoded><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>.model small<br />
.stack 100<br />
.data   <br />
adr1 dw 1234h<br />
adr2 dw 5678h<br />
adr3 dw 9012h<br />
adr4 dw 3456h<br />
tabela dd adr1, adr2, adr3, adr4<br />
.code<br />
start: mov  ax, @data<br />
mov  ds, ax<br />
mov cx, 1<br />
mov  bx, cx<br />
add  bx, bx<br />
add bx, bx<br />
les  di, tabela[bx]<br />
mov ax, es:[di]<br />
mov ah, 4ch<br />
int  21h<br />
end start</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Aplicatie 1]]></title>
			<link>http://asm.natea.ro/showthread.php?tid=3</link>
			<pubDate>Mon, 22 Oct 2018 21:46:09 +0300</pubDate>
			<guid isPermaLink="false">http://asm.natea.ro/showthread.php?tid=3</guid>
			<description><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>.model small<br />
.stack 100 <br />
.data   <br />
tabc db '0123456789ABCDEF' <br />
.code <br />
start: <br />
mov ax,@data   <br />
mov ds,ax   <br />
mov al,0   ;iniţializează AL <br />
repet: <br />
mov bx,offset tabc  ;pune în BX adresa efectivă tabc   <br />
push ax   ;salvează AL în stivă   <br />
xlat    ;pune în AL octetul de la adresa efectivă [BX+AL] <br />
call afisare   ;apelul procedurii afisare   <br />
pop ax   <br />
inc al   <br />
cmp al,10H   ;se verifică dacă s-au afişat toate caracterele   <br />
jz sfarsit   <br />
jmp repet <br />
afisare proc   <br />
mov dl,al   ;pune în DL codul caracterului care trebuie afişat   <br />
mov     ah,2h   ;funcţia DOS pentru afişarea caracterului din DL   <br />
int 21h   <br />
mov dl,' '   <br />
mov     ah,2h   <br />
int 21h <br />
ret ;afisare <br />
endp <br />
sfarsit: <br />
mov ax,4c00h  ;funcţia DOS de ieşire în sistemul de operare   <br />
int 21h   <br />
end start</code></div></div>]]></description>
			<content:encoded><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>.model small<br />
.stack 100 <br />
.data   <br />
tabc db '0123456789ABCDEF' <br />
.code <br />
start: <br />
mov ax,@data   <br />
mov ds,ax   <br />
mov al,0   ;iniţializează AL <br />
repet: <br />
mov bx,offset tabc  ;pune în BX adresa efectivă tabc   <br />
push ax   ;salvează AL în stivă   <br />
xlat    ;pune în AL octetul de la adresa efectivă [BX+AL] <br />
call afisare   ;apelul procedurii afisare   <br />
pop ax   <br />
inc al   <br />
cmp al,10H   ;se verifică dacă s-au afişat toate caracterele   <br />
jz sfarsit   <br />
jmp repet <br />
afisare proc   <br />
mov dl,al   ;pune în DL codul caracterului care trebuie afişat   <br />
mov     ah,2h   ;funcţia DOS pentru afişarea caracterului din DL   <br />
int 21h   <br />
mov dl,' '   <br />
mov     ah,2h   <br />
int 21h <br />
ret ;afisare <br />
endp <br />
sfarsit: <br />
mov ax,4c00h  ;funcţia DOS de ieşire în sistemul de operare   <br />
int 21h   <br />
end start</code></div></div>]]></content:encoded>
		</item>
	</channel>
</rss>