Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!bloom-beacon!eru!hagbard!sunic!mcsun!corton!chorus!opera.chorus.fr!mir From: mir@opera.chorus.fr (Adam Mirowski) Newsgroups: comp.sys.ibm.pc.misc Subject: Re: self re-booting program! Message-ID: <8742@chorus.fr> Date: 20 Mar 91 14:13:36 GMT References: <1991Mar14.144740.1@uwav1.u.washington.edu> <1991Mar18.081748.25848@ktibv.uucp> <1991Mar19.095731.6269@ukpoit.co.uk> Sender: mir@chorus.fr Reply-To: mir@opera.chorus.fr (Adam Mirowski) Organization: Chorus systemes, Paris, France Lines: 27 %% > How about a small program jumping directly to the boot address. %% > This address is on all machines FFFF:0000. %% > just make a small pascal or c program and include %% > JMP FFFF:0000 %% > This will do the trick. %% %% I tried this: %% %% main(){ %% JMP FFFF:00000; %% %% } %% %% but it didn't work, is there an .h file I should include ?? :-) Try this one: #define FAR far #define JMP int FAR (* jump)() = (void FAR *) 0xFFFF0000; (*jump) (); Didn't try it on a PC, though. You could get a warning like 'Code has no effect' at compilation time. -- Adam Mirowski, mir@chorus.fr (FRANCE), tel. +33 (1) 30-64-82-00 or 74 Chorus systemes, 6, av.Gustave Eiffel, 78182 Saint-Quentin-en-Yvelines CEDEX