The text of a manual · part 22 of 38
PEN*KEY 6100 Computer Programmer's Reference Guide: Section 6: Conversions and Interfaces, pages 187 to 196
Pages 187 to 196 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.
For the Norand 6100
Page 187
SECTION 6
Conversions and Interfaces
Video, Alternate Settings: (AH=12h) Interrupt 10h INT 10h, Function AH = 12h, Subfunction 10h: Get Video Configuration Info
Feature Bits (CH) 0 1 2 3 4ć7
Feature Control Output Bit 0 0 1 1 Not used
Input Status Bit 5 6 5 6 ---
On Entry: AH = 12h BL = 10h On Return: BH = Display type: 0 = Color 1 = Monochrome BL = Memory installed on VGA board: 0 = 64k 1 = 128k 2 = 192k 3 = 256k CH = Feature bits CL = Switch settings INT 10h, Function AH = 12h, Subfunction 30h: Set Scan Lines BIOS Selects the number of scan lines for text modes. The selected value takes effect the next time the set display mode function is performed. On Entry: AH = 12h BL = 30h AL = 0 = 200 scan lines 1 = 350 scan lines 2 = 400 scan lines On Return: AL = 12h = VGA active 00h = VGA not active
PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-51
6. Conversions and Interfaces
BIOS Returns configuration information for the video system. Feature bits are set from the input status register 0 in response to an output on the following speciĆ fied feature control register bits. Bits 0ć3 in CL indicate the state of VGA dip switches 1ć4, respectively.
Page 188
Conversions and Interfaces
SECTION 6
INT 10h, Function AH = 12h, Subfunction 31h: Enable/Disable Default Palette Loading BIOS 6. Conversions and Interfaces
On Entry: AH = 12h BL = 31h AL = 00h = Enable default palette loading 01h = Disable default palette loading On Return: AL = 12h = Function supported INT 10h, Function AH = 12h, Subfunction 32h: Enable/Disable Video BIOS Disables or enables CPU access to the video adapter's I/O ports and refresh buffĆ er. The display is turned off or on. "
"
On Entry: AH = 12h BL = 32h AL = 0 = Enable video 1 = Disable video On Return: AL = 12h = Function supported
INT 10h, Function AH = 12h, Subfunction 33h: Enable/Disable Gray Scale Summing BIOS Enables or disables grayĆscale summing. On Entry: AH = 12h BL = 33h AL = 0 = Enable gray scale summing 1 = Disable gray scale summing On Return: AL = 12h = Function supported INT 10h, Function AH = 12h, Subfunction 34h: Enable/Disable Cursor Emulation BIOS When enabled, the BIOS remaps the cursor starting and ending lines for the curĆ rent character cell dimensions. On Entry: AH = 12h BL = 34h AL = 0 = Enable cursor emulation 1 = Disable cursor emulation On Return: AL = 12h = Function supported 6-52
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 189
SECTION 6
Conversions and Interfaces
INT 10h, Function AH = 12h, Subfunction 36h: Enable/Disable Screen Refresh
INT 10h, Function AH = 12h, BL = FAh: Set Physical Display Size VROTATE Supported for the 16Ćline display only. On Entry: AH = 12h BL = 0FAh CH = Number of rows CL = Number of columns On Return: ES:DI = Points at the 16Ćline display parameter packet (this value is reserved for use by Intermec Technologies Corporation). INT 10h, Function AH = 12h, BL = FBh: Return Pointer to Current Display Parameters VROTATE Returns a pointer to the 16Ćline display parameter packet and font information for the 16Ćline display only. On Entry: AH = 12h BL = 0FBh On Return: ES:DI = Points at the 16Ćline display parameter packet CX = Maximum number of programmable characters (if DX = 0, then DS:SI and BH have no meaning) DS:SI = Points at current font table BH = Number of bytes per character on font table INT 10h, Function AH = 12h, BL = FDh: Return Physical Display Size VROTATE On Entry: AH = 12h BL = 0FDh On Return: AH = Number of rows AL = Number of columns PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-53
6. Conversions and Interfaces
BIOS, 4000API This video refresh control interrupt specifies whether the video contents should display on the screen. Disabling the video refresh blanks the screen. When vidĆ eo refresh is disabled, the entire screen displays the color specified by the DAC color register 00h. On Entry: AH = 12h BL = 36h AL = 0 = Enable screen refresh 1 = Disable screen refresh On Return: AL = 12h = Function supported
Page 190
Conversions and Interfaces
SECTION 6
INT 10h, Function AH = 12h, BL = FEh: Read or Write Contrast
6. Conversions and Interfaces
VROTATE Returns or changes the current contrast setting. Range is 0 (darkest) to 15. On Entry: AH = 12h BL = 0FEh AL = Request type: 0 = Read request 1 = Write request BH = Contrast level, if write request On Return: BH = Contrast level, if read request INT 10h, Function AH = 12h, BL = FFh: Backlight Off or On 4000API Issued by the keyboard interrupt handler when the backlight key is pressed. If the light is active, it is deactivated. If inactive, activated. On Entry: AH = 12h BL = 0FFh AL = Request type: 0 = Activate backlight 1 = Turn light off 2 = Toggle the backlight On Return: None
Norand-Specific Display Modes: Interrupt 10h INT 10h, Function AX = 12DDh, Subfunction BL = FCh: Return Invert Mode VROTATE On Entry: AH = 12h AL = 0DDh BL = 0FCh On Return: AL = Nonzero = Invert mode set INT 10h, Function AX = 12DEh, Subfunction BL = FCh: Enable Invert Mode VROTATE Enables character mapping of character codes above 128 by subtracting 128 from the character code. The character is then displayed in inverse video, mapped as character codes 0 through 127. On Entry: AH = 12h AL = 0DEh BL = 0FCH On Return: None 6-54
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 191
SECTION 6
Conversions and Interfaces
INT 10h, Function AH = 12DFh, Subfunction BL = FCh: Disable Invert Mode
6. Conversions and Interfaces
VROTATE On Entry: AH = 12h AL = 0DFh BL = 0FCh On Return: None INT 10h, Function AH = 12E0h, Subfunction BL = FCh: Set Chase Mode VROTATE Forces the physical screen window to the cursor around the screen. On Entry: AH = 12h AL = 0E0h BL = 0FCh On Return: None INT 10h, Function AH = 12E1h, Subfunction BL = FCh: Set Fixed Mode VROTATE Forces the physical screen window to remain fixed over the virtual screen segĆ ment whose upper left corner is specified by the DX value. On Entry: AH = 12h AL = 0E1h BL = 0FCh DH = Row window coordinate DL = Column window coordinate On Return: None
PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-55
Page 192
Conversions and Interfaces
SECTION 6
Programmable Font Support: Interrupt 10h INT 10h, Function AX = 1400h: Load User Font
6. Conversions and Interfaces
VROTATE The font file must be in the following format. The largest bitmapped font that can be supported is 8 KB. xsize ysize font[(xsize+7/8),(ysize+7/8)] byte byte byte
Number of font pixels in x direction Number of font pixels in y direction The actual bitmap font
On Entry: AH = 14h AL = 00h BL = Request type Bit 000h Load main font Bit 0FFh Load entire 16Ćline display font DX = First character value to be programmed CX = Number of characters to be programmed BH = Number of bytes per character (8 or 16) ES:DI = Pointer to font bit map On Return: None INT 10h, Function AX = 1401h: Load System Default Font VROTATE On Entry: AH = 14h AL = 01h BL = 00h: Load main font On Return: None
Norand Enhanced Video BIOS: Interrupt 10h INT 10h, Function AX = 7F00h: Get Version Information VROTATE Returns version information and validates if Norand Enhancements are installed. On Entry: AH = 7Fh AL = 00h ES:DI = Communications port number CX = Size of target version structure On Return: AH = 0 AL = 7Fh ES:DI = Filled with the following structure: { unsigned int InfoSize; Char Key[14]; // which should be “NORAND_VIDEO” unsigned int Version; unsigned int Revision; } 6-56
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 193
SECTION 6
Conversions and Interfaces
INT 10h, Function AX = 7F13h: Absolute Write String VROTATE
On Entry: AH = 7Fh AL = 13h BL = Attribute (Not yet implemented) CX = Character count DX = Start cursor position ES:BP = String to write On Return: AH = 00h AL = 7Fh INT 10h, Function AX = 7F20h: Repaint Text Window VROTATE Repaints the displayed portion of the emulated text window. On Entry: AH = 7Fh AL = 20h On Return: AH = 00h AL = 7Fh INT 10h, Function AX = 7F21h: Load or Select Font VROTATE Performs absolute screen writes. Allows the system application to write strings anywhere on the screen. Overrides the emulation window. " NOTE:
If the currently-used font is changed, reselect that font to use the new character size.
On Entry: AH = 7Fh AL = 21h Select Font: BH = 0 (Font select option) BL = Font number, 0 = 8x8, 1 = 8x16, 2 = User defined Load Font: BH = 1 (Font loaded option) BL = Font number CH = Character height (must be a multiple of 8) CL = Character width (must be a multiple of 4) ES:DI = Font table (must be in rotated format) On Return: AL = 7Fh AH = 0 = Successful operation 1 = Invalid font 2 = Bad load font format PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-57
6. Conversions and Interfaces
Performs absolute screen writes. Allows the system application to write strings anywhere on the screen. Overrides the emulation window.
Page 194
Conversions and Interfaces
SECTION 6
INT 10h, Function AX = 7F28h: Get Window Size
6. Conversions and Interfaces
VROTATE Gets information about the current window size and position where the standard video BIOS calls are restricted. The restricted area is the only area that stanĆ dard BIOS calls can modify. Default window size may vary. Mileage may vary. " NOTE:
For a rotated system, the calls are based on the rotated window,i.e. 0,0 for the rotated 0,0.
On Entry: AH = 7Fh AL = 28h On Return: AX = 007Fh CX = Window width DX = Window height SI = Window X position DI = Window Y position INT 10h, Function AX = 7F2Ah: Physical Write Image VROTATE Bolts graphical data anywhere to the physical screen. Call goes around the winĆ dowing to allow the application to place graphics outside the emulated video BIOS screen. " NOTE:
Pass data with each scan line starting on a byte boundary.
On Entry: AH = 7Fh AL = 2Ah ES:DI = Pointer to image data block Image data block format: Type dw 0 ; must be zero X,Y dw ? ; x,y on screen to place block Width dw ? ; width of image Height dw ? ; height of image BPP db ? ; bits per pixel Image db ? dup( ? ) ; image packed to match display
On Return: AH = Error code 0 = Successful 1 = BPP not supported AL = 7Fh There is a windows utility (currently called that takes a standard Windows BMP file that is in line art resolution (1 BPP) and generates a inĆ clude file with the data for the width, height, and image information. The asĆ sumption is that this can compile into a application.
6-58
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 195
SECTION 6
Conversions and Interfaces
INT 10h, Function AX = 7F30h: Disable Shadow Buffer Updates VROTATE
On Entry: AH = 7Fh AL = 30h On Return: AH = Error code (0 = successful) AL = 7Fh INT 10h, Function AX = 7F32h: Disable Rotated Video VROTATE Disables the rotated text driver to manage the screen. On Entry: AH = 7Fh AL = 32h On Return: AH = Error code (0 = successful) AL = 7Fh INT 10h, Function AX = 7F33h: Enable Rotated Video VROTATE Enables the rotated text driver to manage the screen. On Entry: AH = 7Fh AL = 33h On Return: AH = Error code (0 = successful) AL = 7Fh
Disk Services: Interrupt 13h INT 13h, Function AH = 00h: Reset Disk System BIOS Unsupported and always returns the carry clear and AH = 0. On Entry: AH = 00h DL = Drive number On Return: Carry = Set (if AH is nonzero) AH = Disk status PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-59
6. Conversions and Interfaces
Disables the updates to the text shadows buffer. The shadow buffer repaints and does some scroll operation, along with normal video BIOS calls to get the characĆ ter and screen attributes. The effect is disabling the shadow buffer is that a reĆ paint or other operation is based upon old screen data.
Page 196
Conversions and Interfaces
INT 13h, Function AH = 01h: Read Status of Last Operation
6. Conversions and Interfaces
BIOS On Entry: AH = 01h DL = Drive number (if bit 7 = 0, this indicates diskette) On Return: Carry = Set (if AH is nonzero) AH = Disk status INT 13h, Function 02h: Read Sectors into Memory BIOS The requested sectors are transferred into the buffer. On Entry: AH = 02h AL = Number of sectors DH = Track number DL = Drive number CH = Cylinder number CL = Sector number ES:BX = Buffer address On Return: Carry = Set (if AH is nonzero) AH = Disk status AL = Number of sectors actually transferred INT 13h, Function AH = 03h: Write Sectors from Memory BIOS The requested sectors are transferred from the buffer to the disk. On Entry: AH = 03h AL = Number of sectors DH = Track number DL = Drive number CH = Cylinder number CL = Sector number ES:BX = Buffer address On Return: Carry = Set (if AH is nonzero) AH = Disk status AL = Number of sectors actually transferred
6-60
PEN*KEY R 6100 Computer Programmer’s Reference Guide
SECTION 6