INT 21H (0x21) function 08H (0x08) Character input without echo 09H (0x09) Display string 0AH (0x0A or 10) Buffered keyboard input 0BH (0x0B or 11) Check input status 0CH (0x0C or 12) Flush input buffer and then Input

Files Recovery Software
Home Contact Details Customer Support Download Demo Products  

 
 

INT 21H (0x21)

Function 08H (0x08) --> Character input without echo

Call with: AH = 08H

Returns: AL = 8-bit input data

Comments:

This function reads a character from the standard input device without echoing it to the standard output device.

INT 21H (0x21)

Function 09H (0x09) --> Display string

Call with: AH = 09H
DS:DX = segment: offset of string

Returns: Nothing

Comments:

It sends a string of characters to the standard output device. Output may be redirected. If output has been redirected, there is no way to detect disk full. String can also be sent to the display by performing a write (INT 21H Function 40H) using the predefined handle for the standard output (0001H), if it has not been redirected, or a handle obtained by opening the logical device CON.

INT 21H (0x21)

Function 0AH (0x0A or 10) --> Buffered keyboard input

Call with: AH = 0AH
DS:DX = segment: offset of buffer

Returns: Data placed in buffer, Returns Nothing

Comments:

It reads a string of bytes from the standard input device, up to and including an ASCII carriage return (0DH), and places them in a user-designated buffer. The characters are echoed to the standard output device. The buffer used by the function has following format:

       Byte

                                     Contents

        0

Maximum number of characters to read, set by program

        1

Number of characters actually read (excluding carriage return), set by MS-DOS

        2+

String read from keyboard or standard input, terminated by a carriage return (0DH)

INT 21H (0x21)

Function 0BH (0x0B or 11) --> Check input status

Call with: AH = 0BH

Returns: AL = 00H (if no character is available)
FFH (if at least one character is available)

Comments:

Checks if a character is available from the standard input device such as keyboard. This function is equivalent to IOCTL INT 21H Function 44H Sub function 06H.

INT 21H (0x21)

Function 0CH (0x0C or 12) --> Flush input buffer and then Input

Call with: AH = 0CH
AL = number of input to be invoked after resetting
buffer (must be 01H, 06H, 07H, 08H or
0AH)

If AL = 0AH
DS: DX = segment: offset of input buffer

Returns: If called with AL = 01H, 06H, 07H, or 08H,
AL = 8-bit input data

If called with AL= 0AH,
Nothing (data placed in buffer)

Comments:

Clears the standard input buffer and then invokes one of the character input functions. Input can be redirected. A function number in AL except 01H, 06H, 07H, 08H, or 0AH flushes the input buffer and returns control to the calling program.

Previous page

page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20

 
 

page 21 | 22 | 23 | 24 | 25 | 26

Next page
 
 
Data Recovery Book
 
Chapter 1 An Overview of Data Recovery
Chapter 2 Introduction of Hard Disks
Chapter 3 Logical Approach to Disks and OS
Chapter 4 Number Systems
Chapter 5 Introduction of C Programming
Chapter 6 Introduction to Computer Basics
Chapter 7 Necessary DOS Commands
Chapter 8 Disk-BIOS Functions and Interrupts Handling With C
Chapter 9 Handling Large Hard Disks
Chapter 10 Data Recovery From Corrupted Floppy
Chapter 11 Making Backups
Chapter 12 Reading and Modifying MBR with Programming
Chapter 13 Reading and Modifying DBR with Programming
Chapter 14 Programming for “Raw File” Recovery
Chapter 15 Programming for Data Wipers
Chapter 16 Developing more Utilities for Disks
Appendix Glossary of Data Recovery Terms
 
 
Pro Data Doctor

Home

Products

Contact Details

Customer Support

Download Demo

Terms and Conditions

 
Pro Data Doctor