Page 155 - PowerPoint Presentation
P. 155
CAVITE STATE UNIVERSITY
T3 CAMPUS
Department of Information Technology COSC 65 – Programming Languages
main proc near
mov ax, @data
mov ds, ax
mov dx, offset message
mov ah, 09h
int 21h
mov dx, 10
mov ah,2 OUTPUT
int 21 Hello World!
This is an Assembly Program
mov dx, offset message2 I am created to teach you Assembly Language
mov ah, 09h
int 21h
mov dx, 10
mov ah,2
int 21h
mov dx, offset message3
mov ah, 09h
int 21h
main endp
end main
QUIZ NO. 2 | Hardcoding: Write an Assembly Program on a piece of paper that displays your
Full name, Course and Section, Student Number, Birthday, Age, Height, Weight and simple
description about yourself.
Sample Output
John Doe
BSIT 4-1
202032151
December 01, 1997
22
167cm
55kg
I am having fun coding in Assembly Language
Page | 14