cy03+@andrew.cmu.edu (Chao-Ping Yang) (06/01/88)
Could someone tell me how to reboot a PC from a batch file? I have tried the BIOS int 19h, but it did not work. Maybe I am missing something here. The Tech Ref Manual did not say much about int 19h and I don't have Ray Ducan's book handy. The batch file part is not important since I think I have write this into an assembly program. Thanks in advance. ==Chaoping
wtm@neoucom.UUCP (Bill Mayhew) (06/02/88)
If you jump into the the BIOS with location 0040:0072H set to the magic quatity of 1234H, and jump to the entry point of the BIOS, the system will perform a warm boot (i.e., no power-on self-test, etc.). Putting anything else in that memory location will force a cold boot. You can use DEBUG to enter the following sequence and save the result as WARMBOOT.COM: The blank line in the script below is necessary to get out of assemble mode! ---------------------- cut here ------------------------- a 0 mov ax,0040 mov ds,ax mov ax,1234 mov [0072],ax jmp f000:fff0 r cx 16 n warmboot.com w q ---------------------- end of script --------------------- Clip the above section out and save it in a text file. Then, redirect the text file into DEBUG thusly: debug < file.txt. This will automatically feed the commands in and create warmboot.com. Of course, you can always type the same sequence manually from your keyboard. INT 19H is brain damaged on most clone computers. I've yet to find a machine that the above method won't work on. --Bill wtm@neouocm.UUCP