Interrupt List, part 2 of 18 Copyright (c) 1989-1999,2000 Ralf Brown --------V-10BF--CX0000----------------------- INT 10 - Athena Digital HGCIBM.COM - INSTALLATION CHECK AH = BFh CX = 0000h (???) Return: CX = 0202h DL = ??? (internal data, possibly version number) --------b-10BF00----------------------------- INT 10 - VIDEO - Compaq Extensions - SELECT EXTERNAL MONITOR AX = BF00h Return: nothing Desc: specify that the external monitor become the active monitor Note: all registers preserved and the internal monitor is blanked SeeAlso: AX=BF01h,AX=BF12h,AH=12h/BL=35h --------b-10BF01----------------------------- INT 10 - VIDEO - Compaq Extensions - SELECT INTERNAL MONITOR AX = BF01h Return: nothing Desc: specify that the internal monitor become the active monitor Note: all registers preserved and the external monitor is blanked SeeAlso: AX=BF00h,AX=BF12h,AH=12h/BL=35h --------b-10BF02----------------------------- INT 10 - VIDEO - Compaq Extensions - SET MASTER MODE OF CURRENT CONTROLLER AX = BF02h BH = master mode 04h CGA 05h EGA 07h MDA Return: nothing SeeAlso: AX=BF03h --------b-10BF03BX0000----------------------- INT 10 - VIDEO - Compaq Extensions - GET ENVIRONMENT AX = BF03h BX = 0000h Return: BH = active monitor (00h = external, 01h = internal, 03h both, 04h neither) BL = master mode (see #00211) CH = ASIC type and version 00h (reserved, very early Compaq VGCs) 31h if QVision VGA CL = switchable VDU modes supported (see #00212) DH = internal monitor type (see #00213) DL = external monitor type (see #00213) SeeAlso: AX=1A00h,AX=BF00h,AX=BF01h,AX=BF02h,AX=BF11h (Table 00211) Values for Compaq video master mode: 00h switchable VDU not present 04h CGA 05h EGA 07h MDA 08h switchable LCD controller present 09h plasma VGA 0Ah TFT (active-matrix) VGA Bitfields for Compaq switchable VDU modes support: Bit(s) Description (Table 00212) 0 CGA supported 1,2 reserved (1) 3 MDA supported 4 BitBLT engine available 5 132-column support availble 6 640x480x256 mode available 7 8-bit DAC mode available (Table 00213) Values for Compaq monitor type: 00h none 01h dual-mode monitor 02h 5153 RGB monitor (RGBI 16-color) 03h Compaq Color monitor 04h 640x400 flat panel (Plasma CGA) 05h VGC monochrome 06h VGC color 07h 8-level mono LCD VGA (internal) 1024x768 mono VGA (external) 08h 16-level mono plasma VGA (internal) 1024x768 color VGA (external) 09h 4-level mono LCD CGA 0Ah 16-level mono LCD VGA 0Bh active-matrix color VGA 0Ch active-matrix mono VGA 0Dh STN color VGA --------b-10BF04----------------------------- INT 10 - VIDEO - Compaq Extensions - SET MODE SWITCH DELAY AX = BF04h BH = new state of delay (00h enabled, 01h disabled) Return: nothing Note: the 1993/04/08 sytem ROM appears to use BL instead of BH; a future version of the list will provide more definite information SeeAlso: AX=BF05h --------b-10BF05----------------------------- INT 10 - VIDEO - Compaq Extensions - ENABLE/DISABLE DISPLAY AX = BF05h BH = new state of video 00h off 01h on Return: nothing Note: the 1993/04/08 sytem ROM appears to use BL instead of BH; a future version of the list will provide more definite information SeeAlso: AH=12h/BL=36h,AX=BF04h --------b-10BF06----------------------------- INT 10 - VIDEO - Compaq SLT/286 - READ GRAY SCALE TABLE AX = BF06h CL = address to be read from gray scale table Return: AL = bit 3-0 - Value read from gray scale table CL = address to be read from gray scale table SeeAlso: AH=12h/BL=33h,AX=BF07h --------b-10BF07----------------------------- INT 10 - VIDEO - Compaq SLT/286 - WRITE GRAY SCALE TABLE AX = BF07h CH = value to write to gray scale table CL = address to be written to gray scale table Return: nothing SeeAlso: AX=BF06h,AX=BF08h --------b-10BF08----------------------------- INT 10 - VIDEO - Compaq SLT/286 - WRITE COLOR MIX REGISTERS AX = BF08h CH = bits 7-4 green weight bits 3-0 blue weight CL = bits 7-4 unused bits 3-0 red weight Return: nothing SeeAlso: AH=12h/BL=33h,AX=BF07h --------b-10BF09----------------------------- INT 10 - VIDEO - Compaq Extensions - TURN ON REVERSE VIDEO AX = BF09h Return: CF clear Notes: sets bit 6 of port 03CEh index 81h; in some cases also sets index 84h to 6Fh and index 83h to 04h supported by at least the QVision board and the LTE Lite ROM BIOS SeeAlso: AX=BF0Ah,AX=BF0Bh --------b-10BF0A----------------------------- INT 10 - VIDEO - Compaq Extensions - TURN OFF REVERSE VIDEO AX = BF0Ah Return: CF clear Notes: clears bit 6 of port 03CEh index 81h; in some cases also sets index 84h to 80h and index 83h to FBh supported by at least the QVision board and the LTE Lite ROM BIOS SeeAlso: AX=BF09h,AX=BF0Bh --------b-10BF0B----------------------------- INT 10 - VIDEO - Compaq Extensions - CHECK WHETHER VIDEO REVERSED AX = BF0Bh Return: CF clear AX = state (0000h normal video, 0001h reverse video) Note: supported by at least the QVision board and the LTE Lite ROM BIOS SeeAlso: AX=BF09h,AX=BF0Ah --------b-10BF0C----------------------------- INT 10 - VIDEO - Compaq Extensions - SET DAC 6-BIT MODE AX = BF0Ch Return: CF clear Desc: specify that video DAC registers use only six bits of color info Note: supported by at least the QVision board and the SystemPro XL ROM BIOS SeeAlso: AX=BF0Dh,AX=BF0Eh --------b-10BF0D----------------------------- INT 10 - VIDEO - Compaq Extensions - SET DAC 8-BIT MODE AX = BF0Dh Return: CF clear Desc: specify that video DAC registers use all eight bits of color info Note: supported by at least the QVision board and the SystemPro XL ROM BIOS SeeAlso: AX=BF0Ch,AX=BF0Eh --------b-10BF0E----------------------------- INT 10 - VIDEO - Compaq Extensions - CHECK DAC 6-BIT/8-BIT mode AX = BF0Eh Return: CF clear AL = DAC mode 00h in 6-bit mode 01h in 8-bit mode Note: supported by at least the QVision board and the SystemPro XL ROM BIOS SeeAlso: AX=BF0Ch,AX=BF0Dh --------b-10BF0F----------------------------- INT 10 - VIDEO - Compaq Extensions - SET HIGH ADRESS MAP REGISTER AX = BF0Fh BX = high address map location in megabytes, or 0000h to disable high address map, or FFFFh to let ROM configure high address map Return: CF clear AX = previous value of high address map register Notes: supported by at least the QVision board and the SystemPro XL and LTE Lite ROM BIOSes SeeAlso: AX=BF10h --------b-10BF10----------------------------- INT 10 - VIDEO - Compaq Extensions - GET HIGH ADDRESS MAP REGISTER AX = BF10h Return: CF clear AX = current value of high address map register Notes: supported by at least the QVision board and the SystemPro XL and LTE Lite ROM BIOSes the Compaq QVision documentation (October 1993) says the value is returned in BX, but this appears to be one of many typos SeeAlso: AX=BF0Fh --------b-10BF11----------------------------- INT 10 - VIDEO - Compaq Extensions - GET EXTENDED ENVIRONMENT AX = BF11h Return: AL = BFh if supported CF clear ES:DI -> ASCII signature "COMPAQ" ES:SI -> advanced functionality table (see #00214) Note: supported by at least the QVision board and the LTE Lite and ProSignia ROM BIOSes SeeAlso: AX=1A00h,AX=BF03h Bitfields for Compaq advanced video functionality: Bit(s) Description (Table 00214) 31 future graphics extensions (reserved, set to 0) 30-16 reserved 15-12 available video memory in 256K blocks, less one (0000 = 256K, etc.) 11-8 reserved 7 QVision modes supported 6 Advanced VGA modes supported 5 Accelerated VGA modes supported 4 standard VGA modes supported 3-2 reserved 1 132-column modes supported 0 reserved --------b-10BF12----------------------------- INT 10 - VIDEO - Compaq Extensions - NEW ACTIVE MONITOR AX = BF12h BH reserved BL = function mask (see #00215) Return: CF clear Notes: this function is a NOP if the VGA subsystem is inactive or the current Display Combination Code is 10h or higher supported by at least the QVision board and the LTE Lite and ProSignia ROM BIOSes SeeAlso: AX=BF01h,AX=BF02h,#00733 Bitfields for function mask: Bit(s) Description (Table 00215) 7 command mode if set, bits 1 and 0 make the monitor active when set if clear, bits 1 and 0 toggle the monitor's state when set 6-2 reserved 1 internal monitor 0 external monitor --------b-10BF13----------------------------- INT 10 - VIDEO - Compaq QVision - GAMMA CORRECTION AX = BF13h BL = subfunction 00h load gamma correction table for true-color mode DS = BIOS data segment 01h set palette RAM bypass BH = 00h Return: nothing Note: these functions must be called after a video mode set, and are in effect only for the current video mode SeeAlso: #00733 --------V-10BFA0BXADAD----------------------- INT 10 - VIDEO - Compaq ADAPT.COM - INSTALLATION CHECK AX = BFA0h BX = ADADh Return: AX = BDBDh if newer ADAPT.COM installed BX = BCD version (BH = major, BL = minor) CL = ??? CH = ??? DL = ??? AX = ADADh if older version of ADAPT.COM installed Program: ADAPT is Compaq's Advanced Display Attribute Programming Tool, an optionally-resident utility for setting display colors and cursor size; when resident, it also includes a screen blanker SeeAlso: AX=BFA1h,AX=BFA2h,AX=DFA5h Index: screen saver;ADAPT --------V-10BFA1----------------------------- INT 10 - VIDEO - Compaq ADAPT.COM - GET ??? AX = BFA1h Return: AX = BDBEh if supported CH = current value of ??? DL = current value of ??? SeeAlso: AX=BFA0h,AX=BFA2h --------V-10BFA2----------------------------- INT 10 - VIDEO - Compaq ADAPT.COM - SET ??? AX = BFA2h CH = new value for ??? DL = new value for ??? Return: AX = BDBEh if supported SeeAlso: AX=BFA0h,AX=BFA1h --------A-10C0------------------------------- INT 10 - CU Writer v1.4 - GO TO TEXT ROW AND COLUMN AH = C0h ??? Return: ??? SeeAlso: AH=B1h,AH=C1h,AH=C2h,AH=C3h,AH=C4h --------V-10C000----------------------------- INT 10 - S3 SpeedUp v3.00+ - INSTALLATION CHECK AX = C000h Return: AX = FFFFh if installed DX = version number (binary, DH=major, DL=minor) BX = resident code segment Program: S3SPDUP is a freeware TSR by Dietmar Meschede to improve the speed of chained video modes (both VESA and VGA Mode 13) on S3-chipset video cards SeeAlso: AX=C001h,AX=C002h,AX=C003h,AX=D000h"S3VBE" --------V-10C001----------------------------- INT 10 - S3 SpeedUp v3.00+ - GET ACTIVE OPTIONS AX = C001h Return: AX = FFFFh if function supported BX = currently active options (see #00216) SeeAlso: AX=C000h,AX=C002h,AX=C003h Bitfields for S3SpeedUp options: Bit(s) Description (Table 00216) 0 speed up banked VESA modes 1 speed up 320x200 VGA mode 13 SeeAlso: #00222 --------V-10C002----------------------------- INT 10 - S3 SpeedUp v3.00+ - SET ACTIVE OPTIONS AX = C002h BX = new value for active options (see #00216) Return: AX = FFFFh if function supported SeeAlso: AX=C000h,AX=C001h,AX=C003h,AX=D003h"S3VBE" --------V-10C003----------------------------- INT 10 - S3 SpeedUp v3.10+ - GET FLAGS AX = C003h Return: AX = FFFFh if function supported BX = flags bit 0: SpeedUp is active bit 1: Windows run after SpeedUp SeeAlso: AX=C000h,AX=C001h,AX=C002h,AX=D005h"S3VBE" --------V-10C004----------------------------- INT 10 - S3 SpeedUp v3.10+ - RESERVED FUNCTIONS AX = C004h-C0FFh Return: AX = 5555h SeeAlso: AX=C000h --------A-10C1------------------------------- INT 10 - CU Writer v1.4 - OUTPUT TEXT AH = C1h ??? Return: ??? SeeAlso: AH=C0h,AH=C2h,AH=C3h,AH=C4h --------A-10C2------------------------------- INT 10 - CU Writer v1.4 - REVERSE TEXT AH = C2h ??? Return: ??? SeeAlso: AH=C0h,AH=C1h,AH=C3h,AH=C4h --------A-10C3------------------------------- INT 10 - CU Writer v1.4 - TEXT BAR AH = C3h ??? Return: ??? SeeAlso: AH=C0h,AH=C1h,AH=C4h --------A-10C4------------------------------- INT 10 - CU Writer v1.4 - TEXT MENU AH = C4h ??? Return: ??? SeeAlso: AH=C0h,AH=C1h,AH=C3h,AH=D0h --------V-10CB00----------------------------- INT 10 - UNCHAIN - SAVE CURRENT VGA REGISTERS AX = CB00h Note: combined with AX=CB06h, this function permits the use of video mode 13h together with the VGA's unchained mode SeeAlso: AX=CB06h,AX=CBFFh --------V-10CB01----------------------------- INT 10 - UNCHAIN - UPDATE PAGE 1 OFFSET AX = CB01h BX = offset of page 1 Return: nothing Desc: inform UNCHAIN of the location of video page 1 in video memory; the default is 0000h SeeAlso: AX=CB02h,AX=CB03h,AX=CB04h,AX=CBFFh --------V-10CB02----------------------------- INT 10 - UNCHAIN - UPDATE PAGE 2 OFFSET AX = CB02h BX = offset of page 2 Return: nothing Desc: inform UNCHAIN of the location of video page 2 in video memory; the default is 3E80h (16000, for 320x200) SeeAlso: AX=CB00h,AX=CB01h,AX=CB03h,AX=CB04h --------V-10CB03----------------------------- INT 10 - UNCHAIN - UPDATE PAGE 3 OFFSET AX = CB03h BX = offset of page 3 Return: nothing Desc: inform UNCHAIN of the location of video page 3 in video memory; the default is 7D00h (32000, for 320x200) SeeAlso: AX=CB01h,AX=CB02h,AX=CB04h --------V-10CB04----------------------------- INT 10 - UNCHAIN - UPDATE PAGE 4 OFFSET AX = CB04h BX = offset of page 4 Return: nothing Desc: inform UNCHAIN of the location of video page 4 in video memory; the default is BB80h (48000, for 320x200) SeeAlso: AX=CB01h,AX=CB02h,AX=CB03h,AX=CB05h --------V-10CB05----------------------------- INT 10 - UNCHAIN - SAVE PALETTE AX = CB05h Return: nothing SeeAlso: AX=CB00h,AX=CB06h --------V-10CB06----------------------------- INT 10 - UNCHAIN - RESTORE VGA REGISTERS AX = CB06h Return: nothing SeeAlso: AX=CB00h,AX=CB05h,AX=CBFFh --------V-10CBFF----------------------------- INT 10 - UNCHAIN - INSTALLATION CHECK AX = CBFFh Return: AX = CCBBh if installed Program: UNCHAIN is a TSR by Colin Buckley which permits use of Borland development tools with Mode X video in the absence of a second monitor SeeAlso: AX=CB00h,AX=CB01h,AX=CB06h --------V-10CC00----------------------------- INT 10 - VIDEO - UltraVision - GET STATUS (INSTALLATION CHECK) AX = CC00h SI = magic value 0000h (if checking version) Return: CX = product signature ABCDh UltraVision 5546h ('UF') UltraFont AL = Ultravision extensions 00h enabled FFh disabled AH = card designator BX:00F0h -> palette values (for compatibility with NEWFONT) DX = support for high resolution modes 00h not active 01h active SI = UltraVision version number (v1.2+), high byte=major,low byte=minor unchanged for versions <1.2 Note: UltraFont is a simplified version of UltraVision for Toshiba; only the signature in CX and the status in AL will be returned SeeAlso: AX=CC01h,AX=CC02h --------V-10CC01----------------------------- INT 10 - VIDEO - UltraVision - DISABLE EXTENSIONS AX = CC01h Return: nothing Notes: subsequent BIOS calls will be passed through to previous handler should be followed immediately by mode set to restore normal EGA/VGA state SeeAlso: AX=CC02h --------V-10CC02----------------------------- INT 10 - VIDEO - UltraVision - ENABLE EXTENSIONS AX = CC02h Return: nothing Note: should be followed immediately by mode set to restore previous UltraVision state SeeAlso: AX=CC01h --------U-10CCAB----------------------------- INT 10 - HiFont - INSTALLATION CHECK AX = CCABh Return: AX = ABCCh Program: HiFont is a 8x19 font driver for standard VGA by Solar Designer --------V-10CD00----------------------------- INT 10 - VIDEO - UltraVision - LOAD ULTRAVISION PALETTE (color EGA,VGA) AX = CD00h CL = palette table number (01h-07h for v1.x, 01h-0Fh for v2+) DS:DX -> 16-byte palette register list (colors for registers 00h-0Fh) Return: nothing Notes: if palette locking is in effect for the current mode, the new colors will be displayed immediately; otherwise, the system reverts to the default palette palette table 0 is reserved for the default palette and cannot be set UltraVision always sets the border color to black SeeAlso: AX=CD01h,AX=CD02h --------V-10CD01----------------------------- INT 10 - VIDEO - UltraVision - SET PALETTE LOCKING STATUS (color EGA,VGA) AX = CD01h CL = palette locking value 00h none 01h text modes only (02h,03h) FFh all modes (all standard color text and graphics modes) Return: nothing Notes: intended for video modes with 16 or fewer colors SeeAlso: AX=1000h,AX=1002h,AX=CD00h,AX=CD03h --------V-10CD02----------------------------- INT 10 - VIDEO - UltraVision - GET ULTRAVISION PALETTE (EGA,VGA) AX = CD02h Return: CL = palette table number DS:DX -> 17-byte palette register list (see #00217) DS:SI -> current font names table (see #00218,#00219) Note: only the font names are valid on monochrome EGA systems SeeAlso: AX=1009h,AX=CD00h Format of UltraVision palette register list: Offset Size Description (Table 00217) 00h 16 BYTEs colors for palette registers 00h through 0Fh 10h BYTE border color Format of UltraVision v2+ current font names table: Offset Size standard EGA HiRes EGA VGA (Table 00218) 00h 8 BYTEs N/A F19 font F20 font 08h 8 BYTEs F14 font F14 font F14 font 10h 8 BYTEs N/A F11 font F10 font 18h 8 BYTEs F8 font F8 font F8 font Format of UltraVision v1.x current font names table: Offset Size HiRes EGA (Table 00219) 00h 8 BYTEs F19/F14 font 08h 8 BYTEs F11/F8 font --------V-10CD03----------------------------- INT 10 - VIDEO - UltraVision - GET PALETTE LOCKING STATUS (color EGA,VGA) AX = CD03h Return: CL = palette locking value 00h none 01h text modes only FFh all modes SeeAlso: AX=CD01h --------V-10CD04----------------------------- INT 10 - VIDEO - UltraVision - GET UltraVision TEXT MODE (EGA,VGA) AX = CD04h Return: AL = mode number (see #00220) SeeAlso: AH=0Fh,AX=CC00h,AH=CDh (Table 00220) Values for UltraVision video mode number: 11h 80x25 12h 80x43, 80x50 13h 80x34, 80x36 14h 80x60, 80x63 19h 94x25 1Ah 94x43, 94x50 1Bh 94x36 1Ch 94x63 21h 108x25 22h 108x43, 108x50 23h 107x34, 108x36 24h 108x60, 108x63 31h 120x25 32h 120x43, 120x50 33h 132x25 34h 132x44, 132x50 39h 120x36 3Ah 120x63 3Bh 132x36 3Ch 132x60 Index: video modes;UltraVision --------V-10CD05----------------------------- INT 10 - VIDEO - UltraVision - SET CURSOR TYPE (EGA,VGA) AX = CD05h CL = type 00h line cursor FFh box cursor Return: nothing Note: sets default cursor type for text-based programs SeeAlso: AH=01h,AX=CD06h --------V-10CD06----------------------------- INT 10 - VIDEO - UltraVision - GET CURSOR TYPE (EGA,VGA) AX = CD06h Return: CL = type 00h line cursor FFh box cursor SeeAlso: AH=03h,AX=CD05h --------V-10CD07----------------------------- INT 10 - VIDEO - UltraVision v1.2+ - SET UNDERLINE STATUS (EGA,VGA) AX = CD07h CL = hardware underline status (see #00221) BL = foreground color for normal text (FFh = current) BH = foreground color for bright text (FFh = current) Return: CL = hardware underline status BL = current foreground color for normal text BH = current foreground color for bright text Notes: when underline or strikeout is enabled in color text modes, the specified colors will be assigned temporarily to colors 01h and 09h, allowing affected text to match non-underlined text. The color remapping uses values from the current onscreen palette regardless of the palette locking status (see AX=CD01h) specify the standard colors (BL=01h,BH=09h) to enable underline or strikeout without color remapping SeeAlso: AX=CD08h (Table 00221) Values for hardware underline status: 00h off (color systems only) 01h underline below characters 02h strike through characters --------V-10CD08----------------------------- INT 10 - VIDEO - UltraVision v1.2+ - GET UNDERLINE STATUS (EGA,VGA) AX = CD08h Return: CL = hardware underline status (see #00221) BL = foreground color for normal text BH = foreground color for bright text Note: only CL is valid on monochrome EGA systems SeeAlso: AX=CD07h --------V-10CD0F----------------------------- INT 10 - VIDEO - UltraVision - GET POINTER TO ??? (EGA,VGA) AX = CD0Fh Return: DS:DI -> pointer to ??? Note: This gets called by DR DOS "Panther" SECURITY. SECURITY also issues a number of calls to the other UltraVision functions in the AH=CCh and AH=CDh range, and carefully checks signatures. SeeAlso: AX=1100h,AX=1103h --------V-10CD10----------------------------- INT 10 - VIDEO - UltraVision - LOAD USER FONT (EGA,VGA) AX = CD10h BH = bytes per character (08h,0Ah,0Bh,0Eh,13h,14h) CX = ABCDh load 9xN alternate font (v2+) else number of characters to load DX = character offset into font table DS:SI -> 8-byte ASCII font name ES:BP -> font definitions Return: AX = FFFFh if invalid font parameters Notes: loads the designated characters into UltraVision's resident font area should be followed by a video mode set to reload character generator SeeAlso: AX=1100h,AX=1103h --------V-10CD------------------------------- INT 10 - VIDEO - UltraVision - SET ULTRAVISION TEXT MODE (EGA,VGA) AH = CDh AL = text mode number (see #00220) Return: AX = CDCDh if invalid mode SeeAlso: AX=CD04h --------A-10D0------------------------------- INT 10 - CU Writer v1.4 - LOAD PICTURE AH = D0h ??? Return: ??? SeeAlso: AH=B0h"CU Writer",AH=C4h --------V-10D0------------------------------- INT 10 U - VIDEO - HP 100LX/200LX - SET ZOOM MODE AH = D0h AL = zoom mode 02h 80x25 mono 03h 80x25 color 80h 64x18 mono 81h 64x18 color 82h 40x25 mono 83h 40x25 color 84h 40x16 mono 85h 40x16 color Return: nothing Note: zoom mode can only be changed within zoom modes of the same color scheme; if needed, set to mono/color with AH=00h,AL=02h/03h; with mono video modes AL=07h or AL=21h only 80x25 and 40x16 will work the current zoom mode is stored in the BIOS data area at 0040h:009Fh SeeAlso: AH=D1h,AH=D4h --------V-10D000----------------------------- INT 10 - S3VBE/Core2.0 v3.00+ - INSTALLATION CHECK AX = D000h Return: AX = FFFFh if installed BX = resident code segment DX = version (binary, DH = major, DL = minor) Program: S3VBE/Core2.0 is a freeware TSR by Dietmar Meschede to provide VESA 2.0 services on S3-based video cards with VESA 1.2 BIOS SeeAlso: AX=D001h"S3VBE",AX=D002h"S3VBE",AX=D003h"S3VBE",AX=D005h"S3VBE" --------V-10D001----------------------------- INT 10 - S3VBE/Core2.0 v3.00+ - GET ACTIVE OPTIONS AX = D001h Return: AX = FFFFh if supported BX = currently active options (see #00222) SeeAlso: AX=D000h"S3VBE",AX=D002h"S3VBE" Bitfields for S3VBE options: Bit(s) Description (Table 00222) 0 VESA VBE v2.0 extensions enabled 1 linear frame buffer enabled 2 low-resolution video mode support enabled 8 never clear video memory during VBE mode set (v3.10+) ---debug options--- 12 report VBE version 1.2 (v3.10+) 13 always fail AX=4F0Ah (v3.10+) 14 don't copy video mode list (v3.12+) SeeAlso: #00216 --------V-10D002----------------------------- INT 10 - S3VBE/Core2.0 v3.00+ - SET ACTIVE OPTIONS AX = D002h BX = new active options (see #00222) Return: AX = FFFFh if supported SeeAlso: AX=D000h"S3VBE",AX=D001h"S3VBE" --------V-10D003----------------------------- INT 10 U - S3VBE/Core2.0 v3.10+ - GET VBE/Core CAPABILITIES AX = D003h Return: AX = FFFFh if supported BX = capabilities bit 0: SpeedUp = activate/deactivate linear addressing at A0000h for VBE functions 04h/05h SeeAlso: AX=D000h"S3VBE",AX=D001h"S3VBE",AX=D004h"S3VBE",AX=D005h"S3VBE" --------V-10D004----------------------------- INT 10 U - S3VBE/Core2.0 v3.10+ - ACTIVATE SPEED-UP AX = D004h Return: AX = FFFFh if supported BX = status 0000h SpeedUp activated 0001h SpeedUp not possible (wrong memory organization for mode) 0002h SpeedUp not possible (linear frame buffer active) Note: called by S3 SpeedUp (see AX=C000h) SeeAlso: AX=C000h"SpeedUp",AX=D000h"S3VBE",AX=D003h"S3VBE",AX=D005h"S3VBE" --------V-10D005----------------------------- INT 10 U - S3VBE/Core2.0 v3.10+ - DEACTIVATE SPEED-UP AX = D005h Return: AX = FFFFh if supported BX = status 0000h SpeedUp deactivated 0001h SpeedUp not possible (wrong memory organization for mode) 0002h SpeedUp not possible (linear frame buffer active) Notes: called by S3 SpeedUp (see AX=C000h) functions 06h-FFh (e.g. AX=D006h-D0FFh) are considered reserved by v3.10+ and return AX=5555h SeeAlso: AX=C000h"SpeedUp",AX=D000h"S3VBE",AX=D003h"S3VBE",AX=D004h"S3VBE" --------V-10D1------------------------------- INT 10 U - VIDEO - HP 100LX/200LX - INTERNAL - ??? AH = D1h AL = 01h Return: ??? Note: called by AH=D0h SeeAlso: AH=D0h,AH=D4h --------V-10D4------------------------------- INT 10 U - VIDEO - HP 100LX/200LX - INTERNAL - ??? AH = D4h AL = 29h Return: ??? Note: called by AH=D0h SeeAlso: AH=D0h,AH=D1h --------V-10D5------------------------------- INT 10 - Netroom SCRNCLK - ??? AH = D5h ??? Return: ??? Program: SCRNCLK is a "cloaked" screen accelerator included with Netroom --------t-10DAAD----------------------------- INT 10 - TSRUNIT v1.10 - INSTALLATION CHECK AX = DAADh BX = check signature (different for each TSR) CX = 0000h Return: CX = return signature (nonzero) if installed ES = program segment prefix Program: TSRUNIT is a Turbo Pascal unit for creating TSRs by Nir Sofer --------V-10DFA5----------------------------- INT 10 U - VIDEO - Compaq ADAPT.COM - GET ??? DATA AREA AX = DFA5h Return: AX = BDBFh if supported ES:DI -> ??? data area BX = ES SeeAlso: AX=BFA0h --------V-10EE------------------------------- INT 10 - VIDEO - IBM "Private" Function AH = EEh SeeAlso: INT 13/AH=FFh"IBM" --------V-10EF------------------------------- INT 10 - VIDEO - MSHERC.COM - GET VIDEO ADAPTER TYPE AND MODE AH = EFh Return: DL = video adapter type 00h original Hercules 01h Hercules Plus (port 03BAh reads x001xxxxx) 02h Hercules InColor (port 03BAh reads x101xxxxx) FFh not a Hercules-compatible card (port 03BAh bit 7 not pulsing) DH = memory mode byte 00h "half" mode 01h "full" mode FFh not a Hercules-compatible card Program: MSHERC.COM/QBHERC.COM is a support program for the Microsoft Quick languages which makes their graphics libraries compatible with a Hercules card by adding video modes 08h and 88h, and supporting text in the new graphics modes. Notes: while in mode 08h or 88h, INT 10 supports the Hercules card much like a CGA. MSHERC performs an installation check by setting DL=FFh and testing whether it has been changed on return, which causes it to reinstall itself when no HGC is present (or HGC emulation has temporarily been disabled); a better installation check would be to use DX=80FFh and check whether DX has been changed reportedly returns DH=00h on some not-entirely-Hercules-compatible cards Index: installation check;MSHERC --------V-10F0------------------------------- INT 10 - EGA Register Interface Library - READ ONE REGISTER AH = F0h BL = register number BH = 00h DX = group index (see #00223) Return: BL = data Note: the RIL is provided by EGA.SYS, the Microsoft Mouse driver, the OS/2 compatibility box, and others; it is used for software virtualization of write-only registers on an EGA video adapter, so that multiple programs may peacefully coexist without clobbering each other's display settings SeeAlso: AH=F1h"EGA",AH=F2h"EGA",AH=FAh"EGA",INT 2F/AX=BC00h (Table 00223) Values for group index: Pointer/data chips 00h CRT Controller (25 reg) 3B4h mono modes, 3D4h color modes 08h Sequencer (5 registers) 3C4h 10h Graphics Controller (9 registers) 3CEh 18h Attribute Controller (20 registers) 3C0h Single registers 20h Miscellaneous Output register 3C2h 28h Feature Control register (3BAh mono modes, 3DAh color modes) 30h Graphics 1 Position register 3CCh 38h Graphics 2 Position register 3CAh --------V-10F0------------------------------- INT 10 - VHRBIOS.SYS - INSTALLATION CHECK AH = F0h Return: BX = 4F4Bh ('OK') Program: VHRBIOS.SYS is a driver for the Micro Display Systems "TheGenius" black&white A4/portrait monitor SeeAlso: AH=F1h"VHRBIOS.SYS",AH=F2h"VHRBIOS.SYS",AH=F4h"VHRBIOS.SYS" SeeAlso: AH=96h"VHRBIOS.SYS" --------V-10F1------------------------------- INT 10 - EGA Register Interface Library - WRITE ONE REGISTER AH = F1h DX = group index (see #00223) if single register: BL = value to write otherwise BL = register number BH = value to write Return: BL = data Note: the RIL is provided by EGA.SYS, the Microsoft Mouse driver, the OS/2 compatibility box, and others SeeAlso: AX=7F05h,AH=F0h"EGA",AH=F3h"EGA",AH=FAh"EGA" --------V-10F1------------------------------- INT 10 - VHRBIOS.SYS - SET REVERSE VIDEO AH = F1h AL = new video state (bit 5 set for black text on white, clear for white on black) Return: ??? Program: VHRBIOS.SYS is a driver for the Micro Display Systems "TheGenius" black&white A4/portrait monitor SeeAlso: AH=F0h"VHRBIOS.SYS",AH=F3h"VHRBIOS.SYS" --------V-10F2------------------------------- INT 10 - EGA Register Interface Library - READ REGISTER RANGE AH = F2h CH = starting register number CL = number of registers (>1) DX = group index (00h,08h,10h,18h) (see #00223) ES:BX -> buffer, CL bytes Return: nothing Note: the RIL is provided by EGA.SYS, the Microsoft Mouse driver, the OS/2 compatibility box, and others SeeAlso: AH=F0h"EGA",AH=F3h"EGA",AH=FAh"EGA" --------V-10F2------------------------------- INT 10 - VHRBIOS.SYS - ??? AH = F2h Return: ??? Program: VHRBIOS.SYS is a driver for the Micro Display Systems "TheGenius" black&white A4/portrait monitor SeeAlso: AH=F0h"VHRBIOS.SYS",AH=F4h"VHRBIOS.SYS" --------V-10F3------------------------------- INT 10 - EGA Register Interface Library - WRITE REGISTER RANGE AH = F3h CH = starting register CL = number of registers (>1) DX = group index (00h,08h,10h,18h) (see #00223) ES:BX -> buffer, CL bytes Return: nothing Note: the RIL is provided by EGA.SYS, the Microsoft Mouse driver, the OS/2 compatibility box, and others SeeAlso: AX=7F05h,AH=F1h"EGA",AH=F2h"EGA",AH=F4h"EGA" --------V-10F3------------------------------- INT 10 - VHRBIOS.SYS - SWITCH BETWEEN DUAL MONITORS??? AH = F3h Return: ??? Program: VHRBIOS.SYS is a driver for the Micro Display Systems "TheGenius" black&white A4/portrait monitor SeeAlso: AH=F0h"VHRBIOS.SYS",AH=F4h"VHRBIOS.SYS",AH=F6h"VHRBIOS.SYS" --------V-10F4------------------------------- INT 10 - EGA Register Interface Library - READ REGISTER SET AH = F4h CX = number of registers to read (>1) ES:BX -> table of register records (see #00224) Return: register values in table filled in Note: the RIL is provided by EGA.SYS, the Microsoft Mouse driver, the OS/2 compatibility box, and others SeeAlso: AH=F0h"EGA",AH=F2h"EGA",AH=F5h"EGA" Format of EGA RIL entries in table of register records: Offset Size Description (Table 00224) 00h WORD group index Pointer/data chips 00h CRTC (3B4h mono modes, 3D4h color modes) 08h Sequencer 3C4h 10h Graphics Controller 3CEh 18h Attribute Controller 3C0h Single registers 20h Miscellaneous Output register 3C2h 28h Feature Control register (3BAh mono modes, 3DAh color) 30h Graphics 1 Position register 3CCh 38h Graphics 2 Position register 3CAh 02h BYTE register number (0 for single registers) 03h BYTE register value --------V-10F4------------------------------- INT 10 - VHRBIOS.SYS - GET VERSION AH = F4h Return: AX = driver version (AH = major, AL = minor) Program: VHRBIOS.SYS is a driver for the Micro Display Systems "TheGenius" black&white A4/portrait monitor SeeAlso: AH=F0h"VHRBIOS.SYS",AH=F5h"VHRBIOS.SYS" --------V-10F5------------------------------- INT 10 - EGA Register Interface Library - WRITE REGISTER SET AH = F5h CX = number of registers to write (>1) ES:BX -> table of records (see #00224) Return: nothing Note: the RIL is provided by EGA.SYS, the Microsoft Mouse driver, the OS/2 compatibility box, and others SeeAlso: AX=7F05h,AH=F1h"EGA",AH=F3h"EGA",AH=F4h"EGA" --------V-10F5------------------------------- INT 10 - VHRBIOS.SYS - GET VENDOR ID AH = F5h Return: AXBX = vendor ID (4D44h:5349h = 'MDSI' for Micro Display Systems Inc.) Program: VHRBIOS.SYS is a driver for the Micro Display Systems "TheGenius" black&white A4/portrait monitor SeeAlso: AH=F0h"VHRBIOS.SYS",AH=F4h"VHRBIOS.SYS",AH=F6h"VHRBIOS.SYS" --------V-10F6------------------------------- INT 10 - EGA Register Interface Library - REVERT TO DEFAULT REGISTERS AH = F6h Return: nothing Note: provided by the Microsoft Mouse driver, OS/2 compatibility box, and others SeeAlso: AH=F5h"EGA",AH=F7h"EGA" --------V-10F6------------------------------- INT 10 - VHRBIOS.SYS - GET INFO AH = F6h AL = what to get 00h device driver state Return: AX = device driver state 01h video mode info Return: AL = video mode DH = screen height in rows DL = screen width in columns Program: VHRBIOS.SYS is a driver for the Micro Display Systems "TheGenius" black&white A4/portrait monitor SeeAlso: AH=F0h"VHRBIOS.SYS",AH=F4h"VHRBIOS.SYS",AH=96h"VHRBIOS.SYS --------V-10F7------------------------------- INT 10 - EGA Register Interface Library - DEFINE DEFAULT REGISTER TABLE AH = F7h DX = port number Pointer/data chips 00h CRTC (3B4h mono modes, 3D4h color modes) 08h Sequencer 3C4h 10h Graphics Controller 3CEh 18h Attribute Controller 3C0h Single registers 20h Miscellaneous Output register 3C2h 28h Feature Control register (3BAh mono modes, 3DAh color modes) 30h Graphics 1 Position register 3CCh 38h Graphics 2 Position register 3CAh ES:BX -> table of one-byte entries, one byte to be written to each register Return: nothing Note: the RIL is provided by EGA.SYS, the Microsoft Mouse driver, the OS/2 compatibility box, and others SeeAlso: AH=F0h"EGA",AH=F6h"EGA" --------V-10FA--BX0000----------------------- INT 10 - EGA Register Interface Library - INTERROGATE DRIVER AH = FAh BX = 0000h Return: BX = 0000h if RIL driver not present ES:BX -> EGA Register Interface version number, if present: byte 0 = major release number byte 1 = minor release number Note: the RIL is provided by EGA.SYS, the Microsoft Mouse driver, the OS/2 compatibility box, and others SeeAlso: AH=F0h"EGA",AH=F6h"EGA",INT 2F/AX=BC00h --------K-10FA------------------------------- INT 10 - FASTBUFF.COM - INSTALLATION CHECK AH = FAh Return: AX = 00FAh if installed ES = segment of resident code Program: FASTBUFF.COM is a keyboard speedup/screen blanking utility by David Steiner Index: screen saver;FASTBUFF --------V-10FE------------------------------- INT 10 - TopView - GET SHADOW BUFFER AH = FEh ES:DI -> assumed video buffer B800h:0000h color text/CGA graphics, B000h:0000h mono text, or A000h:0000h EGA/VGA graphics (RSIS environments only) Return: ES:DI -> actual video buffer for calling process Desc: Determine the address of the virtual screen to which the program should write instead of the actual video memory; this permits programs to be multitasked without interfering with each other's output, and allows memory managers to move the video memory to permit larger programs to be loaded. Notes: if no multitasker or RSIS-compliant environment is installed, ES:DI is returned unchanged; RSIS is the Relocated Screen Interface Specification for display pages other than 0, use AH=05h and AH=0Fh to determine whether a particular page exists TopView requires a call to AH=FFh to notify it that the screen has changed; DESQview will check for changes itself until the first call to AH=FFh SeeAlso: AH=05h,AX=5201h,AH=FFh,INT 15/AX=1024h,INT 21/AH=2Bh"DESQview" SeeAlso: INT 21/AH=ECh"DoubleDOS" --------V-10FF------------------------------- INT 10 - TopView - UPDATE SCREEN FROM SHADOW BUFFER AH = FFh CX = number of consecutive changed characters ES:DI -> first changed character in shadow buffer Return: nothing Notes: avoid CX=0000h DESQview will discontinue the automatic screen updating initiated by AH=FEh after this call not supported (ignored) by DESQview/X 1.0x SeeAlso: AH=93h,AH=FEh --------E-10FF------------------------------- INT 10 - DJ GO32.EXE 80386+ DOS extender - VIDEO EXTENSIONS AH = FFh AL = video mode (see #00225) Program: GO32.EXE is a DOS extender included as part of the 80386 port of the GNU C/C++ compiler by DJ Delorie and distributed as DJGPP SeeAlso: AH=00h,INT 21/AH=FFh"GO32" (Table 00225) Values for GO32 video mode number: 00h 80x25 text 01h default text 02h CXxDX text 03h biggest text 04h 320x200 graphics 05h default graphics 06h CXxDX graphics 07h biggest non-interlaced graphics 08h biggest graphics Index: video modes;GO32 --------V-10FF------------------------------- INT 10 - VIDEO - Oak VGA BIOS v1.02+ - SET EMULATION AH = FFh AL = emulation 43h ('C') CGA emulation 45h ('E') EGA emulation 4Dh ('M') Hercules emulation 56h ('V') VGA emulation ES:DI -> signature string "Calamity" Return: VGA switched to suggested mode SeeAlso: AH=00h,AX=007Fh/BH=00h,AX=007Fh/BH=02h,AX=5F01h --------R-10FF00----------------------------- INT 10 - CARBON COPY PLUS v5.0 - CHECK IF CC CONNECTED TO CCHELP AX = FF00h Return: BL = state 00h not connected 01h connected SeeAlso: AX=FF01h,AX=FF02h --------R-10FF01----------------------------- INT 10 - CARBON COPY PLUS v5.0 - DISCONNECT AND RESET LINE AX = FF01h Return: nothing SeeAlso: AX=FF00h,AX=FF02h --------R-10FF02----------------------------- INT 10 - CARBON COPY PLUS v5.0 - GET LAST PHONE NUMBER DIALED AX = FF02h Return: ES:DI -> ASCIZ phone number SeeAlso: AX=FF00h,AX=FF01h --------C-11--------------------------------- INT 11 - CPU-generated (80486+) - ALIGNMENT CHECK Desc: automatically generated by the CPU when the AC flag is set, the current privilege level is 3, and a misaligned memory access (WORD not on an even address or DWORD not on a multiple of 4) is made Note: not all V86 monitors allow the AC flag to be set, such as Turbo Debugger 386 SeeAlso: INT 12"CPU" --------B-11--------------------------------- INT 11 - BIOS - GET EQUIPMENT LIST Return: (E)AX = BIOS equipment list word (see #00226,#03215 at INT 4B"Tandy") Note: since older BIOSes do not know of the existence of EAX, the high word of EAX should be cleared before this call if any of the high bits will be tested SeeAlso: INT 4B"Tandy 2000",MEM 0040h:0010h Bitfields for BIOS equipment list: Bit(s) Description (Table 00226) 0 floppy disk(s) installed (number specified by bits 7-6) 1 80x87 coprocessor installed 3-2 number of 16K banks of RAM on motherboard (PC only) number of 64K banks of RAM on motherboard (XT only) 2 pointing device installed (PS) 3 unused (PS) 5-4 initial video mode 00 EGA, VGA, or PGA 01 40x25 color 10 80x25 color 11 80x25 monochrome 7-6 number of floppies installed less 1 (if bit 0 set) 8 DMA support installed (PCjr, Tandy 1400LT) DMA support *not* installed (Tandy 1000's) 11-9 number of serial ports installed 12 game port installed 13 serial printer attached (PCjr) internal modem installed (PC/Convertible) 15-14 number of parallel ports installed ---Compaq, Dell, and many other 386/486 machines-- 23 page tables set so that Weitek coprocessor addressable in real mode 24 Weitek math coprocessor present ---Compaq Systempro--- 25 internal DMA parallel port available 26 IRQ for internal DMA parallel port (if bit 25 set) 0 = IRQ5 1 = IRQ7 28-27 parallel port DMA channel 00 DMA channel 0 01 DMA channel 0 ??? 10 reserved 11 DMA channel 3 Notes: Some implementations of Remote (Initial) Program Loader (RPL/RIPL) don't set bit 0 to indicate a "virtual" floppy drive, although the RPL requires access to its memory image through a faked drive A:. This may have caused problems with releases of DOS 3.3x and earlier, which assumed A: and B: to be invalid drives then and would discard any attempts to access these drives. Implementations of RPL should set bit 0 to indicate a "virtual" floppy. The IBM PC DOS 3.3x-2000 IBMBIO.COM contains two occurences of code sequences like: INT 11h JMP SHORT skip DB 52h,50h,53h; "RPS" skip: OR AX,1 TEST AX,1 While at the first glance this seems to be a bug since it just wastes memory and the condition is always true, this could well be a signature for an applyable patch to stop it from forcing AX bit 0 to be always on. MS-DOS IO.SYS does not contain these signatures, however. BUGs: Some old BIOSes didn't properly report the count of floppy drives installed to the system. In newer systems INT 13h/AH=15h can be used to retrieve the number of floppy drives installed. Award BIOS v4.50G and v4.51PG erroneously set bit 0 even if there are no floppy drives installed; use two calls to INT 13/AH=15h to determine whether any floppies are actually installed SeeAlso: INT 12"BIOS",#03215 at INT 4B"Tandy 2000" --------d-11----SI6A6A----------------------- INT 11 - Columbia Data Products Standard Device Level Protocol (SDLP) 1.6 SI = 6A6Ah AH = command (see #00227) AL = SCSI Addressing (see #00228) Return: CF clear if successful DI = 6A6Ah if AH=01h on entry (maybe for all functions???) AH = ??? for command 01h CF set on error AL = error code SeeAlso: INT 21/AX=4402h"ASPI" (Table 00227) Values for SDLP command: 00h SDLP initialization 01h SDLP System Identify 02h simple read sectors 03h simple write sectors 04h simple verify sectors/seek to sector 05h get device size/type 06h ready unit 07h format unit 08h diagnostics 09h rewind 0Ah erase 0Bh write filemarks 0Ch space 0Dh prevent/allow media removal 0Eh load/unload media 0Fh reserved - returns good status 10h set block size 11h write setmark 12h set error level 13h get address of Request Sense Buffer 14h get SDLP error via Request Sense F0h Vendor Unique Function (WD7000-FASST2 only) FDh reset current SCSI HAC FEh get/set current SCSI HAC FFh execute SCSI command Bitfields for SDLP SCSI addressing: Bit(s) Description (Table 00228) 7-6 Host Adapter 5-3 SCSI Target ID 2-0 SCSI Target LUN (logical unit number) --------V-110225BX6900----------------------- INT 11 - Blank-It Screen Blanker - INSTALLATION CHECK AX = 0225h BX = 6900h Return: BL = 23h ES:DI -> ASCIZ "BLNKIT" Program: Blank-It is a resident screen blanker by Rhode Island Soft Systems, Inc. SeeAlso: AX=0225h/BX=6902h,AX=0225h/BX=6908h,AX=0225h/BX=6909h,INT 14/AX=AA01h Index: screen saver;Blank-It --------V-110225BX6901----------------------- INT 11 - Blank-It Screen Blanker - SET TIMEOUT FOR SCREEN BLANKING AX = 0225h BX = 6901h CX = timeout in timer ticks (18.2/second) or 0000h to disable timeout largest value is 59 minutes (FBACh or 64428) Return: CF clear if successful DI = 6A6Ah (possibly also 6A6Ah for all following functions) AH = ??? CF set on error AL = error code SeeAlso: AX=0225h/BX=6900h,AX=0225h/BX=6904h Index: screen saver;Blank-It --------V-110225BX6902----------------------- INT 11 - Blank-It Screen Blanker - ENABLE THE SOFTWARE AX = 0225h BX = 6902h Return: CF clear if successful CF set on error AL = error code SeeAlso: AX=0225h/BX=6900h,AX=0225h/BX=6903h Index: screen saver;Blank-It --------V-110225BX6903----------------------- INT 11 - Blank-It Screen Blanker - DISABLE THE SOFTWARE AX = 0225h BX = 6903h Return: CF clear if successful CF set on error AL = error code SeeAlso: AX=0225h/BX=6900h,AX=0225h/BX=6902h Index: screen saver;Blank-It --------V-110225BX6904----------------------- INT 11 - Blank-It Screen Blanker - GET BLANKING TIMEOUT AX = 0225h BX = 6904h Return: CF clear if successful BX = timeout (see AX=0225h/BX=6901h) CF set on error AL = error code SeeAlso: AX=0225h/BX=6900h,AX=0225h/BX=6901h Index: screen saver;Blank-It --------V-110225BX6905----------------------- INT 11 - Blank-It Screen Blanker - ENABLE WINDOWS COMPATIBILITY MODE AX = 0225h BX = 6905h Return: CF clear if successful CF set on error AL = error code SeeAlso: AX=0225h/BX=6900h,AX=0225h/BX=6906h Index: screen saver;Blank-It --------V-110225BX6906----------------------- INT 11 - Blank-It Screen Blanker - DISABLE WINDOWS COMPATIBILITY MODE AX = 0225h BX = 6906h Return: CF clear if successful CF set on error AL = error code Program: Blank-It is a resident screen blanker by Rhode Island Soft Systems, Inc. SeeAlso: AX=0225h/BX=6900h,AX=0225h/BX=6905h Index: screen saver;Blank-It --------V-110225BX6907----------------------- INT 11 - Blank-It Screen Blanker - UNBLANK THE SCREEN AX = 0225h BX = 6907h Return: CF clear if successful CF set on error AL = error code SeeAlso: AX=0225h/BX=6900h,AX=0225h/BX=6908h Index: screen saver;Blank-It --------V-110225BX6908----------------------- INT 11 - Blank-It Screen Blanker - BLANK THE SCREEN AX = 0225h BX = 6908h Return: CF clear if successful CF set on error AL = error code SeeAlso: AX=0225h/BX=6900h,AX=0225h/BX=6907h Index: screen saver;Blank-It --------V-110225BX6909----------------------- INT 11 - Blank-It Screen Blanker - SET HOTKEY FOR MANUAL BLANKING AX = 0225h BX = 6909h CL = key scan code (see #00229) Return: CF clear if successful CF set on error AL = error code Program: Blank-It is a resident screen blanker by Rhode Island Soft Systems, Inc. SeeAlso: AX=0225h/BX=6900h Index: screen saver;Blank-It|hotkeys;Blank-It (Table 00229) Values for Blank-It hotkey scan code: 00h No hot key 1Dh Left CTRL 2Ah Left Shift 36h Right Shift 57h F11 58h F12 SeeAlso: #00006 --------G-1105D7----------------------------- INT 11 CU - Borland C++ IDE - INSTALLED CALLOUT AX = 05D7h BX = product ID (0088h) Note: called by the BC++ IDE when an application calls INT 12/AX=05D7h/BX=05D7h SeeAlso: INT 12/AX=05D7h/BX=05D7h Index: installation check;Borland C++ IDE --------F-1177------------------------------- INT 11 - RainbowFAX v1.3 - SFENGINE API - OPERATIONAL CONTROL AH = 77h AL = subfunction 01h request SFENGINE start Return: AX = 0001h 02h check if SFENGINE started Return: AX = 0000h or 0001h 03h request SFENGINE stop Return: AX = 0001h 04h check if SFENGINE stopped Return: AX = 0000h or 0001h 05h installation check Return: AX = 0001h 06h uninstall??? BX:DX -> return address for successful uninstall??? Return: (at caller's address) AX = 0000h else Return: AX = FFFFh (invalid subfunction) Return: ES:DX -> ASCIZ signature string "SFAX ENGINE V1.0" followed by internal data area??? SeeAlso: AH=78h,AH=79h,AH=7Ah,AH=7Ch Index: installation check;RainbowFAX|installation check;SFENGINE Index: uninstall;RainbowFAX|uninstall;SFENGINE --------F-1178------------------------------- INT 11 - RainbowFAX v1.3 - SFENGINE API - ??? AH = 78h AL = subfunction 01h set ??? BX = new state for ??? 0000h ??? else ??? Return: AX = 0001h 02h set ??? BX = ??? CX = ??? Return: AX = 0001h 03h set ??? BX = new state for ??? 0000h ??? else ??? Return: AX = 0001h else Return: AX = FFFFh (invalid subfunction) SeeAlso: AH=77h,AH=79h,AH=7Ah,AH=7Ch --------F-1179------------------------------- INT 11 - RainbowFAX v1.3 - SFENGINE API - ??? AH = 79h AL = subfunction 01h set ??? flag Return: AX = previous state (0000h already set, 0001h clear) 02h clear ??? flag (refer to subfunc 01h) Return: AX = 0001h 03h set ??? flag (different from subfn 02h or 04h) Return: AX = 0001h 04h clear ??? flag (different from subfn 02h or 03h) Return: AX = 0001h else Return: AX = FFFFh (invalid subfunction) SeeAlso: AH=77h,AH=78h,AH=7Ah,AH=7Ch --------F-117A------------------------------- INT 11 - RainbowFAX v1.3 - SFENGINE API - ??? AH = 7Ah AL = subfunction 01h set ??? flag Return: AX = previous state (0000h already set, 0001h clear) 02h clear ??? flag Return: AX = 0001h 03h set ??? flag (different from subfn 02h) Return: AX = 0001h else Return: AX = FFFFh (invalid subfunction) SeeAlso: AH=77h,AH=78h,AH=79h,AH=7Ch --------F-117C01----------------------------- INT 11 - RainbowFAX v1.3 - SFENGINE API - SET ??? FLAG AX = 7C01h Return: AX = 0001h SeeAlso: AH=77h,AH=78h,AH=79h,AH=7Ah,AX=7C02h,AX=7C03h --------F-117C02----------------------------- INT 11 - RainbowFAX v1.3 - SFENGINE API - CLEAR ??? FLAG AX = 7C02h Return: AX = 0001h SeeAlso: AH=77h,AH=78h,AH=79h,AH=7Ah,AX=7C01h,AX=7C03h --------F-117C03----------------------------- INT 11 - RainbowFAX v1.3 - SFENGINE API - UNSUPPORTED FUNCTIONS AX = 7C03h-7CFFh Return: AX = FFFFh SeeAlso: AH=77h,AX=7C01h,AX=7C02h --------S-11BC--DX1954----------------------- INT 11 - BNU FOSSIL - INSTALLATION CHECK AH = BCh DX = 1954h Return: AX = 1954h ES:DX -> entry point of driver (instead of INT 14) SeeAlso: INT 14/AH=04h"FOSSIL" --------d-11FF--SI6A6A----------------------- INT 11 - WD7000 SDLP interface - EXECUTE GENERIC SCSI COMMAND AH = FFh SI = 6A6Ah AL = SCSI Addressing (see #00230) CX = bytes of data to be transmitted (max FFF0h) DH = 00h DL = length of SCSI Command Descriptor Block DS:DI -> SCSI Command Descriptor Block ES:BX -> data buffer Return: CF set on error AL = error code CF clear if successful Note: because of busmaster operations with WD7000FASST avoid accessing video memory directly; check 386 memory manager for VDS support. The WD7000XTAT works with programmed IO and does not have this limitation. SeeAlso: INT 21/AX=4402h"ASPI",INT 2F/AX=7F01h Bitfields for SDLP SCSI addressing: Bit(s) Description (Table 00230) 2-0 SCSI Target LUN (logical unit number) 5-3 SCSI Target ID 7 write flag, set for write operations, clear otherwise --------T-11FFFECXFFFE----------------------- INT 11 - BACK&FORTH (before v1.62) API AX = FFFEh CX = FFFEh BX = function 00h installation check Return: AX = installation state 0001h BNFHIGH and BNFLOW both loaded 0003h only BNFHIGH loaded else neither loaded 01h ??? Return: DX:AX -> ??? 02h ??? 03h ??? 04h ??? 05h ??? switches current PSP segment and stack if BNFLOW has not yet announced itself installed 06h ??? Return: AX = ??? SeeAlso: INT 12/AX=FFFEh Index: installation check;BACK&FORTH --------B-12--------------------------------- INT 12 - BIOS - GET MEMORY SIZE Return: AX = kilobytes of contiguous memory starting at absolute address 00000h Note: this call returns the contents of the word at 0040h:0013h; in PC and XT, this value is set from the switches on the motherboard SeeAlso: INT 11"BIOS",INT 2F/AX=4A06h,INT 4C"Tandy 2000",MEM 0040h:0013h --------C-12--------------------------------- INT 12 - CPU-generated (Pentium +) - MACHINE CHECK EXCEPTION Notes: Intel documents this interrupt as CPU model-dependent for current Pentium processors, the reason for the machine check exception may be read from model-specific registers 00h and 01h (described, for example, in Christian Ludloff's 4P package) for Pentium Pro/II processors, the reason may be read from the MCG_STATUS MSR (see MSR 0000017Ah) this exception is enabled by bit 6 of CR4 SeeAlso: INT 11"CPU",MSR 00000000h,MSR 00000001h,MSR 0000017Ah --------K-12----CX1806----------------------- INT 12 - KEYBUI v2.0+ - INSTALLATION CHECK CX = 1806h Return: AX = kilobytes of contiguous memory starting at absolute address 00000h CX = 1960h if installed Program: KEYBUI is a resident keyboard driver by Johan Zwiekhorst which allows accented characters and box drawing on standard QWERTY keyboards; it also provides break-to-DOS and screen blanking capabilities SeeAlso: INT 14/AX=AA01h Index: screen saver;KEYBUI --------d-12----CX1807----------------------- INT 12 - PARKER v2.0+ - INSTALLATION CHECK CX = 1807h Return: AX = kilobytes of contiguous memory starting at absolute address 00000h CX = 1961h if installed Program: PARKER is an optionally-resident hard disk parking program by Johan Zwiekhorst --------G-1205D7BX05D7----------------------- INT 12 U - Borland C++ IDE - INSTALLATION CHECK AX = 05D7h (1495d) BX = 05D7h Note: the BC++ IDE will call INT 11/AX=05D7h/BX=0088h if it is loaded SeeAlso: INT 11/AX=05D7h --------v-124350BX4920----------------------- INT 12 C - CPI-standard virus - "FRIEND" CHECK AX = 4350h BX = 4920h CX = AB46h DX = 554Eh Return: if friendly (not to be infected) CX:DX -> ASCIZ identity code (changes yearly) SeeAlso: INT 13/AX=EC00h"VIRUS",INT 13/AX=5001h,INT 21/AX=0B56h --------T-12FFFECXFFFE----------------------- INT 12 - Back&Forth v1.62+ - API AX = FFFEh CX = FFFEh BX = function 00h installation check Return: AX = 0001h installed else not loaded 01h (reserved) 02h build program ID list (shareware Back&Forth) ES:DI -> buffer of at least 100 bytes, to be filled with words Return: AX = number of programs defined ES:DI buffer filled with AX words 02h get memory statistics (Back&Forth Professional) Return: AX = available swap memory, KBytes BX = maximum task size, KBytes DX = fixed overhead per task, excluding video/macro storage 03h switch to specified task (task need not be open yet) DX = two-letter program ID Return: AX = status 0000h if task undefined 0001h task switch will occur when safe 04h (reserved) 05h (reserved) 06h get version (documented only for Back&Forth Professional) Return: AX = version * 100 (v1.71 = 00ABh) 07h spawn program (Back&Forth Professional only???) ES:DI -> BF_SPAWN record (see #00232) Return: AX = status 0000h if no task handles free 0001h spawn will occur when safe 08h get open tasks (documented only for Back&Forth Professional) ES:DI -> task info buffer (see #00231,#00233) Return: AX = number of open tasks (max 20) Note: the supplied buffer must be large enough to hold 21 task entries 09h (reserved) ---Back&Forth Professional--- 0Ah get active clipboard filename Return: DX:AX -> ASCIZ clipboard filename 0Bh get active task number AX = active task number (00h-13h) BX = number of tasks allocated DX = maximum number of tasks 0Ch (reserved) 0Dh (reserved) 0Eh (reserved) 0Fh stuff string into keyboard buffer ES:DI -> ASCIZ string to be stuffed Return: nothing 10h check if in graphics mode Return: AX = state 0000h color text mode 0004h mono text mode FFFFh graphics mode 11h get Back&Forth Professional user number Return: AX = user number (0000h-00FFh) 12h switch task by task number DX = task number Return: AX = status 0000h attempted to switch to active task 0001h task switch will occur when safe FFFFh invalid task number 13h delete (kill) task DX = task number Return: AX = status 0000h attempted to delete the active task 0001h successfully deleted FFFFh invalid task number Note: the active task number will change if the deleted task was lower in the task list than the active task 14h get next available task handle Return: AX = next available task handle FFFFh if task table is full Program: Back & Forth is a task switcher by Progressive Solutions, Inc. SeeAlso: INT 11/AX=FFFEh Index: installation check;BACK&FORTH Format of Back&Forth task info buffer: Offset Size Description (Table 00231) 00h 21 BYTEs ASCIZ task name 15h BYTE hotkey shift state (as for INT 16/AH=02h) 16h WORD hotkey scan code (see also #00006) 18h WORD program ID Index: hotkeys;Back&Forth SeeAlso: #00232,#00233 Format of Back&Forth Professional BF_SPAWN record: Offset Size Description (Table 00232) 00h 21 BYTEs task description 15h BYTE flag: disable hotkeys 16h WORD environment size in bytes 18h BYTE hotkey shift flags 19h WORD hotkey scancode 1Bh WORD maximum number of EMS pages 1Dh WORD required memory in KBytes 1Fh 3 BYTEs DESQview-style two-letter program ID 22h 13 BYTEs base name of program to be run (no path or extension) 2Fh 66 BYTEs directory from which to start program 71h 66 BYTEs initial current directory for program SeeAlso: #00231,#00233 Format of Back&Forth Professional BF_TASK record: Offset Size Description (Table 00233) 00h DWORD Unix-style task start time (seconds since 1970/1/1) 04h 21 BYTEs task description 19h DWORD elapsed time in task (seconds) 1Dh WORD task ID 1Fh BYTE task hotkey keyboard flags 20h WORD task hotkey scan code (see also #00006) 22h DWORD time task was suspended/exited 26h WORD task handle SeeAlso: #00231,#00232 --------B-1300------------------------------- INT 13 - DISK - RESET DISK SYSTEM AH = 00h DL = drive (if bit 7 is set both hard disks and floppy disks reset) Return: AH = status (see #00234) CF clear if successful (returned AH=00h) CF set on error Note: forces controller to recalibrate drive heads (seek to track 0) for PS/2 35SX, 35LS, 40SX and L40SX, as well as many other systems, both the master drive and the slave drive respond to the Reset function that is issued to either drive SeeAlso: AH=0Dh,AH=11h,INT 21/AH=0Dh,INT 4D/AH=00h"TI Professional" SeeAlso: INT 56"Tandy 2000",MEM 0040h:003Eh --------B-1301------------------------------- INT 13 - DISK - GET STATUS OF LAST OPERATION AH = 01h DL = drive (bit 7 set for hard disk) Return: CF clear if successful (returned status 00h) CF set on error AH = status of previous operation (see #00234) Note: some BIOSes return the status in AL; the PS/2 Model 30/286 returns the status in both AH and AL SeeAlso: AH=00h,INT 4D/AH=01h,MEM 0040h:0041h,MEM 0040h:0074h (Table 00234) Values for disk operation status: 00h successful completion 01h invalid function in AH or invalid parameter 02h address mark not found 03h disk write-protected 04h sector not found/read error 05h reset failed (hard disk) 05h data did not verify correctly (TI Professional PC) 06h disk changed (floppy) 07h drive parameter activity failed (hard disk) 08h DMA overrun 09h data boundary error (attempted DMA across 64K boundary or >80h sectors) 0Ah bad sector detected (hard disk) 0Bh bad track detected (hard disk) 0Ch unsupported track or invalid media 0Dh invalid number of sectors on format (PS/2 hard disk) 0Eh control data address mark detected (hard disk) 0Fh DMA arbitration level out of range (hard disk) 10h uncorrectable CRC or ECC error on read 11h data ECC corrected (hard disk) 20h controller failure 31h no media in drive (IBM/MS INT 13 extensions) 32h incorrect drive type stored in CMOS (Compaq) 40h seek failed 80h timeout (not ready) AAh drive not ready (hard disk) B0h volume not locked in drive (INT 13 extensions) B1h volume locked in drive (INT 13 extensions) B2h volume not removable (INT 13 extensions) B3h volume in use (INT 13 extensions) B4h lock count exceeded (INT 13 extensions) B5h valid eject request failed (INT 13 extensions) B6h volume present but read protected (INT 13 extensions) BBh undefined error (hard disk) CCh write fault (hard disk) E0h status register error (hard disk) FFh sense operation failed (hard disk) SeeAlso: #M0022 --------B-1302------------------------------- INT 13 - DISK - READ SECTOR(S) INTO MEMORY 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) ES:BX -> data buffer Return: CF set on error if AH = 11h (corrected ECC error), AL = burst length CF clear if successful AH = status (see #00234) AL = number of sectors transferred (only valid if CF set for some BIOSes) Notes: errors on a floppy may be due to the motor failing to spin up quickly enough; the read should be retried at least three times, resetting the disk with AH=00h between attempts most BIOSes support "multitrack" reads, where the value in AL exceeds the number of sectors remaining on the track, in which case any additional sectors are read beginning at sector 1 on the following head in the same cylinder; the MSDOS CONFIG.SYS command MULTITRACK (or the Novell DOS DEBLOCK=) can be used to force DOS to split disk accesses which would wrap across a track boundary into two separate calls the IBM AT BIOS and many other BIOSes use only the low four bits of DH (head number) since the WD-1003 controller which is the standard AT controller (and the controller that IDE emulates) only supports 16 heads AWARD AT BIOS and AMI 386sx BIOS have been extended to handle more than 1024 cylinders by placing bits 10 and 11 of the cylinder number into bits 6 and 7 of DH under Windows95, a volume must be locked (see INT 21/AX=440Dh/CX=084Bh) in order to perform direct accesses such as INT 13h reads and writes all versions of MS-DOS (including MS-DOS 7 [Windows 95]) have a bug which prevents booting on hard disks with 256 heads (FFh), so many modern BIOSes provide mappings with at most 255 (FEh) heads some cache drivers flush their buffers when detecting that DOS is bypassed by directly issuing INT 13h from applications. A dummy read can be used as one of several methods to force cache flushing for unknown caches (e.g. before rebooting). BUGS: When reading from floppies, some AMI BIOSes (around 1990-1991) trash the byte following the data buffer, if it is not arranged to an even memory boundary. A workaround is to either make the buffer word aligned (which may also help to speed up things), or to add a dummy byte after the buffer. MS-DOS may leave interrupts disabled on return from this function. Apparently some BIOSes or intercepting resident software have bugs that may destroy DX on return or not properly set the Carry flag. At least some Microsoft software frames calls to this function with PUSH DX, STC, INT 13h, STI, POP DX. on the original IBM AT BIOS (1984/01/10) this function does not disable interrupts for harddisks (DL >= 80h). On these machines the MS-DOS/ PC DOS IO.SYS/IBMBIO.COM installs a special filter to bypass the buggy code in the ROM (see CALL F000h:211Eh) SeeAlso: AH=03h,AH=0Ah,AH=06h"V10DISK.SYS",AH=21h"PS/1",AH=42h"IBM" SeeAlso: INT 21/AX=440Dh/CX=084Bh,INT 4D/AH=02h --------B-1303------------------------------- INT 13 - DISK - WRITE DISK SECTOR(S) 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) ES:BX -> data buffer Return: CF set on error CF clear if successful AH = status (see #00234) AL = number of sectors transferred (only valid if CF set for some BIOSes) Notes: errors on a floppy may be due to the motor failing to spin up quickly enough; the write should be retried at least three times, resetting the disk with AH=00h between attempts most BIOSes support "multitrack" writes, where the value in AL exceeds the number of sectors remaining on the track, in which case any additional sectors are written beginning at sector 1 on the following head in the same cylinder; the CONFIG.SYS command MULTITRACK can be used to force DOS to split disk accesses which would wrap across a track boundary into two separate calls the IBM AT BIOS and many other BIOSes use only the low four bits of DH (head number) since the WD-1003 controller which is the standard AT controller (and the controller that IDE emulates) only supports 16 heads AWARD AT BIOS and AMI 386sx BIOS have been extended to handle more than 1024 cylinders by placing bits 10 and 11 of the cylinder number into bits 6 and 7 of DH under Windows95, an application must issue a physical volume lock on the drive via INT 21/AX=440Dh before it can successfully write to the disk with this function SeeAlso: AH=02h,AH=0Bh,AH=07h"V10DISK.SYS",AH=22h"PS/1",AH=43h"IBM" SeeAlso: INT 21/AX=440Dh"DOS 3.2+",INT 4D/AH=03h --------B-1304------------------------------- INT 13 - DISK - VERIFY DISK SECTOR(S) 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) ES:BX -> data buffer (PC,XT,AT with BIOS prior to 1985/11/15) Return: CF set on error CF clear if successful AH = status (see #00234) AL = number of sectors verified Notes: errors on a floppy may be due to the motor failing to spin up quickly enough (timeout error 80h); the write should be retried at least three times, resetting the disk with AH=00h between attempts on floppys, the operation should also be retried on media change (06h) detection. this function does not compare the disk with memory, it merely checks whether the sector's stored CRC matches the data's actual CRC the IBM AT BIOS and many other BIOSes use only the low four bits of DH (head number) since the WD-1003 controller which is the standard AT controller (and the controller that IDE emulates) only supports 16 heads AWARD AT BIOS and AMI 386sx BIOS have been extended to handle more than 1024 cylinders by placing bits 10 and 11 of the cylinder number into bits 6 and 7 of DH BUG: some Epson ROM BIOSes sometimes have problems properly handling this function. The workaround is to reset the disk (INT 13/AH=00h) before the call. SeeAlso: AH=02h,AH=44h,INT 4D/AH=04h,INT 4D/AH=06h --------B-1305------------------------------- INT 13 - FLOPPY - FORMAT TRACK AH = 05h AL = number of sectors to format CH = track number DH = head number DL = drive number ES:BX -> address field buffer (see #00235) Return: CF set on error CF clear if successful AH = status (see #00234) Notes: on AT or higher, call AH=17h first the number of sectors per track is read from the diskette parameter table pointed at by INT 1E BUG: some old Compaq BIOSes have a bug when attempting to call this function from Windows Standard Mode with EMM386 loaded. A possible workaround is to call this function from Real Mode e.g. through DPMI function "Call Real Mode function with FAR return" (see INT 31/AX=0301h). SeeAlso: AH=05h"FIXED",AH=17h,AH=18h,INT 1E Format of floppy format address field buffer entry (one per sector in track): Offset Size Description (Table 00235) 00h BYTE track number 01h BYTE head number (0-based) 02h BYTE sector number 03h BYTE sector size (00h=128 bytes, 01h=256 bytes, 02h=512, 03h=1024) --------B-1305------------------------------- INT 13 - FIXED DISK - FORMAT TRACK AH = 05h AL = interleave value (XT-type controllers only) ES:BX -> 512-byte format buffer the first 2*(sectors/track) bytes contain F,N for each sector F = sector type 00h for good sector 20h to unassign from alternate location 40h to assign to alternate location 80h for bad sector N = sector number CH = cylinder number (bits 8,9 in high bits of CL) CL = high bits of cylinder number (bits 7,6) DH = head DL = drive Return: CF set on error CF clear if successful AH = status code (see #00234) Notes: AWARD AT BIOS and AMI 386sx BIOS have been extended to handle more than 1024 cylinders by placing bits 10 and 11 of the cylinder number into bits 6 and 7 of DH for XT-type controllers on an AT or higher, AH=0Fh should be called first the IBM AT BIOS and many other BIOSes use only the low four bits of DH (head number) since the WD-1003 controller which is the standard AT controller (and the controller that IDE emulates) only supports 16 heads not all controller support sector types 20h and 40h under Windows95, an application must issue a physical volume lock on the drive via INT 21/AX=440Dh before it can successfully write to the disk with this function SeeAlso: AH=05h"FLOPPY",AH=06h"FIXED",AH=07h"FIXED",AH=0Fh,AH=18h,AH=1Ah --------d-1305------------------------------- INT 13 - Future Domain SCSI BIOS - SEND SCSI MODE SELECT COMMAND AH = 05h DL = hard drive ID ES:BX -> mode select data (see #00236) Return: CF set on error CF clear if successful AH = status code (see #00234) Notes: this function can be called before AH=07h"SCSI" or AH=06h"SCSI" to format a SCSI disk with the desired parameters the mode select data below is from the SCSI-1 specification the TMC-950 does not support any Future Domain BIOS calls; instead, it provides a full CAM implementation (see INT 4F/AX=8100h) SeeAlso: AH=06h"SCSI",AH=07h"SCSI",INT 4F/AX=8100h Format of Future Domain SCSI mode select data: Offset Size Description (Table 00236) 00h BYTE number of bytes of remaining data (12 + vendor unique length) 01h BYTE reserved (0) 02h BYTE medium type (0 for hard disk) 03h BYTE reserved (0) 04h BYTE block descriptor length (8) 05h BYTE density code (0 for hard disk) 06h 3 BYTEs (big-endian) number of blocks (000000h for entire disk) 09h BYTE reserved (0) 0Ah 3 BYTEs (big-endian) block length (512 standard, or 256) 0Dh ??? vendor-specific parameter bytes (optional) --------d-13057FSI324D----------------------- INT 13 - 2M - FORMAT TRACK AX = 057Fh SI = 324Dh ("2M") CH = track number DH = head number DL = drive number ES:BX -> boot sector of future 2M diskette Return: CF set on error CF clear if successful AH = status (see #00234) Program: 2M is a TSR developed by Ciriaco Garcˇa de Celis to support non standard diskettes with 820-902/1476-1558K (5.25 DD/HD) and 984-1066/1804-1886K/3608-3772K (3.5 DD/HD/ED) InstallCheck: must search for a "CiriSOFT:2M:1.3" or "CiriSOFT:2MX:3.0" or similar (recomended ":2M:", ":2MX:", or ":2MB:" substrings) in the CiriSOFT TSR interface Notes: it is not necessary to call AH=17h or AH=18h first (will be ignored) the diskette format must always begin on cylinder 0 head 0 the boot sector can be obtained from an already-formatted 2M diskette (by calling AH=02h with head number 00h in 2M v1.x and with head number 80h for 2M v2+) since 2M v2.0, the BOOT sector is emulated using the first physical sector of FAT2; the second-sixth physical sectors of FAT2 in HD or ED diskettes store the SuperBOOT code. To skip the FAT2 emulation (using FAT1) of 2M, in order to read the SuperBOOT code, head number must be 80h-81h instead 0-1 (bit 7 active) in standard read/write functions. This lets diskcopy programs format 2M target diskettes copying SuperBOOT code. If the target diskette is already 2MF formatted (containing boot code) this trick it is not necessary. when using STV technology (offset 65 of boot sector equal to 1) it is necessary to write the full track before formatting (except track 0 side 0) to complete the format and skip future CRC errors on read; in track 0 side 1 the head used must be 81h instead 1. Diskcopy programs may do a format-write-verify sequential phases to improve performance SeeAlso: AH=05h"FLOPPY",AH=18h/CX=5055h,INT 2F"CiriSOFT" --------B-1306------------------------------- INT 13 - FIXED DISK - FORMAT TRACK AND SET BAD SECTOR FLAGS (XT,PORT) AH = 06h AL = interleave value CH = cylinder number (bits 8,9 in high bits of CL) CL = sector number DH = head DL = drive Return: AH = status code (see #00234) Note: AWARD AT BIOS and AMI 386sx BIOS have been extended to handle more than 1024 cylinders by placing bits 10 and 11 of the cylinder number into bits 6 and 7 of DH SeeAlso: AH=05h"FIXED",AH=07h"FIXED" --------d-1306------------------------------- INT 13 - Future Domain SCSI BIOS - FORMAT DRIVE WITH BAD SECTOR MAPPING AH = 06h AL = interleave (0 = default, 1 = consecutive sectors, 2 - 255 = vendor unique) DL = hard drive ID DH = defect list info (see #00237) ES:BX -> defect table A, B or C (see #00238,#00239,#00240) Return: CF set on error CF clear if successful AH = status code (see #00234) Notes: block addresses must be in ascending order (for table B, cylinder is most significant, byte from index least significant; for table C, cylinder is most significant, sector number least significant) table B defect bytes from index of FFFFFFFFh indicates that the entire track shall be reassigned table C defect sector number of FFFFFFFFh indicates that the entire track shall be reassigned the TMC-950 does not support any Future Domain BIOS calls; instead, it provides a full CAM implementation (see INT 4F/AX=8100h) SeeAlso: AH=05h"SCSI",AH=06h"FIXED",AH=07h"SCSI" Bitfields for Future Domain SCSI defect list info: Bit(s) Description (Table 00237) 7-5 drive LUN 4 defect list is available 3 defect list is complete (erase drive's defect list) 2-0 defect table format (000=use defect table A, 100=use defect table B, 101=use defect table C) Format of Future Domain SCSI defect table A: Offset Size Description (Table 00238) 00h WORD number of bytes remaining in table 02h BYTE reserved (0) 03h BYTE reserved (0) 04h WORD (big-endian) defect list length (4*number of defects) 06h 4 DWORDs (big-endian) defect block addresses Format of Future Domain SCSI defect table B: Offset Size Description (Table 00239) 00h WORD number of bytes remaining in table 02h BYTE reserved (0) 03h BYTE reserved (0) 04h WORD (big-endian) defect list length (8*number of defects) 06h 8N BYTEs defect list [array] (see #00241) Format of Future Domain SCSI defect table C: Offset Size Description (Table 00240) 00h WORD number of bytes remaining in table 02h BYTE reserved (0) 03h BYTE reserved (0) 04h WORD (big-endian) defect list length (8*number of defects) 06h 8N BYTEs defect list [array] (see #00241) Format of Future Domain SCSI defect list entry: Offset Size Description (Table 00241) 00h 3 BYTEs (big-endian) cylinder number of defect 03h BYTE head number of defect 04h DWORD (big-endian) defect bytes from index --------d-1306------------------------------- INT 13 - Adaptec AHA-154xA/Bustek BT-542 BIOS - IDENTIFY SCSI DEVICES AH = 06h Return: AH = status code (see #00234) CF clear if successful AL = first drive supported (80h nonconcurrent operation, 81h concurrent operation) CF set on error Desc: determine the number of the first supported SCSI drive Note: the return value is 80h when two SCSI drives are supported, 81h if only one SCSI drive is installed SeeAlso: AH=08h"PC",#00732 at INT 1A/AX=B102h --------d-1306------------------------------- INT 13 - V10DISK.SYS - READ DELETED SECTORS AH = 06h AL = number of sectors CH = cylinder number (bits 8,9 in high bits of CL) CL = sector number DH = head DL = drive ES:BX -> buffer Return: AH = status code (see #00234) Program: V10DISK.SYS is a driver for the Flagstaff Engineering 8" floppies SeeAlso: AH=02h,AH=07h"V10DISK.SYS" --------B-1307------------------------------- INT 13 - FIXED DISK - FORMAT DRIVE STARTING AT GIVEN TRACK (XT,PORT) AH = 07h AL = interleave value (XT only) ES:BX = 512-byte format buffer (see AH=05h) CH = cylinder number (bits 8,9 in high bits of CL) CL = sector number DH = head DL = drive Return: AH = status code (see #00234) Note: AWARD AT BIOS and AMI 386sx BIOS have been extended to handle more than 1024 cylinders by placing bits 10 and 11 of the cylinder number into bits 6 and 7 of DH SeeAlso: AH=05h"FIXED",AH=06h"FIXED",AH=1Ah --------d-1307------------------------------- INT 13 - Future Domain SCSI BIOS - FORMAT DRIVE AH = 07h AL = interleave (0 = default, 1 = consecutive sectors, 2 - 255 = vendor unique) DL = hard drive ID Return: CF set on error CF clear if successful AH = status code (see #00234) SeeAlso: AH=05h"SCSI",AH=06h"SCSI",AH=07h"FIXED" --------d-1307------------------------------- INT 13 - V10DISK.SYS - WRITE DELETED SECTORS AH = 07h AL = number of sectors CH = cylinder number (bits 8,9 in high bits of CL) CL = sector number DH = head DL = drive ES:BX -> buffer Return: AH = status code (see #00234) Program: V10DISK.SYS is a driver for the Flagstaff Engineering 8" floppies SeeAlso: AH=03h,AH=06h"V10DISK.SYS" --------B-1308------------------------------- INT 13 - DISK - GET DRIVE PARAMETERS (PC,XT286,CONV,PS,ESDI,SCSI) AH = 08h DL = drive (bit 7 set for hard disk) ES:DI = 0000h:0000h to guard against BIOS bugs Return: CF set on error AH = status (07h) (see #00234) CF clear if successful AH = 00h AL = 00h on at least some BIOSes BL = drive type (AT/PS2 floppies only) (see #00242) CH = low eight bits of maximum cylinder number CL = maximum sector number (bits 5-0) high two bits of maximum cylinder number (bits 7-6) DH = maximum head number DL = number of drives ES:DI -> drive parameter table (floppies only) Notes: may return successful even though specified drive is greater than the number of attached drives of that type (floppy/hard); check DL to ensure validity for systems predating the IBM AT, this call is only valid for hard disks, as it is implemented by the hard disk BIOS rather than the ROM BIOS the IBM ROM-BIOS returns the total number of hard disks attached to the system regardless of whether DL >= 80h on entry. Toshiba laptops with HardRAM return DL=02h when called with DL=80h, but fail on DL=81h. The BIOS data at 40h:75h correctly reports 01h. may indicate only two drives present even if more are attached; to ensure a correct count, one can use AH=15h to scan through possible drives Reportedly some Compaq BIOSes with more than one hard disk controller return only the number of drives DL attached to the corresponding controller as specified by the DL value on entry. However, on Compaq machines with "COMPAQ" signature at F000h:FFEAh, MS-DOS/PC DOS IO.SYS/IBMBIO.COM call INT 15/AX=E400h and INT 15/AX=E480h to enable Compaq "mode 2" before retrieving the count of hard disks installed in the system (DL) from this function. the maximum cylinder number reported in CX is usually two less than the total cylinder count reported in the fixed disk parameter table (see INT 41h,INT 46h) because early hard disks used the last cylinder for testing purposes; however, on some Zenith machines, the maximum cylinder number reportedly is three less than the count in the fixed disk parameter table. for BIOSes which reserve the last cylinder for testing purposes, the cylinder count is automatically decremented on PS/1s with IBM ROM DOS 4, nonexistent drives return CF clear, BX=CX=0000h, and ES:DI = 0000h:0000h machines with lost CMOS memory may return invalid data for floppy drives. In this situation CF is cleared, but AX,BX,CX,DX,DH,DI, and ES contain only 0. At least under some circumstances, MS-DOS/ PC DOS IO.SYS/IBMBIO.COM just assumes a 360 KB floppy if it sees CH to be zero for a floppy. the PC-Tools PCFORMAT program requires that AL=00h before it will proceed with the formatting if this function fails, an alternative way to retrieve the number of floppy drives installed in the system is to call INT 11h. In fact, the MS-DOS/PC-DOS IO.SYS/IBMBIO.COM attempts to get the number of floppy drives installed from INT 13/AH=08h, when INT 11h AX bit 0 indicates there are no floppy drives installed. In addition to testing the CF flag, it only trusts the result when the number of sectors (CL preset to zero) is non-zero after the call. BUGS: several different Compaq BIOSes incorrectly report high-numbered drives (such as 90h, B0h, D0h, and F0h) as present, giving them the same geometry as drive 80h; as a workaround, scan through disk numbers, stopping as soon as the number of valid drives encountered equals the value in 0040h:0075h a bug in Leading Edge 8088 BIOS 3.10 causes the DI,SI,BP,DS, and ES registers to be destroyed some Toshiba BIOSes (at least before 1995, maybe some laptops??? with 1.44 MB floppies) have a bug where they do not set the ES:DI vector even for floppy drives. Hence these registers should be preset with zero before the call and checked to be non-zero on return before using them. Also it seems these BIOSes can return wrong info in BL and CX, as S/DOS 1.0 can be configured to preset these registers as for an 1.44 MB floppy. the PS/2 Model 30 fails to reset the bus after INT 13/AH=08h and INT 13/AH=15h. A workaround is to monitor for these functions and perform a transparent INT 13/AH=01h status read afterwards. This will reset the bus. The MS-DOS 6.0 IO.SYS takes care of this by installing a special INT 13h interceptor for this purpose. AD-DOS may leave interrupts disabled on return from this function. Some Microsoft software explicitly sets STI after return. SeeAlso: AH=06h"Adaptec",AH=13h"SyQuest",AH=48h,AH=15h,INT 1E SeeAlso: INT 41"HARD DISK 0" (Table 00242) Values for diskette drive type: 01h 360K 02h 1.2M 03h 720K 04h 1.44M 05h ??? (reportedly an obscure drive type shipped on some IBM machines) 2.88M on some machines (at least AMI 486 BIOS) 06h 2.88M 10h ATAPI Removable Media Device --------d-1308------------------------------- INT 13 - V10DISK.SYS - SET FORMAT AH = 08h AL = number of sectors CH = cylinder number (bits 8,9 in high bits of CL) CL = sector number DH = head DL = drive Return: AH = status code (see #00234) Program: V10DISK.SYS is a driver for the Flagstaff Engineering 8" floppies Note: details not available SeeAlso: AH=03h,AH=06h"V10DISK.SYS" --------y-130800DLF0------------------------- INT 13 - SecureDrive - INSTALLATION CHECK AX = 08000h DL = F0h Return: AX = EDCBh for version 1.0-1.2 AX = EDCCh for version 1.3 CX = code segment DX = data address within code segment Program: SecureDrive by Mike Ingle allows you to create an encrypted partition on your harddisk. --------B-1309------------------------------- INT 13 - HARD DISK - INITIALIZE CONTROLLER WITH DRIVE PARAMETERS (AT,PS) AH = 09h DL = drive (80h for first, 81h for second) Return: CF clear if successful CF set on error AH = status (see #00234) Notes: on the PC and XT, this function uses the parameter table pointed at by INT 41 on the AT and later, this function uses the parameter table pointed at by INT 41 if DL=80h, and the parameter table pointed at by INT 46 if DL=81h SeeAlso: INT 41"HARD DISK 0",INT 46"HARD DISK 1" --------B-130A------------------------------- INT 13 - HARD DISK - READ LONG SECTOR(S) (AT and later) AH = 0Ah AL = number of sectors (01h may be only value supported) CH = low eight bits of cylinder number CL = sector number (bits 5-0) high two bits of cylinder number (bits 7-6) DH = head number DL = drive number (80h = first, 81h = second) ES:BX -> data buffer Return: CF clear if successful CF set on error AH = status (see #00234) AL = number of sectors transferred Notes: this function reads in four to seven bytes of error-correcting code along with each sector's worth of information data errors are not automatically corrected, and the read is aborted after the first sector with an ECC error used for diagnostics only on PS/2 systems; IBM officially classifies this function as optional BUG: on the original IBM AT BIOS (1984/01/10) this function does not disable interrupts for harddisks (DL >= 80h). On these machines the MS-DOS/ PC DOS IO.SYS/IBMBIO.COM installs a special filter to bypass the buggy code in the ROM (see CALL F000h:211Eh) SeeAlso: AH=02h,AH=0Bh,MEM 0040h:0074h --------B-130B------------------------------- INT 13 - HARD DISK - WRITE LONG SECTOR(S) (AT and later) AH = 0Bh AL = number of sectors (01h may be only value supported) CH = low eight bits of cylinder number CL = sector number (bits 5-0) high two bits of cylinder number (bits 7-6) DH = head number DL = drive number (80h = first, 81h = second) ES:BX -> data buffer Return: CF clear if successful CF set on error AH = status (see #00234) AL = number of sectors transferred Notes: each sector's worth of data must be followed by four to seven bytes of error-correction information used for diagnostics only on PS/2 systems; IBM officially classifies this function as optional SeeAlso: AH=03h,AH=0Ah,MEM 0040h:0074h --------B-130C------------------------------- INT 13 - HARD DISK - SEEK TO CYLINDER AH = 0Ch CH = low eight bits of cylinder number CL = sector number (bits 5-0) high two bits of cylinder number (bits 7-6) DH = head number DL = drive number (80h = first, 81h = second hard disk) Return: CF set on error CF clear if successful AH = status (see #00234) SeeAlso: AH=00h,AH=02h,AH=0Ah,AH=47h --------B-130D------------------------------- INT 13 - HARD DISK - RESET HARD DISKS AH = 0Dh DL = drive number (80h = first, 81h = second hard disk) Return: CF set on error CF clear if successful AH = status (see #00234) Notes: reinitializes the hard disk controller, resets the specified drive's parameters, and recalibrates the drive's heads (seek to track 0) for PS/2 35SX, 35LS, 40SX and L40SX, as well as many other systems, both the master drive and the slave drive respond to the Reset function that is issued to either drive not for PS/2 ESDI drives SeeAlso: AH=00h,INT 21/AH=0Dh --------B-130E------------------------------- INT 13 - HARD DISK - READ SECTOR BUFFER (XT only) AH = 0Eh DL = drive number (80h = first, 81h = second hard disk) ES:BX -> buffer Return: CF set on error CF clear if successful AH = status code (see #00234) Notes: transfers controller's sector buffer. No data is read from the drive used for diagnostics only on PS/2 systems SeeAlso: AH=0Ah --------B-130F------------------------------- INT 13 - HARD DISK - WRITE SECTOR BUFFER (XT only) AH = 0Fh DL = drive number (80h = first, 81h = second hard disk) ES:BX -> buffer Return: CF set on error CF clear if successful AH = status code (see #00234) Notes: does not write data to the drive should be called before formatting to initialize an XT-type controller's sector buffer used for diagnostics only on PS/2 systems SeeAlso: AH=0Bh --------B-1310------------------------------- INT 13 - HARD DISK - CHECK IF DRIVE READY AH = 10h DL = drive number (80h = first, 81h = second hard disk) Return: CF set on error CF clear if successful AH = status (see #00234 at AH=01h) SeeAlso: AH=11h --------B-1311------------------------------- INT 13 - HARD DISK - RECALIBRATE DRIVE AH = 11h DL = drive number (80h = first, 81h = second hard disk) Return: CF set on error CF clear if successful AH = status (see #00234 at AH=01h) Note: causes hard disk controller to seek the specified drive to cylinder 0 SeeAlso: AH=00h,AH=0Ch,AH=10h,AH=19h"FIXED DISK",MEM 0040h:003Eh --------B-1312------------------------------- INT 13 - HARD DISK - CONTROLLER RAM DIAGNOSTIC (XT,PS) AH = 12h DL = drive number (80h = first, 81h = second hard disk) Return: CF set on error CF clear if successful AH = status code (see #00234 at AH=01h) AL = 00h SeeAlso: AH=13h,AH=14h --------d-1312------------------------------- INT 13 - Future Domain SCSI CONTROLLER - STOP SCSI DISK AH = 12h DL = hard drive ID Return: CF set on error CF clear if successful AH = status code (see #00234 at AH=01h) Notes: available at least on the TMC-870 8-bit SCSI controller BIOS v6.0A if the given drive is a SCSI device, the SCSI Stop Unit command is sent and either "Disk prepared for shipping" or "Disk Stop command failed" is displayed the TMC-950 does not support any Future Domain BIOS calls; instead, it provides a full CAM implementation (see INT 4F/AX=8100h) --------d-1312------------------------------- INT 13 - SyQuest - START/STOP SCSI DISK AH = 12h AL = subfunction 00h start disk 01h stop disk CX = wait flag 00h wait for ready 01h don't wait for ready DL = hard drive ID (bit 7 for hard disks must be set) Return: CF set on error CF clear if successful AH = status 00h successful 01h invalid function request 80h timeout SeeAlso: AH=12h"Future Domain",AH=13h"SyQuest" --------B-1313------------------------------- INT 13 - HARD DISK - DRIVE DIAGNOSTIC (XT,PS) AH = 13h DL = drive number (80h = first, 81h = second hard disk) Return: CF set on error CF clear if successful AH = status code (see #00234 at AH=01h) AL = 00h SeeAlso: AH=12h"HARD DISK",AH=14h"HARD DISK" --------d-1313------------------------------- INT 13 - SyQuest - READ DRIVE PARAMATERS (for DOS 5+) AH = 13h DL = drive ID (bit 7 set for hard disks) Return: CF set on error AH = status (07h) (see #00234 at AH=01h) CF clear if successful AH = 00h BL = drive type (AT/PS2 floppies only) (see #00242) CH = low eight bits of maximum cylinder number CL = maximum sector number (bits 5-0) high two bits of maximum cylinder number (bits 7-6) DH = maximum head number DL = number of drives ES:DI -> drive parameter table (floppies only) Notes: the return values are identical to the standard INT 13/AH=08h, but the number of drives is not limited to 2, so scanning all possible drive numbers with the Read DASD Type call (AH=15h) should generally be preferred to determine the number of drives attached to the system. SeeAlso: AH=08h"PC",AH=12h"SyQuest",AH=15h,AH=59h"SyQuest" --------B-1314------------------------------- INT 13 - HARD DISK - CONTROLLER INTERNAL DIAGNOSTIC AH = 14h Return: CF set on error CF clear if successful AH = status code (see #00234 at AH=01h) AL = 00h SeeAlso: AH=12h,AH=13h --------B-1315------------------------------- INT 13 - DISK - GET DISK TYPE (XT 1986/1/10 or later,XT286,AT,PS) AH = 15h DL = drive number (bit 7 set for hard disk) (AL = FFh, CX = FFFFh, see Note) Return: CF clear if successful AH = type code 00h no such drive (SpeedStor) AL = 03h hard disk CX:DX = number of 512-byte sectors 01h floppy without change-line support 02h floppy (or other removable drive) with change-line support 03h hard disk CX:DX = number of 512-byte sectors CF set on error AH = status (see #00234 at AH=01h) Note: SyQuest can report type 01h or 02h for 'hard disks', since its media is removable BUGS: many versions of the Award 486 BIOS do not return the sector count because the BIOS exit code restores CX and DX to their original values after the function had already set them to correct values Some releases of PC Tools REBUILD preset CX=FFFFh and only trust the results if CH <= 2 on return (which would cut off drives > 16 Gb). several different Compaq BIOSes incorrectly report high-numbered drives (such as 90h, B0h, D0h, and F0h) as present, giving them the same geometry as drive 80h; as a workaround, scan through disk numbers, stopping as soon as the number of valid drives encountered equals the value in 0040h:0075h the PS/2 Model 30 fails to reset the bus after INT 13/AH=08h and INT 13/AH=15h. A workaround is to monitor for these functions and perform a transparent INT 13/AH=01h status read afterwards. This will reset the bus. The MS-DOS 6.0 IO.SYS takes care of this by installing a special INT 13h interceptor for this purpose. Some releases of SpeedStor have a bug where it reports AX=0003h instead of correctly reporting AH=03h for hard disks. A possible workaround when testing for hard disks is to check for AH=03h and AX=0003h. In this case this function should be invoked with a bogus fixed value in AL, e.g. AL=FFh. SeeAlso: AH=08h,AH=16h,AH=17h,AH=19h"SCSI",MEM 0040h:0075h --------B-1316------------------------------- INT 13 - FLOPPY DISK - DETECT DISK CHANGE (XT 1986/1/10 or later,XT286,AT,PS) AH = 16h DL = drive number (00h-7Fh) SI = 0000h (to avoid crash on AT&T 6300) Return: CF clear if change line inactive AH = 00h (disk not changed) CF set if change line active AH = status 01h invalid command (SyQuest) 06h change line active or not supported 80h drive not ready or not present Notes: call AH=15h first to determine whether the drive supports a change line this call also clears the media-change status, so that a disk change is only reported once BUGS: some versions of Award 386 Modular BIOS and AMI BIOS fail to clear the media-change status AT&T 6300 WGS systems crash if SI <> 0 on entry. some pre 1986/08/04 Compaq ROM BIOS have a serious bug where this function may re-configure a hard disk depending on what is located at ES:[BX] and data indexed to by it. MS-DOS/PC DOS IO.SYS/IBMBIO.COM install a special filter when they detect Compaq ROM BIOSes with earlier dates. some Compaq 286 systems have a bug in all INT 13h functions >= 16h, which causes the byte at DS:0074h to be destroyed when called for hard disks (DL >= 80h). MS-DOS/PC DOS IO.SYS/IBMBIO.COM performs a test on this bug using this sub-function, and if found installs a special filter which points DS into ROM, so that it cannot cause any harm. some drives (or controllers???) forget the change line status if another drive is accessed afterwards. The DOS BIOS takes care of this by not relying on the reported change line status when the change line is not active and a different drive is accessed, instead it reports "don't know" to the DOS kernel. SeeAlso: AH=15h,AH=49h --------B-1317------------------------------- INT 13 - FLOPPY DISK - SET DISK TYPE FOR FORMAT (AT,PS) AH = 17h AL = format type 01h = 320/360K disk in 360K drive 02h = 320/360K disk in 1.2M drive 03h = 1.2M disk in 1.2M drive 04h = 720K disk in 720K or 1.44M drive DL = drive number Return: CF set on error CF clear if successful AH = status (see #00234 at AH=01h) Note: this function does not handle 1.44M drives; use AH=18h instead SeeAlso: AH=15h,AH=18h --------d-131700----------------------------- INT 13 - Future Domain SCSI CONTROLLER - GET INQUIRY INFO FROM SCSI DEVICE AX = 1700h CL = length of buffer DL = hard drive ID ES:BX -> buffer for info (see #00243) Return: CF clear if successful CH = number of bytes returned in buffer??? CF set on error AH = status code (see #00234 at AH=01h) Notes: this function is not available with 8-bit controller ROM versions < 7.0 information block bytes 5-n are vendor-specific in older SCSI devices the TMC-950 does not support any Future Domain BIOS calls; instead, it provides a full CAM implementation (see INT 4F/AX=8100h) SeeAlso: AH=18h"SCSI",AH=1Bh"SCSI" Format of Future Domain SCSI inquiry information block: Offset Size Description (Table 00243) 00h BYTE device type bits 0-4: peripheral device type (see #00244) bits 5-7: peripheral qualifier (see #00245) 01h BYTE device type modifier bits 0-6: device type modifier bit 7: removable medium 02h BYTE SCSI version (see #00246) 03h BYTE data format/capabilities (see #00247) 04h BYTE additional data length (total remaining bytes) 05h 2 BYTEs reserved 07h BYTE device capabilities (see #00248) 08h 8 BYTEs vendor identification (space-padded ASCII) 10h 8 BYTEs product identification (space-padded ASCII) 20h 4 BYTEs product revision level (space-padded ASCII) 24h 20 BYTEs vendor specific 38h 40 BYTEs reserved 60h var vendor specific parameters (Table 00244) Values for Future Domain SCSI peripheral device type: 00h direct-access device (e.g., magnetic disk) 01h sequential-access device (e.g., magnetic tape) 02h printer device 03h processor device 04h write-once device (e.g., some optical disks) 05h CD-ROM device 06h scanner device 07h optical memory device (e.g., some optical disks) 08h medium changer device (e.g., jukeboxes) 09h communications device 0Ah (defined by ASC IT8) 0Bh (defined by ASC IT8) 0Ch-1Eh reserved 1Fh unknown or no device type (Table 00245) Values for Future Domain SCSI peripheral qualifier: 000b device is currently connected to this logical unit and available 001b target is capable of supporting the specified peripheral, but the physical device is not currently connected to this logical unit 010b reserved 011b target can't support a physical device on this logical unit 1xxb vendor specific Bitfields for Future Domain SCSI version: Bit(s) Description (Table 00246) 0-2 ANSI-approved version 000 device might or might not comply to ANSI standard 001 device complies to ANSI SCSI-1 010 device complies to ANSI SCSI-2 other reserved 3-5 ECMA version 6-7 ISO version Bitfields for Future Domain SCSI data format/capabilities: Bit(s) Description (Table 00247) 0-2 response data format 000 information block is as specified in SCSI-1 001 information block is as specified in CCS 010 information block is as specified in SCSI-2 other reserved 4-5 reserved 6 terminate I/O process supported 7 asynchronous event notification supported Bitfields for Future Domain SCSI device capabilities: Bit(s) Description (Table 00248) 0 device responds to RESET with a hard RESET 1 tagged command queuing supported 2 reserved 3 linked commands supported 4 synchronous data transfer supported 5 16-transfers supported 6 32-transfers supported 7 relative addressing supported --------B-1318------------------------------- INT 13 - DISK - SET MEDIA TYPE FOR FORMAT (AT model 3x9,XT2,XT286,PS) AH = 18h DL = drive number CH = lower 8 bits of highest cylinder number (number of cylinders - 1) CL = sectors per track (bits 0-5) top 2 bits of highest cylinder number (bits 6,7) Return: AH = status 00h requested combination supported 01h function not available 0Ch not supported or drive type unknown 80h there is no disk in the drive ES:DI -> 11-byte parameter table (see #01264 at INT 1E) Note: this function does not set the INT 1E vector to point at the returned parameter table; it is the caller's responsibility to do so SeeAlso: AH=05h,AH=07h,AH=17h,INT 1E --------d-1318------------------------------- INT 13 - Future Domain SCSI BIOS - GET SCSI CONTROLLER INFORMATION AH = 18h DL = hard drive ID Return: CF set on error AH = status code (see #00234 at AH=01h) CF clear if successful AX = 4321h (magic number) CX = controller family code (see #00249) ---if family code=0200h DH = number of exclusively ROM-controlled SCSI devices DL = canonical SCSI device number for specified drive ---if family code <> 0200h BH = number of exclusively ROM-controlled SCSI devices BL = canonical SCSI device number for specified drive Notes: also sets an internal flag (non-resettable) which prevents some controller messages from being displayed, allows writes to removable devices (use caution!), and enables the INT 13 interface for more than one drive (i.e. DL >= 81h) in at least some ROM versions the TMC-950 does not support any Future Domain BIOS calls; instead, it provides a full CAM implementation (see INT 4F/AX=8100h) SeeAlso: AH=05h"SCSI",AX=1700h"SCSI",AH=1Bh"SCSI",INT 4F/AX=8100h (Table 00249) Values for Future Domain SCSI controller family code: 0200h TMC-1680/? (ROM 3.0) 0203h TMC-1650/1660/1670/1680 (ROM 2.0) 040Ah TMC-820/830/840/850/860/870/875/880/885 (ROM <= 6.0A) 050Dh TMC-840/841/880/881 (ROM 5.2D) 0700h TMC-830/850/860/875/885 (ROM 7.0) --------d-1318--CX5055----------------------- INT 13 - PU_1700.COM - INSTALLATION CHECK AH = 18h CX = 5055h ('PU') DL = 00h Return: AX = 7570h ('up') if PU_1700 is installed Program: PU_1700 is a BIOS enhancer from PU Service Systems which permits formatting diskettes at higher capacity (1.78M instead of 1.44M) SeeAlso: AX=057Fh/SI=324Dh"2M" --------d-1318--CXD2C9----------------------- INT 13 - XDF.COM - API AH = 18h CX = D2C9h ("R"+80h, "I"+80h = Roger Ivey) DX = 0000h BX = function 0000h installation check Return: AH = 0Ch CX = 7269h ("ri" = Roger Ivey) ES = segment of driver CF set 2F64h ("/d") disable the driver Return: AH = 0Ch ES:BX = pointer to activation flag (it is set to 0: set it to 1 to enable the driver again) CX = 7269h CF set 2F75h ("/u") unload the driver (restore interrupts & free memory) Return: AH = 0Ch DL = 55h ("U") if successful = 00h if fails CX = 7269h ES = segment of driver CF set AL, BX, DH, and DI destroyed Program: XDF is a TSR provided with PC-DOS 7.0 to support XDF 1.84M disks, developed by Roger D. Ivey Note: After disabling or enabling the driver, a disk change must be performed or simulated to reset the driver. --------B-1319------------------------------- INT 13 - FIXED DISK - PARK HEADS ON ESDI DRIVE (XT286,PS) AH = 19h DL = drive Return: CF set on error CF clear if successful AH = status (see #00234 at AH=01h) SeeAlso: AH=11h --------d-1319------------------------------- INT 13 - Future Domain SCSI CONTROLLER - REINITIALIZE DRIVE AH = 19h DL = hard drive ID Return: CF set on error AH = status code (see #00234 at AH=01h) CF clear if successful AH = disk type (03h = fixed disk) CX:DX = number of 512-byte sectors Notes: sends SCSI Read Capacity command to get number of logical blocks and adjusts the result for 512-byte sectors displays either "Error in Read Capacity Command" or "nnn Bytes per sector" (nnn=256 or 512, the only sizes supported in the translation code) should probably be called when a removable device has its media changed returns the same values as AH=15h the TMC-950 does not support any Future Domain BIOS calls; instead, it provides a full CAM implementation (see INT 4F/AX=8100h) SeeAlso: AH=15h,AH=1Ah,INT 4F/AX=8100h --------d-131A------------------------------- INT 13 - ESDI FIXED DISK - FORMAT UNIT (PS) AH = 1Ah AL = defect table entry count CL = format modifiers (see #00250) DL = drive (80h,81h) ES:BX -> defect table (see #00251), ignored if AL=00h Return: CF set on error CF clear if successful AH = status (see #00234 at AH=01h) Note: if periodic interrupt selected, INT 15/AH=0Fh is called after each cylinder is formatted SeeAlso: AH=07h,INT 15/AH=0Fh Bitfields for ESDI format modifiers: Bit(s) Description (Table 00250) 4 generate periodic interrupt 3 perform surface analysis 2 update secondary defect map 1 ignore secondary defect map 0 ignore primary defect map Format of defect table entry [array]: Offset Size Description (Table 00251) 00h 3 BYTEs relative sector address (little-endian) 03h BYTE flags and defect count bit 7: last logical sector on track bit 6: first logical sector on track bit 5: last logical sector on cylinder bit 4: logical sectors are pushed onto next track bits 3-0: number of defects pushed from previous cylinder --------d-131A------------------------------- INT 13 - Future Domain SCSI CONTROLLER - GET SCSI PARTIAL MEDIUM CAPACITY AH = 1Ah CH = track (bits 8,9 in high bits of CL) CL = sector (01h to number of sectors/track for drive) DH = head DL = hard drive ID Return: CF set on error AH = status code (see #00234 at AH=01h) CX:DX = logical block number of last quickly-accessible block after given block Notes: sends SCSI Read Capacity command with the PMI bit set to obtain the logical block address of the last block after which a substantial delay in data transfer will be encountered (usually the last block on the current cylinder). No translation to 512 byte sectors is performed on the result if data is stored on the disk in other than 512 byte sectors. the TMC-950 does not support any Future Domain BIOS calls; instead, it provides a full CAM implementation (see INT 4F/AX=8100h) SeeAlso: AH=15h,AH=19h"SCSI" --------d-131B------------------------------- INT 13 - ESDI FIXED DISK - GET MANUFACTURING HEADER AH = 1Bh AL = number of sectors to read DL = drive ES:BX -> buffer for manufacturing header (defect list) Return: CF set on error CF clear if successful AH = status Note: manufacturing header format (Defect Map Record format) can be found in IBM 70MB, 115MB Fixed Disk Drives Technical Reference the first sector read contains the manufacturing header with the number of defect entries and the beginning of the defect map; the remaining sectors contain the remainder of the defect map --------d-131B------------------------------- INT 13 - Future Domain SCSI CONTROLLER - GET POINTER TO SCSI DISK INFO BLOCK AH = 1Bh DL = hard drive ID Return: CF set on error AH = status code (see #00234 at AH=01h) CF clear if successful ES:BX -> SCSI disk information block (see #00252) Notes: also sets a non-resettable flag which prevents some controller messages from being displayed the TMC-950 does not support any Future Domain BIOS calls; instead, it provides a full CAM implementation (see INT 4F/AX=8100h) SeeAlso: AH=18h"SCSI",AH=1Ch"SCSI" Format of Future Domain SCSI disk information block: Offset Size Description (Table 00252) 00h BYTE drive physical information (see #00253) 01h WORD translated number of cylinders 03h BYTE translated number of heads 04h BYTE translated number of sectors per track (17, 34, or 63) 05h BYTE drive address bits 0-2: logical unit number bits 3-5: device number 06h BYTE 01h at initialization 07h BYTE sense code byte 00h, or extended sense code byte 0Ch 08h BYTE 00h 09h BYTE 00h or extended sense code byte 02h (sense key) 0Ah BYTE 00h 0Bh 10 BYTEs copy of Command Descriptor Block (CDB) (see #03236,#03237) 15h DWORD translated number of sectors on device Bitfields for Future Domain SCSI device physical information: Bit(s) Description (Table 00253) 0 ??? 1 device uses parity 2 256 bytes per sector instead of 512 3 don't have capacity yet??? 4 disk is removable 5 logical unit number is not present --------d-131C------------------------------- INT 13 - Future Domain SCSI CONTROLLER - GET POINTER TO FREE CONTROLLER RAM AH = 1Ch DL = hard drive ID (any valid SCSI hard disk) Return: CF set on error AH = status code (see #00234 at AH=01h) CF clear if successful ES:BX -> first byte of free RAM on controller Notes: the Future Domain TMC-870 contains 1024 bytes of RAM at offsets 1800h to 1BFFh on-board the controller for storing drive information and controller status; ES:BX points to the first byte available for other uses ES contains the segment at which the controller resides; the controller's two memory-mapped I/O ports are at offsets 1C00h, 1E00h SeeAlso: AH=1Bh"SCSI" --------d-131C------------------------------- INT 13 U - ESDI FIXED DISK - ??? AH = 1Ch AL = subfunction (01h-06h) DL = drive (80h,81h) ??? Return: ??? Note: these functions perform a controller command 0612h without DMA SeeAlso: AX=1C08h,PORT 3510h"ESDI" --------d-131C08----------------------------- INT 13 U - ESDI FIXED DISK - GET COMMAND COMPLETION STATUS AX = 1C08h DL = drive (80h,81h) ES:BX -> buffer for Command Complete Status Block (see #00254) Return: CF set on error CF clear if successful AH = status (see #00234 at AH=01h) SeeAlso: AX=1C09h,AX=1C0Ah,PORT 3510h"ESDI" Format of ESDI Command Complete Status Block: Offset Size Description (Table 00254) 00h BYTE 07h 01h BYTE size of block in words (07h) 02h BYTE command error code (see #00255) 03h BYTE command status code (see #00256) 04h BYTE device error code, group 1 (see #00257) 05h BYTE device error flags, group 2 (see #00258) 06h WORD number of unprocessed sectors due to abnormal termination 08h DWORD last Relative Sector Address processed by command 0Ch WORD number of sectors corrected by ECC codes (Table 00255) Values for ESDI command error code: 00h successful 01h parameter invalid 02h unknown function 03h unsupported command 04h command cancelled 05h unknown function 06h controller diagnostics failed 07h formatting failed 08h format error in primary map 09h format error in secondary map 0Ah diagnostic failure during formatting 0Bh warning: secondary map too large during formatting 0Ch warning: non-zero defect 0Dh system checksum error during formatting 0Eh warning: incompatible device 0Fh warning: push table overflowed 10h warning: more than 15 sectors pushed to next cylinder 11h internal hardware error 12h warning: errors found while verifying sectors 13h invalid device FFh device error (Table 00256) Values for ESDI command status code: 01h successful 03h successful after ECC 05h successful after retries 06h format partially completed 07h successful after ECC and retries 08h command completed with warning (see #00255) 09h abort complete 0Ah reset complete 0Bh data transfer ready (no status block) 0Ch command completed with failure (see #00257,#00258) 0Dh DMA error 0Eh command block error (see #00255) 0Fh bad attention code SeeAlso: #00257 (Table 00257) Values for ESDI device error code, group 1: 00h successful 01h seek fault detected by device 02h interface fault 03h sector ID not found 04h disk not formatted 05h unrecoverable ECC error 06h ECC error in sector ID 07h invalid relative sector address 08h timeout 09h sector defective 0Ah disk changed (removable media) 0Bh selection error 0Ch write protected (removable media) 0Dh write fault 0Eh read fault 0Fh no index or sector pulse 10h device not ready 11h seek error detected by adapter 12h bad format 13h volume overflow 14h data address mark not found 15h sector ID not found 16h missing device configuration data 17h first/last relative sector flags missing 18h track empty 81h timeout while waiting for stop 82h timeout while waiting for end of data transfer 84h stopped awaiting data transfer during formatting 85h timeout while waiting for head switch 86h timeout while awaiting DMA completion SeeAlso: #00256,#00258 Bitfields for ESDI device error flags, group 2: Bit(s) Description (Table 00258) 7-5 unused 4 ready 3 selected 2 write fault 1 on track 0 0 seek/command complete SeeAlso: #00257 --------d-131C09----------------------------- INT 13 U - ESDI FIXED DISK - GET DEVICE STATUS AX = 1C09h DL = drive (80h,81h) ES:BX -> buffer for Device Status Block (see #00259) Return: CF set on error CF clear if successful AH = status (see #00234 at AH=01h) SeeAlso: AX=1C08h,AX=1C0Ah,PORT 3510h"ESDI" Format of ESDI Device Status Block: Offset Size Description (Table 00259) 00h BYTE 08h 01h BYTE number of words in block (09h) 02h BYTE error flags 03h BYTE unused 04h BYTE command error code (see #00255) 05h BYTE command status code (see #00256) 06h WORD ESDI standard status 08h 5 WORDs ESDI vendor-specific status codes --------d-131C0A----------------------------- INT 13 U - ESDI FIXED DISK - GET DEVICE CONFIGURATION AX = 1C0Ah DL = drive (80h,81h) ES:BX -> buffer for Drive Configuration Status Block (see #00260) Return: CF set on error CF clear if successful AH = status (see #00234 at AH=01h) Note: device configuration format can be found in IBM ESDI Fixed Disk Drive Adapter/A Technical Reference SeeAlso: AX=1C08h,AX=1C0Bh,AX=1C0Ch Format of ESDI Drive Configuration Status Block: Offset Size Description (Table 00260) 00h BYTE 09h 01h BYTE number of words in block (06h) 02h BYTE flags 03h BYTE number of spare sectors per cylinder 04h DWORD total number of usable sectors 08h WORD total number of cylinders 0Ah BYTE tracks per cylinder 0Bh BYTE sectors per track --------d-131C0B----------------------------- INT 13 U - ESDI FIXED DISK - GET ADAPTER CONFIGURATION AX = 1C0Bh ES:BX -> buffer for Controller Configuration Status Block (see #00261) Return: CF set on error CF clear if successful AH = status (see #00234 at AH=01h) SeeAlso: AX=1C0Ch Format of ESDI Controller Configuration Status Block: Offset Size Description (Table 00261) 00h BYTE E9h 01h BYTE number of words in block (06h) 02h WORD unused (0000h) 04h DWORD controller microcode revision level 08h 2 WORDs unused (0000h) --------d-131C0C----------------------------- INT 13 U - ESDI FIXED DISK - GET POS INFORMATION AX = 1C0Ch ES:BX -> buffer for POS Information Status Block (see #00262) Return: CF set on error CF clear if successful AH = status (see #00234 at AH=01h) SeeAlso: AX=1C0Bh Format of ESDI POS Information Status Block: Offset Size Description (Table 00262) 00h BYTE EAh 01h BYTE number of words in block (05h) 02h WORD magic value FFDDh 04h BYTE POS register 3 05h BYTE POS register 2 06h BYTE POS register 5 (unused, FFh) 07h BYTE POS register 4 (unused, FFh) 08h BYTE POS register 7 (unused, FFh) 09h BYTE POS register 6 (unused, FFh) --------d-131C0D----------------------------- INT 13 U - ESDI FIXED DISK - ??? AX = 1C0Dh DL = drive (80h,81h) ??? Return: ??? Note: invokes controller command 0614h without DMA SeeAlso: AH=1Ch"ESDI",AX=1C0Fh,PORT 3510h"ESDI" --------d-131C0E----------------------------- INT 13 U - ESDI FIXED DISK - TRANSLATE RBA TO ABA AX = 1C0Eh CH = low 8 bits of cylinder number CL = sector number, high two bits of cylinder number in bits 6 and 7 DH = head number DL = drive number (80h,81h) ES:BX -> ABA number Return: CF set on error CF clear if successful AH = status (see #00234 at AH=01h) Note: ABA (absolute block address) format can be found in IBM ESDI Adapter Technical Reference by using its Device Configuration Status Block SeeAlso: AX=1C08h,AX=1C0Fh,PORT 3510h"ESDI" --------d-131C0F----------------------------- INT 13 U - ESDI FIXED DISK - ??? AX = 1C0Fh DL = drive (80h,81h) ??? Return: ??? Note: invokes controller command 0614h without DMA SeeAlso: AH=1Ch"ESDI",AX=1C0Dh,AX=1C12h,PORT 3510h"ESDI" --------d-131C12----------------------------- INT 13 U - ESDI FIXED DISK - ??? AX = 1C12h DL = drive (80h,81h) ??? Return: ??? Note: invokes controller command 0612h without DMA SeeAlso: AH=1Ch"ESDI",AX=1C0Fh,PORT 3510h"ESDI" --------c-131D------------------------------- INT 13 - IBMCACHE.SYS - CACHE STATUS AH = 1Dh AL = subfunction 01h get status record DL = drive??? Return: ES:BX -> status record (see #00263) CF set on error AH = error code 02h set cache status ES:BX -> status record (see #00263) DL = drive??? Return: CF set on error Format of IBMCACHE.SYS status record: Offset Size Description (Table 00263) 00h DWORD total number of read requests 04h DWORD total number of hits 08h DWORD number of physical disk reads 0Ch DWORD total number of sectors requested by physical disk reads 10h 6 BYTEs ??? 16h DWORD pointer to start of error list (see #00264) 1Ah DWORD pointer to end of error list 1Eh WORD ??? 20h BYTE using extended memory if nonzero 21h BYTE ??? 22h 4 BYTEs ASCII version number 26h WORD cache size in KB 28h WORD sectors per page Format of IBMCACHE.SYS error list: Offset Size Description (Table 00264) 00h DWORD relative block address of bad page 04h BYTE drive 05h BYTE sector bit-map 06h WORD next error --------d-131F------------------------------- INT 13 - SyQuest - DOOR LATCH/DOOR BUTTON DETECT AH = 1Fh AL = subfunction 00h allow media removal 01h prevent media removal (lock door) DL = drive ID (bit 7 set for hard disks) Return: CF clear if successful AH = 00h CF set on error AH = error code 00h successful 01h invalid function request 80h timeout DDh media change requested SeeAlso: AH=12h"SyQuest",AH=13h"SyQuest",AH=59h"SyQuest" --------d-1320------------------------------- INT 13 - DISK - ??? (Western Digital "Super BIOS") AH = 20h ??? Return: ??? Notes: returns some kind of status related to whether the drive contains its default media type QEMM v6.00 calls INT 13/AX=2000h/DL=81h in some cases --------b-1320------------------------------- INT 13 U - Compaq, ATAPI Removable Media Device - GET CURRENT MEDIA FORMAT AH = 20h DL = drive number (00h,01h) Return: CF clear if successful AL = media type (see #00265) AH = 00h CF set on error AH = error code 01h invalid request 30h drive does not support media sense 31h no such drive / media not present 32h non-default media / drive does not support media type Notes: this function is supported by the 1993/3/8 Compaq ROM BIOS, but only partially (AL is always 00h when successful) by the 1993/8/3 version this function is also supported by some recent versions of the Phoenix 486 BIOS this function does not seem to be supported by some Toshiba BIOSes (at least before 1995, maybe some laptops??? with 1.44 MB floppies), because S/DOS 1.0 contains code to bypass a call to this function, always assuming the drive would not support media sense. SeeAlso: AH=15h (Table 00265) Values for Compaq/ATAPI diskette media type: 03h 720K (1M unformatted) 04h 1.44M (2M unformatted) 06h 2.88M (4M unformatted) 0Ch 360K 0Dh 1.2M 0Eh Toshiba 3mode 0Fh NEC 3mode (1024-byte sectors) 10h ATAPI Removable Media Device --------c-1320------------------------------- INT 13 u - QUICKCACHE II v4.20 - DISMOUNT AH = 20h AL = drive (00h = A:, etc. or 7Fh for all removable drives??? or FFh for all drives) Return: AX = status (0000h successful) Program: QUICKCACHE II is a shareware disk cache by P.R. Glassel and Associates, Inc. Desc: flush any dirty buffers for the specified drive(s) and then discard those sector buffers SeeAlso: AH=21h"QUICKCACHE",AH=22h"QUICKCACHE",AH=28h --------d-1321------------------------------- INT 13 - HARD DISK - PS/1 and newer PS/2 - READ MULTIPLE DISK SECTORS AH = 21h AL = number of sectors to write CH = low byte of 12-bit cylinder number CL = starting sector (bits 0-5) and bits 8-9 of cylinder (bits 6-7) DH = head number (bits 0-5) and bits 10-11 of cylinder (bits 6-7) DL = drive number (80h,81h) ES:BX -> buffer for data to be read Return: CF clear if successful ES:BX buffer filled CF set on error AH = status (see #00234 at AH=01h) Desc: read from the disk using the Multiple Block mode available on newer IDE drives and some hard disk controllers, which generates an interrupt only after the end of transferring a group of sectors rather than after each sector Notes: must call AH=24h"PS/1" before using this function input values in CL and DH are not range-checked the byte at address 0040h:0074h is set to the status of the operation SeeAlso: AH=02h,AH=22h"PS/1",AH=23h"PS/1",AH=24h"PS/1" --------c-1321------------------------------- INT 13 u - QUICKCACHE II v4.20 - FLUSH CACHE AH = 21h Return: AX = status (0000h successful) Desc: immediately write all dirty sectors back to disk Note: this is one out of several cache flush calls issued by the PTS-DOS 6.51 and S/DOS 1.0 kernel before rebooting. It is called with DL=80h and conflicts with the PS/2 function of the same function number, because the kernel does not perform Quickcache's installation check first. SeeAlso: AH=25h"QUICKCACHE",AH=2Eh,AH=2Fh --------d-1322------------------------------- INT 13 - HARD DISK - PS/1 and newer PS/2 - WRITE MULTIPLE DISK SECTORS AH = 22h AL = number of sectors to write CH = low byte of 12-bit cylinder number CL = starting sector (bits 0-5) and bits 8-9 of cylinder (bits 6-7) DH = head number (bits 0-5) and bits 10-11 of cylinder (bits 6-7) DL = drive number (80h,81h) ES:BX -> buffer containing data to be written Return: CF clear if successful CF set on error AH = status (see #00234 at AH=01h) Desc: write to the disk using the Multiple Block mode available on newer IDE drives and some hard disk controllers, which generates an interrupt only after the end of transferring a group of sectors rather than after each sector Notes: must call AH=24h"PS/1" before using this function input values in CL and DH are not range-checked the byte at address 0040h:0074h is set to the status of the operation SeeAlso: AH=03h,AH=21h"PS/1",AH=23h"PS/1",AH=24h"PS/1" --------c-1322------------------------------- INT 13 u - QUICKCACHE II v4.20 - ENABLE/DISABLE CACHE AH = 22h AL = new state (00h disabled, 01h enabled) Return: AX = status (0000h successful) Note: enables/disables caching of all drives SeeAlso: AH=2Ch,AH=2Dh,AH=32h,AH=33h,AH=A3h,AH=A4h --------d-1323------------------------------- INT 13 U - HARD DISK - PS/1 and newer PS/2 - SET CONTROLLER FEATURES REGISTER AH = 23h AL = feature number (see #00266) DL = drive number (80h,81h) ??? Return: CF clear if successful CF set on error AH = status (see #00234 at AH=01h) SeeAlso: AH=21h"PS/1",AH=22h"PS/1",AH=24h"PS/1",AH=25h"PS/1" (Table 00266) Values for PS/1 hard disk feature number: 01h select 8-bit data transfers instead of 16-bit 02h enable write cache 22h Write Same, user-specified area 33h disable retries 44h set number of ECC bytes for read long/write long (see AH=0Ah,AH=0Bh) 54h set cache segments 55h disable lookahead 66h disable reverting to power-on defaults 77h disable error correctioni 81h select 16-bit data transfers (default) 82h disable write cache 88h enable error correction (default) 99h enable retries (default) AAh enable lookahead BBh set ECC length for read long/write long to four bytes CCh enable reverting to power-on defaults DDh Write Same, entire disk SeeAlso: #P0535 --------c-1323------------------------------- INT 13 U - QUICKCACHE II v4.20 - GET ??? ADDRESS AH = 23h Return: AX = status (0000h successful) ES = segment of ??? data --------d-1324------------------------------- INT 13 - HARD DISK - PS/1 and newer PS/2 - SET MULTIPLE MODE AH = 24h AL = number of sectors per block (2,4,8,16) DL = drive number (80h,81h) Return: CF clear if successful CF set onerror AH = status (see #00234 at AH=01h) Desc: specify how many sectors the controller should transfer as a group between operation-complete interrupts when using the Read Multiple and Write Multiple functions (AH=21h,AH=22h) Notes: set the number of sectors to 0 to disable multiple-transfer mode the maximum value for the block size depends on the fixed disk drive type. The value is stored in byte 15h of the fixed disk drive parameter table that is created by POST. the byte at address 0040h:0074h is set to status of operation. SeeAlso: AH=21h"PS/1",AH=22h"PS/1",AH=23h"PS/1",AH=25h"PS/1" --------c-1324------------------------------- INT 13 u - QUICKCACHE II v4.20 - SET SECTORS AH = 24h BX = new number of sector buffers in cache Return: AX = status 0000h successful 0001h failed--size adjusted 8000h cache cannot be resized while enabled SeeAlso: AH=36h --------d-1325------------------------------- INT 13 - HARD DISK - PS/1 and newer PS/2 - IDENTIFY DRIVE AH = 25h DL = drive number (80h,81h) ES:BX-> 512 byte buffer for reply packet Return: CF clear if successful CF set on error AH = status (see #00234 at AH=01h) buffer filled with ATA/IDE-style drive information block (see #00267) Desc: retrieves the 256 words of drive data stored on an IDE hard disk Notes: the byte at address 0040h:0074h is set to the status of the operation IBM officially classifies this function as optional SeeAlso: AH=23h"PS/1" Format of drive information block: Offset Size Description (Table 00267) 00h WORD general drive configuration (see #00268) 02h WORD number of cylinders 04h WORD reserved 06h WORD number of heads 08h WORD number of unformatted bytes per track 0Ah WORD number of unformatted bytes per sector 0Ch WORD number of sectors per track 0Eh 6 BYTEs vendor unique 14h 20 BYTEs serial number in ASCII, 0000h=not specified) 28h WORD buffer type 2Ah WORD buffer size in 512 byte increments (0000h=not specified) 2Ch WORD number of ECC bytes passed on Read/Write Long cmds 0000h = not specified 2Eh 8 BYTEs firmware revision in ASCII, 0000h=not specified 36h 40 BYTEs model number in ASCII, 0000h=not specified 5Eh WORD bits 15-8 Vendor Unique bits 7-0 00h = Read/Write Multiple commands not implemented xxh = Maximum number of sectors that can be transferred per interrupt on Read and Write Multiple commands 60h WORD 0000h = cannot perform doubleword I/O 0001h = can perform doubleword I/O 62h WORD capabilities bit 15-9 0=reserved bit 8 1=DMA Supported bit 7-0 Vendor Unique 64h WORD reserved 66h WORD bits 15-8 PIO data transfer cycle timing mode bits 7-0 Vendor Unique 68h WORD bits 15-8 DMA data transfer cycle timing mode bits 7-0 Vendor Unique 6Ah WORD bits 15-1 reserved bit 0 1=the fields reported in tranlation mode are valid 0=the fields reported in translation mode may be valid 6Ch WORD number of current cylinders 6Eh WORD number of current heads 70h WORD number of current sectors per track 72h DWORD current capacity in sectors 76h WORD reserved 78h 136 BYTEs not defined by ATA spec 2.6 100h 64 BYTEs vendor unique 140h 96 BYTEs reserved Note: the above description is as in the ATA (AT Attachment) Specification. SeeAlso: #P0516 Bitfields for general drive configuration: Bit(s) Description (Table 00268) 15 0 reserved for non-magnetic drives 14 format speed tolerance gap required 13 track offset option available 12 data strobe offset option available 11 rotational speed tolerance is > 0.5% 10 disk transfer rate > 10 Mbs 9 disk transfer rate > 5Mbs but <= 10Mbs 8 disk transfer rate <= 5Mbs 7 removable cartridge drive 6 fixed drive 5 spindle motor control option implemented 4 head switch time > 15 usec 3 not MFM encoded 2 soft sectored 1 hard sectored 0 reserved (0) --------c-1325------------------------------- INT 13 u - QUICKCACHE II v4.20 - SET FLUSH INTERVAL AH = 25h BX = interval Return: AX = status (0000h successful) Desc: specify how often the cache should write dirty buffers to disk when buffered writes are enabled SeeAlso: AH=21h"QUICKCACHE",AH=2Ch,AH=2Eh --------c-1326------------------------------- INT 13 U - QUICKCACHE II v4.20 - UNINSTALL AH = 26h Return: AX = status 0000h successful 0001h-00FFh interrupt vector which was hooked by another TSR SeeAlso: AH=27h --------c-1327--BX0000----------------------- INT 13 u - QUICKCACHE II v4.20 - INSTALLATION CHECK AH = 27h BX = 0000h Return: AX = 0000h if installed BX nonzero if installed BH = major version BL = binary minor version Program: QUICKCACHE II is a shareware disk cache by P.R. Glassel and Associates, Inc. SeeAlso: AH=26h,AH=A0h,INT 16/AX=FFA5h/CX=1111h --------c-1328------------------------------- INT 13 U - QUICKCACHE II v4.20 - SET AUTOMATIC DISMOUNT AH = 28h AL = new state (00h disabled, 01h enabled) Return: AX = status (0000h successful) SeeAlso: AH=20h"QUICKCACHE" --------c-1329------------------------------- INT 13 U - QUICKCACHE II v4.20 - NOP AH = 29h Return: AX = 0000h --------c-132A------------------------------- INT 13 u - QUICKCACHE II v4.20 - SET BUFFER SIZE AH = 2Ah AL = buffer size (1-30) Return: AX = status (0000h successful) Desc: specify the number of cache sector buffers to dedicate to buffered read and write operations SeeAlso: AH=2Ch,AH=2Dh,AH=39h,AH=3Ah --------c-132B------------------------------- INT 13 U - QUICKCACHE II v4.20 - DRIVE ACCESS SOUNDS AH = 2Bh AL = new state (00h disabled, 01h enabled) Return: AX = status (0000h successful) --------c-132C------------------------------- INT 13 u - QUICKCACHE II v4.20 - SET BUFFERED WRITES AH = 2Ch AL = new state (00h disabled, 01h enabled) Return: AX = status (0000h successful) Desc: specify whether the cache should delay disk writes Note: this function enables or disables delayed writes for all drives; use AH=38h to change a single drive SeeAlso: AH=25h"QUICKCACHE",AH=2Dh,AH=2Eh,AH=38h --------c-132D------------------------------- INT 13 u - QUICKCACHE II v4