The text of a manual · part 21 of 38
PEN*KEY 6100 Computer Programmer's Reference Guide: Section 6: Conversions and Interfaces, pages 177 to 186
Pages 177 to 186 of 328, from PEN*KEY 6100 Computer Programmer's Reference Guide
The original document is the PDF (1.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Intermec 6110
Page 177
SECTION 6
Conversions and Interfaces
INT 10h, Function AH = 0Bh: Set Color Palette
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 PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-41
6. Conversions and Interfaces
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 = = Sets the background and border colors for graphics modes or the border color for text modes. = Selects the palette in 320x200 color graphics mode. BL = Color value to use with the color ID (value in BH). On Return: None
Page 178
Conversions and Interfaces
SECTION 6
INT 10h, Function AH = 0Eh: Teletype Character Write
6. Conversions and Interfaces
BIOS, VROTATE Writes characters to the display as if it was a serial terminal. It functions in all display modes. A carriage return homes the cursor on the current line. A line feed advances the cursor to the next line. Backspace backs up the cursor, but only to the beginning of the current line. Bell beeps the buzzer. All other charĆ acters are displayable characters. The cursor is always advanced after a characĆ ter is written. If the end of a line is reached, the cursor is advanced to the next line. If the position of the last line of the display is written to, the display is scrolled up by one line. On Entry: AH = 0Eh AL = Character to write BH = Page BL = Foreground color in graphics mode On Return: None INT 10h, Function AH = 0Fh: Return Current Video State BIOS, VROTATE Returns information stored in locations maintained by Functions 0 and 5. On Entry: AH = 0Fh On Return: AH = Number of screen columns AL = Mode currently set BH = Active display page INT 10h, Function AX = 1000h: Set Palette Register BIOS Sets the selected palette register to the color value in BH. On Entry: AH = 10h AL = 00h BH = Color value BL = Palette register (00ć0Fh) On Return: None INT 10h, Function AX = 1001h: Set Border Color BIOS Sets the color of the screen border to the color value in BH. On Entry: AH = 10h AL = 01h BH = Color value On Return: None 6-42
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 179
SECTION 6
Conversions and Interfaces
INT 10h, Function AX = 1002h: Set Palette and Border
INT 10h, Function AX = 1003h: Toggle Blink and Intensity Bit BIOS On Entry: AH = 10h AL = 03h BH = Enable: 00h = Intensity 01h = Blink On Return: None INT 10h, Function AX = 1007h: Get Palette Register BIOS Returns the color associated with the specified palette register. On Entry: AH = 10h AL = 07h BL = Palette register On Return: BH = Color INT 10h, Function AX = 1008h: Get Border Color BIOS On Entry: AH = 10h AL = 08h On Return: BH = Border color PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-43
6. Conversions and Interfaces
BIOS Sets all palette registers and border color in one call. The color list is 17 bytes long. The first 16 bytes represent the color values loaded into the palette regisĆ ters 0ć15. The last byte is the border color value. The default palette is: Color Pixel Value Color Pixel Value 1 Blue 9 Light Blue 2 Green 10 Light Green 3 Cyan 11 Light Cyan 4 Red 12 Light Red 5 Magenta 13 Light Magenta 6 Brown 14 Yellow 7 White 15 Intense White 8 Gray On Entry: AH = 10h AL = 02h ES:DX = Pointer to color list On Return: None
Page 180
Conversions and Interfaces
SECTION 6
INT 10h, Function AX = 1009h: Get Palette and Border
6. Conversions and Interfaces
BIOS On Entry: AH = 10h AL = 09h ES:BX = Pointer to 17Ćbyte buffer On Return: ES:BX = Pointer to buffer containing the palette values in bytes 0ć15 and the border color in byte 16 INT 10h, Function AX = 1010h: Set Color Register BIOS For grayĆscale summing, the weighted grayĆscale value is calculated and stored into all three components of the color register. On Entry: AH = 10h AL = 10h BX = Color register CH = Green value CL = Blue value DH = Red value On Return: None INT 10h, Function AX = 1012h: Set Block of Color Registers BIOS The table consists of 3Ćbyte entries, one per color to be programmed. The bytes of an individual entry are red, green and blue values for the associated color regĆ ister. For grayĆscale summing, the weighted grayĆscale value is calculated and stored into all three components of the color register. On Entry: AH = 10h AL = 12h BX = First color value CX = Number of color registers ES:DX = Pointer to color table On Return: None
6-44
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 181
SECTION 6
Conversions and Interfaces
INT 10h, Function AX = 1013h: Set Color Page State
INT 10h, Function AX = 1015h: Get Color Register BIOS Returns the contents of a color register as its red, green, and blue components. On Entry: AH = 10h AL = 15h BX = Color register On Return: CH = Green value CL = Blue value DH = Red value INT 10h, Function AX = 1017h: Get Block of Color Registers BIOS Allows the red, green, and blue components associated with each of a set of color registers read in one operation. The table consists of a series of 3Ćbyte entries. The bytes of an individual entry are red, green, and blue values for the associatĆ ed color register. On Entry: AH = 10h AL = 17h BX = First color register CX = Number of color registers ES:DX = Pointer to buffer to receive the color list On Return: ES:DX = Pointer to buffer updated with color information INT 10h, Function AX = 1018h: Set PEL Mask BIOS On Entry: AH = 10h AL = 18h BL = PEL Mask to write On Return: None PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-45
6. Conversions and Interfaces
BIOS Selects the paging mode for the color registers or selects an individual page of color registers. On Entry: AH = 10h AL = 13h BL = 00h = Set the paging mode 01h = Select a color register page BH = Page to select 00h = 4 pages of 64 registers 01h = 16 pages of 16 registers On Return: None
Page 182
Conversions and Interfaces
SECTION 6
INT 10h, Function AX = 1019h: Get PEL Mask
6. Conversions and Interfaces
BIOS On Entry: AH = 10h AL = 19h On Return: BX = PEL Mask Value INT 10h, Function AX = 101Ah: Get Color Page State BIOS On Entry: AH = 10h AL = 1Ah On Return: BH = Color page BL = Paging mode: 00h = 4 pages of 64 registers 01h = 16 pages of 16 registers INT 10h, Function AX = 101Bh: Set Gray-Scale Values BIOS For each color register, the weighted sum of its red, green and blue values is calĆ culated according to the formula: gray_sum = 30% red + 59% green + 11% blue.
The gray_sum is then written back into all three components of the color regisĆ ter. The original values are lost. On Entry: AH = 10h AL = 1Bh BX = First color register CX = Number of color registers On Return: None
6-46
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 183
SECTION 6
Conversions and Interfaces
INT 10h, Function AX = 1100h/1110h: Load User Font
INT 10h, Function AX = 1101h/1111h: Load ROM 8x14 Fonts BIOS Loads the default ROM BIOS 8x14 font table into the specified block of the charĆ acterĆgenerator RAM. Provides the font selection in text display modes. If AL = 11h, page 0 must be active. The points, rows, and length of the refresh buffer are recalculated and the controller is reprogrammed with the maximum scan line (points - 1), cursor start (points -2), cursor end (points - 1), vertical disĆ play end ((rows * points) -1 ), and underline location (points - 1, mode 7 only). To avoid unpredictable behavior, call this function immediately after mode set. On Entry: AH = 11h AL = 01h or 11h BL = Block On Return: None INT 10h, Function AX = 1102h/1112h: Load ROM 8x8 Fonts BIOS Loads the default ROM BIOS 8x8 font table into the specified block of the charĆ acterĆgenerator RAM. Provides the font selection in text display modes. If AL = 12h, page 0 must be active. The points, rows, and length of the refresh buffer are recalculated and the controller is reprogrammed with the maximum scan line (points - 1), cursor start (points -2), cursor end (points - 1), vertical disĆ play end ((rows * points) -1 ), and underline location (points - 1, mode 7 only). To avoid unpredictable behavior, call this function immediately after mode set. On Entry: AH = 11h AL = 02h or 12h BL = Block On Return: None PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-47
6. Conversions and Interfaces
BIOS Loads the user font table into the specified block of characterĆgenerator RAM. Provides the font selection in text display modes. If AL = 10h, page 0 must be active. The points, rows, and length of the refresh buffer are recalculated and the controller is reprogrammed with the maximum scan line (points - 1), cursor start (points -2) , cursor end (points - 1), vertical display end ((rows * points) -1 ), and underline location (points - 1, mode 7 only). To avoid unpredictable behavior, call this function immediately after mode set. On Entry: AH = 11h AL = 00h or 10h BH = Number of points (bytes) per character BL = Block CX = Number of characters defined by table DX = First character code in table ES:BP = Pointer to font table On Return: None
Page 184
Conversions and Interfaces
SECTION 6
INT 10h, Function AX = 1103h: Set Block Specifier BIOS 6. Conversions and Interfaces
Determines the character blocks selected by bit 3 of the character attribute bytes in text display modes. When using a 256Ćcharacter set, both fields of BL should select the same characĆ ter block. In these cases, bit 3 of the attribute byte selects the foreground intenĆ sity. With 512Ćcharacter sets, the fields in BL select the blocks holding each half of the character set, so that bit 3 of the attribute byte selects either the upper or lower half of the character set. On Entry: AH = 11h AL = 03h BL = Character generator select code: Bits 0, 1, 4 = character block selected for bit 3 of attribute byte = 0. Bits 2, 3, 5 = character block selected for bit 3 of attribute byte = 1. Bits 6, 7 are not used. On Return: None INT 10h, Function AX = 1104h/1114h: Load ROM 8x14 Fonts BIOS Loads the default ROM BIOS 8x14 font table into the specified block of the charĆ acterĆgenerator RAM. This function provides the font selection in text display modes. If AL = 14h, page 0 must be active. The points, rows, and length of the refresh buffer are recalculated and the controller is reprogrammed with the maximum scan line (points -1), cursor start (points -2) , cursor end (points -1), vertical disĆ play end ((rows * points) -1 ), and underline location (points -1, mode 7 only). To avoid unpredictable behavior, call this function immediately after mode set. On Entry: AH = 11h AL = 04h or 14h BL = Block On Return: None INT 10h, Function AX = 1120h: Set INT 1Fh Font Pointer BIOS Sets the INT 1Fh pointer to point to the user table input in ES:BP. This table generates character codes 80hćFFh in graphics modes 4, 5 and 6. On Entry: AH = 11h AL = 20h ES:BP = Pointer to font table On Return: None 6-48
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 185
SECTION 6
Conversions and Interfaces
INT 10h, Function AX = 1121h: Set INT 43h for User’s Font
INT 10h, Function AX = 1122h: Set INT 43h for ROM 8x14 Font BIOS Sets the INT 43h vector to point to the default ROM BIOS 8x14 font and updates the video ROM BIOS data area. The video controller is not reprogrammed. ProĆ vides font selection in graphic display modes. On Entry: AH = 11h AL = 22h BL = 00h = Character rows specified by register DL 01h = 14 rows 02h = 25 rows 03h = 43 rows CX = Bytes per character DL = Character rows per screen On Return: None INT 10h, Function AX = 1123h: Set INT 43h for ROM 8x8 Font BIOS Sets the INT 43h vector to point to the default ROM BIOS 8x8 font and updates the video ROM BIOS data area. The video controller is not reprogrammed. ProĆ vides font selection in graphic display modes. On Entry: AH = 11h AL = 23h BL = 00h = Character rows specified by register DL 01h = 14 rows 02h = 25 rows 03h = 43 rows CX = Bytes per character DL = Character rows per screen On Return: None PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-49
6. Conversions and Interfaces
BIOS Sets the INT 43h vector to point to the user font table input in ES:BP and upĆ dates the video ROM BIOS data area. The video controller is not reprogrammed. Provides font selection in graphic display modes. On Entry: AH = 11h AL = 21h BL = 00h = Character rows specified by register DL 01h = 14 rows 02h = 25 rows 03h = 43 rows CX = Bytes per character DL = Character rows per screen ES:BP = Pointer to font table On Return: None
Page 186
Conversions and Interfaces
SECTION 6
INT 10h, Function AX = 1124h: Set INT 43h for ROM 8x16 Font
6. Conversions and Interfaces
BIOS Sets the INT 43h vector to point to the default ROM BIOS 8x16 font and updates the video ROM BIOS data area. Provides font selection in graphic display modes. The video controller is not reprogrammed. On Entry: AH = 11h AL = 24h BL = 00h = Character rows specified by register DL 01h = 14 rows 02h = 25 rows 03h = 43 rows CX = Bytes per character DL = Character rows per screen On Return: None INT 10h, Function AX = 1130h: Get Font Information BIOS On Entry: AH = 11h AL = 30h BH = Font code: 0 = Current INT 1Fh contents 1 = Current INT 43h contents 2 = ROM 8x14 font 3 = ROM 8x8 font (codes 0ć127) 4 = ROM 8x8 font (codes 128ć255) 5 = ROM alternate 9x14 font 6 = ROM 8x16 font 7 = ROM alternate 9x16 font. On Return: CX = Bytes per character DL = Character rows on screen ES:BP = Pointer to font table
6-50
PEN*KEY R 6100 Computer Programmer’s Reference Guide