Solved

Warm/Cold Reset

Posted on 2004-08-26
6
710 Views
Last Modified: 2006-11-17
Depending upon the type of reset (Warm/Cold), the OS writes perticular code at a fixed address. I am not getting information about that address. I need to know (once PC is up), was it a warm reset or a cold reset?  How to siove this issue? Note that i am working on DOS os.

Dhaval

0
Comment
Question by:dhavalshah
  • 2
6 Comments
 
LVL 10

Accepted Solution

by:
For-Soft earned 25 total points
ID: 11903021
You can try to check status of two BIOS variables 40h:15h and 40h:16h.
POST uses those variables. In case of cold boot post will change those variables. If you put some value in them POST should change them.

In theory those variables are unused after POST, but some BIOSes can use them in another way.
0
 
LVL 11

Assisted Solution

by:dimitry
dimitry earned 25 total points
ID: 11904057
Bios Area: 40h:0072h  Size: 2bytes
  1234H means Ctrl+Alt+Del reboot is in progress.  BIOS checks  this to avoid doing a "cold boot" with the time-consuming POST
  4321H means reset, preserving memory, 5678H, 9abcH, and abcdH (are internal PC Convertible codes)

However, as For-Soft mentioned, different BIOSes can behave realy different....
0
 
LVL 10

Expert Comment

by:For-Soft
ID: 11904617
The 40h:72h variable is to set what action BIOS should take when CTRL+ALT+DEL is used. It will not contain an information about how PC was boot.
With this variable we can tell BIOS what to do if CTRL+ALT+DEL is pressed.
0
 
LVL 9

Expert Comment

by:gtkfreak
ID: 11915921
INT 19h can be used to warm boot the system.
U can create dummy.com using debug.exe / debug.com and key in the bytes CD and 19
Then save your file
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

808 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