Mail Archives: djgpp/2000/09/27/13:59:34
| Date: 27 Sep 2000 23:15:27 +0530
| From: Prashant TR <tr AT midpec DOT com>
|
| smsw ax
| test al, 1
| jnz try64
| cli
| hltloop:
| hlt
| jmp hltloop
| try64:
| mov al, 0feh
| out 64h, al
| jmp hltloop
This one attempts to halt the system. But for rebooting, try this
code.
mov al, 0feh
out 64h, al
cli
hltloop:
hlt
jmp hltloop
Windows generates a GPF for the hlt instruction (with interrupts
cleared).
--
Prashant TR <tr AT midpec DOT com>
Web: http://www.midpec.com/
- Raw text -