Os elementos da união de REGS usados em C, equivalente à língua de conjunto estiveram na tabela dada em seguida:
bocado 16 |
bocado 8 |
C - língua |
Língua de conjunto |
C - língua |
Língua de conjunto |
inregs.x.ax |
MACHADO |
inregs.h.al |
AL |
|
|
inregs.h.ah |
Ampère-hora |
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 |
AO |
inregs.x.si |
SI |
|
|
inregs.x.di |
DI |
|
|
inregs.x.cflag |
CF |
|
|
Deixar-nos ver os exemplos de funções de int86 e de int86x. O seguinte programa faz a varredura de cada setor do disco flexível e imprime o status de cada setor na tela.
/* Programa para fazer a varredura de cada setor do disco flexível e para imprimir o status */
#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)
|
 |
|
|