19.04.2018 Views

Tutorial de ensamblador

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ENDM<br />

pop dx<br />

pop ax<br />

INICIO:<br />

LIMPIAR<br />

GOTOXY 0,0<br />

IMPRIME mensaje0<br />

GOTOXY 1,2<br />

IMPRIME msj<br />

GOTOXY 1,3<br />

IMPRIME msj1<br />

GOTOXY 1,5<br />

IMPRIME msj2<br />

GOTOXY 1,1<br />

IMPRIME mensaje1<br />

GOTOXY 1,4<br />

IMPRIME mensaje2<br />

GOTOXY 20,4<br />

LEE maximo_caracteres<br />

IMPRIME linea_en_blanco<br />

mov bx,0<br />

pushpila:<br />

mov al,ca<strong>de</strong>na[bx]<br />

push ax<br />

inc bl<br />

cmp bl,lencad<br />

jne pushpila<br />

mov bx,0<br />

poppila:<br />

pop ax<br />

mov girat[bx],al<br />

inc bl<br />

GOTOXY 24,9<br />

cmp bl,lencad<br />

jne poppila<br />

mov girat[bx],'$'<br />

imprime girat<br />

IMPRIME linea_en_blanco<br />

GOTOXY 1,9<br />

IMPRIME mensaje4<br />

GOTOXY 25,14<br />

IMPRIME mensaje5<br />

91

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!