You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Imprimir ca<strong>de</strong>na en diagonal<br />
.MODEL SMALL<br />
.CODE<br />
INICIO:<br />
mov ax,@data<br />
mov ds,ax<br />
mov dh,posy<br />
mov dl,posx<br />
mov ah,0<br />
mov al,3<br />
int 10h<br />
mov dx,offset mensaje<br />
mov ah,9<br />
int 21h<br />
mov dx,offset ca<strong>de</strong>na<br />
mov ah,0ah<br />
int 21h<br />
mov di,offset ca<strong>de</strong>na<br />
mov dl,byte ptr[di+1]<br />
mov cl,dl<br />
mov dh,00<br />
mov ch,00<br />
add di,cx<br />
mov byte ptr[di+2],'$'<br />
inc dx<br />
mov temp,dx<br />
mov di,offset ca<strong>de</strong>na+2<br />
mov dh,posy<br />
mov dl,posx<br />
mov ah,0<br />
mov al,3<br />
int 10h<br />
imprime: mov bh,0<br />
mov dh,posy<br />
mov dl,posx<br />
inc posy<br />
inc posx<br />
mov ah,02<br />
int 10h<br />
68