Microprocessorlabreport 8086
Microprocessorlabreport 8086
Institute of Engineering
Thapathali Campus, Thapathali
Subject: Microprocessor
LAB #5
Submitted by:
Name:Bipul Kumar Dahal
Roll No.: THA078BEI009
Submitted to:
Department of Electronics and Computer Engineering
# 01H
MOV, AH 01H; request keyboard input INT 21H
- Returns character in AL. IF AL= nonzero value, operation
echoes on the screen. If Al=
zero means that user has pressed an extended function key such
as F1 OR home.
# 02H
MOV AH, 02H; request display character
MOV DL, CHAR; character to display
INT 21H
- Display character in D2 at current cursor position. The tab,
carriage return and line feed
characters act normally and the operation automatically
advances the cursor.
# 09H
MOV Ah, 09H; request display
LEA DX, CUST_MSG; local address of prompt
INNT 21H
CUST_MSG DB “Hello world”, ‘$’
- Displays string in the data area, immediately followed by a
dollar sign ($ or 24H), which
uses to end the display.
Program:
1. Write a program to print Programming is Fun with carriage
return.
Programming
Is
Fun
Program:
Output:
2. Write a program to print Programming is Fun without
carriage return.
Programming
Is
Fun
Program:
Output:
3. Write Assembly level program to print Hello World with
different color text in different background.
Program:
Output:
Discussion and Conclusion: