;PROGRAM TO MULTIPLY TWO NUMBERS USING MACRO
data segment
opr1 db 12h
opr2 db 48h
res dw 1 dup(0)
data ends
code segment
assume cs:code, ds:data
mult macro res,opr1,opr2
mov al,opr1
mul opr2
mov res,ax
endm
start:
mov ax,data
mov ds,ax
mult res, opr1, opr2
int 3
code ends
end start
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment