square1 - a mov ah,02 mov dl,bl int 21h i ;mov ah,02 ;Line...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
.model medium . .stack 100h .data num dw 10 .code main proc mov ax,@data mov ds,ax m mov ax,0 mov cx,num loop1: l add ax,num dec cx jnz loop1 j mov bl,10 div bl mov bl,al mov cl,ah add cl,30h ;remainder cbw mov bl,10 div bl mov bl,al add bl,30h ;Quotient1 mov bh,ah add bh,30h ;Quotient2
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a mov ah,02 mov dl,bl int 21h i ;mov ah,02 ;Line Break ;mov dl,0ah ;int 21h ; mov ah,02 mov dl,bh int 21h i ;mov ah,02 ;Line Break ;mov dl,0ah ;int 21h ; mov ah,02 mov dl,cl int 21h i mov ah,4ch int 21h main endp end main...
View Full Document

Ask a homework question - tutors are online