Found this at home.
 
        .model small
        .data
restart         label   dword
 db 4 dup (?)
        .code
main:   mov     ax,@data
        mov     ds,ax
        mov     bx,-1                           ; segment CS:FFFF
 mov es,bx
 mov bx,3
        mov     dx,word ptr es:[bx]             ; offset 0003
 mov bx,1
        mov     ax,word ptr es:[bx]             ; offset 0001
        mov     word ptr restart+2,dx           ; indicate the restart address
        mov     word ptr restart,ax
        call    dword ptr restart               ; do reboot by restart address
        end main
 end
See if its any use.
 
Dave.
----- Original Message -----
Sent: Wednesday, 25 October 2000 07:54
Subject: [DUG]: Rebooting a computer in Pascal

HI all.....this is not really a DELPHI question but rather T/Pascal question.....which in light of the recent Linux discussions in not really off-topic....hehehehe
 
What I was wondering is,  how do you execute anotehr app. from wihting T/Pascal, and how do you reboot a computer within T/Pascal ?
 
Can anyone help ?
 
Cheers,
 
Jeremy Coulter

Reply via email to