亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? cmos.lst

?? A Programmer s Reference to BIOS, DOS, and Third-Party Calls
?? LST
?? 第 1 頁 / 共 5 頁
字號(hào):
CMOS-Memory Map			Release 61		Last change 16jul00
Copyright (c) 1989-1999,2000 Ralf Brown

Originally compiled from multiple sources by Padgett Peterson
<padgett@tccslr.dnet.mmc.com>.

No guarantees of any kind.

Copyrights/Trademarks belong to whoever they may belong to.

Found: Algorithm used by IBM in calculating CRC checksums for PS/2
       (see bytes 32h-33h). Complex (recursive part is 12 lines of
       assembly) and not yet validated for every model.
--------!---Note-----------------------------
			Background

The CMOS (complementary metal oxide semiconductor) memory is actually 
a 64 or 128 byte battery-backed RAM memory module that is a part of the 
system clock chip. Some IBM PS/2 models have the capability for a
2k (2048 byte) CMOS ROM Extension.

First used with clock-calender cards for the IBM PC-XT, when the PC/AT
(Advanced Technology) was introduced in 1985, the Motorola MC146818 
became a part of the motherboard. Since the clock only uses fourteen of 
the RAM bytes, the rest are available for storing system configuration data.

Interestingly, the original IBM-PC/AT (Advanced Technology) standard for 
the region 10h-3Fh is nearly universal with one notable exception: The 
IBM PS/2 systems deviate considerably (Note: AMSTRAD 8086 machines were 
among the first to actively use the CMOS memory available and since they 
*predate* the AT, do not follow the AT standard).

This is just another example of how IBM created a standard, lost control 
of it, tried to replace it, failed and lost market share in the process. 

Originally, the IBM PC/AT only made use of a small portion of CMOS memory
and was defined in the IBM PC/AT Technical Reference Manual, specifically 
bytes 10h, 12h, 14h-18h, 2Eh-33h. The balance was left undefined but was 
quickly appropriated by various BIOS manufacturers for such user-selectable 
options such as wait states, clock speeds, initial boot drive selection, and 
password storage.

Later, as CMOS memory requirements grew, newer clock chips with 128
bytes of RAM came into use. However the fact remains that once the AT 
standard was established, only IBM has tried to change the definitions 
of that first description.

			Accessing the CMOS

The CMOS memory exists outside of the normal address space and cannot
contain directly executable code. It is reachable through IN and OUT
commands at port number 70h (112d) and 71h (113d). To read a CMOS byte,
an OUT to port 70h is executed with the address of the byte to be read and
an IN from port 71h will then retrieve the requested information. The 
following BASIC fragment will read 128 CMOS bytes and print them to the 
screen in 8 rows of 16 values.

The CMOS RAM space has an upper limit of 128 bytes because of the structure
of port 70: only bits 0-6 are used for addressing, bit 7 is used to 
enable (0) or disable (1) Non-Maskable Interrupts (NMI) and explains why
IBM uses 80h OR <address> to read/write data & follows with  a "throw-away"
call.

Note that if the CMOS only has 64 bytes available, addressing will 
generally wrap and addresses from 40h-7Fh will mirror 00h-3Fh. Output will 
be hexadecimal.

10 CLS
20 FOR i = 0 TO &H7F 
30 OUT &H70, i
40 PRINT USING "\   \"; HEX$(INP(&H71));
50 NEXT i
60 PRINT " " 

Note: where not otherwise noted, all data points are expressed as BYTES
      these are eight bit values and are read from MSB to LSB e.g.
      0000 0000	    0101 1010 binary would be written as 5Ah
      7654 3210	    where only some bits are used this is represented with
		    Xs e.g bits 5-3 would be shown as 00xx x000

Note: the entries for AMI WinBIOS also apply to AMIBIOS with core dates of 
	12/15/95 or later


Newer BIOSes have two checksums in the CMOS RAM, the second one covering
bytes 40h through 7Ch (or 7Eh).  Unfortunately, the second checksum is at
a different location in different BIOSes.  The following code from 
Agapov Vasiliy Pavlovich <arhfond@online.ru> (28 Aug 1996) is designed to
find the location of the second checksum byte on *any* BIOS (successfully
tested on various versions of AMI and AWARD BIOSes).

Agapov's instructions for use:
> Before starting this code make sure to load the 128 bytes of CMOS data
> to the buffer at CMOS_DATA and assume DS as data area segment register.

START:	CALL	WHAT_CMOS
	JC	NO_SECOND_CHS

; Checksum location is in word at  CHECKS_ADDRESS

NO_SECOND_CHS:

; There's no second checksum in this CMOS

END:

;******************************* SUBS **********************************

WHAT_CMOS:	MOV	SI,OFFSET CMOS_DATA+40H
		MOV	DI,OFFSET CMOS_DATA+7EH
		CALL	FIND_CMOS_CHS
		JNC	END_WCMOS
		MOV	SI,OFFSET CMOS_DATA+41H
		MOV	DI,OFFSET CMOS_DATA+7EH
		CALL	FIND_CMOS_CHS
END_WCMOS:	RET


FIND_CMOS_CHS:	XOR	DX,DX
		MOV	AX,DX
FIND_CMOS_C1:	LODSB			; GET BYTE
		ADD	DX,AX
		CMP	SI,OFFSET CMOS_DATA+7CH	; ADDRESS OF CHECKSUM ?
		JB	FIND_CMOS_C1
		XCHG	DH,DL
		CMP	DX,[SI]		; CHECKSUM FOUND ?
		JZ	END_FCMOS
		XCHG	DH,DL
		CMP	SI,DI
		JB	FIND_CMOS_C1
		STC
		RET
END_FCMOS:	MOV	[CHECKS_ADDRESS],SI	; SAVE CHECKSUM POSITION
		CLC
		RET

******************************** DATA *******************************

CHECKS_ADDRESS	DW	0

CMOS_DATA	DB   128 DUP (?)

--------!---Note-----------------------------
		Organization of CMOS Memory - Clock

00h-0Eh is defined by the clock hardware and all must follow it.  Other 
manufacturers generally follow the same format as specified for the
region 10h - 2Fh. Some also follow the IBM format for 30h-33h but not all 
(Zenith in particular is different).

The first fourteen bytes are dedicated to the MC146818 chip clock functions 
and consist of ten read/write data registers and four status registers, two 
of which are read/write and two of which are read only.

The format of the ten clock data registers (bytes 00h-09h) is:

----------R00--------------------------------
CMOS 00h - RTC - SECONDS
Desc:	(BCD 00-59, Hex 00-3B)
Note: Bit 7 is read only	
SeeAlso: CMOS 01h,CMOS 02h,CMOS 04h
----------R01--------------------------------
CMOS 01h - RTC - SECOND ALARM
Desc:	(BCD 00-59, Hex 00-3B; "don't care" if C0-FF)
SeeAlso: CMOS 00h,CMOS 03h,CMOS 05h,CMOS 7Dh
----------R02--------------------------------
CMOS 02h - RTC - MINUTES
Desc:	(BCD 00-59, Hex 00-3B)
SeeAlso: CMOS 00h,CMOS 03h,CMOS 04h
----------R03--------------------------------
CMOS 03h - RTC - MINUTE ALARM
Desc:	(BCD 00-59, Hex 00-3B; "don't care" if C0-FF))	
SeeAlso: CMOS 00h,CMOS 02h,CMOS 05h,CMOS 7Dh,CMOS 7Eh"AMD-645"
----------R04--------------------------------
CMOS 04h - RTC - HOURS
Desc:	(BCD 00-23, Hex 00-17 if 24 hr mode)
	(BCD 01-12, Hex 01-0C if 12 hr am)
	(BCD 81-92. Hex 81-8C if 12 hr pm)	      
SeeAlso: CMOS 00h,CMOS 02h,CMOS 05h
----------R05--------------------------------
CMOS 05h - RTC - HOUR ALARM
Desc:	(same as hours; "don't care" if C0-FF))	    
SeeAlso: CMOS 01h,CMOS 03h,CMOS 04h
----------R06--------------------------------
CMOS 06h - RTC - DAY OF WEEK
Desc:	(01-07 Sunday=1)    
SeeAlso: CMOS 07h,CMOS 08h,CMOS 09h
----------R07--------------------------------
CMOS 07h - RTC - DATE OF MONTH
Desc:	(BCD 01-31, Hex 01-1F)
SeeAlso: CMOS 06h,CMOS 08h,CMOS 09h
----------R08--------------------------------
CMOS 08h - RTC - MONTH
Desc:	(BCD 01-12, Hex 01-0C)	  
SeeAlso: CMOS 06h,CMOS 07h,CMOS 09h
----------R09--------------------------------
CMOS 09h - RTC - YEAR
Desc:	(BCD 00-99, Hex 00-63)	  
Notes:	BCD/Hex selection depends on Bit 2 of register B (0Bh)
	12/24 Hr selection depends on Bit 1 of register B (0Bh)
	Alarm will trigger when contents of all three Alarm byte registers
	  match their companions.
SeeAlso: CMOS 06h,CMOS 07h,CMOS 08h

The following is the on-chip status register information. 

----------R0A--------------------------------
CMOS 0Ah - RTC - STATUS REGISTER A (read/write) (usu 26h)

Bitfields for Real-Time Clock status register A:
Bit(s)	Description	(Table C0001)
 7	=1 time update cycle in progress, data ouputs undefined 
	(bit 7 is read only)
 6-4	22 stage divider
	010 = 32768 Hz time base (default)
 3-0	rate selection bits for interrupt
	0000 none
	0011 122 microseconds (minimum)
	1111 500 milliseconds	
	0110 976.562 microseconds (default 1024 Hz)
Notes:	some operating systems seem to change the CMOS clock rate to slower
	  values for unknown purposes. Since on older ATs the clock rate does
	  not get restored after a cold boot, this may slow down disk
	  operations for example under PC DOS which depends on the clock rate.
	If IBMBIO.COM finds a model byte FCh (sub-models 00h, 01h, 02h, 03h,
	  or 06h) during init, it resets the clock rate to the default value
	  (00100110b).
SeeAlso: #C0002,#C0003,#C0004
----------R0B--------------------------------
CMOS 0Bh - RTC - STATUS REGISTER B (read/write) 

Bitfields for Real-Time Clock status register B:
Bit(s)	Description	(Table C0002)
 7	enable clock setting by freezing updates
 6	enable periodic interrupt
 5	enable alarm interrupt
 4	enable update-ended interrupt
 3	enable square wave output
 2	Data Mode - 0: BCD, 1: Binary
 1	24/12 hour selection - 1 enables 24 hour mode
 0	Daylight Savings Enable
	=1 enables automatic switching to/from DST in April and October
Notes:	some operating systems seem to change the CMOS clock rate to slower
	  values for unknown purposes. Since on older ATs the clock rate does
	  not get restored after a cold boot, this may slow down disk
	  operations for example under PC DOS which depends on the clock rate.
	If IBMBIO.COM finds a model byte FCh (sub-models 00h, 01h, 02h, 03h,
	  or 06h) during init, it resets the clock rate to the default value
	  (00100110b).
SeeAlso: #C0001,#C0003,#C0004
----------R0C--------------------------------
CMOS 0Ch - RTC - STATUS REGISTER C (Read only)

Bitfields for Real-Time Clock status register C:
Bit(s)	Description	(Table C0003)
 7	Interrupt request flag
	=1 when any or all of bits 6-4 are 1 and appropriate enables
	  (Register B) are set to 1. Generates IRQ 8 when triggered.
 6	Periodic Interrupt flag
 5	Alarm Interrupt flag 
 4	Update-Ended Interrupt Flag
 3-0	unused
SeeAlso: #C0001,#C0002,#C0004
----------R0D--------------------------------
CMOS 0Dh - RTC - STATUS REGISTER D (read only)

Bitfields for Real-Time Clock status register D:
Bit(s)	Description	(Table C0004)
 7	Valid RAM - 1 indicates battery power good, 0 if dead or disconnected.
 6-0	unused (0)
--------!---Note-----------------------------
		Organization of CMOS Memory - non-Clock

The last two bytes in the first hexadecimal decade (hexade ?) were not 
specified in the PC/AT but may have the following use on some systems:
----------R0E--------------------------------
CMOS 0Eh  - IBM PS/2 - DIAGNOSTIC STATUS BYTE 

Bitfields for IBM PS/2 diagnostic status byte:
Bit(s)	Description	(Table C0005)
 7	indicates clock has lost power
 6	incorrect checksum
 5	equipment configuration is incorrect
	  (power-on check requires that at least one floppy be installed)
 4	error in memory size
 3	controller or disk drive failed initialization
 2	time is invalid
 1	installed adaptors do not match configuration
 0	time-out while reading adaptor ID
Note:	Compaq machines with dual hard disk controllers support at least bits
	  7 and 6
----------R0E13------------------------------
CMOS 0Eh-13h - AMSTRAD - TIME AND DATE MACHINE LAST USED
----------R0F--------------------------------
CMOS 0Fh - IBM - RESET CODE (IBM PS/2 "Shutdown Status Byte")

(Table C0006)
Values for Reset Code / Shutdown Status Byte:
 00h-03h perform power-on reset
   00h	software reset or unexpected reset
   01h	reset after memory size check in real/virtual mode
	(or: chip set initialization for real mode reentry)
   02h	reset after successful memory test in real/virtual mode
   03h	reset after failed memory test in real/virtual mode
 04h	INT 19h reboot
 05h	flush keyboard (issue EOI) and jump via 40h:0067h
 06h	reset (after successful test in virtual mode)
	(or: jump via 40h:0067h without EOI)
 07h	reset (after failed test in virtual mode)
 08h	used by POST during protected-mode RAM test (return to POST)
 09h	used for INT 15/87h (block move) support
 0Ah	resume execution by jump via 40h:0067h
 0Bh	resume execution via IRET via 40h:0067h
 0Ch	resume execution via RETF via 40h:0067h
 0Dh-FFh perform power-on reset
--------!---Note-----------------------------

The second group of values extends from address 10h to 2Dh. The word at
2Eh-2Fh is a byte-wise summation of the values in these bytes. Most BIOSes
will generate a CMOS Checksum error if this value is invalid however many 
programs ignore the checksum and report the apparent value. The current
version of MSD reports my XT as having 20+ MB of extended memory. 

Where a definiton appears universal, no identification is made. Where
the definition is thought to be specific to a manufacturer/model (AMI, 
AMSTRAD, IBM AT, IBM PS/2) the identification is enclosed in parens. The
AMSTAD definitions appear to relate to 8088/8086 (PC and PC/XT class)
mchines only. AT class machines appear to adhere to IBM PC/AT fornat.

----------R10--------------------------------
CMOS 10h - IBM - FLOPPY DRIVE TYPE
Note:	a PC having a 5 1/4 1.2 Mb A: drive and a 1.44 Mb B: drive will
	  have a value of 24h in byte 10h. With a single 1.44 drive: 40h.

Bitfields for floppy drives A/B types:
Bit(s)	Description	(Table C0007)
 7-4	first floppy disk drive type (see #C0008)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
青青草国产精品亚洲专区无| 精品国产乱码久久久久久久| 日韩亚洲欧美高清| 男女性色大片免费观看一区二区| 在线播放国产精品二区一二区四区| 亚洲一区二区影院| 色综合天天视频在线观看 | 亚洲欧美激情插 | 国产老女人精品毛片久久| 久久欧美一区二区| 日韩成人精品在线| 亚洲柠檬福利资源导航| 欧美日韩五月天| 免费日韩伦理电影| 久久久久国色av免费看影院| 国产v综合v亚洲欧| 中文字幕中文在线不卡住| 欧美性猛片xxxx免费看久爱| 青青草原综合久久大伊人精品| 久久综合视频网| 97精品电影院| 亚洲1区2区3区视频| 亚洲蜜臀av乱码久久精品| 欧美日韩一区精品| 久久97超碰色| 亚洲欧洲日产国码二区| 日韩一区二区在线观看视频播放| 国产激情一区二区三区桃花岛亚洲| 1000部国产精品成人观看| 色婷婷亚洲婷婷| 91免费观看视频| 久久精品国产亚洲aⅴ| 亚洲欧洲性图库| 日韩一区二区高清| 不卡的电影网站| caoporn国产精品| 麻豆国产精品视频| 亚洲欧美一区二区久久| 日韩欧美一区电影| 国产一区二区成人久久免费影院| 国模少妇一区二区三区| 亚洲精选视频免费看| 欧美大白屁股肥臀xxxxxx| 91天堂素人约啪| 韩国成人福利片在线播放| 国产在线精品一区二区不卡了| 亚洲国产一区二区视频| 国产精品美女久久久久久久久| 9191久久久久久久久久久| 欧美午夜片在线观看| 99久久免费视频.com| 自拍偷拍亚洲欧美日韩| 26uuu色噜噜精品一区二区| 欧美日韩一区 二区 三区 久久精品| 大陆成人av片| 日本中文字幕一区二区视频| 奇米综合一区二区三区精品视频| 综合在线观看色| 国产色一区二区| 日韩精品最新网址| 色婷婷久久综合| 欧美一级搡bbbb搡bbbb| 欧美系列日韩一区| 欧美在线不卡一区| 91在线无精精品入口| 卡一卡二国产精品| 日本成人中文字幕在线视频 | 亚洲一区二区三区四区在线免费观看 | 欧美午夜精品一区二区三区| 不卡免费追剧大全电视剧网站| 国产一区二区免费视频| 久久精品国产99久久6| 免费观看在线色综合| 一区在线播放视频| 亚洲欧美在线观看| 国产精品入口麻豆原神| 国产日韩欧美a| 久久一区二区三区国产精品| 欧美日韩性生活| 精品不卡在线视频| 精品国产不卡一区二区三区| 2023国产精品自拍| 精品国产乱码久久久久久闺蜜| 日韩精品资源二区在线| 884aa四虎影成人精品一区| 欧美日韩aaaaaa| 欧美精选在线播放| 欧美另类一区二区三区| 欧美日韩成人一区二区| 国产精品夫妻自拍| 亚洲免费伊人电影| 伊人性伊人情综合网| 一区二区三区四区在线免费观看| 欧美xxxx老人做受| 亚洲成a人片在线观看中文| 秋霞午夜av一区二区三区| 爽好多水快深点欧美视频| 久久久久久久久久久久久女国产乱| 久久精品免视看| 中文字幕亚洲在| 亚洲综合另类小说| 蜜臀av性久久久久av蜜臀妖精 | 18成人在线观看| 黄色成人免费在线| 从欧美一区二区三区| 日本精品一区二区三区高清| 欧美日韩精品系列| 国产午夜精品久久| 一区二区三区四区蜜桃| 日韩精品成人一区二区三区| 精品一区二区三区在线播放视频| 日韩高清不卡一区二区三区| 色婷婷综合久久久久中文一区二区| 欧美电影一区二区| 久久午夜电影网| 洋洋成人永久网站入口| 成人黄色a**站在线观看| 欧美亚洲动漫另类| 精品福利二区三区| 亚洲视频一二区| 亚洲成人激情自拍| 欧美日韩性生活| 中文字幕av一区 二区| 午夜久久电影网| 成人av一区二区三区| 91高清在线观看| 欧美色老头old∨ideo| 久久一二三国产| 亚洲国产成人av好男人在线观看| 一区二区三区丝袜| 91美女片黄在线| 精品国产精品网麻豆系列| 亚洲精品久久嫩草网站秘色| 美女视频免费一区| 日韩精品一区二区三区swag| 中文字幕一区二区三区不卡在线| 午夜婷婷国产麻豆精品| 成人综合婷婷国产精品久久免费| 日本韩国一区二区三区| 亚洲精品日产精品乱码不卡| 国产做a爰片久久毛片| 欧美日韩综合在线免费观看| 欧美国产日本韩| 五月综合激情网| 成av人片一区二区| 亚洲精品一区二区三区在线观看 | 日韩一级成人av| 91一区二区在线观看| 亚洲黄网站在线观看| 99国产精品久| 久久婷婷国产综合精品青草| 亚洲激情图片小说视频| 欧美日韩在线亚洲一区蜜芽| 国产精品白丝在线| 国产真实乱偷精品视频免| 在线观看91精品国产麻豆| 中文字幕不卡的av| 粉嫩av一区二区三区| 久久久国产精华| 国产原创一区二区三区| ㊣最新国产の精品bt伙计久久| 国产精品一级黄| 精品精品欲导航| 日本一道高清亚洲日美韩| 精品日本一线二线三线不卡| 视频在线在亚洲| 欧美精选一区二区| 日韩va亚洲va欧美va久久| 欧美主播一区二区三区美女| 亚洲欧美另类久久久精品| 国产精品一区二区三区四区| www国产精品av| 欧美视频三区在线播放| 亚洲国产日日夜夜| 欧美性猛交一区二区三区精品| 欧美sm美女调教| 色综合天天综合网天天看片| 亚洲国产精品高清| 国产精品99久久久久久宅男| 色先锋久久av资源部| 麻豆视频一区二区| 精品国产一区二区三区久久影院| 蜜桃视频在线观看一区| 成人h精品动漫一区二区三区| 视频在线观看一区二区三区| 5月丁香婷婷综合| 免费一级片91| 欧美日韩激情一区| 成人高清免费观看| 国产精品久久久久影院色老大| 成人黄色小视频| 国产精品第五页| 欧美精品一区二区三区一线天视频| 久久99久久99| 久久亚洲影视婷婷| 99久久99久久精品免费看蜜桃| 一区二区三区四区激情 | 欧美国产精品一区二区三区| 国产乱子轮精品视频| 国产精品久久久久久户外露出 |