21 - add ax,[num2] add ax,[num3] mov [sum],ax m ;Printing...

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 using memory variables ; .model small .stack 100h .data num1 dw 1 num2 dw 2 num3 dw 3 sum dw ? .code main proc ;Initializing Accumualtor mov ax,@data mov ds,ax m mov ax,[num1]
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,[num2] add ax,[num3] mov [sum],ax m ;Printing Result mov dx,[sum] mov ah,02h add dl,30h int 21h i ;Ending Program mov ah,4ch int 21h main endp end main...
View Full Document

Ask a homework question - tutors are online