BBS: Inland Empire Archive
Date: 10-12-92 (12:36)             Number: 339
From: VICTOR YIU                   Refer#: NONE
  To: EARL MONTGOMERY               Recvd: NO  
Subj: Re: REBOOT                     Conf: (2) Quik_Bas
 -=> Quoting Earl Montgomery to All <=-

 EM> Well I finally found my DOS Programmers Manual and found that calling
 EM> interrupt 19 will give me a reboot. I don't believe this method will

Huh?  That's kinda rediculous.  All that is needed is to poke 1234h into
0040:0072 and jump to FFFF:0000...

BASIC Code: (make sure QB.LIB/QLB is loaded)
    DEF SEG = &H40
    POKE &H72, &H34
    POKE &H73, &H12

Haven't tested it, but it should work.  Here is the asm equivalent...

0CF3:0100 BB3412        MOV BX,1234
0CF3:0103 B84000        MOV AX,0040
0CF3:0106 8ED8          MOV DS,AX
0CF3:0108 891E7200      MOV [0072],BX
0CF3:010C EA0000FFFF    JMP FFFF:0000
... Recursion (re kur' shun):  n. See recursion.
--- Blue Wave/RA v2.10 [NR]
 * Origin: Hard Disc Cafe / Houston Texas / (713) 589-2690 / (1:106/30.0)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET