Les éléments des syndicats de REGS utilisés dans C, équivalent au langage d'assemblage ont été dans la table donnée après:
de 16 bits |
de 8 bits |
Langage C |
Langage d'assemblage |
Langage C |
Langage d'assemblage |
inregs.x.ax |
HACHE |
inregs.h.al |
AL |
|
|
inregs.h.ah |
OH |
inregs.x.bx |
BX |
inregs.h.bl |
BL |
|
|
inregs.h.bh |
BH |
inregs.x.cx |
CX |
inregs.h.cl |
CL |
|
|
inregs.h.ch |
Ch |
inregs.x.dx |
DX |
inregs.h.dl |
DL |
|
|
inregs.h.dh |
CAD |
inregs.x.si |
SI |
|
|
inregs.x.di |
DI |
|
|
inregs.x.cflag |
CF |
|
|
Voyons les exemples des fonctions d'int86 et d'int86x. Le programme suivant balaye le chaque secteur de la disquette et imprime le statut de chaque secteur sur l'écran.
/* Programme pour balayer chaque secteur de la disquette et pour imprimer le statut */
#include<dos.h>
#include<conio.h>
void main()
{
int head,track,sector,i;
char *buf;
union REGS inregs, outregs;
struct SREGS sregs;
clrscr();
Sample Chapters from book DATA RECOVERY WITH AND WITHOUT PROGRAMMING by Author Tarun Tyagi, translated using machine translation. See original English contents on Data recovery book pages. |
|
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)
|
 |
|
|