Professional Documents
Culture Documents
Lecture#11
Program (Addition Of Two Numbers)
.model small
.stack 100h
.data
Opr1 dw 1234h
Opr2 dw 0002h
.code
Main proc
mov ax, @data
mov ds,ax
mov ax,opr1
mov bx,opr2
add ax,bx
mov dx, offset result
mov [dx],ax
mov ah, 09h
mov dx, offset result
int 21h
.model small
.stactk 100h
.data
Opr1 dw 1234h
Opr2 dw 0002h
.code
Main proc
Mov ax, @data
Mov ds,ax
Mov ax, opr1
Mul opr2
Lea dx, prod
Mov [dx],ax
Add dx,2
Mov [dx],dx
MAIN ENDP
END MAIN
ASSIGNMENT
Q#01: Discuss 21h interrupt & its possible functions.
Q#05: What is addressing mode & explain its type, write the
example of each mode in assembly language.