The text of a manual · part 15 of 28
PEN*KEY 6400 Computer Programmer's Reference Guide: Section 5: BIOS Interrupt Support, pages 111 to 120
Pages 111 to 120 of 234, from PEN*KEY 6400 Computer Programmer's Reference Guide
The original document is the PDF (1.4 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 Intermec 6400
Page 111
Section 5
BIOS Interrupt Support "
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
Introduction This section contains detailed descriptions of the BIOS interrupts supported for the PEN*KEYr 6400 Computer. Several methods have been provided for locating the interrupts and their definitions, as described below: " The Topic Summary, below, contains pointers to each of the major topics in this section. " The Interrupt Cross-Reference table, at the beginning of the topic entitled, Cross-Reference by Interrupt Number, has been organized by interrupt number, in ascending order. " The Interrupt Index, at the end of the Index section, has been organized alphabetically, to assist in locating the interrupts by topic. Topic Summary Topic
Page
Cross-Reference by Interrupt Number . . . . . . . . . . . . . . . . . . . . .
5-2
Table 5-1, Interrupt Cross-Reference . . . . . . . . . . . . . . . . . . . .
5-2
Interrupt Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6
INT 09h, Keyboard Data Ready Services . . . . . . . . . . . . . . . . .
5-6
INT 10h, Display Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-7
INT 13h, Disk Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-26
Table 5-2, Disk Status Error Codes . . . . . . . . . . . . . . . . . . . .
5-34
INT 13h, NORAND Extensions . . . . . . . . . . . . . . . . . . . . . . . . .
5-35
INT 14h, Communications Services . . . . . . . . . . . . . . . . . . . . .
5-36
Table 5-3, Line Status Register Values . . . . . . . . . . . . . . . . .
5-40
Table 5-4, Modem Status Register Values . . . . . . . . . . . . . .
5-40
INT 15h, System BIOS Services . . . . . . . . . . . . . . . . . . . . . . . . .
5-41
INT 16h, Keyboard BIOS Services . . . . . . . . . . . . . . . . . . . . . .
5-61
INT 1Ah, Timer and Real-Time Clock Services . . . . . . . . . . .
5-66
INT 7Ah, Scanner Services, 6400IKPS.EXE . . . . . . . . . . . .
5-71
PEN*KEYR 6400 Programmer’s Reference Guide
5-1
Page 112
SECTION 5
BIOS Interrupt Support
Cross-Reference by Interrupt Number The table below contains a list of interrupts supported for the 6400 Computer. They are organized by interrupt number, in ascending order. " NOTE:
A checkmark in the column labeled as, Ext., indicates the interrupt is an extensions to the standard BIOS. Whereas, a blank means it is supported by the standard BIOS. Table 5-1 Interrupt Cross-Reference
INT 09h Keyboard Data Ready Services
Ext.
AH=
AL=
BH= BL=
(This is the keyboard hardware interrupt) INT 10h Display Services
5-6 Ext.
AH=
AL=
BH= BL=
Set Display Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set Cursor Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set Cursor Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Cursor Position and Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set Active Display Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Scroll Window Up (active page) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Scroll Window Down (active page) . . . . . . . . . . . . . . . . . . . . . . . . . . Read Character and Attribute at Current Cursor Position . . . . Write Character and Attribute at Current Cursor Position . . . . Write Character (no attribute) at Current Cursor Position . . . . Write Graphics Dot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Graphics Dot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Teletype Character Write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Current Video Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
00h 01h 02h 03h 05h 06h 07h 08h 09h 0Ah 0Ch 0Dh 0Eh 0Fh
Alternate Select Functions Turn Display On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Turn Display Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12h 12h
00h 01h
36h 36h p p p p p p p p p p p
12h 12h 12h 12h 12h 12h 12h 12h 12h 12h 12h
00h 01h 02h 03h 04h 05h 06h 07h
F6h F6h F6h F6h F6h F6h F6h F6h F8h F9h FAh p
12h
Set Window Pan Mode and Borders Set Viewport position to Lower-Left Corner . . . . . . . . . . . . . . . . Set Viewport position to Upper-Left Corner . . . . . . . . . . . . . . . . Set Viewport to Follow Cursor . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reset Annunciator Line to Current Keyboard Settings . . . . . . Enable/Disable Annunciator Panning . . . . . . . . . . . . . . . . . . . . . . Get Current Viewport Location . . . . . . . . . . . . . . . . . . . . . . . . . . . Lock Viewport . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Unlock Viewport . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Write BIOS Annunciator Values (with attribute) . . . . . . . . . . . . Write BIOS Annunciator Values (without attribute) . . . . . . . . . Set Physical Display Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Return Pointer to Current Display Parameter Packet and Font Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2
PEN*KEYR 6400 Programmer’s Reference Guide
Page
Page 5-7 5-8
5-9 5-10 5-11 5-12
FBh
5-13
5-14
5-15
5-16
5-17
Page 113
BIOS Interrupt Support
SECTION 5
INT 10h Display Services (continued)
Ext.
AH=
AL=
BH= BL=
Page
Select 3x4x Specific Display Modes Select Chase Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select Fixed Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select Setparms Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select Graphics Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Return Physical Display Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
p p p p p
12h 12h 12h 12h 12h
E0h E1h E2h E3h
FCh FCh FCh FCh FDh
5-18
Contrast Control Get Contrast (temperature compensated) . . . . . . . . . . . . . . . . . . Set Contrast (temperature compensated) . . . . . . . . . . . . . . . . . . . Get Contrast (absolute, no compensation) . . . . . . . . . . . . . . . . . . Set Contrast (absolute, no compensation) . . . . . . . . . . . . . . . . . . Compensate Contrast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Turn Contrast Heater Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Turn Contrast Heater On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
p p p p p p p
12h 12h 12h 12h 12h 12h 12h
00h 01h 02h 03h 05h 06h 07h
FEh FEh FEh FEh FEh FEh FEh p p p p p p p p
12h 12h 12h 12h 12h 12h 12h 12h 14h F0h FFh
00h 01h 02h 03h 04h 05h 06h 07h 00h
FFh FFh FFh FFh FFh FFh FFh FFh
AH=
AL=
Backlight Control Turn Backlight On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Turn Backlight Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Toggle Backlight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Backlight Intensity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set Backlight Intensity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set Backlight Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Refresh Backlight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Backlight Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Load User Font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Draw Pixel Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Refresh the Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . INT 13 Disk Services p
Ext.
Reset Disk System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get Status of Last Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Sectors into Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Write Disk Sectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Verify Disk Sectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Format Track (floppy disk) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get Drive Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get Disk Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detect Disk Change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set Disk Type for Format (floppy disk) . . . . . . . . . . . . . . . . . . . . . . Set Media Type for Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ext.
AH=
Disable Access to RAM Drive Memory . . . . . . . . . . . . . . . . . . . . . . Enable Access to RAM Drive Memory . . . . . . . . . . . . . . . . . . . . . . . Enable Checksum of RAM Drive Integrity Memory . . . . . . . . . .
p p p
DAh EAh ECh
5-20
5-21
5-22
5-23
5-24
BH=
BL=
00h 01h 02h 03h 04h 05h 08h 15h 16h 17h 18h
INT 13h Extensions to Std. Disk Services BIOS
5-19
Page 5-26 5-27 5-28 5-29 5-30 5-31 5-32 5-33
AL=
BH=
BL=
Page 5-35
PEN*KEYR 6400 Programmer’s Reference Guide
5-3
Page 114
SECTION 5
BIOS Interrupt Support
INT 14h Communications Services
Ext.
Initialize Communications Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . Transmit a Character . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Receive a Character . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Communications Port Status . . . . . . . . . . . . . . . . . . . . . . . . . Extended Initialize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Modem Control Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Write Modem Control Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
AH=
AL=
00h 01h 02h 03h 04h 05h 05h
00h 01h
INT 15h System BIOS Services
Ext.
AH=
AL=
Scanner Task Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Beep the Buzzer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Query A20 Gate Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Request Low Power Sleep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 . . . . . . . . . . . . . . . . . OEM Installation Check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get System Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device Open . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device Close . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Program Termination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set Event Wait Interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Cancel Event Wait Interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Joystick Input Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System Request (SysReq) Key Pressed / Released . . . . . . . . . . . Wait (Elapsed Time) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Copy Extended Memory Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Extended Memory Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Switch Processor to Protected Mode . . . . . . . . . . . . . . . . . . . . . . . . Device Busy Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Complete the Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get System Configuration Parameters . . . . . . . . . . . . . . . . . . . . . Return Extended BIOS Data-Area Segment (EBDA) . . . . . . . . .
p p
01h 01h 24h 42h 4Fh 53h 53h 53h 53h 53h 53h 53h 53h 53h 53h 53h 53h 53h 80h 81h 82h 83h 83h 84h 85h 86h 87h 88h 89h 90h 91h C0h C1h
0Ch FAh 03h FFh
5-4
PEN*KEYR 6400 Programmer’s Reference Guide p
00h 01h 04h 05h 06h 07h 08h 0Ah 0Bh 0Ch 0Dh 80h 80h
00h 01h
BH=
BL=
Page 5-36 5-37 5-37 5-37 5-38 5-39 5-39
BH=
7Fh C3h
BL=
Page 5-41 5-41 5-41 5-42 5-42 5-43 5-44 5-44 5-45 5-45 5-46 5-47 5-47 5-48 5-49 5-50 5-50 5-51 5-51 5-52 5-52 5-53 5-53 5-53 5-54 5-54 5-55 5-55 5-56 5-57 5-58 5-59 5-60
Page 115
BIOS Interrupt Support
SECTION 5
INT 16h Keyboard BIOS Services
Ext.
AH=
AL=
Read Next ASCII Character from Keyboard . . . . . . . . . . . . . . . . . Get Keyboard Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get Shift Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
00h 01h 02h
Buzzer Control Turn Off Key Click . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Turn On Key Click . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set Key Click Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get Key Click Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set Error Beep Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get Error Beep Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Sound Key Click . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Sound Error Beep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select Buzzer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Beep the Buzzer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
p p p p p p p p
04h 04h 04h 04h 04h 04h 04h 04h 04h 04h
00h 01h 02h 03h 04h 05h 06h 07h 08h 09h
INT 1Ah Timer and Real-Time Clock Services
Ext.
AH=
AL=
BH=
BL=
Page 5-61 5-61 5-62 5-62 5-62 5-63 5-63 5-63 5-64 5-64 5-64 5-64 5-65
BH=
BL=
Page
Read System Timer Ticks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
00h
5-66
Write System Timer Ticks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
01h
5-66
Read the Real-Time Clock Time . . . . . . . . . . . . . . . . . . . . . . . . . . . .
02h
5-67
Set the Real-Time Clock Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
03h
5-67
Read the Real-Time Clock Date . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
04h
5-68
Set the Real-Time Clock Date . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
05h
5-68
Set the Real-Time Clock Alarm . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
06h
5-69
Reset the Real-Time Clock Alarm . . . . . . . . . . . . . . . . . . . . . . . . . . .
07h
5-69
Read the Real-Time Clock Alarm . . . . . . . . . . . . . . . . . . . . . . . . . . .
09h
5-70
Load the Real-Time Clock to Internal Clock . . . . . . . . . . . . . . . . .
FFh
5-70
INT 7Ah Scanner Services, 6400IKPS.EXE
Ext.
AH=
Scanner On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Scanner Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set Scanner Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set Bar Code Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Bar Code Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Flush Scanner Concatenation Buffer . . . . . . . . . . . . . . . . . . . . . . . .
p p p p p p
80h 81h 82h 83h 84h FEh
AL=
BH=
BL=
Page 5-71 5-71 5-71 5-72 5-76 5-77
PEN*KEYR 6400 Programmer’s Reference Guide
5-5
Page 116
SECTION 5
BIOS Interrupt Support
Interrupt Definitions This paragraph contains a detailed listing of the interrupts supported for 6400 applications. To search for an interrupt by interrupt number: "
" refer to Table 5-1, Interrupt Cross-Reference , on page 5-2, in this section, (which will direct you to the page where an interrupt is defined) thumb through the detailed interrupt listing
To search for an interrupt alphabetically: use the Interrupt Index, at the end of the Index section (which will direct you to the page where an interrupt is defined) To determine what applications support each of these interrupts, a reference token has been included at the beginning of each interrupt definition. This token is immediately following the interrupt title, and is a logical name that represents either the BIOS or the application handling the interrupt. "
The reference tokens for the BIOS and the applications are as follows: System BIOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Power management BIOS application, . . ELANAPM.EXE . . . DOS power management driver, . . . . . . . NORDOSPM.EXE . Miscellaneous TSR, . . . . . . . . . . . . . . . . . . MISCTSR.EXE . . . . Scanner Ser vices, . . . . . . . . . . . . . . . . . . . 6400IKPS.EXE . . . . RF BIOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . NORAND APM OEM Functions, . . . . . . 64APMOEM.EXE .
BIOS ELANAPM NORDOSPM MISCTSR SCANBIOS RFBIOS 64APMOEM
In some cases, there may be more than one application supporting a particular interrupt. In that case, you will find more than one token at the beginning of that interrupt definition. For example, if the tokens for both ELANAPM and RFBIOS are listed for a particular interrupt, that means the interrupt is supported by both the power management BIOS, ELANAPM.EXE, and the RF BIOS application. " NOTE:
All functions involving the carry flag, return with the carry flag set if there is an error. Otherwise, the carry flag is cleared.
INT 09h, Keyboard Data Ready Services BIOS INT 09h is generated from IRQ1 when data is received from the keyboard. This is normally a scan code (from either a keypress or a key release); but could also be from an ACK or a NAK of a command. IRQ1 could be masked by setting bit 1 on I/O port 21h. After reading the scan code from the keyboard (at port 60), INT 15/AH=4Fh is called. This is the keyboard intercept, which converts the keyboard matrix scan codes to PC compatible scan codes. All further processing uses this PC scan code. Refer to a DOS reference book for details of these scan codes. See Also: INT 15/AH=4Fh, INT 15/AH=85h, INT 16 5-6
PEN*KEYR 6400 Programmer’s Reference Guide
Page 117
BIOS Interrupt Support
SECTION 5
INT 10h, Display Services INT 10h, Function AH = 00h; Set Display Mode
BIOS The following actions are taken when this function is called: " The start address of the REGEN buffer data item is initialized to zero. "
The crt_mode parameter is set to the selected mode.
"
The crt_cols parameter is set to number of columns for the selected mode.
"
The page_len parameter is set to 1000h for 80x25 modes, and to 800h for 40x25 modes.
"
The page_offset parameter is set to zero for all modes.
"
The cursor_loc parameter is initialized to zero for all modes.
"
The curstype parameter is set to 0x607 for all modes.
"
The curpage parameter is set to 0 for all modes.
"
If bit 7 of register AL is set, the display buffer is not cleared.
At power up, the default mode of 3 (80x25 Color Text) is set by the 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
On Return: None
INT 10h, Function AH = 01h; Set Cursor Type
BIOS Sets the cursor type. The cursor is not displayed in graphics modes and the selected cursor type applies to all video pages. The cursor stype parameter is set to the value in register-pair CX. The cursor is displayed on (up to) 8 scan rows, numbered 0 (top) to 7 (bottom). The default cursor type is the same as when settings are CH = 6, CL = 7. When bit 5 of CH is set, the cursor disappears. On Entry: AH = 01h CH = Starting scan row in character box (range: 0 to 7) CL = Ending scan row in character box (range: 0 to 7)
On Return: None
PEN*KEYR 6400 Programmer’s Reference Guide
5-7
Page 118
SECTION 5
BIOS Interrupt Support
INT 10h, Function AH = 02h; Set Cursor Position
BIOS Sets the cursor position for the display page represented by register BH. This function applies to all video modes, although the cursor is not visible in graphics modes. A page does not need to be currently active for the function to perform properly. Attempting to move the cursor out of the virtual screen, results in positioning it on the last line and/or column accessible. Position (0, 0) is the upper-left corner of the display. 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 Type
BIOS Returns the cursor position for the display page represented by register BH. This function applies to all video modes, although the cursor is not visible in graphics modes. A page does not need to be currently active for the function to perform properly. The cursor can be moved off the screen. Positioning the cursor off the screen causes it to disappear. Position (0, 0) is the upper-left corner of the display. The cursor type is returned in register CX. On Entry: AH = 03h BH = Display page number (zero-based)
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 Makes the page represented by register AL the active 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 through 7 may be selected for modes 0 through 7 and 0x0D. Pages 0 through 3 may be selected for mode 0x0E. Pages 0 and 1 may be selected for modes 0x0F and 0x10. The cursor position and display information are maintained for pages during switches. On Entry: AH = 05h BH = Display page number (zero-based)
On Return: None
5-8
PEN*KEYR 6400 Programmer’s Reference Guide
Page 119
BIOS Interrupt Support
SECTION 5
INT 10h, Function AH = 06h; Scroll Window Up (active page)
BIOS Scrolls the active page up, by the number of lines indicated by register AL. If register AL = 0, the entire window is blanked. Information outside of the scroll window, as indicated by the values in registers CH, CL, DH, and DL, is not altered. This function 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 graphics modes, the position is based on an 80x25 display. On Entry: AH = 06h AL = Number of lines to scroll BH = Attribute for blank lines CX = Upper-left corner CH = Line CL = Column DX = Lower-right corner CH = Line CL = Column
On Return: None
INT 10h, Function AH = 07h;Scroll Window Down (active page)
BIOS Scrolls the active page down by the number of lines indicated by AL. If AL = 0, the entire window is blanked. Information outside of the scroll window, as indicated by the values in registers CH, CL, DH, and DL, is not altered. This function 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 graphics modes, the position is based on an 80x25 display. On Entry: AH = 07h AL = Number of lines to scroll BH = Attribute for blank lines CX = Upper-left corner CH = Line CL = Column DX = Lower-right corner CH = Line CL = Column
On Return: None
PEN*KEYR 6400 Programmer’s Reference Guide
5-9
Page 120
SECTION 5
BIOS Interrupt Support
INT 10h, Function AH = 08h; Read Character and Attribute at Current Cursor Position
BIOS Reads the character and the attribute at the current cursor position, for the selected page. This function works in all display modes. The page does not need to be active for the function to operate correctly. On Entry: AH = 08h BH = Display page number
On Return:
AH = Attribute of display character AL = Value of character at the cursor position
" NOTE:
The above function is only supported for page zero (0). INT 10h, Function AH = 09h; Write Character and Attribute at Current Cursor Position
BIOS Writes the character and the attribute at the current cursor position, for the selected page. If the number of characters exceeds the end of a line, they 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 the special characters are displayed. Control characters do not alter the cursor position. The cursor is not advanced. This function works in all display modes. The page does not need to be active for the function to operate correctly. 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
5-10
PEN*KEYR 6400 Programmer’s Reference Guide