De REGS unieelementen die in C, gelijkwaardig aan Assembleertaal worden gebruikt zijn in de daarna gegeven lijst geweest:
met 16 bits |
met 8 bits |
C taal |
Assembleertaal |
C taal |
Assembleertaal |
inregs.x.ax |
BIJL |
inregs.h.al |
Al |
|
|
inregs.h.ah |
AH |
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 |
DH |
inregs.x.si |
Si |
|
|
inregs.x.di |
Di |
|
|
inregs.x.cflag |
Het CF |
|
|
Zie de voorbeelden van functies int86 en int86x. Het Volgende Programma tast de elke sector van de floppy disk af en drukt het statuut van elke sector op het scherm.
/* Programma om Elke Sector van de Floppy disk af te tasten en de Status te drukken */
#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)
|
 |
|
|