MACA LAB 2
MACA LAB 2
Lab Report
Course Code: 3202
Course Title: Computer Architecture and Microprocessor Lab
Experiment No: 02
Experiment Title: Implementation of Basic I/O Operations Using DOS Interrupts in Assembly Language
Submitted By Submitted To
Name: Zillur Rahman Abdullah Name:Rashed Mazumder
Student ID: 2061 Designation: Faculty
Batch:50 Institute: IIT
Year: 3rd Year
Semester: 2nd Semester
Code:
.model small
.stack 100h
.code
main:
mov ah, 01h
int 21h
mov dl, al
mov ah, 02h
int 21h
Code :
.model small
.stack 100h
.code
main:
mov al, 'A'
mov bl, 'B'
cmp al, bl
jl show_al
jmp show_bl
show_al:
mov dl, al
jmp print
show_bl:
mov dl, bl
print:
mov ah, 02h
int 21h