Solved

booting questions

Posted on 2004-03-27
8
473 Views
Last Modified: 2012-06-27
Cold boot initializes everything because power is off. While warm boot does not check RAM. But, does it reset any content of RAM? Does it reset the vector tables? If so, is it reseted by BIOS or DOS or both?

In addition, I was told that INT 19h can do warm boot as well. If it is true, does it reset any content in RAM?

By the way, I've tried to write a reboot program (assembly) by using INT19h. But it did not work. The PC hung up. Any trick for using INT19h?
0
Comment
Question by:charleswong
  • 3
8 Comments
 
LVL 30

Accepted Solution

by:
SteveGTR earned 168 total points
ID: 10694724
Here is what my old Norton Guides say about INT 19h (forgive me Peter):

INT 19h (25)             Bootstrap Loader Service

    Attempts to load the sector at head 0, cylinder 0, sector 1, of a
    diskette or fixed disk into memory at 0:7C00h, and transfer control
    there. This sector usually has an operating system bootstrap loader.

  ──────────────────────────────────────────────────────────────────────────

    This interrupt attempts to load the sector at head 0, track 0, sector
    1, on the first diskette into memory at 0:7C00h. If unable, it then
    attempts to load the sector at head 0, track 0, sector 1 of the first
    hard disk. If it is unable to load from either the diskette or the
    fixed disk, it calls INT 18h, which calls the ROM BASIC.

    If INT 19h is successful, control is transferred to the first byte of
    the sector, which has been read in at memory location 0:7C00h. That
    is, CS is set to 0 and IP is set to 7C00h.

       Notes:     This interrupt is not a substitute for a Ctrl-Alt-
                      Del warm boot. This interrupt is the last action
                      performed by the Power-On Self Test (POST), which is
                      activated by Ctrl-Alt-Del. If a user program
                      attempts to execute this interrupt directly, the
                      machine may lock up.

                      To correctly reboot within an application program,
                      jump to FFFF:0h in memory. That is, set CS to FFFF
                      and IP to 0. This is the same process that occurs
                      when the machine is first powered on. Following
                      these steps will perform a "cold" boot. To perform a
                      "warm" boot using this method, first set the word at
                      location 0:472h to 1234h. This will simulate the
                      pressing of the Ctrl-Alt-Del.

                      A cold boot initializes all hardware, tests all
                      hardware, tests RAM, then calls INT 19h to load the
                      bootstrap loader. This process is performed when the
                      computer is turned on or a hardware reset button is
                      pressed.

                      A warm boot initializes and tests all hardware but
                      does not test RAM. It then calls INT 19h to load the
                      bootstrap loader. This process is performed when
                      Ctrl-Alt-Del is typed.

                      The sector read from the diskette will in turn read
                      in the rest of the operating system. A fixed disk
                      will read in a Partition Table, which will then read
                      in the correct operating system.
0
 
LVL 30

Expert Comment

by:SteveGTR
ID: 10694732
Here is INT 18H for your reference:

INT 18h (24)             BASIC Loader Service

    Activates Cassette BASIC.
_______________________________________________________________

       Notes:      This service transfers control to F600:0, which is
                      the location in ROM of the standard BASIC
                      interpreter. This interrupt works only on IBM
                      computers. Compatibles do not have BASIC in ROM but
                      must instead run a disk-based version of BASIC,
                      usually known as GW-BASIC.

                      This interrupt is executed if the Power-On Self Test
                      (POST) is unable to read the operating system off a
                      floppy or fixed disk.
0
 
LVL 9

Assisted Solution

by:gtkfreak
gtkfreak earned 166 total points
ID: 10695961
U may like to refer to:
http://www.clipx.net/ng/bios/ng1fe5.php
0
 
LVL 11

Assisted Solution

by:dimitry
dimitry earned 166 total points
ID: 10696501
If you want to reboot computer in DOS (from real mode), you need to jump to reset vector and not to
call to INT 19h. INT 19h loads OS from HD or floppy and is called at the end of BIOS boot sequence.

To jump to reset vector you need to do the next:
  mov ax, 40h
  mov ds, ax
  mov word ptr ds:[72h], 1234h   ; to "tell" BIOS that you are rebooting
  DB  0EAh    ; far jump to [FFFF:0000] - reset vector
  DW 0
  DW 0FFFFh

Note: it will not work under Windows 2000
0
 
LVL 30

Expert Comment

by:SteveGTR
ID: 11100978
All three of us, myself, gtkfreak, dimitry, have provided information that answered the question. I believe that the points should be split three ways. Thanks :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now