You are on page 1of 3

Name Ubaid Ur Rehman

Reg No FA18-BEE-121-E
LAB #6
To Describe the Syntax of 8086-88 CPU Assembly Language Using
Emu8086
Objectives
To explain the working of BIOS interrupt programming and EXE Program Structure using assembly
language program and display the String and Character on output screen using BIOS Interrupt
programming
Methodology
This Lab consisted of several new concepts to grasp. The first was memory modeling. Memory modeling
is used to specify size using the .Model directive. The second was understanding how the CPU
communicates with the I/O Peripherals. Understanding Bios and DOS routines. The next was the INT
instruction that invokes the Bios routine. Where interrupt number is a number that specifies a routine. For
example, INT 16h invokes a BIOS routine that performs keyboard input. In this Lab you will use a DOS
routine, INT 21h. INT 21h may be used to invoke many DOS functions. A function is requested by placing
function number in the AH register and invoking INT 21h. The Lab included reading a character input from
the keyboard. Displaying a character, displaying a string, Using Buffers, reading a string. The ASCII code
for different characters such as space or a new line. The lab also included the method to add a new line
using two control functions that are Line Feed (LF) and Carriage Return. The Lab included a prelab task
and several lab tasks. The prelab was to display characters, numbers, and their sum. The lab tasks included
upper to lower case conversion using the ASCII offset necessary for the conversion. In addition to this the
last task was to display the name on the screen when the space key was pressed. The requirement was to
implement the program using the conditional jump instruction.
Conclusion
The .EXE Structure was understood. The lab helped understand Bios Interrupt Programming. The
interrupt command was understood. The method of String and character writing and reading was
performed, and the results were displayed, All the Lab Tasks were completed. Observations were
made and the results were verified.
LAB TASK
Task 1
Task 2

Task 3

You might also like