Screen Processing
The monitor
08/21/09
A typical video screen has 80 columns numbered 0 to 79 and 25 rows numbered from 0 to 24 The columns and rows provide a grid of addressable locations at any one of which the cursor can be set Example cursor locations:
2
Clearing the screen in assembly language 08/21/09
Interrupt 10h function 06h handles the process of clearing the screen and scrolling MOV AH, 06H MOV BH, 07H MOV CX, 0000H MOV DX, 184FH INT 10H
3
Setting the cursor position 08/21/09
Interrupt 10h is the BIOS operation for screen handling and function 02h tells the operation to set the cursor MOV AH, 02H MOV BH, 00H MOV DH, 0AH MOV DL, 08H INT 10H
4
Displaying the character ‘x’ at the center of the screen 08/21/09
5
Displaying a string at the center of the screen 08/21/09
6
Displaying ASCII character set 08/21/09
7
Color chart 08/21/09
For colored monitors, the background can display one out of eight colors and text can display one out of 16 colors
8
08/21/09
9
Text and background color
Example how to set the text and background colors and how to make them blink
Displaying character ‘x’ with attribute 08/21/09
11
Displaying a string with attributes 08/21/09
12