22 - m mov ax,[num] add ax,[num+2] add ax,[num+4] a mov...

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) ; .model small .stack 100h .data num dw 2,3,4 n .code main proc mov ax,@data mov ds,ax
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: m mov ax,[num] add ax,[num+2] add ax,[num+4] a mov dx,ax mov ah,02h add dl,30h int 21h i mov ah,4ch int 21h main endp end main...
View Full Document

Ask a homework question - tutors are online