Path: utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!ucsd!ucbvax!hplabs!hp-pcd!hpcvlx!daveg From: daveg@hpcvlx.HP.COM (Dave Guggisberg) Newsgroups: comp.sys.ibm.pc Subject: Re: reboot program Message-ID: <1180042@hpcvlx.HP.COM> Date: 9 Aug 88 16:47:38 GMT References: <1355@bingvaxu.cc.binghamton.edu> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 20 I guess it is not too hard to do it in C. Although I think it is more efficient to do it in assembler or through debug as previously shown. main () { void (far *bye) (); int far *pt; pt = ((int far *) (0x0000472L); *pt = 0x1234; /* for warm boot */ /* *pt = 0x0000; */ /* for cold boot */ bye = (void far *) 0x0ffff0000L; (*bye) (); } daveg@hp-pcd