Re-boot

 BBS: Inland Empire Archive
Date: 03-05-93 (18:49)             Number: 2
From: JAMES VAHN                   Refer#: 397
  To: JIM LITTLE                    Recvd: NO  
Subj: Re-boot                        Conf: (2) Quik_Bas
JL>     Uhh...  I'm not sure.  James Vahn has posted some code which might
JL>  take care of the keyboard problem, though.  However it was QB code
JL>  instead of straight ASM...  Maybe QB cleans things up for you.

You wanted an ASM answer in a Basic echo?????  ;-)

Clip this and call it REBOOT.SCR then run it through Debug like:
C:>DEBUG < REBOOT.SCR
and it will generate Reboot.com in the current directory.

==================
nreboot.com
a100
mov ax,0
mov ds,ax        ; DEF SEG = 0
mov ax,34
mov [472],ax     ; POKE &H472, &H34
mov ax,12
mov [473],ax     ; POKE &H473, &H12
jmp ffff:0000    ; DEF SEG = &HFFFF: CALL ABSOLUTE (0)

rcx
16
w
q
==================

The 80xxx looks to that address (ffff:0000) at power up time.  It
contains the boot code.  The keyboard handler looks for a warm
boot (CTRL-ALT-DEL) and puts 1234h into the magic area to skip
the memory count on AMI BIOS equipped machines.

No, QB will not 'clean things up'- actually the machine is in a
mess at that point, but it doesn't matter 'cause it's about to
start over.


 * SLMR 2.1a *
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