SCTR’s Pune Institute of Computer Technology, Pune
Department of Electronics and Computer Engineering
Computer Organization Lab
Name of the student: Roll No.:
Div: Batch:
Date of performance: Date of submission:
Experiment No. 5
Code:
;Arithmetic Instructions using AL
;Implement arithmetic instructions using ALP for the 8086 microprocessor
.model small
.stack 100h
.data
num1 dw 6423h
num2 db 67h
num3 db 34h
.code
main proc
mov ax,@data
mov ds, ax
mov al, num2
mov bl, num3
add al,bl
sub al,bl
mul bl
mov ax, num1
mov bl,num2
div bl
int 3
mov ax, 4C00h
int 21h
main endp
end main
SCTR’s Pune Institute of Computer Technology, Pune
Department of Electronics and Computer Engineering
Output:
SCTR’s Pune Institute of Computer Technology, Pune
Department of Electronics and Computer Engineering