SECTION 6
Conversions and Interfaces
PEN*KEY
R
6100 Computer Programmer’s Reference Guide 6-41
INT 10h, Function AH = 0Bh: Set Color Palette
BIOS
BL is effective only for text modes (when BH = 0). In this instance, the border
color is set to the value represented in BL. For 320x200 graphic modes, the
background color (when BH = 0) is set to the color represented by the value in
BL. The value for BL (when BH = 0) should range from 0ć31, where values
16ć31 represent the intense version of the colors 0ć15.
When BH = 1, the color palette is selected for 320x200 graphic modes. In this
instance, BL = 0 selects the palette. Two palettes (0ć1) are available. If BL = 0,
the palette is green (1), red (2), yellow (3). If BL = 1, the palette is cyan (1), maĆ
genta (2), white (3).
On Entry:
AH = 0Bh
BH = 0" = Sets the background and border colors for graphics modes or the
border color for text modes.
1" = Selects the palette in 320x200 color graphics mode.
BL = Color value to use with the color ID (value in BH).
On Return:
None
INT 10h, Function AH = 0Ch: Write Graphics Dot
BIOS
Writes a specified pixel to video memory at the location represented by DX and
CX. The value in AL is the color value for graphic modes. If bit 7 of AL is set,
the color value is XOR'ed with the current screen location contents. The range of
pixel values depends on the current video mode.
On Entry:
AH = 0Ch
AL = Dot value
BH = Page number
CX = Dot column number:
0ć320 = modes 4ć5
0ć640 = mode 6
DX = Dot row number (0ć200)
On Return:
None
INT 10h, Function AH = 0Dh: Read Graphics Dot
BIOS
Reads the value of the picture element at the location specified by CX and DX.
The value returned in AL depends on the current video mode.
On Entry:
AH = 0Dh
BH = Page number
CX = Dot column number:
0ć320 = modes 4ć5
0ć640 = mode 6
DX = Dot row number (0ć200)
On Return:
AL = Color value
6. Conversions and
Interfaces
Содержание PEN*KEY 6100
Страница 1: ...PEN KEYR 6100 Computer PROGRAMMER S REFERENCE GUIDE P N 977 054 001 Revision B December 2000 ...
Страница 14: ...CONTENTS xii PEN KEYR 6100 Computer Programmer s Reference Guide ...
Страница 22: ...Preface 8 PEN KEYR 6100 Computer Programmer s Reference Guide PREFACE ...
Страница 112: ...SECTION 4 Power Management 4 10 PEN KEYR 6100 Computer Programmer s Reference Guide 4 Power Management ...
Страница 318: ...GENERAL INDEX Index 6 PEN KEYR 6100 Computer Programmer s Reference Guide ...