Вы находитесь на странице: 1из 5

COMPUTER ENGINEERING DEPARTMENT

Computer Systems Organization and Architecture Manual

ACTIVITY 6: Video Function (Color Attribute)

6.1 Program Outcomes (POs) Addressed by the Activity


a. ability to apply knowledge of mathematics and science to solve engineering
problems
b. ability to design and conduct experiments, as well as to analyze and interpret data
c. ability to design a system, component, or process to meet desired needs within
realistic constraints such as economic, environmental, social, political, ethical, health
and safety, manufacturability, and sustainability, in accordance with standards
d. ability to identify, formulate, and solve engineering problems
e. ability to use techniques, skills, and modern engineering tools necessary for
engineering practice.
f. knowledge and understanding of engineering and management principles as a
member and leader in a team, to manage projects and in multidisciplinary
environments

6.2 Activity’s Intended Learning Outcomes (AILOs)


At the end of this activity, the student shall be able to:
a. Categorize the service function calls of INT 10 H
b. Discuss the different color attributes used in Assembly Language
c. Apply and Demonstrate the Service Function 06H and 07H of INT 10H in Assembly
language code

6.3 Objectives of the Activity


The objectives of this activity are to:
a. Identify the different color attributes used in Assembly Language
b. Apply different color attributes in Assembly language programming

6.4 Principle of the Activity


In this activity we can differentiate the functions 06h and 07h by video function
call service by the BIOS (Basic Input Output System). The function 06h is the Scroll Text
Lines Up it is scroll by part or the entire current display page up by one or more text
lines. This function can also be used to clear part or the entire screen. While the function 07h is

ACTIVITY 6: VIDEO FUNCTION (COLOR ATTRIBUTE) 1


the Scroll Text Lines Down it is also scroll by part or entire current display page by down
one or more text lines. It is also used to clear part or the entire screen

6.5 Materials/Equipment

1 unit Personal Computer


DOS / Command Prompt
Text Editor (SK, Notrepad, Wordpad)
Assembler (TASM.EXE)
Linker (TLINK.EXE )
Storage unit

6.6 Circuit Diagrams / Figures / Source Codes (if Applicable)

Figure 1. Title

6.7 Procedure/s

1. Write the following program using SK’s notepad as your text editor using the filename
sam6.asm

.model small mov dl,79


.code int 10h
org 100h
mov ah,06h
start: mov bh,50h
mov ah,06h mov ch,5
mov bh,60h mov cl,0
mov ch,0 mov dh,9
mov cl,0 mov dl,79
mov dh,4 int 10h

ACTIVITY 6: VIDEO FUNCTION (COLOR ATTRIBUTE) 2


mov ah,06h
mov ah,06h mov bh,20h
mov bh,40h mov ch,20
mov ch,10 mov cl,0
mov cl,0 mov dh,23
mov dh,14 mov dl,79
mov dl,79 int 10h
int 10h
mov ah,02
mov ah,06h mov dh,24
mov bh,30h mov dl,0
mov ch,15 mov bh,0
mov cl,0 int 10h
mov dh,19 int 20h
mov dl,79 end start
int 10h

2. Compile and Save the program by pressing F2.

expt5.asm

3. Write the hexadecimal value for the following attribute


21h a. green background blue foreground

44h b. red background red foreground

22h c. green background green foreground blink

ACTIVITY 6: VIDEO FUNCTION (COLOR ATTRIBUTE) 3


6.8 Activity Report

Section: Date Performed:


Course Code: Date Submitted:
Course Title:
Instructor:
Group No.: Activity No.:
Group Members: Signature:
1.

6.8.1 Data and Results


1. Given the sample output coming from your instructor, write down and compile the
required program that will provide the expected sample output using expt5.exe as the
filename.

6.8.2 Calculations

6.8.3 Observations
Without Specific hexadecimal value and positioning, user’s only plausible
option is to do trial and error.

6.8.4 Conclusion/s
You can be as flexible as you want with the help of mov ah, 06h/ int 10h you
can make flags and other designs also it give us the cl,ch,dl,dh to make
rectangles and also we can color it using the bh function.

ACTIVITY 6: VIDEO FUNCTION (COLOR ATTRIBUTE) 4


6.8.5 Rating (include Rubric)
Criteria Grade

Activity Conduct (1-5)

Correctness of Command(s)/Program(s) (1-5) x 2

Completeness of Tasks (1-5)

Data Analysis and Results Interpretation (1-5)

Total Score

Mean Score = (Total Score / 5)

Percentage Score = (Total Score/25) * 100


Other Comments:

ACTIVITY 6: VIDEO FUNCTION (COLOR ATTRIBUTE) 5

Вам также может понравиться