INT 20H (0x20) Terminate process INT 21H (0x21) Function 00H (0x00) Terminate process INT 21H (0x21) Function 01H (0x01) Character input with echo INT 21H (0x21) Function 02H (0x02) --> Character output

Data Recovery PRO DATA DOCTOR

Home | Order Online | Downloads | Contact Us | Software Knowledgebase

it | es | pt | fr | de | jp | kr | cn | ru | nl | gr


INT 20H ( 0x20) --> Terminate process

Call with: CS = segment address of program segment prefix

Returns: Nothing

Comments:

It terminates the current process. This is one of several methods that a program can use to perform a final exit. You can also use functions (00H or 31H or 4CH) of INT 21H or simply INT 27H to perform a final exit where functions 31H and 4CH of INT 21H are generally preferred because they allow a return code to be passed to the parent process.

It is recommended that if you have used File Control Blocks (FCBs) to write any file, you should close the file first otherwise you may lose the data because in the action of final exit all the memory that was taken by the process is released, File buffers are flushed and any open handles for files or devices owned by the process are closed.

Therefore if you have open handles for file you may lose the data.

INT 21H (0x21)

Function 00H (0x00) --> Terminate process

Call with: AH = 00H
CS = segment address of program segment prefix

Returns: Nothing

Comments:

This interrupt terminates the current process. This is one of several methods that a program can use to perform a final exit. For more information see INT 20H

INT 21H (0x21)

Function 01H (0x01) --> Character input with echo

Call with: AH = 01H

Returns: AL = 8-bit input data

Comments:

This interrupt reads a character from the standard input device such as keyboard and echoes it to the standard output device. If no character is ready, waits until one is available.

INT 21H (0x21)

Function 02H (0x02) --> Character output

Call with: AH = 02H
DL = 8-bit data for output

Returns: Nothing

Comments:

It outputs a character to the standard output device. Output can be redirected. If output is redirected, there is no way to detect disk full.

Strings can also be sent strings to the display by performing a write (INT 21H, Function 40H) using the predefined handle for the standard output (0001H), if output has not been redirected, or a handle obtained the logical device CON.

Sample Chapters from book DATA RECOVERY WITH AND WITHOUT PROGRAMMING by Author Tarun Tyagi
Data Recovery with & without Programming


Publishers of the Book
Number of Pages
ISBN
Price of the Book


BPB Publications, New Delhi, India
540
81-7656-922-4
$69.00 (Including Shipping Charges, Cost of Book and Other expenses, Free Source Code CD included with the Book)





Buy Data recovery Book

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

© Copyright 2002-2005 DataDoctor.Biz

Home | Contact us | Downloads | Services | Terms and conditions | Site map

Website Data Recovery | recuperación de Datos | Récupération de données | Datenrettung | Recupero dati | データ復旧 | 데이터 복구 | 数据恢复 | Восстановление данных | De terugwinning van gegevens | Ανάκτηση δεδομένων
Sitemap Site map1 2 3 4 | Spanish1 2 3 | French1 2 3 | German1 2 3 | Italian1 2 3 | Portuguese1 2 3 | Japanese1 2 3 | Korean1 2 3 | Chinese1 2 3 | Russian1 2 3 | Dutch1 2 3 | Greek1 2 3
Data Recovery Book English | Spanish | French | German | Italian | Portuguese | Japanese | Korean | Chinese | Russian | Dutch | Greek