The text of a manual · part 20 of 38
PEN*KEY 6100 Computer Programmer's Reference Guide: Section 6: Conversions and Interfaces, pages 167 to 176
Pages 167 to 176 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 167
SECTION 6
Conversions and Interfaces
Table 6-5 (Continued) Interrupt Cross-Reference INT # 13h
15h
AH= 08h 15h 16h 18h DAh EAh ECh
Subfunctions AL= BH=
Serial Communications Services Initialize Communications Port Send a Character Receive a Character Get Port Status Extended Initialize Extended Port Control Port Power On or Off
AH= 00h 01h 02h 03h 04h 05h FFh
AL=
System Services Create a Task Delete a Task Return Information about a Task Disable Task Switching Enable Task Switching Reset Multitasker Pend on Mailbox with Optional Timeout Accept Message from Mailbox (No Pend) Post Message to Mailbox Pend on Queue with Optional Timeout Accept Message from Queue (No Pend) Post Message to Queue Delay Current Task Initialize a Queue Structure as Empty Enable Time-Slicing Disable Time-Slicing Set Task Identifier Accumulate CRC 16h Exchange Network Packets Adjust CX for Processor Speed Beep the Buzzer Return Pointer to BIOS Version Receive a Network Packet Send a Network Packet Compute CRC 16 on Block of Data Request System Shutdown, Normal
AH= 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 01h 42h
AL= 00h 01h 02h 03h 04h 05h 06h 07h 08h 09h 0Ah 0Bh 0Ch 0Dh 0Eh 0Fh 10h F4h F5h F8h FAh FBh FDh FEh FFh 00h
Page BL= 6-61 6-61 6-62 6-62 6-62 6-63 6-63
BH=
BL= 6-64 6-65 6-65 6-65 6-66 6-67 6-67
BH=
BL=
PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-68 6-68 6-69 6-69 6-69 6-69 6-70 6-70 6-70 6-70 6-71 6-71 6-71 6-71 6-71 6-72 6-72 6-72 6-73 6-73 6-74 6-74 6-74 6-75 6-75 6-75
6-31
6. Conversions and Interfaces
14h
Interrupt Functions Disk Services (Continued) Read Drive Parameters Get Disk Type Detect Disk Change Set Media Type Disable RAM Drive Enable RAM Drive Enable Checksum
Page 168
Conversions and Interfaces
SECTION 6
Table 6-5 (Continued) Interrupt Cross-Reference INT # 15h 6. Conversions and Interfaces 16h
6-32
Interrupt Functions System Services (Continued) Request System Shutdown, Low Battery Translate Keyboard Scan Code Keyboard Intercept APM Installation Check APM Real Mode Interface Connect APM Interface Disconnect CPU Idle CPU Busy Set Power State Enable/Disable Power Management Get Power Status Get PM Event Get Power State Enable/Disable Device Power Management System Reset Device Open Device Close Program Termination Set Event Wait Interval Cancel Event Wait Interval System Request Key Wait Move Block Read Extended Memory Size Switch to Protected Mode Device Busy Pend On Keyboard Interrupt Complete Return System Configuration Parameters Address Return Extended BIOS Data Area Segment Keyboard Services Read Next ASCII Character Set Zero Flag if Buffer Empty Read Shift Status Set Typematic Rates Turn Off Key Repeat Set Key Repeat Timers Turn On Key Repeat Turn Keyclick Off or On Put Key into Buffer as if from Keyboard Read Next Extended ASCII Character Set Zero Flag if Extended Key Buffer Empty Read Extended Shift Status
PEN*KEY R 6100 Computer Programmer’s Reference Guide
AH 42h 4Fh 4Fh 53h 53h 53h 53h 53h 53h 53h 53h 53h 53h 53h 53h 80h 81h 82h 83h 83h 85h 86h 87h 88h 89h 90h 90h 91h C0h C1h
Subfunctions AL BH 01h
00h 01h 04h 05h 06h 07h 08h 0Ah 0Bh 0Ch 0Dh 80h
Page BL
00h 00h 00h
00h 00h 00h
00h 00h
01h 01h
1Dh
00h 01h
02h
AH= 00h 01h 02h
AL=
03h 03h 03h 04h 05h 10h 11h 12h
04h 05h 06h
BH=
6-75 6-76 6-76 6-77 6-77 6-78 6-78 6-79 6-79 6-80 6-80 6-81 6-81 6-82 6-82 6-83 6-83 6-83 6-84 6-84 6-84 6-84 6-85 6-85 6-85 6-86 6-86 6-86 6-87 6-87
BL= 6-92 6-92 6-92 6-93 6-93 6-93 6-93 6-93 6-94 6-94 6-95
Page 169
SECTION 6
Conversions and Interfaces
Table 6-5 (Continued) Interrupt Cross-Reference INT # 16h
AH FEh FFh
Subfunctions AL BH
6-95 6-96
19h
System Reboot
1Ah
Timer and Real-Time Clock Services Read System Timer Ticks Set System Timer Ticks Read the Real-Time Clock Time Set the Real-Time Clock Time Read the Real-Time Clock Date Set the Real-Time Clock Date Set the Real-Time Clock Alarm Reset the Real-Time Clock Alarm Read the Real-Time Clock Alarm
AH= 00h 01h 02h 03h 04h 05h 06h 07h 09h
AL=
Standard Mouse Interface Mouse Reset and Status Show Cursor Hide Cursor Get Button Status and Mouse Position Set Cursor Position Get Button Press Information Get Button Release Information Set Minimum and Maximum x Cursor Position Set Minimum and Maximum y Cursor Position Set Graphics Cursor Block Set Text Cursor Read Motion Counters Set Interrupt Subroutine Call Mask and Address Light Pen Emulation Mode On Light Pen Emulation Mode Off Set Mickey to Pixel Ratio Conditional Off Set Double-Speed Threshold Swap Interrupt Subroutines Get Status Block Size Save Driver Status Restore Driver Status Set Alternate Subroutine Call Mask and Address Get User Alternate Interrupt Address Set Mouse Sensitivity Get Mouse Sensitivity
AH= 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h 00h
AL= 00h 01h 02h 03h 04h 05h 06h 07h 08h 09h 0Ah 0Bh 0Ch 0Dh 0Eh 0Fh 10h 13h 14h 15h 16h 17h 18h 19h 1Ah 1Bh
33h
Page BL
6-16
BH=
BL= 6-97 6-97 6-97 6-98 6-98 6-98 6-99 6-99 6-99
BH=
BL=
PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-100 6-100 6-100 6-100 6-101 6-101 6-101 6-101 6-102 6-102 6-102 6-102 6-102 6-103 6-103 6-103 6-103 6-103 6-104 6-104 6-104 6-104 6-104 6-105 6-105 6-105
6-33
6. Conversions and Interfaces
Interrupt Functions Keyboard Services (Continued) Swap Keyboard Translate Tables Return Number of Keys on Default Keyboard
Page 170
Conversions and Interfaces
SECTION 6
Table 6-5 (Continued) Interrupt Cross-Reference INT # 33h 6. Conversions and Interfaces 70h
Interrupt Functions Standard Mouse Interface (Continued) Set Mouse Interrupt Rate Set Display Page Number Get Display Page Number Disable Mouse Driver Enable Mouse Driver Software Reset Set Language for Messages Get Language Number Get Driver Version, Mouse Type, and IRQ Number Real-Time Clock Interrupt
AH= 00h 00h 00h 00h 00h 00h 00h 00h 00h
Subfunctions AL= BH= 1Ch 1Dh 1Eh 1Fh 20h 21h 22h 23h 24h
Page BL= 6-105 6-105 6-106 6-106 6-106 6-106 6-106 6-107 6-107 6-16
Interrupt Definitions These interrupts are organized by interrupt number, first, then by subfunction, as shown in the Interrupt Cross-Reference table, starting on page 6-28. For the entire list of interrupts (organized alphabetically by interrupt name), reĆ fer to the Interrupt Index at the end of this publication. A reference token is included at the beginning of each interrupt definition to asĆ sist you in determining which application (or applications) support that particuĆ lar interrupt. This reference token is a name that represents the application handling the interrupt (such as 4000API.EXE, VROTATE.EXE, ELAĆ NAPM.EXE, or BIOS) for the interrupt function being defined. In some cases, there may be more than one token. If these tokens are together at the top of the interrupt definition, then the same definition applies for both. In some cases, there may be two tokens, but each token has its own definition. For example, if there is a BIOS token and a 4000API token with a different deĆ scription and a description for each token, then choose the applicable definition, according to that application that is handling the interrupt. All text between that token and the next interrupt definition (or to the next toĆ ken) applies to that interrupt for the application (or for BIOS). " " " " "
6-34
BIOS VROTATE.EXE 4000API.EXE ELANAPM.EXE 61MOUSE.COM
BIOS VROTATE 4000API ELANAPM MOUSE
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 171
SECTION 6
Conversions and Interfaces
Standard Keyboard Interface: INT 09h
INT 09h supports the following internal functions: Function Ctrl-Alt-Del Ctrl-Scroll Lock Shift-PrtSc Ctrl-Num Lock
Description System Reset. Detection of a Control-Alt-Delete sequence causes the handler to set the reset flag to 1234h (do not do a memory test) and jump to the POST. Break. The Ctl-Break sequence issues an INT 1Bh and returns the value zero. Print Screen. Shift-Print Screen issues an INT 05h. Pause. The Pause key causes the handler to issue INT 15, Function 41h to wait for a valid ASCII keystroke.
The keyboard handler issues an INT 15h, Function 91h with AL = 2 on return from interrupt to indicate a keystroke is available for keys that return values. The keyboard handler issues an INT 15h, Function 4Fh after reading the scan code from port 60, for the system to replace or absorb the scan code. On return from INT 15, the code is processed if the carry flag is set. Otherwise, the key is not processed. The SYSREQ key issues an INT 15, Function 85h to inform the system of a make or break operation of the SYSREQ key. Control, Alt , Shift keys, Num Lock, Scroll Lock, Pause, and Caps Lock key presses update the keyboard mode and type flags. No character code is returned by the keyboard BIOS for these key presses. Applications that want to know the status of these flags may inquire the keyboard BIOS through Interrupt 16h, Function 02h. The Scan Code tables that list the character codes for ATĆcompatible keyboards, refer to the Keyboard Services Interrupt definitions (INT 16h), page 6-87.
PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-35
6. Conversions and Interfaces
Matrix scan codes are converted to PCĆcompatible scan codes before Interrupt 09h is issued. Standard scan codes are read from port 60h. If the scan code is not a request for an internal function or a control key press, both the character code and scan code (two bytes) are placed in a 16Ćword circular buffer at the posiĆ tion pointed to by the keyboard tail buffer pointer. The tail pointer is then inĆ cremented by two and allowed to wrap around the buffer.
Page 172
Conversions and Interfaces
SECTION 6
Display Services: INT 10h INT 10h, Function AH = 00h: Set Display Mode 6. Conversions and Interfaces
BIOS On Entry: AH = 00h AL = Display mode 0 = 40x25 B/W text 1 = 40x25 color text 2 = 80x25 B/W text 3 = 80x25 color text 4 = 320x200 color graphics 5 = 320x200 B/W graphics 6 = 640x200 color graphics 13 = 320x300 16Ćcolor graphics 14 = 640x200 16Ćcolor graphics 15 = 640x350 2Ćcolor graphics 16 = 640x350 16Ćcolor graphics 17 = 640x480 2Ćcolor graphics 18 = 640x480 16Ćcolor graphics 19 = 320x300 256Ćcolor graphics On Return: None " " " " " " " " " "
Start address of the REGEN buffer data item is initialized to zero. crt_mode is set to the selected mode. crt_cols is set to the number of columns for the selected mode. page_len is set to 1000h for 80x25 modes, and 800h for 40x25 modes. page_offset is set to zero for all modes. cursor_loc array is initialized to zero for all modes. curstype is set to 0x607 for all modes. curpage is set to 0 for all modes. If bit 7 of AL is set, the display buffer is not cleared. Default mode is 3 (80 x 25 text color); set by the BIOS at powerĆup.
VROTATE All requested input modes are saved in memory but no action is taken to place the video controller in a new mode. The screen is cleared. On Entry: AH = 00h AL = Display mode (ignored) On Return: None
6-36
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 173
SECTION 6
Conversions and Interfaces
INT 10h, Function AH = 01h: Set Cursor Type
On Entry: AH = 01h CH = Value 0ć7 = Start scan row in character box. CL = Value 0ć7 = Ending scan row in character box. On Return: None VROTATE This function is ignored. The cursor shape does not change, so CH and CL are ignored with respect to cursor shape. The cursor top and bottom lines are saved to memory. The function does control whether the cursor is on or off for the curĆ rently selected video page. If CH is equal to 0XE0, the cursor is turned off. This checks for PL/N emulation of cursor on and cursor off. If this test fails and if bit 5 of CH is set, the cursor is turned off. Otherwise, the cursor is turned on. On Entry: AH = 01h CH = Top cursor scan line CL = Bottom cursor scan line On Return: None INT 10h, Function AH = 01F9h: Read V25 Comparator Port 4000API On Entry: AH = 01h AL = F9h BH = Mask used with output of PORTT BL = Trip voltage threshold to compare with On Return: BL = PORTT value Zero = Result of comparison Set = Current value below input tripĆvoltage threshold Reset = Current value above input tripĆvoltage threshold
PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-37
6. Conversions and Interfaces
BIOS The cursor is not displayed in graphics modes and the selected cursor type apĆ plies to all video pages. curstype is set to the value in CX. The cursor can be disĆ played on up to eight scan rows, numbered 0 (top) to 7 (bottom). The default setĆ ting is CH = 6, CL = 7. Setting bit 5 of CH causes the cursor to disappear.
Page 174
Conversions and Interfaces
SECTION 6
INT 10h, Function AH = 02h: Set Cursor Position
6. Conversions and Interfaces
BIOS, VROTATE Sets the cursor position for the display page represented by BH. There is no erĆ ror checking of cursor position to determine whether it is outside of the page buffer. Applies to all video modes, though not visible in graphic modes. A page need not be active for the function to perform properly. The cursor may be move off the screen, causing it to disappear. Position (0, 0) is the upper left corner of the display. cursor_loc[page] is set to the value in DH and DL. The page number must be 0 for graphics modes. There are eight pages available for 40x25 text modes, numĆ bered 0 7, and four pages for 80x25 text modes, numbered 0 4. On Entry: AH = 02h BH = Display page number (zero based) DH = Row DL = Column On Return: None INT 10h, Function AH = 03h: Read Cursor Position and Mode BIOS, VROTATE Returns the cursor position from the value in cursor_loc[page] for the page repreĆ sented by BH in register DX. The page selected need not be active. The display page value is equal to zero for graphic modes. On Entry: AH = 03h BH = Display page number On Return: DH = Cursor row DL = Cursor column CX = Cursor type CH = Start scan row in character box CL = Ending scan row in character box INT 10h, Function AH = 05h: Set Active Display Page BIOS, VROTATE Makes the page represented by AL the active display page. All page numbers are zeroĆbased. Page zero is the default page number for all video modes and starts at the beginning of the display memory. Pages 0ć7 may be selected for modes 0ć7 and 0x0D. Pages 0ć3 may be selected for mode 0x0E. Pages 0 and 1 may be selected for modes 0x0F and 0x10. The cursor position and display inforĆ mation are maintained for pages during switches. " NOTE:
For VROTATE.EXE, only pages 0 and 1 are supported.
On Entry: AH = 05h AL = Page number (zero based) On Return: None 6-38
PEN*KEY R 6100 Computer Programmer’s Reference Guide
Page 175
SECTION 6
Conversions and Interfaces
INT 10h, Function AH = 06h: Scroll Active Page Up
INT 10h, Function AH = 07h: Scroll Active Page Down BIOS, VROTATE Allows the active display page to scroll down the number of lines indicated by AL. If AL = 0, the entire window is blanked. Information outside the scroll winĆ dow indicated by the values in CH, CL, DH, and DL is not altered. Works in all display modes. For 320x200 graphics modes, the position used to determine the window area is based on a 40x25 display. For 640x200 and 640x480 graphic modes, the position used is based on a 80x25 display. On Entry: AH = 07h AL = Number of lines to scroll BH = Attribute for blank lines CX = UpperĆleft corner CH = Row CL = Column DX = LowerĆright corner DH = Row DL = Column On Return: None INT 10h, Function AH = 08h: Read Attribute & Character at Cursor Position BIOS, VROTATE Reads character and attribute at current cursor position for selected page. Works for all video modes. The page can be inactive for this to operate correctly. On Entry: AH = 08h BH = Display page number On Return: AH = Attribute of character AL = Value of character at the cursor position PEN*KEY R 6100 Computer Programmer’s Reference Guide
6-39
6. Conversions and Interfaces
BIOS, VROTATE Allows active display page scroll up the number of lines indicated by AL. If AL = 0, the entire window is blanked. Information outside the scroll window indicated by the values in CH, CL, DH, and DL is not altered. Works in all display modes. For 320x200 graphics modes, the position that determines the window area is based on a 40x25 display. For 640x200 and 640x480 graphic modes, the position used is based on a 80x25 display. On Entry: AH = 06h AL = Number of lines to scroll BH = Attribute for blank lines CX = UpperĆleft corner CH = Row CL = Column DX = LowerĆright corner DH = Row DL = Column On Return: None
Page 176
Conversions and Interfaces
SECTION 6
INT 10h, Function AH = 09h: Write Attribute & Character at Cursor Position
6. Conversions and Interfaces
BIOS, VROTATE Writes the character and attribute at the current cursor position, for the selected page. The character is written the number of times indicated by the value in CX. If the number of repeats exceed the end of a line, characters wrap to the next line. In graphics modes, wrapping does not take place. All ASCII values from 0ć256 produces a display, including control characters. Control characters do not produce control functions but do cause special characters to display. Control characters do not alter the cursor position. The cursor is never advanced by the function. Pages that are not active can be written to. In graphic modes, the bit map for ASCII values 128ć255 are stored in a table pointed at by location 0:10Ch in the interrupt table location (Interrupt 43h). This value is initialized to an internal table maintained by the BIOS. This value may be altered to point to a userĆdefined table. The BIOS maintains a separate bit map table for ASCII values 0ć127. The value in BL is the foreground color of the character being written, and if bit seven of BL is set, the color value is XOR'ed with the current contents of the screen position. On Entry: AH = 09h AL = Value of the character BH = Display page number BL = Character attribute (or color in graphics mode) CX = Count of characters to write On Return: None INT 10h, Function AH = 0Ah: Write Character Only at Cursor Position BIOS, VROTATE Performs the same as Function 9, except that the attribute (of the previous charĆ acter at the current cursor location) remains unchanged. On Entry: AH = 0Ah AL = Value of the character BH = Display page CX = Count of characters to write On Return: None
6-40
PEN*KEY R 6100 Computer Programmer’s Reference Guide