• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 3 fuera de 19 páginas
Notas de lectura

What is DOS? + Practical Programs Explained | 8086/8088 Assembly Language Notes

Document preview thumbnail
Vista previa 3 fuera de 19 páginas

Complete and easy-to-understand notes on DOS (Disk Operating System) with practical programs and explanations. Covers the basic concept of DOS, its role in 8086/8088 Assembly Language, commonly used DOS services, and practical program examples with step-by-step explanations. Ideal for BSCS, Computer Science, Assembly Language, Microprocessor, and exam preparation.

Vista previa del contenido

 What is DOS?

DOS is an old operating system that was used on computers before
Windows. It had a text-based screen no icons, no mouse, only commands.

 Role of DOS in Assembly Language

When we use INT 21h, we are calling the functions of DOS, such as:

 09h → Print a string
 01h → Take input from the keyboard
 02h → Display a single character
 4Ch → Exit the program

Meaning:
In assembly language, we are basically telling DOS:
"You do this task for us!"

,Line-by-Line Explanation:

.model small
This tells the compiler that the program will use the Small Memory
Model. In this model, the Code segment is 64KB and the Data segment is
64KB a small, simple, and perfect model for beginners.

.stack 100h
This reserves stack memory; 100h = 256 bytes.
The stack is used to hold temporary data, return addresses, parameters,
etc.
.data

Here we declare our variables.

S1 db "Helloworld$"

 S1 is a string variable.
 "Helloworld$" is the text we want to print on the screen.
 The $ sign indicates the end of the string (it tells the DOS interrupt
where the string finishes).

.code

This is where the actual instructions start.

main proc

This declares the main function of the program.

mov ax, @data

The address of the Data Segment is loaded into the AX register.

, mov ds, ax

Now DS is set equal to AX.
This means the Data Segment is activated, and we can now access S1.

lea dx, s1

Meaning of LEA: Load Effective Address
It loads the address of string S1 into the DX register.
Now DOS interrupt knows where the string is stored and from where it
should read it.

mov ah, 9

AH = 09h means:
We want to use DOS function 09h, which is the Display String function.

INT 21h
Interrupt 21h runs function 09h,
and it prints "Helloworld" on the screen.

mov ah, 4Ch

Function 4Ch = Terminate Program

INT 21h

This properly exits the program.

main endp / end main

Both the function and the program are closed.

Información del documento

Subido en
22 de agosto de 2026
Número de páginas
19
Escrito en
2026/2027
Tipo
Notas de lectura
Profesor(es)
Zain
Contiene
Todas las clases
$3.69

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
0
Seguidores
0
Artículos
43
Última venta
-



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes