在网上看到一个程序,但是理解不了.(可能是因为太菜了)!!
大家帮我看看!!
下面是C的源程序:
冷启动:
/*****************************************************************************
coldboot.c
Developed November 1991 by Larry Reeve
A TurboC program to cold boot an IBM-PC (performs memory tests).
******************************************************************************/
#include <dos.h>
void main (void)
{
unsigned int far * Indicator;
void (far * PtrReboot) (void);
Indicator = MK_FP(0x0000,0x0472);
PtrReboot = MK_FP(0xFFFF,0x0000);
*Indicator = 0x0000;
(*PtrReboot) ();
}
热启动:
/*****************************************************************************
warmboot.c
Developed November 1991 by Larry Reeve
A TurboC program to warm boot an IBM-PC.
******************************************************************************/
#include <dos.h>
void main (void)
{
unsigned int far * Indicator;
void (far * PtrReboot) (void);
Indicator = MK_FP(0x0000,0x0472);
PtrReboot = MK_FP(0xFFFF,0x0000);
*Indicator = 0x1234;
(*PtrReboot) ();
}