Xref: utzoo comp.sys.ibm.pc:26239 comp.sources.wanted:6737 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!eecae!netnews.upenn.edu!rutgers!psuvax1!psuvm.bitnet!cunyvm!ndsuvm1!ndsuvax!nclamber From: nclamber@ndsuvax.UUCP (Pete Lambertz) Newsgroups: comp.sys.ibm.pc,comp.sources.wanted Subject: Re: Is it possible to re-boot a PC from a program ? Keywords: reboot.exe Message-ID: <2412@ndsuvax.UUCP> Date: 16 Mar 89 21:16:03 GMT References: <830@psueea.UUCP> <3785@stiatl.UUCP> Reply-To: nclamber@ndsuvax.UUCP (Pete Lambertz) Distribution: na Organization: North Dakota State University, Fargo Lines: 34 CSEG SEGMENT org 100h .MODEL TINY ASSUME CS:CSEG, DS:CSEG, SS:CSEG org 100h PARK: mov ah,25h mov al,6ah mov dx,0ffffh mov ds,dx xor dx,dx int 21h int 6ah int 20h CSEG ENDS END PARK this can then be assembled and linked to a .com file. If you wanted to reboot from Turbo C you could write void reboot(void) { setvector(0x6a, MK_FP(FP_SEG(0xFFFF), FP_OFF(0x0000)); geninterrupt(0x6a); } main() { reboot(); } -- Pete Lambertz North Dakota State University, Fargo, ND 58105 UUCP: ...!uunet!ndsuvax!nclamber BITNET: nclamber@ndsuvax.bitnet INTERNET: nclamber@plains.NoDak.edu #! rnews 1580 Path: psuvm.bitnet!cunyvm!ndsuvm1!nd