Solved

Warm/Cold Reset

Posted on 2004-08-26
6
705 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

919 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

19 Experts available now in Live!

Get 1:1 Help Now