add8nos - ;saving Quotient mov ah,02 add bl,30h mov dl,bl...

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

View Full Document Right Arrow Icon
;Reverse a series of Numbers .model small .stack 100h .data num1 dw 2,4,6,2,6,5,9,1 .code main proc mov ax,@data mov ds,ax mov bx,0 mov ax,0 loop1: add ax,[num1+bx] add bx,2 cmp bx,16 jne loop1 j mov bl,10 div bl d mov cl,ah ;saving remainder mov bl,al
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ;saving Quotient mov ah,02 add bl,30h mov dl,bl int 21h i mov ah,02 add cl,30h mov dl,cl int 21h ;mov ah,02 ;add [num1+bx],30h ;mov dl, [num1+bx] ;int 21h ;dec bx ;dec cl mov ah,4ch int 21h main endp end main e...
View Full Document

Ask a homework question - tutors are online