| delorie.com/archives/browse.cgi | search |
| From: | almeidaj AT mail DOT com (Almeida J.) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Hardware reset |
| Date: | Sun, 27 May 2001 01:42:28 GMT |
| Message-ID: | <3b105adb.10680619@news.esoterica.pt> |
| References: | <3b0fcd8b DOT 2028746 AT news DOT esoterica DOT pt> <5567-Sat26May2001221058+0300-eliz AT is DOT elta DOT co DOT il> |
| X-Newsreader: | Forte Free Agent 1.21/32.243 |
| Organization: | VIA NET.WORKS Portugal - Servico de News |
| Cache-Post-Path: | isis.esoterica.pt!unknown AT por100 DOT esoterica DOT pt |
| X-Cache: | nntpcache 2.3.3 (see http://www.nntpcache.org/) |
| Cache-Post-Path: | sirith.esoterica.pt!unknown AT isis DOT esoterica DOT pt |
| X-Cache: | nntpcache 2.3.3 (see http://www.nntpcache.org/) |
| Lines: | 24 |
| NNTP-Posting-Host: | 195.22.0.29 |
| X-Trace: | 990927822 news.dpn.de 317 195.22.0.29 |
| X-Complaints-To: | abuse AT dpn DOT de |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On Sat, 26 May 2001 22:10:58 +0300, "Eli Zaretskii"
<eliz AT is DOT elta DOT co DOT il> wrote:
>It's in the FAQ: see section 22.26 there.
Thanks, I knew i had seen it...
But, the possible ways to reboot referenced in faq22_6 won't work, or
i'm doing something wrong.
outportb (0x64, 0xfe); will only close the windows DOS box.
__dpmi_int(0x19, ®s); because the program is not running in plain
DOS an alert pop-up window appears and the DOS box is closed.
This leaves me to the literal INT 19h instruction implementation (with
my shortest knowledge of assembler):
/* reboot.s file assembled with as*/
.globl _reboot
.text
_reboot:
int $0x19
ret
.end
/* */
But this won't work either. It simply closes the DOS box.
Thanks,
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |