[comp.lang.pascal] Rebooting from TP

migdol@emx.utexas.edu (Michael A. Migdol) (05/13/91)

Hi, CLP'ers! Think I've got an easy one for ya tonight: How can I force a 
machine reboot in TP? (The equivalent of a ctrl-alt-delete) 

Thanks in advance!

*****************************************************************************
*  Michael A. Migdol                  |    Disclaimer:                      *
*  migdol@emx.utexas.edu              |       "I may be wrong"              *
*  University of Texas, Austin        |           (Thanks Robert Fulghum!)  *
*****************************************************************************
*               "There's no such thing as a simple miracle"                 *
*****************************************************************************

cs442a07@cs.iastate.edu (Sunny Gulati) (05/13/91)

migdol@emx.utexas.edu (Michael A. Migdol) writes:

>Hi, CLP'ers! Think I've got an easy one for ya tonight: How can I force a 
>machine reboot in TP? (The equivalent of a ctrl-alt-delete) 

Pretty easy.  call the reboot interrupt.  details in the interrupt list,
wuarchive.wustl.edu, /mirrors/msdos/info/inter291.zip??? , 

It goes kinda like: store $1234 in some address, then call some interrupt.

In pascal goes kinda like: 

var a:word absolute blah;
    regs: registers;
a:=$1234; Intr(bloop,regs);

>Thanks in advance!

No problem. Any mistakes are due to finals.

>*****************************************************************************
>*  Michael A. Migdol                  |    Disclaimer:                      *
>*  migdol@emx.utexas.edu              |       "I may be wrong"              *
>*  University of Texas, Austin        |           (Thanks Robert Fulghum!)  *
>*****************************************************************************
>*               "There's no such thing as a simple miracle"                 *
>*****************************************************************************

raymond@math.berkeley.edu (Raymond Chen) (05/13/91)

In article <cs442a07.674101729@zippy>, cs442a07@cs (Sunny Gulati) writes:
>Pretty easy.  call the reboot interrupt.  

No, don't call the reboot interrupt.  It doesn't clear the interrupt
table, for one.  (Exercise: Why is this not good?)  Use the `jump to
$ffff:$0000' method.  (Details in the Frequently Asked Questions file
for comp.sys.ibm.pc.misc.)