COLLEGE OF COMPUTER STUDIES
COMPUTER SCIENCE DEPARTMENT
CCS003L
(Computer System and Architecture)
EXERCISE
2
A Simple Input and Output Using MOV Instructions
Student Name / Group
Name:
Name Role
Members (if Group):
Section:
Professor:
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.
II. COURSE LEARNING OUTCOME/S (CLO) ADDDRESSED BY LABORATORY
EXERCISE
Write simple program in assembly language.
III. INTENDED LEARNING OUTOME/S (ILO) ADDRESSES BY THE LABORATORY
EXERCISE
Create a program using the assembly code for reading and displaying a character.
IV. BACKGROUND INFORMATION
The mov ah,1h and int 21h means that you are using function 01h of the Interrupt type
21... where 01h is as you said is to read character from standard input, with echo, result
is stored in AL.
if there is no character in the keyboard buffer, the function waits until any key is
pressed. It comes under type 21h of various interrupt. tables
V. EXPERIMENTAL PROCEDURE:
1. Create a program that will ask the user to enter a letter. Display the letter and display your
favorite number.
VI. QUESTION AND ANSWER:
1. What is your understanding about the mov instruction?
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
2. How do you compare C programming to Assembly programming?
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Note: The following rubrics/metrics will be used to grade students’ output in the lab
Exercise 1.
Program (100 pts.) (Excellent) (Good) (Fair) (Poor)
Program Program executes Program executes Program executes Program does not
execution (20pts) correctly with no with less than 3 with more than 3 execute (10-11pts)
syntax or runtime errors (15-17pts) errors (12-14pts)
errors (18-20pts)
Correct output Program displays Output has minor Output has Output is incorrect
(20pts) correct output errors (15-17pts) multiple errors (10-11pts)
with no errors (12-14pts)
(18-20pts)
Design of output Program displays Program displays Program does not Output is poorly
(10pts) more than minimally display the designed (5pts)
expected (10pts) expected output required output (6-
(8-9pts) 7pts)
Design of logic Program is Program has slight Program has Program is
(20pts) logically well logic errors that do significant logic incorrect (10-
designed (18- no significantly errors (3-5pts) 11pts)
20pts) affect the results
(15-17pts)
Standards Program code is Few inappropriate Several Program is poorly
(20pts) stylistically well design choices inappropriate written (10-11pts)
designed (18- (i.e. poor variable design choices
20pts) names, improper (i.e. poor variable
indentation) (15- names, improper
17pts) indentation) (12-
14pts)
Delivery The program was The program was The program was The program was
(10pts) delivered on time. delivered a day delivered two days delivered more
(10pts) after the deadline. after the deadline. than two days after
(8-9pts) (6-7pts) the deadline. (5pts)
Topic Basic Operational Concepts
Lab Activity No 2
Lab Activity Creating a Simple Input and
Output Program
CLO 1
Program execution (20)
Correct output (20)
Design of output (10)
Design of logic (20)
Standards (20)
Delivery (10)
TOTAL