Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 17 of 28

PEN*KEY 6400 Computer Programmer's Reference Guide: Section 5: BIOS Interrupt Support, pages 131 to 140

Pages 131 to 140 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 131

BIOS Interrupt Support

SECTION 5

INT 10h, Function AX = 1207h; Turn Contrast Heater On Subfunction BL = FEh; Alternate Function

BIOS This is a Contrast Control function. On Entry:

AH = 12h AL = 07h (Turn Contrast Heater On function) BL = 0FEh BH = On time for heater

On Return: None

" NOTE:

The function, described above, is NOT currently supported. INT 10h, Function AX = 1200h; Turn Backlight On Subfunction BL = FFh; Alternate Function

BIOS RFBIOS This is a Backlight Control function. On Entry:

AH = 12h AL = 00h (Turn Backlight On function) BH = 00h BL = 0FFh

On Return: None

INT 10h, Function AX = 1201h; Turn Backlight Off Subfunction BL = FFh; Alternate Function

BIOS RFBIOS This is a Backlight Control function. On Entry:

AH = 12h AL = 01h (Turn Backlight Off function) BH = 00h BL = 0FFh

On Return: None

PEN*KEYR 6400 Programmer’s Reference Guide

5-21

Page 132

SECTION 5

BIOS Interrupt Support

INT 10h, Function AX = 1202h; Toggle Backlight Subfunction BL = FFh; Alternate Function

BIOS RFBIOS This is a Backlight Control function. On Entry:

AH = 12h AL = 02h (Toggle Backlight function) BH = 00h BL = 0FFh

On Return: None

INT 10h, Function AX = 1203h; Read Backlight Intensity Subfunction BL = FFh; Alternate Function

BIOS RFBIOS This Backlight Control function reads the current backlight intensity. On Entry: AH = 12h AL = 03h (Read Backlight Intensity function) BH = 00h BL = 0FFh

On Return:

BH = Intensity (range: 0 = lightest to 255 = darkest)

INT 10h, Function AX = 1204h; Set Backlight Intensity Subfunction BL = FFh; Alternate Function

BIOS RFBIOS This Backlight Control function sets backlight intensity to specified value. On Entry: AH = 12h AL = 04h (Write Backlight Intensity function) BL = 0FFh BH = Intensity (range: 0 = lightest to 255 = darkest)

On Return: None

5-22

PEN*KEYR 6400 Programmer’s Reference Guide

Page 133

BIOS Interrupt Support

SECTION 5

INT 10h, Function AX = 1205h; Set Backlight Timer Subfunction BL = FFh; Alternate Function

BIOS RFBIOS This Backlight Control function sets the backlight timer to specified value. On Entry: AH = 12h AL = 05h (Set Backlight Timer function) BL = 0FFh BH = Timer value in seconds

On Return: None

INT 10h, Function AX = 1206h; Refresh Backlight Subfunction BL = FFh; Alternate Function

BIOS RFBIOS This Backlight Control function refreshes the backlight (due to a keypress). On Entry: AH = 12h AL = 06h (Refresh Backlight function) BH = 00h BL = 0FFh

On Return: None

INT 10h, Function AX = 1207h; Read Backlight Timer Subfunction BL = FFh; Alternate Function

BIOS RFBIOS This Backlight Control function reads the backlight timer. On Entry: AH = 12h AL = 07h (Read Backlight Timer function) BL = 0FFh

On Return: BH = Timer value in seconds

PEN*KEYR 6400 Programmer’s Reference Guide

5-23

Page 134

SECTION 5

BIOS Interrupt Support

INT 10h, Function AX = 1400h; Load User Font

BIOS Loads and stores user fonts, for use in place of the default fonts. On Entry: AH = 14h AL = 00h BL = Request type 00h Load main font 0FFh Load 16-line display font BH = Number of bytes per character CX = Number of characters to store DX = Character offset into font of first character to store ES:DI = Address of start of user font table (bit map)

The font data is stored byte-by-byte (as a bit map), starting with the top row in the first byte, ending with the bottom byte in the last byte. For example, if you are replacing a single character, “1”, in a particular font: " The data for the replacement character needs to be stored as shown in the following example, where ES:DI + 0 (below) represents the address pointed to by ES:DI, and the binary data listed represents the data stored at that location. " BH=8 because there are eight bytes to store for this character. " CX=1 since you are only storing one character. " DX=31h which is the offset to that character in the standard font table. Location ES:DI + 0 ES:DI + 1 ES:DI + 2 ES:DI + 3 ES:DI + 4 ES:DI + 5 ES:DI + 6 ES:DI + 7

Binary Data 0001 0000 0001 0000 0001 0000 0001 0000 0001 0000 0001 0000 0001 0000 0000 0000

On Return: None Note: The largest bitmap font that can be supported is 8 kilobytes.

5-24

PEN*KEYR 6400 Programmer’s Reference Guide

Page 135

BIOS Interrupt Support

SECTION 5

INT 10h, Function AH = F0h; Draw Pixel Map

BIOS RFBIOS This function specifies pixel picture size, position, points to pixel map, and draws the map. On Entry: AH = 0F0h BX = Pixel picture height CX = Pixel picture width DX = Pixel picture top line DI = Pixel picture left column DS:SI = Points to pixel map

On Return: None

INT 10h, Function AH = FFh; Refresh the Screen

BIOS Refreshes the display screen. On Entry: AH = 0FFh

On Return: None

PEN*KEYR 6400 Programmer’s Reference Guide

5-25

Page 136

SECTION 5

BIOS Interrupt Support

INT 13h, Disk Services INT 13h, Function AH = 00h; Reset Disk System

BIOS Resets the specified disk drive. On Entry:

AH = 00h DL = Drive number (if bit 7 is set, both hard disks and floppy disks reset)

On Return:

Carry = Status flag AH = Status of operation if successful: Carry = 0 AH =00h if NOT successful: Carry = 1 AH =error code

Error Codes: Refer to Table 5-2, Disk Status Error Codes, page 5-34, for a list of the possible error codes. Note: This function forces controller to recalibrate drive heads (seek to track 0) INT 13h, Function AH = 01h; Get Status of Last Operation

BIOS Gets the status of the previous operation on the specified disk drive. On Entry: AH = 01h DL = Drive number (bit 7 set for hard disk)

On Return:

Carry = Status flag AH = Status of operation if successful: Carry = 0 AH =00h if NOT successful: Carry = 1 AH =error code

Error Codes: Refer to Table 5-2, Disk Status Error Codes, page 5-34, for a list of the possible error codes. Note: Some BIOS systems return the status in register AL.

5-26

PEN*KEYR 6400 Programmer’s Reference Guide

Page 137

BIOS Interrupt Support

SECTION 5

INT 13h, Function AH = 02h; Read Sectors into Memory

BIOS Reads the specified sectors, from the specified disk drive, into memory. On Entry: AH = 02h AL = Number of sectors to read (Must be nonzero) CH = Low eight bits of cylinder number CL = Sector number 1–63 (bits 0–5) high two bits of cylinder (bits 6–7, hard disk only) DH = Head number DL = Drive number (bit 7 set for hard disk)

On Return:

Carry = Status flag AH = Status of operation AL = Number of sectors transferred (if register AH returns error code 11h, then register AL = burst length) if successful: Carry = 0 AH =00h if NOT successful: Carry = 1 AH =error code

Error Codes: Refer to Table 5-2, Disk Status Error Codes, page 5-34, for a list of the possible error codes. Note 1: Errors on a floppy may be due to the the motor failing to spin up quickly enough. Retry the read (or write) at least three times, resetting the disk (with AH = 00h) between attempts. Note 2: Many BIOS systems use only the low four bits of DH (head number) since the WD-1003 controller (the standard AT controller and the controller that IDE emulates) only supports 16 heads. See Also: Functions AH=03h and AH=0Ah.

PEN*KEYR 6400 Programmer’s Reference Guide

5-27

Page 138

SECTION 5

BIOS Interrupt Support

INT 13h, Function AH = 03h; Write Disk Sectors

BIOS Writes from memory to the specified sectors on the specified disk drive. On Entry: AH = 03h AL = Number of sectors to write (must be nonzero) CH = Low eight bits of cylinder number CL = Sector number 1–63 (bits 0–5) high two bits of cylinder (bits 6–7, hard disk only) DH = Head number DL = Drive number (bit 7 set for hard disk)

On Return:

Carry = Status flag AH = Status of operation AL = Number of sectors transferred (if register AH returns error code 11h, then register AL = burst length) if successful: Carry = 0 AH =00h if NOT successful: Carry = 1 AH =error code

Error Codes: Refer to Table 5-2, Disk Status Error Codes, page 5-34, for a list of the possible error codes. Note 1: Errors on a floppy may be due to the the motor failing to spin up quickly enough. Retry the read (or write) at least three times, resetting the disk (with AH = 00h) between attempts. Note 2: Many BIOS systems use only the low four bits of DH (head number) since the WD-1003 controller (the standard AT controller and the controller that IDE emulates) only supports 16 heads. See Also: Functions AH=02h and AH=0Bh.

5-28

PEN*KEYR 6400 Programmer’s Reference Guide

Page 139

BIOS Interrupt Support

SECTION 5

INT 13h, Function AH = 04h;Verify Disk Sectors

BIOS Verifies the specified sectors on the specified disk drive. On Entry: AH = 04h AL = Number of sectors to verify (must be nonzero) CH = Low eight bits of cylinder number CL = Sector number 1–63 (bits 0–5) high two bits of cylinder (bits 6–7, hard disk only) DH = Head number DL = Drive number (bit 7 set for hard disk)

On Return:

Carry = Status flag AH = Status of operation AL = Number of sectors verified if successful: Carry = 0 AH =00h if NOT successful: Carry = 1 AH =error code

Error Codes: Refer to Table 5-2, Disk Status Error Codes, page 5-34, for a list of the possible error codes. Note 1: Errors on a floppy may be due to the the motor failing to spin up quickly enough. Retry the read (or write) at least three times, resetting the disk (with AH = 00h) between attempts. Note 2: Many BIOS systems use only the low four bits of DH (head number) since the WD-1003 controller (the standard AT controller and the controller that IDE emulates) only supports 16 heads. Note 3: This function does not compare the disk with memory. It checks whether the sector’s stored CRC matches the data’s CRC. See Also: Function AH=02h.

PEN*KEYR 6400 Programmer’s Reference Guide

5-29

Page 140

SECTION 5

BIOS Interrupt Support

INT 13h, Function AH = 05h; Format Track (floppy disk)

BIOS Formats the specified track, for the specified sectors on the specified disk drive. On Entry: AH = 05h AL = Number of sectors to format (must be nonzero) CH = Track number DH = Head number DL = Drive number (bit 7 set for hard disk)

On Return:

Carry = Status flag AH = Status of operation if successful: Carry = 0 AH =00h if NOT successful: Carry = 1 AH =error code

Error Codes: Refer to Table 5-2, Disk Status Error Codes, page 5-34, for a list of the possible error codes. Note: On AT or higher, call AH = 17h first. The number of sectors per track is read from the diskette parameter table pointed to by INT 1E. See Also: Functions AH=05h “FIXED”, AH=17h, AH=18h, and INT 1E.

Format of address field buffer entry (one per sector in track):

5-30

Offset Size

Description

00h 01h 02h 03h

BYTE BYTE BYTE BYTE

PEN*KEYR 6400 Programmer’s Reference Guide

Track number Head number (zero-based) Sector number Sector size: 00h = 128 bytes 01h = 256 bytes 02h = 512 bytes 03h = 1024 bytes