Professional Documents
Culture Documents
Cpe412 Bscoe41 Laboratory Assessment 3
Cpe412 Bscoe41 Laboratory Assessment 3
:Tambong, Ariel
Presentation : _________________
Total : _________________
1. Formulate an Assembly program that will display the different characters (‘0’ to ‘9’)
using LOOP with separator (underscore) horizontally.
Sample output:
0_1_2_3_4_5_6_7_8_9_
CODE
#make_COM#
ORG 100H
.MODEL SMALL
.STACK 100H
.DATA
.CODE
top:
PUSH DX
PUSH CX
MOV AH, 2
INT 21h
POP CX
POP DX
INC DL
loop top
2. Formulate an Assembly program that will display the given sample output.
Sample output:
9876543210
CODE
#make_COM#
.MODEL SMALL
.STACK 0100H
.DATA
.CODE
L: ; LOOPING
MOV AH, 2
INT 21H
DEC DL ; DECREMENT
loop L
ret
OUTPUT
3. Formulate an Assembly program that will display the first 15 letters in alphabet
horizontally.
Sample output:
abcdefghijklmno
Code
#make_COM#
.MODEL SMALL
.STACK 0100H
.DATA
.CODE
Ret
Output
4. Formulate an Assembly program that will display the lowercase English alphabets
from z to a.
Sample output:
zyxwvutsrqponmlkjihgfedcba
CODE
#make_COM#
.MODEL SMALL
.STACK 0100H
.DATA
.CODE
L: ; LOOPING
MOV AH, 2
INT 21H
DEC DX ;DECREMENT
loop L
ret
OUTPUT
5. Formulate an Assembly program that will display the Uppercase English alphabets.
Sample output:
ACEGIKMOQSUWY
CODE
#make_COM#
.MODEL SMALL
.STACK 0100
.DATA
C DB "ACEGIKMOQSUWY $"
.CODE
6. Formulate an Assembly program that will display the Uppercase English alphabets.
SAMPLE OUTPUT:
J
I
H
G
F
E
D
C
B
A
CODE
#make_COM#
.MODEL SMALL
.STACK 0100H
.DATA
.CODE
RET
OUTPUT
7. Formulate an Assembly program that will show your name, your academic year and
course, and the name of your school on screen. (Each Members)
Sample Output
LEAN P. BANCUD
4th Year – Computer Engineering
Universidad De Manila
CODE
#make_COM#
.MODEL SMALL
.STACK 0100
.DATA
.CODE
MOV AX, @DATA
MOV DS, AX
RET
OUTPUT
Conclusions
Ariel M. Tambong
Nung una naguluhan po ako sa mga codes nya pero binalikan ko lang ung ppt tsaka
ung mga example dun tapos sinundan sundan ko lang. nalito ako nung una sa number
2 at 6 kasi nung nirerarun ko sa 2 somosobra siya ng 9 un pala mali ung nalagay ko sa
counter ko sa 6 din ganun pero natama ko naman nung huli.
Firstly as we answering the laboratory about the emu8086 i realize na mas madali
itong gamitin kumpara sa ginagamit namin last lesson kasi pwede mong balikan ung
pagkakamali mo para maayos mo. Nahirapan kami at naging challenging din ito
samin kasi first time namin makagamit ng ganitong application pero nasagutan naman
namin. Lastly nahirapan ako mag install kasi may error sa pag rrun ng and pag
simulate ng program kaya tumagal kami.
This laboratory and lesson we have last time is challenging for me because I'm not
familiar to this application emu8086, but this application is more easier than the
previous application we have because we can go back to the errors that occur and we
can see the errors if we run the program, lastly i struggling in the installation of the
application because their id an error when we are running the program and we
couldn't do anything because there is no way or tutorial in YouTube on how this
application fixed the emulators
Reference
https://www.elprocus.com/8086-assembly-language-programs-explanation/
https://bowenstaff.bowen.edu.ng/lectureslides/1585830528.pdf
https://bowenstaff.bowen.edu.ng/lectureslides/1585830528.pdf?
fbclid=IwAR3idFL0V-4W1T-
SCq62AzLJbv896Eqj875GtSNPNEK_0HMOHH95q0dB0c8