Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!uwvax!astroatc!feuling From: feuling@astroatc.UUCP (Lindsay Feuling) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Warm-boot program Keywords: Warm-boot Message-ID: <2991@astroatc.UUCP> Date: 3 Jan 90 22:36:15 GMT References: <5894@uhccux.uhcc.hawaii.edu> Reply-To: feuling@astroatc.UUCP (Lindsay Feuling) Organization: Astronautics Technology Cntr, Madison, WI Lines: 35 >From: larned@uhccux.uhcc.hawaii.edu (Paul Larned) >Subject: Warm-boot program >Keywords: Warm-boot >Message-ID: <5894@uhccux.uhcc.hawaii.edu> >Date: 3 Jan 90 20:04:26 GMT >Organization: University of Hawaii >Lines: 5 > > >Does anyone know where I can locate a warm-boot program? >I understand this is a small .COM program which is very >useful in batch files where, for example, you switch >CONFIG.SYS files. Thanks very much for any help. > The method for creating such a program is very simple. All you need is the program DEBUG.COM, or SYMDEB.COM (available from Microsoft Macro Assembler), or even the Macro Assembler! The assembly code for a warmboot is as follows: mov ax,0 mov ds,ax mov si,0472 mov word ptr [si],0034 mov word ptr [si+01],0012 jmp f000:fff0 Even simpler is the code for a coldboot: jmp f000:fff0 These assembler instructions may be entered as code in DEBUG or SYMDEB (using the 'a' option), and saving them as 'WARMBOOT.COM' and 'COLDBOOT.COM' respectively. Good luck q:-)