Interrupt INT 21h:
1, Character-Oriented Function)
01H, 07H and 08H - input character 02H - character output 03H - Auxiliary device output 04H - Auxiliary device 05H - Print output 06H - Console input / output 09h - Shift 0AH - Keyboard buffer input 0bh - Detect input status 0CH - Enter the input function of the input buffer
(1), function 01h, 07h and 08h
Function Description: Reads a character from a standard input device (such as a keyboard). This interrupt will always be in the waiting state until a character readable during processing. This input can also be redirected. If this is done, it is not possible to determine if the file has arrived in the file tail entry parameter: AH = 01H, filter out the control character, and return = 07h, but filter out the control character, no return = 08h Filter out the control character, do not return the export parameters: Al = input character ASCII code
(2), function 02h
Function Description: Output a character to the standard output device (e.g., screen). This output can also be redirected. If this is done, it will not be able to determine if the disk is full of entry parameters: AH = 02HDL = ASCII code exit parameters to be output characters: no
(3), function 03h
Function Description: Reads a character from the auxiliary device, the default value of the auxiliary device is COM1 entry parameter: AH = 03H Exit Parameters: Al = ASCII code for reading characters
(4) Function 04h
Function Description: Output a character to the auxiliary device, the default value of the auxiliary device is COM1 entry parameter: AH = 04HDL = ASCII code exit parameters to be output characters: no
(5), function 05h
Function Description: Output a character to the standard output device. The default output device is the printer of the LPT1 port, unless the entry parameter is changed with the MODE command: AH = 05HDL = ASCII code exit parameters to be output characters: no
(6), function 06h
Function Description: Console (such as: Keyboard, Screen) Input / Output. If the input / output operation is redirected, it will not be able to determine if the file has arrived in the file, or the disk has been fully entry parameters: AH = 06h, DL = input / output function Select an outlet parameter: If DL = 00h-feh, This feature is output, DL is an ASCII code to be output; if DL = 0ffh, this function is input, this time: If zf = 1, there is no character readable, otherwise, Al = ASCII code read into characters
(7), function 09h
Function Description: Outputs a string to the standard output device. If the output operation is redirected, then the disk is not judged that the disk has been fully entry parameters: AH = 09HDS: DX = Address Description: The string to be displayed is ended as its end sign export parameters: no
(8), function 0AH
Function Description: Read a byte string from a standard input device, encountering the "Enter key" end input (the input character is returned on the standard output device). If the input operation is redirected, then the file will not be determined whether the file has arrived in the file tail entry parameter: AH = 0AHDS: DX = Start address of the input character accepts the definition of the input string buffer Description: 1, first The byte is the maximum capacity of the buffer, which can be considered an entry parameter; Start to store the actual input string; The system is running until the "Enter" key is entered. For example: BUFF 80, 80 DUP (?); Up to 80 characters Export parameters: None (9), function 0BH
Function Description: Check if there is a character readable on the standard input device. This input operation can be redirected: AH = 0bh Exit Parameters: Al = 00H - No Character Readable; FFH - Have Character Readable
(10), function 0ch
Function Description: Empty the current standard input buffer and read the character. Its input operation can be redirected in portfolio: AH = 0CHAL = 01H, 06H, 07H, 08H or 0AH outlet parameters: If the portal parameter Al is 0AH, DS: DX = Start the start address of the input character, otherwise, the export parameters Al = input character ASCII code 2, directory control function (Directory-Control function)
39h - Create a directory 3ah - Delete the directory 3bh - Set the current directory 47h - read the current directory
(1), function 39h
Function Description: Create a new directory entry parameter with the specified drive and path: AH = 39HDS: DX = Specify the string address of the path (end flag of 0 is a string): cf = 0-- creation success, otherwise , AX = error number (03H or 05H), the meaning of the error code table
(2), function 3AH
Function Description: Delete the directory entry parameters of the specified drive and path: AH = 3ahds: Dx = Specify the string address (end flag of 0 is a string): cf = 0 - Delete success, otherwise, AX = Error number (03H or 05H), the meaning of the error code table
(3), function 3BH
Function Description: Set the specified drive and path to the current directory portal parameter: AH = 3bhds: DX = Specify the string address (end flag of 0 is a string): cf = 0-- Set success, otherwise , AX = error number (03h), the meaning of the error code table
(4) Function 47h
Function Description: Take the full path string of the current directory: AH = 47HDL = Drum number (0 = Default, 1 = a, ...) DS: Si = address export parameters of the current directory string: CF = 0- - Read success, otherwise, AX = error number (0FH), its meaning see error code table
3, disk management function (Disk-management function)
0DH - Disk Reset 2EH - Set Check Sign 0EH - Select Disk 36H - Read Drive Assignment Information 19H - Read Current Drive 54H - Read Check Sign 1BH, 1CH - Read Drive Data (1), Features 0DH
Function Description: Empty the current file buffer, but in MS-DOS, the data temporarily written to the buffer will write to disk entry parameters: AH = 0DH Exit Parameters: None
(2) Function 0EH
Function Description: Specify the current driver entry parameter: AH = 0EHDL = Drive number (0 = a, 1 = b, ...) Outlet parameters: Al = current drive letter in the system
(3), function 19h
Function Description: Take the current default drive letter parameter: AH = 19h Exit Parameters: Al = Drive Number (0 = A, 1 = B, ...)
(4), function 1BH and 1CH
Function Description: Get the assignment information of the drive: AH = 1BH - For the default drive AH = 1CH - is any drive, DL = drive letter (0 = default, 1 = a, ...) Exit parameters: Al = 0FFH - failed, otherwise, Al = number of sectors per cluster DS: bx = ID byte address CX = Size of the physical sector (byte) DX = number of clusters of the drive
(5), function 2EH
Function Description: Setting / Clear Operation System Auto Read Inspection Sign Inlet Parameters: AH = 2EHDL = 00HAL = 00H - Clear the flag, 01H - Set the flag export parameters: no
(6), function 36h
Function Description: Take the information entry parameters of the selected drive: AH = 36HDL = Drive letter (0- Default, 1 = a, 2 = b, ...) Exit parameters: If the function call fails, ax = 0fffh, otherwise, AX = Each cluster number bx = available cluster number CX = physical sector size (byte) DX = number of clusters in the drive
(7), function 54h
Function Description: Read the check mark entry parameter: AH = 54H Exit Parameters: Al = Current inspection flag value: 00h- Off Test, 01h - Test
4, file operation function (File Operation function)
3ch - Create a file 3DH - Open File 3EH - Close File 41h - Delete File 43H - Read / Set File Attribute 45H - Copy File Handle 46h - Redefile File Handle 4EH - Find the first file 4FH - Find Next File 56h - File normative 57h - Date of reading / setting file 5ah - Create a temporary file 5BH - Creating a new file 67h - Settings the number of file handles (maximum file number) 6ch - Extended Open File function (open, create or replace file )
(1), function 3ch
Function Description: Create a new file with the specified file name. If the specified file already exists, set its length of 0. After creating, the file is open and returns its handle entry parameter: AH = 3chds: Dx = Specify the address of the file name string (with 0 is the end flag of the string) CX = file attribute (these flag can be combined)
Bit 0 = 1-- read-only bit 2 = 1 - System bit 5 = 1 - Archive bit 1 = 1 - Injection bit 3 = 1 - Release mark Other bits reserved, and set to 0 Exit Parameters: CF = 0 - Create a success, ax = file handle, otherwise, AX = error number (03H, 04H or 05H), the meaning of the error code table (2), function 3DH
Function Description: Open the specified drive, path, and file name and return to its file handle entry parameter: AH = 3dHDS: DX = Indicates the string of the file (end flag of 0 is a string) Al is open mode:
Bit 0 ~ 2000-read-only way 001-write mode 010-read / write mode 3 reserved, its value is 0 bits 4 ~ 6 sharing mode
000- Compatibility Mode 001 - Do not share 010- Refussed to write 011- Refusing to read 100- Do not reject any operation bit 7 inheritance logo - 0/1: child process inheritance or non-inherit handle Outlet parameters: cf = 0 - Open success, AX = file handle, otherwise, AX = error number (02H, 03H, 04H, 05H or 0CH), its meaning see the error code table
(3), function 3EH
Function Description: Close the file entry parameters of the specified handle: ah = 3EHBX = file handle Outlet Parameters: CF = 0-- Close success, otherwise, AX = Error number (06h), its meaning see error code table
(4), function 41h
Function Description: Delete the specified file entry parameter: AH = 41HDS: DX = file name string address exit parameters: cf = 0 - Delete success, otherwise, AX = error number (02H, 03H or 05H), Error code table
(5), function 43h
Function Description: Read or set the attribute entry parameter of the specified file: AH = 43HBX = file handle DS: DX = file name string address AL = 00h / 01H-- Read / set file attribute cx = file properties:
Bit 0 = 1-- read-only bit 1 = 1 - implicit bit 2 = 1 - System bit 3 = 1 - Volume sign bit 5 = 1 - Archive Other bits reserved, and set to 0 Exit parameters: Cf = 0-- Close success, cx = file properties, otherwise, AX = error number (01H, 02H, 03H or 05H), its meaning see error code table
(6), function 45h
Function Description: Copy the handle of the current open device or file, the handle corresponding to the same location inlet parameters of the same device or file: AH = 45HBX = the file handle of the file to be replicated: cf = 0-- copy success, ax = new handle, Otherwise, AX = error number (04H or 06H), the meaning of the error code table
(7), function 46h
Function Description: Specify the two handles, point the second handle to the first handle, the second handle is redirected to the inlet parameter: AH = 46Hbx = File or device handle CX = to be redirected file handle Outlet Parameters: CF = 0 - Redirect success, otherwise, AX = error number (04H or 06H), its meaning see the error code table
(8), function 4EH
Function Description: Get the first file entry parameters matching the given file name: AH = 4EHDS: DX = String of a given file name CX = file attribute used when searching: Bit 0 = 1-- Read-only Bit 1 = 1 - Implied position 2 = 1 - System Bit 3 = 1 - Volume 6 = 1 - Directory bit 5 = 1 - Archive Other bits reserved, and set to 0 Exit Parameters: CF = 1 - Operation failure, AX = error number (02H, 03H or 12H), its meaning see the error code table, otherwise, the operation is successful, the DTA (Disk Transfer Area) is filled in the data:
Bytes 00 ~ 14h Reserved Byte 15h Match File Property Byte 16 ~ 17h Compressed File Name 18 ~ 19h Compressed File Date Byte 1A ~ 1DH File Size byte 1e ~ 2AH File Name String
(9), function 4FH
Function Description: After the function 4EH of the interrupt 21h is successfully used, search the next file name entry parameter: AH = 4FHAL = Return code exit parameters: cf = 1 - Operation failed, AX = error number (12h), its meaning See the error code table, otherwise, the operation is successful, the data in the DTA is shown in the previous function 4EH.
(10), function 56h
Function Description: File rename entry parameter: AH = 56HDS: DX = Current file name string address ES: DI = new file name string address export parameters: cf = 0 - Operation success, otherwise, AX = error number (02h , 03H, 05H, 11H), the meaning of the error code table
(11), function 57h
Function Description: Date and Time Inlet Parameters of Read / Set File: AH = 57HBX = File Handle
Read the date and time Al = 00h set the date and time Al = 01HCX = Time (0F ~ 0BH: Hours, 0AH ~ 05H: Minutes, 04H ~ 00h: 2 seconds) DX = Date (0f ~ 09h: Year ( Relative to 1980), 08H ~ 05H: Month, 04h ~ 00h: Day) Export Parameters: CF = 1 - Operation Failure, AX = Error Number (01H, 06H), its meaning see the error code table, otherwise, if it is read Information, then, cx = time, dx = date
(12) Function 5ah
Function Description: Create a temporary file entry parameter: AH = 5ahds: DX = address cx = file attribute (bits can be combined), is defined as follows:
Bit 0 = 1 read bit 3-4 = 0 reserved bit 1 = 1 implicit bit 5 = 1 archive bit 2 = 1 system bit 6-15 = 0 Reserved Outlet parameters: cf = 0 - Operation, AX = file Handle, DS: DX = Complete path file address, otherwise, AX = error number (03H, 04H or 05H), its meaning see error code table
(13), function 5BH
Function Description: Create a new file entry parameter: AH = 5bHDS: DX = pathname of the address cx = file attribute (bit can be combined), is defined as follows: Bit 0 = 1 read bit 4 = 0 reserved bit 1 = 1 implied Bit 5 = 1 Archive bit 2 = 1 System Bit 6-15 = 0 Reserved Bit 3 = 1 Volume Number Outlet Parameters: CF = 0 - Operation Success, AX = File Handle, otherwise, AX = Error number (03h, 04h, 05h or 50h), its meaning see the error code table
(14), function 67h
Function Description: Set the number of file handles (maximum file number) Entrance parameters: AH = 67HBX = Quantity Outlet parameters of the handle: Cf = 0 - Operation success, otherwise, AX = error number, its meaning see error code table
(15), function 6ch
Function Description: Extended Open File Function (Open, Create or Replace File) Entry Parameters: AH = 6CHAL = 00HDS: Si = Path Name Address BX = Open Method
Bit 2 ~ 0000- read-only 001- only 010-readable, write bit 3 reserved (0) bits 6 ~ 4000- compatible 001- refuse to read and write 010 - refuse to write 011- Refuse to read 100-- do not reject any action Bit 70-child process inherited handle, 1-child process does not inherit the handle position 12 ~ 8 Reserved (0) bit 13 fatal error handler, 0- Execute INT 24h, otherwise, return error code to process bit 14 Write: 0 - Write buffer, 1-write file bit 15 Reserved (0) CX = file properties
Bit 0 = 1 read bit 4 = 0 reserved bit 1 = 1 implied position 5 = 1 archive bit 2 = 1 system bit 6-15 = 0 reserved bit 3 = 1 volume tag DX = Open flag
Bit 3 ~ 0 0 - Open failed, 1-Open file, 2-replace file bit 7 ~ 4 0- Open failed, 1-creation file bit 15 ~ 8 0-reserved export parameters: cf = 1 - Operation failure, AX = Error number, the meaning of the error code table, otherwise, ax = file handle CX = 1-- file existence, open = 2-- file does not exist, create
5, File Operation Function (FCB) (File Operation Function)
0FH - Open File 16h - Create File 10H - Close File 17h - File 1H, 12H - Find the first or next file 23h - Read the size of the file 13h - Delete file 29h - Analyze file name
(1), function 0FH
Function Description: Open the file and make it sequentially read / write ready for inlet parameters: AH = 0fHDS: DX = file control block address export parameters: Al = 00H - Open success, otherwise, Al = FFH (such as file find Less than) In the MS-DOS operating system, the fields of the file control block are shown below.
Field Name Offset Field Meaning Drive Word 00h1 for Drive A, 2 for Drive B, ... Current Block Field 0CH00H Record Size Field 0EH0080H File Length Field 10H File Byte Date Date Field 14H Date Time Field 16H Time
(2), function 10h
Function Description: Close File Entry Parameters: AH = 10HDS: DX = Address Export Parameters of File Control Block: Al = 00H-- Close Success, otherwise, Al = FFH (3), function 11h and 12h
Function Description: Find the first or next matching file entry parameter: AH = 11h - the first matching file = 12h - the next matching file DS: DX = file control block address export parameters : Al = 00H - Find, otherwise, Al = FFH
(4), function 13h
Function Description: In the specified (or default) drive, delete all matching file entry parameters: AH = 13HDS: DX = file control block address export parameters: Al = 00H - Delete success, otherwise, Al = FFH
(5), function 16h
Function Description: Create a file in the current directory, the file length is 0, and open the file, and make the necessary inlet parameters for subsequent read / write operations: AH = 16HDS: Dx = Unopened file control block Address Export Parameters: Al = 00H - Create success, otherwise, Al = FFH (eg disk full)
(6), function 17h
Function Description: In the current directory of the specified drive, all matching files are renamed entry parameters: AH = 17HDS: DX = Specify the address export parameters of the file control block: Al = 00H - Successful, otherwise, Al = Ffh
(7), function 23h
Function Description: Find a matching file in the current directory. If found, use its record number to update its file size entry parameters: AH = 23HDS: DX = Unopened file control block address outlet parameters: Al = 00H - Matching success, FCB in FCB is a field of 21h The number of records is set, otherwise, Al = 0FFH
(8), function 29h
Function Description: Analyze a string (file name) Putting into different fields in the FCB table Entrance parameters: AH = 29hcx = Record number of records to write DS: Si = String address ES: Di = FCB address Al = Analysis control logo
Bit 3 = 1-- If there is a file suffix in the string, the file suffix in the FCB will change = 0-- If the hyperfix is reversed, or if there is no suffix after the analysis, the FCB is set to "empty" bit. 2 = 1-- If there is a file name in the string, the file name in the FCB will change = 0-- If the file name is ignored, if there is no file name, if there is no file name, the FCB is set to "empty" Bit 1 = 1-- If the drive number is specified in the string, the ID byte in the FCB is modified = 0-- If the ID byte ignores the modification, if the drive number is not specified, if the drive is not specified, the drive field in the FCB is Set 0 (default) bit 0 = 1 - = 0 - ignore the predecessor segment does not ignore the predecessor splitter exit parameter: Al = 00H- No communication character 01H- Have a communication character FFH-drive letter illegal DS : Si = After analysis, the address of the file name first character is: di = after formatting, the unopened FCB address
6, record operation function (Record function)
1AH - Set Data Transmission Area Address 42H - Settings File Pointer 2FH - Read Data Transport Area Address 5ch - File Area Plug or Unlock 3FH - Read File or Device 68H - Submit File Buffer Data 40H - write files or devices (2) , Function 2FH
Function Description: Get the current address entry parameter of the DTA for the FCB read / write operation: AH = 2FH Exit Parameters: ES: BX = DTA segment address and offset
(3), function 3FH
Function Description: Read the specified number byte from the previously opened file, and move the file pointer entry parameter: AH = 3FHBX = file handle CX = number of bytes to be read DS: DX = Buffer address exit Parameters: cf = 0-- Read success, ax = read number, otherwise, AX = error number (05H or 06H), its meaning see error code table
(4), function 40h
Function Description: Write the previously opened file to the specified number of bytes, and modify the file pointer inlet parameters accordingly: AH = 40HBX = file handle CX = Writing bytes DS: DX = buffer address exit parameters of storage data : Cf = 0-- Close success, ax = number of bytes written, otherwise, AX = error number (05h or 06h), its meaning see error code table
(5), function 42h
Function Description: Set the relative position of the file pointer (relative to the file header, file end and current location) Entrance parameters: AH = 42HBX = file handle CX = offset high DX = offset low al = 00H - from The absolute offset of the file header = 01H - Offset from the current file pointer (can be symbol) = 02H-- Offset from the end of the file (can be symbol) Outlet parameters: CF = 0- - Set success, DX is the high position of the pointer, AX is its low position, otherwise, ax = error number (01H and 06H), its meaning see the error code table.
(6), function 5ch
Function Description: File area locking or unlocking entry parameters: AH = 5CHAL = 00H - Regional lock 01H - Region unlock BX = file handle CX: DX = area offset Si: Di = area length DS: DX = path Name address export parameters: cf = 0 - operation success, otherwise, AX = error number (01H, 06H, 21h or 24h), its meaning see error code table
(7), function 68h
Function Description: Submit file buffer data entry parameters: AH = 68HBX = file handle Outlet parameters: cf = 0 - Operation success, otherwise, AX = error number, the meaning of the error code table
7, record operation function (FCB) (Record function)
14h - sequential reading 24h - Set the relative record number 15h - sequential write 27h - Randomly read block 21h - Randomly read 28h - Random Write 22h - Random Write
(1), function 14h
Function Description: Read the next sequence block from the file, and add the files of the file corresponding to the file: AH = 14HDS: DX = Add the address exit parameters of the previously opened file control block: Al = 00H-- Read success 01h-- file Tail 02H - Segment Wound 03H - Part of the record in the document
(2), function 15h
Function Description: Write the next order data block to the file, and add the file's pointer inlet parameters: AH = 15HDS: DX = previously opened the file control block: Al = 00H-- Write success 01H - Disk Full 02H - Segment wound (3), function 21h
Function Description: Read the currently selected record entry parameter from the file: AH = 21HDS: DX = Previous Open file control block address export parameters: Al = 00H-- Read success 01H - File 02H - Cancel reading Operation 03h-- Partial record in the file
(4), function 22h
Function Description: Write data in memory in the file currently selected record portal parameters: AH = 22HDS: DX = Previous Open file control block address export parameters: Al = 00H- write success 01h- disk full 02h- Cancel write operation
(5), function 24h
Function Description: Sets the number of records in the FCB as a record number in the FCB is opened in the FCB: AH = 24HDS: DX = Opened address exit parameters of the previously opened file control block: Al is destroyed, other registers are not affected, FCB Offset 21H unit is modified
(6), function 27h
Function Description: Read Several Record to Memory from the File: AH = 27HDS: DX = Previous Open File Control Block Address Export Parameters: Al = 00H - Read Success 01H - Document 02H-- Cancel Reading operation 03h-- Partial record in file tail CX = record number of actual read
(7), function 28h
Function Description: Write several record portal parameters from the memory to the file: AH = 28HCX = Record number to write DS: DX = previously opened the address of the file control block: Al = 00H-- Write success 01h- - Disk full 02H - segment wound CX = number of records actually written
8, memory allocation function (Memory-Allocation function)
48H - Distributing Inpass Block 49H - Releases Include Block 4AH - Repeating the size of the memory block 58H - Read / set the memory allocation policy
(1), function 48h
Function Description: Assign a memory unit and return the first address entry parameter of the block memory unit: AH = 48HBX = number of memory cell bytes required to apply: CF = 0-- Assignment success, AX = the first address of the storage unit Otherwise, ax = error number (07h or 08h), the meaning of the error code table, BX = maximum number of blocks available
(2), function 49h
Function Description: Release the memory unit block to use the inlet parameters for other programs: AH = 49HES = Segment address exit parameters of the application block: CF = 0 - Release success, otherwise, AX = error number (07h or 09h), its meaning See the wrong code table
(3), function 4AH
Function Description: According to the needs of the program, dynamically change a memory block entry parameter: AH = 4AHBX = Need a new memory block size ES = segment address exit parameters of the modified block: CF = 0-- Modify success, otherwise, AX = Error number (07H, 08H or 09H), the meaning of the error code table, BX = the size of the largest block
(4), function 58h
Function Description: Read / Set Memory Allocation Policy Inlet Parameters: AH = 58H
Read memory allocation policy AL = 00h sets memory allocation policy AL = 01HBX = memory allocation policy code: 00h- First satisfying 01h- best satisfying 02H- Finally satisfying the export parameters: cf = 0 - Operation success, AX = selected Memory allocation policy code (meaning as above), otherwise, AX = error number (01H), its meaning see error code table 9, system function (System function)
25h - Setting Interrupt Vector 30H - Read the MS-DOS version number 33h - Read / Set the Break Sign 34h - Read the address of the Indos flag 35h - Read the interrupt vector 38h - Read / set the country information 44h -ioctl (I / O Control) 50H - Setup Block Prefix (PSP) Address 51H - Read Block Prefix (PSP) Address 59H - Read Extension Error Message 5EH - Read / Set The Printer Configuration 5FH - Device Redirection 63H - Read the front-directed bytes 65H - Read the extended national information 66h - read / set the code page 5D0AH - Set an extension error message
(1), function 25h
Function Description: Setting Interrupt Vector Table Entry Parameters: AH = Interrupt No. DS: DX = Interrupt Handling Entry Address Export Parameter: None
(2), function 30h
Function Description: Take the version number of the MS-DOS operating system: AH = 30h Exit Parameters: Al = 0 - V 1.0; other high versions are: Al = Main version number AH = times (MS-DOS 3.1 = 0AH, ...) BH = ORIGINAL EQUIPMENUFACTURER BL: CX = 24-bit user serial number
(3), function 33h
Function Description: Get or change the status of the operating system interrupt. During the function call, it will affect the detection entry parameters of ^ c: AH = 33HAL = 00H- Take status = 01H-- Set state, DL = 00/01 indicates that the state OFF / ON outlet parameters: When the status, DL = 00 / 01-- SASTION OFF / ON instructions: 1, if other function numbers are stored in Al, the value of Al is 0ffH; 2, if Al is 5, start the drive letter to return in DL. (1-a, 2-b, ...)
(4), function 34h
Function Description: Get the remote address of the INDOS flag, which is used by DOS maintenance indicates the active entry parameters when DOS: AH = 34H Exit Parameters: ES: BX = IndOS flag far address If the unit value is 1, the DOS function is executed, Otherwise, it is not.
(5), function 35h
Function Description: Take the entry address entry parameter of the specified interrupt number: AH = 35HAL = Interrupt number Outlet parameter: ES: bx = Inlet address of the interrupt handler
(6), function 38h
Function Description: Read or set the national information entry parameter: AH = 38h
When reading the country information, DS: DX = stores the address of the return message Al = 0-- Take the current national information AL = 1 ~ 0FEH - Country information of the country code less than 255 Al = 0FFH - replacement code is greater than or equal to 255 Country information, bx = national code setting Country information DX = 0FFFFHAL = 0 ~ 0FEH - Set country information less than 255 national information Al = 0FFH - set code greater than or equal to 255, bx = national code export parameters: cf = 0 - Call success, bx = national code, otherwise. AX = Error Code (02H), its meaning see error code table Description Country information as follows: Byte 0-1h: Date format: 0-mDy, 1-DMY, 2-YMD byte 2-6h: currency characters Section 7-8H: Numeria Separation Byte 9-0AH: Numerical Accuracy Segment Bytes 0B-0CH: Day Error Byte 0D-0EH: Time Interval Bytes 0FH: Currency Format 0 = 0-- The currency symbol is in front, otherwise, the currency symbol is in the back bit 1 = 0 - there is no space between currency symbols and data, otherwise there is a space between 2 = 0-- currency symbol and decimal point, otherwise, currency The symbol replaces the decimal point byte 10h: the decimal number of currencies 11h: time format. Bit 0 = 0-12 hours, otherwise, 24 hours byte 12 ~ 15h: Case-map call address byte 16 ~ 17h: string segment byte 18 ~ 21h: Reserved
(7), function 44h
Function Description: Input / Output Control, its sub-function description:
00h- Take Equipment Information 01H- Take Device Information 02H- From Character Device Drive Accept Control Data 03H- Send Control Data to Character Device Drive 04H- From Block Equipment Driver Accept Control Data 05H- Send Control Data to Block Device Drive 06H - Check Input Status 07h - Check the output status 08H- Check if the block device is a detachable device 09h- check whether the device is a remote device 0BH-Check the handle to the remote object 0BH- change Sharing access port number 0ch-character device general I / O control information 0DH-block device General I / O Control Information 0EH-Read Logic Drive Mapping Relational 0FH-Set Logical Drive Mapping Relation Description: 00h in the input / output sub function, 06h and 07h only for file handles, sub-function 00h ~ 08h Network equipment is not supported.
(8), function 50h
Function Description: Setup Block Prefix (PSP) Address Entry Parameters: AH = 50HBX = New PSP Address Export Parameters: None
(9), function 51h
Function Description: Read Program Segment Prefix (PSP) Address Entry Parameters: AH = 51H Exit Parameters: BX = PSP Address
(10), function 59h
Function Description: Read the extension error message parameter: AH = 59HBX = 00H Exit Parameters: AX = Extended error code, the meaning of the error code table BH = error type, the definition is as follows:
01H- Resource shortage 02H- is in a temporary state rather than error 03H-Permissions problem 04H-system software internal error 05H-hardware failure 06H-system software failed, but not active process failed 07h- application error 08h- file or data item did not find 09H- Document or data item type or format error 0AH- file or data item locks in 0BH-drives in a bad disk, disk in bad area or storage problem 0CH-Other error BL = recommended measures, it is defined as follows: 01H - After retrying several times, select "Termination" or "ignore" 02H - Retry several times (secondary waiting to wait), then select "Termination" or "ignore" 03H - Get the correct information from the user 04h Terminate the application, and clear the resource it uses 05h - immediately terminated the program, but did not clear its resource 06h - ignore the error 07h - Eliminate the cause of the error, try again, then try the same, the definition is as follows: 01h - I don't know 02h - block Device (Disk or Disk Simulator) 03H - Network 04H - Serial Device 05H - Memory ES: DI = String of Disk Tags, if AX = 0022H (Illegal Change Disk) (11), Function 5EH
Function Description: Read the machine name, read / set the printer configuration
Sub function number function Description 00h Read Machine Name 02h Setup Printer Installation String 03h Read Printer Installation Strings
1, Sub-function 1 Entry Parameters: AH = 5EHAL = 00HDS: DX = Accept the address exit parameters of the string buffer: cf = 1 - Operation failed, AX = error number (01H), the meaning of the error code table, otherwise , CH = 00H-machine name is not defined, otherwise, the machine name has defined the title number (when CH ≠ 00h) DS: DX = Identifier Address (when Ch ≠ 00h) 2, Sub-function 2 Entry parameters : Ah = 5EHAL = 02HBX = Redirect list index CX = installation string length DS: Si = installation string address export parameters: cf = 0 - operation success, otherwise, AX = error number (01h), its meaning See the error code table 3, sub-function 3 Entry parameters: AH = 5EHAL = 03HBX = Redirect list index ES: Di = address export parameters of the string buffer: cf = 0 - operation, CX = accept strings Length, otherwise, ax = error number (01H), the meaning of the error code table
(12), function 5FH
Function Description: Device Redirection
Sub-function number function description 02h Read Redirection List Index 03H Redirection Device 1, Sub-function 1 Entry Parameters: AH = 5FHAL = 02HBX = Redirect List Index DS: Si = 16-byte storage area address ES of the local device name : Di = 128-byte storage area address exit parameters of the network name: CF = 1 - Operation failure, AX = error number (01H or 12H), its meaning see the error code table, otherwise, BH bit 0 = 0H-- The equipment is legal, otherwise, the equipment illegal BL = device type --03H: Printer, 04h: Drive CX = Storage parameter value DX = Destroyed BP = destroyed DS: Si = stored the address of the local device name ES: Di = store network name Address 2, Sub-function 2 Entry Parameters: AH = 5FHAL = 03HBL = Device Type --03H: Printer, 04H: Drive CX = The caller saved parameter DS: Si = Local device name 16-byte storage area address ES: Di = network name 128-byte storage area address, followed by password export parameters: cf = 0 - operation success, otherwise, AX = error number (01H, 03H, 05H, 08H, 0Fh or 12h), Meaning See the error code table (13), function 63h
Function Description: Read Front Flats Table Entrance Parameters: AH = 63H
Al = Sub-function = 00H- Read System Front Flat Table Address = 01H- Setting / Clear Temporary Console Sign (DL = 00H / 01H- Clear / Setting Sign) = 02H- Read Temporary Console Sign Value Exit Parameters: BX = 1 - Operation failure, AX = error number (01H), its meaning see the error code table, otherwise, when calling, if Al = 00h, then, DS: Si = system front lead reference table address; if Al = 02h , Then DL = temporary console flag value
(14), function 65H
Function Description: Read the extended national information entry parameter: ah = 65HBX = code page (-1 = active CON device) CX = buffer size DX = national identifier (-1 = default) ES: di = Buffer address for accepting information
Al = Sub-function = 01H - Read the general country information = 02H - Read the pointer to the uppercase alphabet = 04H - Read the pointer to the file name uppercase alphabet = 06h-- Read the point to the school Pointer = 07H - Read pointer to the DBCS vector: cf = 0 - Operation success, required data deposit into the buffer, otherwise, AX = error number (02h), the meaning of the error code table
(15), function 66h
Function Description: Read / Set Code Page Inlet Parameters: AH = 66HAL = Sub Features Number: 01H - Read Code Page, 02H - Select Code Page BX = Selected Code Page (When Al = 02H) Exit Parameters: CF = 0 - Operation success, when the tuning sub function is 01h, bx = active code page, DX = default code page, otherwise, AX = error number (02H or 65H), the meaning of the error code table (16) , Function 5D0AH
Function Description: Set an extension error message parameter: AX = 5d0ahds: Dx = Extended the address of the error structure, the description of this structure is as follows:
EXTEND_ERR STRUCTRAX WORD?; AXRBX WORD?; BXRCX WORD?; CXRDX WORD?; DXRSI WORD?; SIRDI WORD?; DIRDI WORD?; DIRDS WORD?; DSRES WORD?; ESPAD WORD 3 DUP (0) EXTEND_ERRENDS Exit Parameters: None
10. Process-control function (Process-Control function)
00h - Termination Process 26h - Create a new program prefix (PSP) 31h - Termination and resident 4BH - Execute program (EXEC) 4ch - Terminal process with return code 4DH - Read Return code 62h - Read PSP Address
(1), function 00H
Function Description: Termination Process. This is one of the methods of the process of the termination process that can be used: AH = 00HCS = code segment address export parameter: no
(2), function 26h
Function Description: Copy the program segment prefix (PSP) currently executing the program to the specified address in the memory, and change it to other programs: AH = 26HDX = segment address export parameters of the new program prefix: no
(3), function 31h
Function Description: Terminate the running program, pass a return code to its parent process, but the program part or all reside in the inlet parameters: AH = 31hal = Return code number DX = number of bytes reside in memory Parameters: no
(4), function 4BH
Function Description: Execute Program (EXEC) Entry Parameters: AH = 4Bhes: bx = Address DS: DX = The entry address of the program Al = 00H - Put and execute the program, 03H - to load the export in the form of coverage Parameters: CF = 0-- Operation, other registers of the other registers, other registers, otherwise, AX = error number (01H, 02H, 03H, 05H, 08H, 0AH or 0BH), Error code table
(5), function 4ch
Function Description: Terminate the execution of the program, and return a code entry parameter: AH = 4CHAL = Returned code exit parameters: no
(6), function 4DH
Function Description: The return code entry parameter for the parent process acquisition: AH = 4DH Exit Parameters: AH = 00h-- Use the interrupt 20h, the function of the interrupt 21h is 0 or 4C normal termination = 01H - the user Press ^ C to terminate = 02H- - Due to fatal errors = 03H- Function 31h, or interrupt 27h to terminate the return code of the Al = sub-process: 00h - child process from interrupt 20h, interrupt 21h function 0 or 4c termination
(7), function 62h
Function Description: Read PSP Address Entry Parameters: AH = 62H Exit Parameters: BX = Off Offset 11, Time and Date Function (Time and Date Function)
2AH - Read Date 2BH - Set Date 2ch - Read Time 2DH - Setting Time
(1), function 2AH
Function Description: Take the system date entry parameters: AH = 2AH Exit Parameters: CX = Year (1980 ~ 2099), DH = Month (1 ~ 12), DL = Day (1 ~ 31) Al = Week (0 = Sunday, 1 = Monday, ...)
(2), function 2BH
Function Description: Set System Date Inlet Parameters: AH = 2BHCX = Year (1980 ~ 2099), DH = Month (1 ~ 12), DL = Day (1 ~ 31) Export Parameters: Al = 00H - Setting Success, 0FFH- -Setup failed
(3), function 2ch
Function Description: Take the system Time Inlet Parameters: AH = 2ch Exit Parameters: CH = (0 ~ 23), CL = (0 ~ 59), DL = Second (0 ~ 59), Al = 100% Second (0 ~ 99)
(4), function 2DH
Function Description: Setting the system time inlet parameter: AH = 2DHCH = (0 ~ 23), CL = points (0 ~ 59), DL = seconds (0 ~ 59), Al = 1% seconds (0 ~ 99) Outlet parameters : Export parameters: Al = 00H - Set success, 0ffh - set failed
2, the mouse function interrupt INT 33h
00h - initial mouse 01H - Show mouse pointer 02H - Hide mouse pointer 03H - Read the mouse point and its button status 04H - Set the mouse pointer position 05h - Read the mouse button information 06h - Read the mouse button release information 07h - Set the mouse level Boundary 08H - Set the vertical boundary 09h - Set the graphic mouse shape 0AH - Set this article shape 0BH - Read the mouse mobile count 0CH - Set the handler 0DH for the mouse event Pixel ratio 10h - Setting the mouse pointer hidden area 13h - Set the multiplier threshold 14h - Replace the mouse event interrupt 15h - Buffer size of the mouse driver 16h - Storage mouse drive status 17h - Reissue mouse drive status 18h - for mouse Event Set Replacement Processor 19H - Read the Directive Handling Up Address 1AH - Set the Sensitivity of the Mouse - Read the Sensitivity of the Mouse 1Ch - Set the Mouse Interrupt Rate 1DH - Select the Show page 1EH - Read the display page of the mouse pointer 1FH - No mouse driver 20H - Start mouse driver 21h - Mouse driver Reset 22H - Set the mouse driver information language 23h - Read language 24h - Read the mouse information 25h - Read the mouse driver information 26h - Read the maximum Effective coordinates
(1), function 00H
Function Description: Initialize the mouse, this operation only needs to perform an entry parameter: AX = 00H Exit Parameters: AX = 0000H - does not support mouse function, FFFFH - supports the mouse function BX = mouse button Number (when supported by mouse function) In the case of supporting the mouse function, the mouse is also set as the following parameters:
1. The mouse pointer is placed on the screen. If the current mouse pointer is displayed, the mouse pointer is hidden 3, the display page of the mouse pointer is 04, and the mouse pointer is displayed according to the display mode of the screen: Text - reverse display Rectangular block, graphic-pointed shape 5, horizontal pixel ratio = 8: 8, vertical pixel ratio = 16: 86, set horizontal and vertical display boundaries for the current display mode maximum boundary 7, allow light to simulate 8, double Speed rain value = 64 (2), function 01h
Function Description: Show mouse pointers, usually after the mouse is initialized, use this function to display its pointer inlet parameters: AX = 01H Exit parameters: no
(3), function 02h
Function Description: Hide mouse pointer, usually call this function inlet parameter at the end of the program: AX = 02h Exit Parameters: None
(4), function 03h
Function Description: Read the mouse position and its button status portal parameters: AX = 03H Exit Parameters:
BX = Button Status: Bit 0 = 1 - Press the left button 1 = 1 - Press the right button 2 = 1 - Press the middle button Other bit - reserved, internal use cx = horizontal position DX = vertical position
(5), function 04h
Function Description: Set the mouse pointer position entry parameter: ax = 04h, CX = horizontal position, DX = vertical position exit parameters: no
(6), function 05h
Function Description: Read Mouse Buttons Information Inlet Parameters: AX = 05H, BX = Specified Buttons: 0- Left, 1-Right-Right Buttons, 2- 中 键 Exit Parameters: AX = Button Status, see Function 3H In BX Description BX = Number of keys CX = horizontal position (last button) DX = vertical position (last button)
(7), function 06h
Function Description: Read Mouse Button Release Information Inlet Parameters: AX = 06H, BX = Specified Buttons: 0- Left, 1-Right Buttons, 2- 中 键 Outlet Parameters: AX = Button Status, see Function 3H In BX Description BX = Release number CX = horizontal position (last release) DX = vertical position (last release)
(8), function 07h
Function Description: Set the horizontal boundary entry parameter: AX = 07HCX = Minimum horizontal position DX = Maximum horizontal position Outlet parameter: No, mouse may automatically move into the new area due to new areas
(9), function 08h
Function Description: Set the rats vertical boundary entry parameter: AX = 08HCX = Minimum vertical position DX = Maximum vertical position Outlet parameter: No, the mouse may be automatically moved into the new area due to the new area
(10), function 09h
Function Description: Set the graphic mouse shape portal parameter: AX = 09HBX = horizontal position of the pointer CX = Pointer position ES: DX = 16 × 16-bit cursor image address
Parameter Description: (BX, CX) is the position of the mouse pointer in 16 × 16 dot matrix, (0, 0) is the upper left corner; ES: DX pointing in the memory cell stored in the storage unit of 16 × 16 markings The code is followed by the 9 × 16 lattice cursor mask. Display method of mouse pointer: bit image hidden code "Logic" on the screen display area, and then use the cursor mask content "different or" the result of the previous operation. Export parameters: no
(11), function 0AH
Function Description: Set this text Mouse shape Portal parameter: AX = 0AHBX = Cursor type:
The meaning of all between 0 -CX and DX is as follows:
Bit 7 ~ 0 mouse pointer symbol bit 10 ~ 8 characters foreground color bit 11 brightness bit 14 ~ 12 character background color bit 15 flashing 1 -CX = cursor start scan line DX = end scan line outlet parameters: no
(12), function 0BH
Function Description: Read Mouse Move Count Inlet Parameters: AX = 0BH Exit Parameters: CX = Level Move Dist: Positive - Down to Right, Negative Number - Distance to Left DX = Vertical Mobile Distance: Positive Down Negative number - move upward
(13), function 0ch
Function Description: Set the handler entry parameter for the mouse event: AX = 0chcx = interrupt mask
Bit 0 = 1 - Mouse pointer location Send Change bit 1 = 1 - Press the left button bit 2 = 1 - Release the left button bit 3 = 1 - Press the right button position 4 = 1 - Release the right button position 5 = 1 - Press the intermediate button bit 6 = 1 - Release the intermediate button bit 7 ~ 15 = 0 - Reserved ES: DX = Interrupt handler When entering an interrupt handler, the value of the register is related to the value of the register: AX = Interrupt mask bx = button status CX = horizontal position of mouse pointer DX = mouse pointer vertical position Si = change amount of change in horizontal position Di = Variable amount of variation of vertical position Export parameters: no
(14), function 0DH
Function Description: Allowing the light pen simulation entry parameters: AX = 0DH Exit Parameters: None
(15), function 0EH
Function Description: Turn off the emperor entrance parameters: AX = 0EH Exit Parameters: None
(16), function 0FH
Function Description: Set the mouse count and pixel ratio inlet parameters: AX = 0FHCX = horizontal proportion DX = Vertical proportional exit parameters: no
(17), function 10h
Function Description: Set the Mouse pointer hidden area entry parameter: AX = 10HCX = left upper angle x coordinate DX = left upper corner Y coordinate Si = upper right angle X coordinate Di = upper right corner Y coordinate exit parameters: no
(18), function 13h
Function Description: Set the speed threshold, its default value is 64 Entry parameters: AX = 13HDX = Value Outlet Parameters: None
(19), function 14h
Function Description: Replace the mouse event interrupt entry parameter: AX = 14HCX = Interrupt mask ES: DX = Interrupt handler address export parameter: cx = old interrupt mask ES: DX = old interrupt handler address
(20), function 15h
Function Description: Read the buffer size in the mouse driver Status: AX = 15h Exit Parameters: bx = Store the size of the buffer required by the mouse drive status
(21), function 16h
Function Description: Storage Mouse Drive State Inlet Parameters: AX = 16HES: DX = Address Exit Parameters in Storage Mouse Drive: None
(22), function 17h
Function Description: Reissue Mouse Drive State Inlet Parameters: AX = 17HES: DX = Address Exit Parameters of Mouse Drive Status: None
(23), function 18h
Function Description: Set the optional handler for the mouse event: AX = 18HCX = Replace the interrupt mask ES: DX = Replace the address of the interrupt handler CF = 0 Exit Parameters: None (24), function 19h
Function Description: Read the address entry parameter of the replacement process: AX = 19HCX = Replace the interrupt mask Outlet parameter: If AX = -1-- Unsuccessful, otherwise, the ES: DX = Interrupt handler address
(25), function 1AH
Function Description: Set the sensitivity of the mouse, the value of 1 to 100 inlet parameters: AX = 1AHBX = horizontal sensitivity (number of movements required for each 8 quadrants, general 8) cx = vertical sensitivity (every 8 quadrant Need to move the number, generally 16) DX = multiplier valve outlet parameters: no
(26), function 1BH
Function Description: Read the sensitivity portfolio of the mouse: AX = 1bh Exit Parameters: bx = horizontal sensitivity CX = Vertical sensitivity DX = multiplier threshold
(27), function 1ch
Function Description: Set the mouse interrupt rate entry parameter: AX = 1CHBX = number of interrupts per second: 0 - Off interrupt, 1-30 / s, 2-50 / s, 3-100 / s, 4-200 / s exit Parameters: no
(28), function 1DH
Function Description: Select the display page entry parameter for the mouse pointer: AX = 1DHBX = Display page export parameters: no
(29), function 1EH
Function Description: Read the display page entry parameter of the mouse pointer: AX = 1EH Exit Parameters: bx = Display Page
(30), function 1FH
Function Description: Disable mouse driver entry parameters: ax = 1fh outlet parameters: If AX = -1 - Unsuccessful, otherwise, es: bx = Mouse driver address
(31), function 20h
Function Description: Start the mouse driver entry parameter: AX = 20h Exit Parameters: None
(32), function 21h
Function Description: Mouse Driver Reset Port Parameters: AX = 21H Exit Parameters: If AX = -1 - Unsuccessful, otherwise, BX = 2
(33), function 22h
Function Description: Set the mouse driver information language entry parameter: AX = 22HBX = language code: 0- English, 1-French, 2-Dutch, 3-German, 4-Swedish, 5-Finnish, 6-Spanish , 7-Portuguese, 8-Italian export parameters: no
(34), function 23h
Function Description: Read language entry parameters: AX = 23h Exit Parameters: bx = language code
(35), function 24h
Function Description: Read Mouse Information Entry Parameters: AX = 24h Export Parameters: BH = Home Edition Number, BL = Acupuncture CL = Interrupt Request Number CH = Mouse Type: 1-Bus Mouse, 2-Serial Mouse, 3-Inport Mouse, 4-PS / 2 Mouse, 5-HP Mouse (36), Function 25H
Function Description: Read Mouse Driver Information Inlet Parameters: AX = 25h Exit Parameters: AX = Mouse Driver Information:
Bit 15 - 0: Driver is .sys file, otherwise, for .com file bits 14--0: Incomplete mouse display driver, otherwise, for a complete bit 13-12--00: Software Text Cursor 01: Hardware Text Cursor 1x: Graphic Cursor
(37), function 26h
Function Description: Read the maximum effective coordinate entry parameter: AX = 26h Exit Parameters: bx = Mouse driver status CX = maximum horizontal coordinate DX = maximum vertical coordinate
3, other DOS interrupts
INT 20H - Termination Program Run INT 22H - Address INT 23h-Ctrl C Processor INT 24H - Fatal Error Handler INT 25H - Read Disk Sector (Ignore Logic Structure) INT 26H - Write Disk Sector (Ignore " Logical Structure) INT 27H - Termination, and resides in memory int 28h-DOS free INT 2FH - multiple interrupt service
(1), interrupt INT 20h
Function Description: Terminate the currently running program, which is one of the end programs running method: CS = PSP segment address export parameters: no
(2), interrupt INT 22h
Function Description: Terminate the address of the handler, which is placed in the unit of 0AH ~ 0DH of the PSP before the program is loaded. The interrupt instruction is never written directly in the program.
(3), interrupt INT 23h
Function Description: CTRL C handler. The interrupt instruction is never written directly in the program.
(4), interrupt INT 24h
Function Description: Fatal Error handler. The interrupt instruction is never written directly in the program.
(5), interrupt INT 25h
Function Description: Absolute reading disk, read data directly from the logic device to the inlet parameters in the memory cell: Al = drive 号 (0 = A, 1 = B, ...)
Partition capacity ≤ 32m, there is: CX = sector number DX = start sector number DS: bx = Store data buffer's address otherwise, there is: CX = -1ds: bx = parameter block buffer address, The structure of this parameter block is as follows:
The byte description 00 ~ 03H32 sectors number 04 to 05h will be read the number of buffers of the number of sectors 06 to 07H, the offset of the buffer of the data is 08 to 09H, the segment address of the buffer of the data is stored, the data outlet parameters: cf = 0 - Successful operation, otherwise, AX = error number, the meaning of the wrong code table
Error code error meaning 80h attachment response failure 40h positioning operation failed 20h device controller failed 10h data fault (wrong CRC) 08H DMA failed 04h required sector unfastened 02h error address flag 01h Error command
(6), int 26h
Function Description: Absolute Writing Disk, directly write content in memory cells into logical device entry parameters: unanimous outlet parameters with the previous INT 25H: consistent with the previous INT 25H
(7), INT 27h
Function Description: Termination, and reside in memory entry parameters: CS = PSP segment value DX = The offset of the last byte of the protected program plus 1 Outlet parameters: no
(8), int 28h
Function Description: DOS Idle Interrupt Entry Parameters: No Export Parameters: None
(9), int 2fh
Function Description: Multi-interrupt service allows multiple resident programs to communicate with other processes through a single interrupt. Entry parameters: AH = identification number, Al = function number, function number and its meaning as follows:
Feature number function Description 01H Spool print 06h resident Assign command 10h resident Share command B7H resident Append command Exit Parameters: If the inlet Al is 0, the exit Al = 0FFH, otherwise, its value depends on the handler
BIOS interrupt:
1, display service (Video Service - INT 10h)
00h - set display mode 0ch - Write Figure Fixin 01H - Set Cursor Shape 0DH - Read Character Pixel 02H - Set Cursor Position 0EH - Show Characters 03H in TeleType mode - Read Cursor Information 04H - Read Display Mode 04H - Read Take a light pen position 10h - color 05H - Set display page 11h - font 06h, 07h - Initialization or scroll screen 12H - Configuration of the display 08H - The character and its attribute at the cursor 13h - display string 09h in the TeleType mode - at the cursor Press the specified property display character 1AH - Read / Set the display combination encoded 0ah - display character 1bh - Read function / status information 0BH - Set the palette, background color or border 1ch - Save / Recovery Display Status
1, display service (Video Service - INT 10h)
00h - set display mode 0ch - Write Figure Fixin 01H - Set Cursor Shape 0DH - Read Character Pixel 02H - Set Cursor Position 0EH - Show Characters 03H in TeleType mode - Read Cursor Information 04H - Read Display Mode 04H - Read Take a light pen position 10h - color 05H - Set display page 11h - font 06h, 07h - Initialization or scroll screen 12H - Configuration of the display 08H - The character and its attribute at the cursor 13h - display string 09h in the TeleType mode - at the cursor Press the specified property display character 1AH - Read / Set the display combination encoded 0ah - display character 1bh - Read function / status information 0BH - Set the palette, background color or border 1ch - Save / Recovery Display Status
1, display service (Video Service - INT 10h)
00h - set display mode 0ch - Write Figure Fixin 01H - Set Cursor Shape 0DH - Read Character Pixel 02H - Set Cursor Position 0EH - Show Characters 03H in TeleType mode - Read Cursor Information 04H - Read Display Mode 04H - Read Take a light pen position 10h - color 05H - Set display page 11h - font 06h, 07h - Initialization or scroll screen 12H - Configuration of the display 08H - The character and its attribute at the cursor 13h - display string 09h in the TeleType mode - at the cursor Press the specified property display character 1AH - Read / Set the display combination encoded 0ah - display character 1bh - Read function / status information 0BH - Set the palette, background color or border 1ch - Save / Recovery Display Status
(1), function 00H
Function Description: Sets the display mode entry parameter: AH = 00hal = display mode, see the outlet parameters shown in the table below: None
The available display mode is listed below:
Display mode display mode property display mode display mode property 00H40 × 2516 colors text 02H80 × 2516 color text 03h80 × 2004 color text 04H320 × 2004 color 05H320 × 2004 color 06H640 × 2002 color 07H80 × 252 color text 08H160 × 20016 09H320 × 2001 color 0AH640 × 2004 color 0BH retained 0CH reserved 0DH320 × 20016 color 0EH640 × 20016 color 0FH640 × 3504 color 10H640 × 35016 color 11H640 × 4802 color 12H640 × 48016 color 13H640 × 480256 color For super VGA display card, we can set its display mode with AX = 4F02H and the value of the following BX.
BX display mode attributes BX display mode attributes 100H640 × 400256 color 101H640 × 480256 color 102H800 × 60016 color 103H800 × 600256 color 104H1024 × 76816 color 105H1024 × 768256 color 106H1280 × 102416 color 107H1280 × 1024256 color 108H80 × 60 text mode 109H132 × 25 text mode 10AH132 × 43 Text Mode 10BH132 × 50 Text Mode 10ch132 × 60 Text Mode
(2), function 01h
Function Description: Set the cursor shape portal parameters: AH = 01HCH low four digits = cursor starting line CL low four digits = cursor termination line export parameters: no
(3), function 02h
Function Description: Set the cursor position entry parameters with text coordinates: AH = 02hbh = display page DH = line (Y coordinate) DL = column (X coordinate) Exit parameters: no
(4), function 03h
Function Description: Under the text coordinates, read the cursor various information entry parameters: AH = 03hbh = display page number outlet parameters: CH = start line of CH = cursor's termination line DH = line (Y coordinate) DL = column X coordinate)
(5), function 04h
Function Description: Get the current state and the pen position entry parameter: AH = 04h Exit parameters: AH = 00h - Optical pen unfamable ) CH = pixel row (graphic y coordinate, display mode: 04H ~ 06H) CX = pixel row (graphic y coordinate, display mode: 0DH ~ 10h) DH = character line (text y coordinate) DL = character column (text X coordinate)
(6), function 05h
Function Description: Set the display page, select the display page entry parameter: AH = 05HAL = Display page For CGA, EGA, MCGA, and VGA, its display page is listed in the following table:
Mode page number display type 00h, 01H0 ~ 7CGA, EGA, MCGA, VGA02H, 03H0 ~ 3CGA02H, 03H0 ~ 7EGA, MCGA, VGA0DH0 ~ 7EGA, VGA0DH0 ~ 7EGA, VGA0FH0 ~ 1EGA, VGA0FH0 ~ 1EGA, VGA10H0 ~ 1EGA, VGA
For PCJR: Al = 80H - Read CRT / CPU page register 81H - Set CPU page register 82H - Set CRT page register 83H - Set CRT / CPU page register BH = CRT page (sub-function number 82h and 83h) BL = CPU page (subunit number 81h and 83h) Exit parameters: For the former, no exit parameters, but under the recirculation of PCJR 80H ~ 83H, there is: BH = CRT page register, BL = CPU page register
(7), function 06h and 07h
Function Description: Initialization Screen or Rolling Entry Parameters: AH = 06H - Up Mushing Screen, 07H - Down Rolling AL = Scroll Row (0 - Clear Window) BH = Default Attributes (CH, CL) = Window's left upper corner position (Y coordinate, X coordinate) (DH, DL) = window lower right corner position (Y coordinate, X coordinate) Outlet parameters: no (8), function 08h
Function Description: The character and its attribute entry parameters at the read cursor: AH = 08HBH = display page number outlet parameters: ah = attribute AL = character
(9), function 09h
Function Description: Press specified attributes at the current cursor to display character entry parameters: AH = 09HAL = Character BH = display page number BL = attribute (text mode) or color (graphics mode) CX = Double number of exports of output characters: no
(10), function 0AH
Function Description: In the current cursor, the original attribute display character entry parameters: AH = 0ahal = character BH = display page number BL = color (graphics mode, only for PCJR) CX = Repeat Output Character number of export parameters: no
(11), function 0BH
Function Description: Setting the palette, background color or border entry parameter: AH = 0BH Set color: BH = 00h, BL = color selection palette: BH = 01H, BL = palette (320 × 200, four colors Graphic mode) Outlet parameters: no
(12), function 0ch
Function Description: Write the image pixel entry parameter: AH = 0CHAL = Pixel value BH = Page (CX, DX) = Graphic Sitting Column (X), Line (Y) Exit Parameters: None
(13), function 0DH
Function Description: Read the image pixel entry parameters: AH = 0dHBH = Page (CX, DX) = Graphic Sitting Label (X), Line (Y) Outlet Parameters: Al = Pixel Value
(14), function 0EH
Function Description: Display Character Inlet Parameters in TeleType mode: AH = 0EHAL = Character BH = page number BL = foreground color (graphics mode) Exit parameters: no
(15), function 0FH
Function Description: Read Display Mode Inlet Parameters: AH = 0FH Outlet Parameters: AH = Column number of screen characters Al = Display mode (see instructions in function 00h) BH = page number
(16), function 10h
Function Description: Color interrupt. Its sub-function is as follows:
Function Number Function Name Features Number Function Name 00H - Settings Demolge Board Register 01H - Set Border Color 02H - Settings Tonerboard and Border 03H - Trigger flashing / bright position 07h - Read the palette register 08h - Read Border color 09h - Read the palette and border 10h - Set color register 12h - Set color register block 13h - Set color page status 15h - Read color register 17h - Read color register block 1AH - Read color page status 1BH Set grayscale value
(17), function 11h
Function Description: The font is interrupted. Its sub-function is as follows:
Sub-function number function name 00h is loaded into the user font and the programmable controller 10h is loaded into the user font and the programmable controller 01h to load 8 × 14 ROM font and the programmable controller 11h to load 8 × 14 ROM font and programmable The controller 02h is loaded into 8 × 8 ROM font and the programmable controller 12h is loaded into 8 × 8 ROM font and the programmable controller 03h set block indicator 04h to load 8 × 16 ROM font and the programmable controller 14h loading 8 × 16 ROM font and programmable controller 20h set int 1FH font pointer 21h Set INT 43H22H for user fonts to 8 × 14 ROM font setting INT 43H23H is 8 × 8 ROM font setting INT 43H24H is 8 × 16 ROM font setting INT 43H30H read Take the font information (18), function 12h
Function Description: The configuration interrupt of the display. Its sub-function is as follows:
Function number function name function number function name 10h - Read configuration information 20h - Select screen print 30h - Set scan line 31h - Allow / disable load 32H - Allow / disable 33h - Allow / prohibit grayscale And 34h - Allow / Forbidden Cursor Simulation 35H - Switching Activities Display 36H - Allow / Forbidden Screen Refresh
(19), function 13h
Function Description: Display strings in TELETYPE mode: AH = 13HBH = page BL = attribute (if Al = 00H or 01H) CX = Display string length (DH, DL) = coordinate (line, column) ES: BP = Address of the display string
Al = Display Output Way 0-- Only the display character is included in the string, which displays the properties in the BL. After the display, the cursor position does not change the display character in the string, and the display attribute is in the BL. After the display, the cursor position changes the 2-string contains the display character and the display attribute. After the display, the cursor position does not change the display character and display attributes in the string. After the display, the cursor position changes the export parameters: no
(20), function 1AH
Function Description: Read / Set the display combination encoding, only PS / 2 is valid, here
(21), function 1BH
Function Description: Read function / status information, only PS / 2 is valid, here is omitted
(22), function 1ch
Function Description: Save / Recovery Display Status, only PS / 2 is valid, here from this
2, direct disk service (Direct Disk Service - INT 13H)
00h - disk system reset 0EH - Read Demoller Buffer 01H - Read Disk System Status 0FH - Write Sector Buffer 02H - Read Demide 10H - Read Drive Status 03H - Writing Distance 11H - Calibration Drive 04H - Test Dafa District 12H - Controller RAM Diagnosis 05H - Format Catholic 13H - Controller Drive Diagnostics 06H - Format Decomposition Diagnosis 07H - Format Drive 15h - Read Disk Type 08H - Read Drive Parameters 16H - Read Drive Parameters Take disk change status 09h - Initialization hard disk parameter 17h - Set disk type 0ah - Read long sector 18h - Set Format Media Type 0BH - Write Long Distance 19H - Code Protection 0CH - Search 1AH - Format ESDI Drive 0DH - Hard Disk System Reset
(1), function 00H
Function Description: Disk System Reset Port Parameters: AH = 00HDL = Drive, 00h ~ 7FH: Floppy Disk; 80H ~ 0FFH: Hard Disk Exit Parameters: CF = 0 - Operation Success, AH = 00h, otherwise, AH = status code, see function Note 01H
(2), function 01h
Function Description: Read Disk System Status Portal Parameters: AH = 01HDL = Drive, 00h ~ 7FH: Floppy Disk; 80H ~ 0FFH: Hard Disk Exit Parameters: AH = 00H, Al = Status Code, It is as follows: 00H - Worn 01H - Illegal order 02H - address target did not find 03H - disk write protection (floppy disk) 04h - sector unfounded 05h - Reset failed (hard disk) 06h - Flood discharge (floppy disk) 07h - Error parameter table (hard disk) 08h - DMA Crossing Floppy disk) 09H - DMA More than 64K limit 0AH - Error sector flag (hard disk) 0BH - Error track logo (hard disk) 0CH - Media type No discovery (floppy disk) 0DH - formatted illegal sector number (hard disk) 0EH - control Data address target Discovery (hard disk) 0FH - DMA Arbitration Cross-Trends (hard disk) 10h - Incorrect CRC or ECC Code 11H - ECC Correction Data War (Hard Disk) CRC: CYCLIC Redundancy Check Code ECC: Error Checking & Correcting Code 20h - Control Failed 40h - Find a failure 80h - Disk timeout (unactfumble) AAH - Drive Not ready (hard disk) BBH - Unselected error (hard disk) CCH - write error (hard disk) E0H - status register (hard disk) FFH - detection Operation failure (hard disk)
(3), function 02h
Function Description: Read Demo Entrance Parameters: AH = 02HAL = Sector number CH = Cylinder CL = Sector DH = Cap / Driver, 00H ~ 7FH: Floppy Disk; 80H ~ 0FFH: Hard Disk ES: BX = The address of the Buffer Export Parameters: CF = 0 - Operation Success, AH = 00h, Al = Send number, otherwise, AH = status code, see the function number 01h
(4), function 03h
Function Description: Write sector entry parameters: ah = 03HAL = sector number CH = Cylinder CL = sector DH = magnetic head DL = driver, 00h ~ 7FH: floppy disk; 80H ~ 0FFH: Hard disk ES: bx = buffer address Export Parameters: CF = 0 - Operation Success, AH = 00h, Al = Send number, otherwise, AH = status code, see the function number 01h
(5), function 04h
Function Description: Test sector entry parameters: ah = 04HAL = sector number CH = Cylinder CL = sector DH = magnetic head DL = Drive, 00h ~ 7FH: floppy disk; 80H ~ 0FFH: Hard disk ES: BX = buffer address Export Parameters: CF = 0 - Operation, AH = 00h, Al = The number of sectors is checked, otherwise, the AH = state code, see the function number 01h
(6), function 05h
Function Description: Format Tag Entrance Parameters: AH = 05HAL = Alternation (Interleave) CH = Cylinder DH = Cap DL = Drive, 00H ~ 7FH: Floppy Disk; 80H ~ 0FFH: Hard Disk ES: BX = Address Export Parameters : Cf = 0 - Operation success, AH = 00h, otherwise, AH = status code, see the function number 01H (7), function 06h
Function Description: Format Direct Lath Inlet Parameters: AH = 06HAL = Alternating CH = Cylinder DH = Capsule DL = 80H ~ 0FFH: Hard Disk ES: BX = Address Export Parameters: CF = 0 - Operation, AH = 00h, otherwise, ah = state code, see the function number 01h
(8), function 07h
Function Description: Format Drive Inlet Parameters: AH = 07HAL = Alternating CH = Cylinder DL = 80H ~ 0FFH: Hard Disk Exit Parameters: CF = 0 - Operation Success, AH = 00h, otherwise, AH = Status code, see function number Description of 01H
(9), function 08h
Function Description: Read Drive Parameters Inlet Parameters: AH = 08HDL = Drive, 00H ~ 7FH: Floppy Disk; 80H ~ 0FFH: Hard Disk Exit Parameters: CF = 1 - Operation Failure, AH = Status Code, see the function number 01h ,otherwise,
BL = 01H - 360K = 02H - 1.2M = 03H - 720K = 04H - 1.44M CH = low 8-bit CL bit 7-6 = number of cylindrical numbers 5-0 = fan Area DH = magnetic head number DL = Drive number ES: DI = disk drive parameter table address
(10), function 09h
Function Description: Initialization Hard Disk Parameters Inlet Parameters: AH = 09HDL = 80H ~ 0FFH: Hard Disk (there is also a question of parameter table problem, here) Export parameters: cf = 0-- operation, AH = 00h, otherwise, AH = State code, see the description in the function number 01h
(11), function 0AH
Function Description: Read the long sector, each sector with four bytes of ECC encoded entry parameters: ah = 0ahal = sector number CH = Cylinder CL = sector DH = magnetic head DL = 80H ~ 0FFH: Hard disk ES: BX = address exit parameter of the buffer: cf = 0-- operation success, AH = 00h, Al = number of sectors transmitted, otherwise, AH = state code, see the function number 01h
(12), function 0BH
Function Description: Write long sector, each sector with four bytes of ECC encoded entry parameters: AH = 0bhal = sector number CH = Cylinder CL = sector DH = magnetic head DL = 80H ~ 0FFH: Hard disk ES: BX = address exit parameters of the buffer: cf = 0 - Operation success, AH = 00h, Al = transmission sector number, otherwise, AH = status code, see the function number 01h (13), function 0CH
Function Description: Search Entrance Parameters: AH = 0CHCH = Cylindrical Low 8-bit CL (7-6) = Cylindrical DL = 80H ~ 0FFH: Hard Disk Exit Parameters: CF = 0-- Operation Success, AH = 00h, otherwise, AH = status code, see the description in the function number 01h
(14), function 0DH
Function Description: Hard disk system reset entry parameters: AH = 0dHDL = 80h ~ 0FFH: Hard disk export parameters: cf = 0 - Operation success, AH = 00h, otherwise, AH = state code, see the function number 01h
(15), function 0EH
Function Description: Read Demon Buffer Entry Parameters: AH = 0EHHES: BX = Address Exit Parameters: CF = 0 - Operation Success, Otherwise, AH = Status Code, see the function number 01h
(16), function 0FH
Function Description: Write sector buffer entry parameters: AH = 0fhes: bx = Address exit parameter of the buffer: cf = 0 - Operation success, otherwise, AH = status code, see the function number 01h
(17), function 10h
Function Description: Read Drive State Inlet Parameters: AH = 10HDL = 80H ~ 0FFH: Hard Disk Exit Parameters: CF = 0 - Operation Success, AH = 00h, otherwise, AH = Status code, see the function number 01h
(18), function 11h
Function Description: Calibration Drive Inlet Parameters: AH = 11HDL = 80H ~ 0FFH: Hard Disk Exit Parameters: CF = 0 - Operation Success, AH = 00h, otherwise, AH = Status code, see the function number 01h
(19), function 12h
Function Description: Controller RAM Diagnostic Entry Parameters: AH = 12H Exit Parameters: CF = 0 - Operation Success, Otherwise, AH = Status Code, see Function No. 01H
(20), function 13h
Function Description: Controller Drive Diagnostics Inlet Parameters: AH = 13H Exit Parameters: CF = 0 - Operation Success, Otherwise, AH = Status Code, see Function No. 01H
(21), function 14h
Function Description: Controller internal diagnostic entry parameters: AH = 14h Exit Parameters: cf = 0 - Operation success, otherwise, AH = status code, see the function number 01h (22), function 15h
Function Description: Read Disk Type Entry Parameters: AH = 15HDL = Drive, 00h ~ 7FH: Floppy Disk; 80H ~ 0FFH: Hard Disk Exit Parameters: CF = 1 - Operation Failure, AH = Status Code, see the function number 01h ,
Otherwise, AH = 00H - No drive = 01H - Floppy drive supported without change line = 02H - Floppy drive with changing lines = 03H - Hard disk, CX: DX = 512 bytes
(23), function 16h
Function Description: Read Disk Change Status Portal Parameters: AH = 16HDL = 00H ~ 7FH: Floppy Disk Exit Parameters: CF = 0 - Disk is not changed, AH = 00h, otherwise, AH = 06h, see the function number 01h
(24), function 17h
Function Description: Set disk type entry parameters: AH = 17HDL = 00H ~ 7FH: floppy disk
Al = 00H - Unused = 01H - 360K in the 360K drive = 02H - 360K in the 1.2M drive = 03H - 1.2M in the 1.2M drive = 04H - 720K in the 720K drive Export parameters in the 720K drive: cf = 0-- operation Success, AH = 00h, otherwise, AH = state encoding, see the description in the function number 01h
(25), function 18h
Function Description: Setting the formatting media type entry parameter: AH = 18HCH = Cylinder number CL = DL = 00h ~ 7FH: CF = 0 - Operation success, AH = 00H, ES: Di = media type parameter table address, otherwise, AH = state encoding, see the function number 01h
(26), function 19h
Function Description: The head protection is only valid in PS / 2, here from this
(27), function 1AH
Function Description: Format the ESDI drive, which is only valid in PS / 2, here from this
3, serial port service (Serial Port Service - INT 14H)
00h - Initialization communication port 03H - Read communication port status 01H - Output character 04H - expand initialization communication port 02H - from the communication port
(1), function 00H
Function Description: Initialization communication port parameter: AH = 00HDX = Initialization communication slogan (0 = COM1, 1 = COM2, ...) Al = Initialization parameters, parameters are described below:
Potter rate parity stop bit number 76543210000 = 110x0 = none0 = 1 bit10 = 7 bits001 = 15001 = odd1 = 2 bits11 = 8 bits010 = 30011 = Even011 = 600100 = 1200101 = 2400110 = 4800111 = 9600 for PS / 2 It is possible to initialize its communication rate greater than 9600 with INT 14H function 04h and 05h. Export parameters: AH = communication port status, the meaning of each status bit is 1: Bit 7 - Timeout 6 - Transmission Shift Register 5 - Pass the hold register for vacancies 4- Discover the stop bit 3 - Discover the error bit 2- Discover parity 1- Discover the cross-bounds misplaced 0- Accept data ready AL = modem status
Bit 7-Accept single signal diagnostic bit 6-ring indicator bit 5-data transmission preparation 4-Clear data, re-transmit bit 3- Change the signal diagnostic bit 2 - rear boundary ring indicator bit 1- Change the "Data Preparation" Status Bit 0 - Change "Clear - Send" Status
(2), function 01h
Function Description: Output Character Inlet Parameters to Communication Port: AH = 01HAL = Character DX = Initialization Communication Slogan (0 = COM1, 1 = COM2, ...) Outlet Parameters: The value of Al does not change AH 7 = 0-- operation Success, communication port state, AH bit 6 ~ 0 is its status bit
(3), function 02h
Function Description: Read the character entry parameter from the communication port: AH = 02HDX = Initialization communication slogan (0 = COM1, 1 = COM2, ...) Exit Parameters: Al = Accepted Character AH bit 7 = 0 - Operation success, Communication port status, AH bit 6 ~ 0 is its status bit
(4), function 03h
Function Description: Read communication port state entry parameter: AH = 03HDX = initialization communication slogan (0 = COM1, 1 = COM2, ...) Outlet parameters: AH = communication port status, Al = Modem state, see function number 00h Description
(5), function 04h
Function Description: Expand the initialization communication port, only in PS / 2, here from this
4, miscellaneous system services (Miscellaneous System Service - INT 15H)
00h - open cassette machine motor 85H - System request (SYSREQ) button 01h - closing tape drive motor 86h - Delay 02H - Reading box tape drive 87h - Mobile expansion memory block 03h - Writing Case Tape Machine 88h - Read Take an extended memory size 0FH - format ESDI drive Regular interrupt 89h - Enter protection mode 21h - Read / write self-test (POST) error record 90h - device waiting for 4FH - keyboard intercept 91h - Device Power Expeed 80h - Equipment Open C0H - Read system environment 81H - Device Turn off C1H - Read extended BIOS data area address 82h - Process Termination C2H - Mouse graphics 83h - Event Waiting C3H - Setting WatchDog Timeout 84H - Read Channel C4H - Programmable Options Selection
(1), function 00H
Function Description: Open Case Tape Machine Portal Parameters: AH = 00H Exit Parameters: CF = 0-- Operation Success, otherwise, AH = State (86h, if no box tape drive is installed)
(2), function 01h
Function Description: Top Tape Machine Machine Entrance Parameters: AH = 01H Exit Parameters: CF = 0 - Operation Success, Otherwise, AH = State (86h, if the cassette machine is not installed) (3), function 02h
Function Description: Reading Case Tape Veh Entry Parameters: AH = 02HCX = Read bytes ES: BX = Buffer Address Exit Parameters: CF = 0 - Operation, DX = Byte Generation Number, ES: BX points to the back address of the last byte, otherwise, AH = status code, its value is as follows:
01H - CRC check code error 80h - illegal order 02h - bit signal confusion 86h - no cassette machine 04h - no data
(4), function 03h
Function Description: Writing Tape Machine Inlet Parameters: AH = 03HCX = To Write bytes ES: BX = Splitted Data Buffer Address Exit Parameters: CF = 0-- Operation, CX = 00H, ES: BX points to the back address of the last byte, otherwise, AH = status code, its value is as follows:
80H - illegal order 86h - no cassette machine
(5), function 0FH
Function Description: Format the ESDI drive periodically interrupt, only in PS / 2, from this
(6), function 21h
Function Description: Read / write self-test (POST) error record, only valid in PS / 2, from this
(7), function 4FH
Function Description: Keyboard Intercept, only in PS / 2, here from this
(8), function 80h
Function Description: Open device entry parameters: AH = 80HBX = device number CX = process number exit parameter: cf = 0 - operation success, AH = 00h, otherwise, AH = status code
(9), function 81h
Function Description: Turn off the device entry parameters: AH = 81HBX = device number CX = process number exit parameter: cf = 0 - operation success, AH = 00h, otherwise, AH = status code
(10), function 82h
Function Description: Process Termination Entrance Parameters: AH = 81HBX = Procedure Export Parameters: CF = 0 - Operation Success, AH = 00h, otherwise, AH = Status Code
(11), function 83h
Function Description: Event Waiting for Entry Parameters: AH = 83H
If an event is waiting, then: Al = 00HCX: DX = Mr. ES: bx = Signal volume byte address Otherwise, the call parameter is Al = 01h Exit parameters: If calling, Al = 00H, operation success - CF = 0, otherwise, cf = 1
(12), function 84h
Function Description: Read the game pole entry parameters: AH = 84HDX = 00H - Read switch setting = 01H - Read resistance Enter the exit parameter: CF = 1h - Operation failure, otherwise, DX = 00h, Al = switch settings (Bit 7 ~ 4) DX = 01h, AX, BX, CX and DX are A (X), A (Y), B (X) and B (Y) value (13), function 85H
Function Description: System Request (SysReq) Type Parameters: AH = 85HAL = 00H - button Press = 01H - button to release the exit parameters: CF = 0 - Operation success, AH = 00h, otherwise, AH = status code
(14), function 86h
Function Description: Delayed Entry Parameters: AH = 86HCX: DX = Mrocket Exit Parameters: CF = 0 - Successful operation, AH = 00H
(15), function 87h
Function Description: Move the extended memory block entry parameter from conventional memory and extended memory: AH = 87HCX = Mobile word ES: Si = GDT (Global Descriptor Table) The structure is defined as follows:
The information stored in the offset is stored, but the length of the 010H -11H segment is now all (2CX-1 or more) 12H-14H24 bond source address 15h access by 93H) 16h-17h However, the length (2CX-1 or greater) 1AH-1Ch 24-bit target source address 1DH access by 1AH-1CH 24-bit target source address 1DH-2FH is reserved, but now is 0 export parameters : Cf = 0 - Operation success, AH = 00h, otherwise, AH = status code, its meaning is as follows: 01H - RAM odd error 02h - Abnormally disabled the wrong 03h - 20 line door address failed
(16), function 88h
Function Description: Read the extended memory size entry parameter: AH = 88H Exit Parameters: AX = Extended the number of bundles (in K)
(17), function 89h
Function Description: Enter the protection mode, the CPU enters protection mode entry parameters from real mode: AH = 89HBH = IRQ0 interrupt number BL = IRQ8 interrupt number ES: Si = GDT address (see function number 87h) Outlet parameters: cf = 1- - Operation failure, AH = 0ffh, otherwise, AH = 00h, CS, DS, ES and SS are user-defined selectors
(18), function 90h
Function Description: Equipment Wait for Inlet Parameters: AH = 90H
Al = drive type, the specific drive type is defined as follows: = 00H ~ 7FH - serial reuse device = 80H ~ 0BFH - can be retroled device = 0C0H ~ 0FFH - Wait for access to the device, no self-test function
00h - disk 02H - Keyboard 80h - Network FDH - Floppy Motor Start 01H - Floppy Dish 03H - Point Device (Pointing Device) FCH - Hard Disk Reset FeH - Printer ES: BX = Request Block Address Exit Document Demographic: CF = 1 - Operation failed, otherwise, AH = 00H
(19), function 91h
Function Description: Device Plus Self-Test Inlet Parameters: AH = 91HAL = 00H ~ 7FH - Serial Reuse Device = 80H ~ 0BFH - Retrogenous Device Exit Parameters: AH = 00H
(20), function 0c0h
Function Description: Read System Environment Entry Parameters: AH = 0C0H Exit Parameters: ES: BX = Configuration Table Address, the definition of the configuration table is as follows:
Offset Meaning Description 00h-01H Table Size (byte) 02H System Model 03H System Sub Model 04HBIOS Version No. 05H Configuration Sign Enthere 8259 5-real-time clock effective bit 4-keyboard interception valid bit 3 - Waiting for external events Active bit 2-extended BIOS data location 1-microchannel facility bit 0 - retain 06H-09H reservation
(21), function C1H
Function Description: Read the extension BIOS data area address, only in PS / 2, here from this
(22), function C2H
Function Description: Mouse graphics, only valid in PS / 2, here from this
(23), function C3H
Function Description: Set WatchDog Timeout, only in PS / 2, from this
(24), function C4H
Function Description: The programmable option is selected, which is only valid in PS / 2, here from this
5, Keyboard Service (Keyboard Service - INT 16H)
00h, 10h - Read the character 01h from the keyboard - Set the repetition rate 01h, 11h - Read the keyboard status 04H - Set the keyboard Click 02H, 12H - Read the keyboard sign 05h - Character and its scan code
(1), function 00h and 10h
Function Description: Read the character entry parameter from the keyboard:
AH = 00H-- read keyboard = 10h - read extension keyboard, can determine according to 0000: 0496H unit: extended keyboard effective export parameters: AH = keyboard scan code AL = Character ASCII code
(2), function 01h and 11h
Function Description: Read the keyboard status portal parameters:
AH = 01H - Check the ordinary keyboard = 11h - Check the extended keyboard export parameters: zf = 1 - No character input, otherwise, ah = keyboard scan code, Al = ASCII code.
(3), function 02h and 12h
Function Description: Read the keyboard flag entry parameters:
AH = 02H - Displacement sign of ordinary keyboard = 12H - Extended keyboard Displacement flag export parameters: Al = keyboard flag (02h and 12h are valid), the meaning of the value of 1 is as follows:
Bit 7-INS Open Status Bit 3-Alt button Press the 6-Caps Lock Open Status Bit 2-Ctrl Key Press the 5-Num Lock Open Status Bit 1 - Left SHIFT button Press the 4-Scroll Lock Open Status Bit 0- Right The Shift key presses the AH = the flag of the extended keyboard (12H is valid), the meaning of the value of 1 is as follows:
Bit 7-SysReq button Press the next 3 - right alt button Press the 6-CAPS LOCK button Press the next 2 - Right Ctrl button Press the next 5-Num Lock button Press the next 1-left Alt button Press the next 4-scroll button Press the next 0- Left CTRL button
(4), function 03h
Function Description: Setup Retrieval Entry Parameters: AH = 03H
For PC / AT and PS / 2: Al = 05HBH = Repeated delay BL = repetition rate for PCJR:
Al = 00H - Load the default rate and delay = 01H - Add initial delay = 02H - Repeat frequency reduction half = 03H - Add delay and reduced half repetition frequency = 04H - Close keyboard repeat function Exit parameters: None (5), function 04h
Function Description: Set the keyboard Click the entry parameter: ah = 04h
Al = 00H - Close the keyboard Click the function = 01H - Open the keyboard Click on the function exit parameters: no
(6), function 05h
Function Description: Character and Its Scan Code Infit Entry Parameters: AH = 05HCH = Character Description Code CL = Character ASCII Code Exit Parameters: CF = 1 - Operation Success, Al = 00H, otherwise, Al = 01H
6, parallel port service (Parallel Port Service - INT 17h)
00h - Output Character 01H - Initialization Printer Port 02H - Read Printer Status
(1), function 00H
Function Description: Output Character Inlet Parameters to Printer: AH = 00HAL = Output Character DX = Printer Number (0-LPT1, 1-LPT2, 2-LPT3, ...) Outlet Parameters: AH = Printer Status. The meanings of each of them are as follows:
Bit 7-Printer Free Bit 3-I / O Error bit 6 - Printer Resistant 2 - Reserved Bit 5 - No Paper Bottoma 1 - Reserved Bit 4 - Printer Selected 0 - Printer Timeout
(2), function 01h
Function Description: Initializing the printer port entry parameters: AH = 01HDX = Printer number (0-LPT1, 1-LPT2, 2-LPT3, ...) Outlet Parameters: AH = Printer Status. Did you define the following features 00h
(3), function 02h
Function Description: Read the printer status entry parameter: AH = 02HDX = Printer number (0-LPT1, 1-LPT2, 2-LPT3, ...) Outlet Parameters: AH = Printer Status. Did you define the following features 00h
7, Clock Service (Clock Service - INT 1AH)
00h - Read Clock "Tick" count 06h - Set the alarm clock 01h - Set the clock "Tick" count 07h - Alarm Reset 02H - Read time 0AH - Read the number of days count 03H - Set time 0BH - Set the number of days count 04h - Read the date 80h - Set the sound source information 05h - Set the date
(1), function 00H
Function Description: Read Clock "Tick" count entrance parameters: AH = 00H Exit Parameters: Al = 00H - No Midnight, otherwise, indicating that the midnight CX: DX = clock "Tick" count
(2), function 01h
Function Description: Set the clock "Tick" count entrance parameter: ah = 01HCX: DX = Clock "Tick" count exit parameters: no
(3), function 02h
Function Description: Read Time Inlet Parameters: AH = 02H Exit Parameters: CH = BCD Code Format Hourly CL = BCD Code Format DL = 00H-- Standard Time, Otherwise, Summer CF = 0-- clock is walking, otherwise, the clock stops
(4), function 03h
Function Description: Setting Time Entry Parameters: AH = 03HCH = BCD Code Format Hour CL = BCD Code Format DH = BCD Code Format Second DL = 00H-- Standard Time, Otherwise, Summer Export Parameters: None (5) , Function 04h
Function Description: Read Date Inlet Parameters: AH = 04H Exit Parameters: CH = BCD Code Format of Century CL = BCD Code Format DL = BCD Code Format DL = BCD Code Format The day CF = 0-- clock Go, otherwise, the clock stops
(6), function 05h
Function Description: Setting Date Inlet Parameters: AH = 05HCH = BCD Century Century CL = BCD Code Format DH = BCD Code Format DL = BCD Code Format Day Exit Parameters: None
(7), function 06h
Function Description: Set an alarm entry parameter: AH = 06HCH = BCD code format Hours CL = BCD code format of minutes DH = BCD code format of second exit parameters: cf = 0 - Operation success, otherwise, the alarm has been set or the clock has been stop
(8), function 07h
Function Description: Alarm Reset Entry Parameters: AH = 07H Exit Parameters: None
(9), function 0AH
Function Description: Read the number of days, only in PS / 2 is valid, here from this
(10), function 0BH
Function Description: Set the number of days count, only in PS / 2 is valid, here from this
(11), function 80h
Function Description: Set the sound source information entry parameter:
AH = 80HAL = Source = 00H - 8253 Programmable Timer, Channel 2 = 01H - Box Tape Input = 02H - AUDIO IN "on the I / O Channel = 03H - Sound Generation Chip Export Parameters: no
8, Direct System Service (Direct System Service)
INT 00H - "0" Rifted INT 01H - Single-step Interrupt INT 02H - Uns-mask Interrupt (NMI) INT 03H - Breakpoint Interrupt INT 04H - Math Overflow Error INT 05H - Print Screen and Bound Crossing INT 06H - Intimic Instruction Error Int 07H - Processor Extension Invalid INT 08H - Clock Interrupt INT 09H - Keyboard Input INT 0BH - Communication Port (COM2:) INT 0CH - Communication Port (COM1:) INT 0EH - Disk Drive Input / Output INT 11H - Read Device Configuration Int 12H - Read Conventional Memory Size (Return Value AX is Memory Capacity, with K Unit) INT 18H -ROM Basicint 19H - Restart System INT 1CH - User Clock Service INT 1DH - Point to Display Parameters Table pointer int 1eh - Point to disk drive parameter table pointer int 1FH - Point to graphic character mode table pointer