[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
cmosGet()
Gets a CMOS position
Syntax:
cmosGet( nAddress ) -> nValue
nAddress : The relative address of CMOS. The address
table is given below.
Description:
Returns the value of a memory cell in CMOS. This can be useful
to determine various aspects about the system's setup. Remember that
the input and output parameters must be specified in decimal code,
even though the table below is given in hexadecimal.
00h Seconds
01h Alarm seconds
02h Minutes
03h Alarm minutes
04h Hours
05h Alarm Hours
06h Day of week
07h Day of month
08h Month
09h Year
0Ah Status register A
0Bh Status register B
0Ch Status register C
0Dh Status register D
0Eh Diagnostic Byte
OFh Shutdown status byte
10h Diskette drive type byte - disk A and B
11h Reserved
12h Fixed disk type byte - disk C and D
13h Reserved
14h Equipment Byte
15h Low base memory byte
16h High base memory byte
17h Low expansion memory byte
18h High expansion memory byte
19-2Dh Reserved
2Eh Checksum byte 1
2Fh Checksum byte 2
30h Low expansion memory byte
31h High expansion memory byte
32h Date century byte
33h Flags Information byte
34-3Fh Reserved
Return:
A numeric value with the CMOS position.
Example:
? cmosGet( 6 ) // returns the day of the week
See Also:
cmosSet()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson