22c - add ax[num1 6 a mov bl,10 div bl mov cl,al mov bl,ah...

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

View Full Document Right Arrow Icon
; a program to add three numbers accessed using a single label (using dw)(2-Digit Number) N .model small .stack 100h .data num1 dw 5,4,6,10 total dw 0 t .code main proc mov ax,@data mov ds,ax m mov bx,0 mov ax,0 add ax,[num1] add ax,[num1+2] add ax,[num1+4]
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: add ax,[num1+6] a mov bl,10 div bl mov cl,al mov bl,ah m mov ah,02 add cl,30h mov dl,cl int 21h i mov ah,02 add bl,30h mov dl,bl int 21h i ;mov dx,ax ;mov ah,02h ;add dl,30h ;int 21h ; mov ah,4ch int 21h main endp end main...
View Full Document

This note was uploaded on 11/06/2010 for the course UBIT 411 taught by Professor Saleemelahi during the Spring '10 term at University of Karachi.

Ask a homework question - tutors are online