Ora lasciarli vedono un esempio del intdosx di funzione. Il seguente esempio mostra l'uso della funzione del intdosx. Il programma produce una stringa all'uscita standard.
/* Il programma ad uscita “stringa„ all'uscita standard. */
#include <dos.h>
union REGS inregs, outregs;
struct SREGS segregs;
char far *string = "this string is not in the
default data segment$";
void main()
{
inregs.h.ah = 0x09; /* function number */
inregs.x.dx = FP_OFF(string);/*DS:DX is far
address of 'string */
segregs.ds = FP_SEG(string);
intdosx(&inregs, &outregs, &segregs);
getch();
}
E l'uscita del programma sarà come segue:
questa stringa non è nel segmento di dati di difetto |
Qui stiamo stampando la data stringa con il intdosx di funzione, dalla funzione 09H di 21H INTERNO. Dovrebbe essere tenuto sempre presente che la data stringa dovrebbe concludere sempre con il carattere “$„.
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)
|
 |
|
|