home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
utility
/
bootex10.zip
/
REBOOT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-11
|
567b
|
25 lines
/* Program : Reboot.C
Author : Jenn-Hwa Guan --> MIS Hawk
Using Turbo C 2.01
To show the right way to reboot
Bitnet : U432660@twncu865.Bitnet
Internet : Hawk@s825.ncu.edu.tw or hawk@[140.115.80.1]
*/
#include <dos.h>
/*
Set a pointer to function as interrupt function
*/
void interrupt (*restart)();
main()
{
/*
Point the restart as ROM FFFF:0000 jump 1 byte
FFFF:0001 store offset
FFFF:0003 store segment
*/
restart=MK_FP(peek(0xffff,0x0003),peek(0xffff,0x0001));
restart();
}