Professional Documents
Culture Documents
Providence 123
Providence 123
CCS003L
(Computer System and Architecture)
EXERCISE
1
Running Assembly Language Using EMU8086
Section: TN21/1-C
Professor:
Ms.
I. PROGRAM OUTCOME/S (PO) ADRESSED BY THE LABORATORY EXERCISE
b. Analyze a complex problem and identify and define the computing requirements
appropriate to its solution.
1. Write the converted values and the result of the required operation of a number system.
V. EXPERIMENTAL PROCEDURE:
1. Create a program that will display the lyrics of your favorite song.
Source code
.model small
.data
.code
mov ax,@data
mov ds, ax
mov ah,09
lea dx,prompt
int 21h
mov ah,09
lea dx,song
int 21h
mov ah,09
lea dx,intro
int 21h
mov ah,09
lea dx,intro1
int 21h
mov ah,09
lea dx,intro2
int 21h
mov ah,09
lea dx,intro3
int 21h
mov ah,09
lea dx,intro4
int 21h
mov ah,09
lea dx,intro5
int 21h
mov ah,09
lea dx,verse
int 21h
mov ah,09
lea dx,verse1
int 21h
mov ah,09
lea dx,verse2
int 21h
mov ah,09
lea dx,verse3
int 21h
mov ah,09
lea dx,verse4
int 21h
mov ah,09
lea dx,verse5
int 21h
mov ah,09
lea dx,verse6
int 21h
mov ah,09
lea dx,verse7
int 21h
mov ah,09
lea dx,verse8
int 21h
mov ah,09
lea dx,chorus
int 21h
mov ah,09
lea dx,chorus1
int 21h
mov ah,09
lea dx,chorus2
int 21h
mov ah,09
lea dx,chorus3
int 21h
mov ah,09
lea dx,chorus4
int 21h
mov ah,09
lea dx,chorus5
int 21h
mov ah,09
lea dx,chorus6
int 21h
mov ah,09
lea dx,chorus7
int 21h
mov ah,09
lea dx,chorus8
int 21h
mov ah,09
lea dx,chorus9
int 21h
mov ah,09
lea dx,last
int 21h
mov ah,4ch
mov al,00h
int 21h
end
VI. QUESTION AND ANSWER:
Machine code is a strictly numerical language which is intended to run as fast as possible, and it may be regarded
as the lowest-level representation of a compiled or assembled computer program or as a primitive and hardware-
dependent programming language.
2. How does the Assembly Language improve our programming skills?
Assembly language is as close to the processor as you can get as a programmer so a well designed algorithm is
blazing -- assembly is great for speed optimization. ... Much like an assembly line, you write code to push single
values into registers, deal with memory addresses directly to retrieve values or pointers.
Note: The following rubrics/metrics will be used to grade students’ output in the lab
Exercise 1.