The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Neo_4583 on March 06, 2005, 12:21:28 PM

Title: how can I get data from the bios?
Post by: Neo_4583 on March 06, 2005, 12:21:28 PM
how can I get data from the bios?
PLZ help
Title: Re: how can I get data from the bios?
Post by: MichaelW on March 06, 2005, 04:16:48 PM
What data?
Title: Re: how can I get data from the bios?
Post by: sluggy on March 08, 2005, 03:19:31 AM
And why?
Title: Re: how can I get data from the bios?
Post by: Tedd on March 08, 2005, 11:17:16 AM
Is this the right place for turkey?
I want turkey.
Title: Re: how can I get data from the bios?
Post by: pbrennick on March 08, 2005, 05:32:40 PM
Plenty of turkeys here.  :wink

Paul
Title: Re: how can I get data from the bios?
Post by: Tedd on March 09, 2005, 01:26:34 PM
Neo, you have to let us know what data you want so we can help you. There isn't a generic getBiosData function.
Title: Re: how can I get data from the bios?
Post by: Danesh on March 12, 2005, 05:34:25 PM
However it is almost unusual to read or write data directly to BIOS, but I think it can be done by reading (with  IN instruction) and writing (with OUT instruction) from/to a specified port.

Title: Re: how can I get data from the bios?
Post by: pbrennick on March 12, 2005, 06:09:39 PM
Of course, that method will not work with newer versions of Windows like XP, for example.  It will not allow you to access the ports directly (how many times must we say this?).

Paul
Title: Re: how can I get data from the bios?
Post by: mariø on March 15, 2005, 07:21:56 PM
I think you can do this:


theBiosFile db "BiosSpecification.txt"
Invoke CreateFile, Addr theBiosFile, GENERIC_READ, NULL, NULL, OPEN_EXISTING, FILE_ATTRIBUTE
Invoke ReadFile, eax, Addr mmm, ecx, NULL, NULL
.


:toothy sorry... I have drink too much beers :eek
Title: Re: how can I get data from the bios?
Post by: Tedd on March 16, 2005, 12:08:24 PM
Funny, Mario :lol