アセンブリー言語と同等のcで使用されるREGS連合要素は次に与えられるテーブルにあった:
16ビット |
8ビット |
C言語 |
アセンブリー言語 |
C言語 |
アセンブリー言語 |
inregs.x.ax |
斧 |
inregs.h.al |
AL |
|
|
inregs.h.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 |
ディディミアム |
|
|
inregs.x.cflag |
CF |
|
|
私達をint86およびint86x機能の例を見ることを許可しなさい。 次のプログラムはフロッピー・ディスクのあらゆるセクターをスキャンし、スクリーンであらゆるセクターの状態を印刷する。
s
/* フロッピー・ディスクのあらゆるセクターをスキャンし、状態を印刷するプログラム */
#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)
|
 |
|
|