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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? readcmos.asm

?? 用vc寫的外殼 通過調用asm生成的程序來讀出或寫入cmos。解釋CMOS每一字節含義.
?? ASM
字號:
;==============================================================


stack	segment stack		; keep MS link happy by providing null stack
stack	ends

CODE	SEGMENT PARA		; start off in code.

;==============================================================

data	segment byte		; provide a separate DATA segment
				; actually all come after the code
;==============================================================
;  V A R I A B L E S
BannerMsg	DB 'CMOSSAVE',13d,10d
		DB 13,10
		db '$'

UsageMsg	DB 'Error',7,13,10
		DB 'Insert a formatted diskette.',13,10
		DB 'then try:',13,10
		DB 'CMOSSave A:\CMOS.Sav',13,10
		DB 'or if want to save on hard disk try:',13,10
		DB 'CMOSSave C:\CMOS.Sav',13,10
		DB 'Read CMOS.TXT to find how to use it properly.',13,10
		db '$'

FileTroubleMsg	DB 'Error',7,13,10
		DB 'Cannot create the disk file.',13,10
		db '$'

WorkedMsg	DB 'CMOS successfully saved',13,10
		db '$'



FilenamePtr	DW	0
			; pointer to filename in command line

CMOSSize	DB	0
			; size of cmos in bytes

CMOSBuff	db 0	; dynamic buffer will grow to 128
			; it hangs out past the end of the program

data		ends

com	group	code,data	; force data segment to go at the end

	ASSUME	CS:com,DS:com,ES:com,SS:com
				; seg regs cover everything
	ORG	100H		; in Code segment

;==========================

Main	proc	far

;	M A I N L I N E   R O U T I N E
Start:
	lea	dx,BannerMsg	; display the banner
	Call	Say
	Call	Parse		; get filename from command line

	
	call	GetCMOS 	; fetch CMOS to buffer
	call	WriteCMOS	; write CMOS contents to file

	lea	dx,WorkedMsg	; crow about success
	Call	Say
Done:
	mov	ax,4c00h
	int	21h		;normal termination

Main	EndP

;===============================================================

Trouble proc	near

FileTrouble:
	Lea	dx,FileTroubleMsg	; display file trouble
	Call	Say
	Jmp	Abort

abort:
				; error exit
	mov	ax, 4c04h	; ERRORLEVEL = 4
	int	21h		; DIE

Trouble endp

;===============================================================

MLeading	PROC	Near

;	Remove leading blanks
;	on entry BX is addr of string, CX its length
;	trims off any leading blanks, leaving result in BX CX
;	length may also be 0 or 1, but not -ve
;	If the entire string is blank the result is the null string
	mov	di,bx
	mov	al,20H		; AL = blank  -- the search char
	jcxz	mleading2	; jump if null string
	repe	scasb		; scan ES:DI forwards till hit non blank
				; DI points just after it (wrap ok)
				; cx IS ONE TOO SMALL, OR 0 IF NONE FOUND
	je	mleading1	; jump if entire string was blank
	inc	cx		; CX is length of remainder of string
mleading1:
	dec	di		; DI points to non-blank
mleading2:
	mov	bx,di		; put address back
	ret

MLeading	ENDP

;========================================

MTrailing	PROC	Near

;	Remove trailing blanks.
;	on entry BX is addr of string, CX its length
;	trims off any trailing blanks, leaving result in BX CX
;	length may also be 0 or 1, but not -ve
;	If the entire string is blank the result is the null string
	mov	di,bx
	add	di,cx		; calc addr last char in string
	dec	di
	mov	al,20H		; AL = blank  -- the search char
	jcxz	mtrailing1	; jump if null string
	std
	repe	scasb		; scan ES:DI backwards till hit non blank
				; DI points just ahead of it (wrap ok)
				; CX is one too small, or 0 if none found
	cld
	je	mtrailing1	; jump if whole string was blank
	inc	cx
mtrailing1:
	ret

MTrailing	ENDP

;========================================

Parse		PROC	NEAR
;	Parse the command line to remove lead/trail blanks from
;	the single drive parameter and terminate it by 2 nulls.
;	sample inputs
;	CMOSRest A:\CMOS.SAV
;	CMOSRest	B:\MySub\MyCMOS.SAV
;
;	When Done DS:BX points to start of string.
;	String will be terminated by 2 nulls
;	CX counts bytes in string exclusive of nulls
				; counted string at HEX 80 PSP
				; contains command line.
				; Preceeded by unwanted spaces.
				; possibly followed by unwanted spaces.
				; currently missing a trailing null.
	xor	ch,ch
	mov	cl,ds:80H
	mov	bx,81H
	call	Mleading	; get rid of leading blanks
	call	MTrailing	; get rid of trailing blanks
	mov	di,bx		; calc addr of byte just past end
	add	di,cx
	mov	word ptr [di],0 ; plop in pair of nulls after string
	mov	FileNamePtr,bx	; remember where filename was
	jcxz	SyntaxTrouble	; missing parm.
	ret

SyntaxTrouble:
	lea	dx,UsageMsg		; display usage message
	Call	Say
	Jmp	Abort

Parse		ENDP

;======================================

Say	Proc

;	on entry DX points to a string to display
	push	ax
	MOV	AH,9
	Int	21h
	pop	ax
	ret

Say	EndP

;======================================



GetCMOS Proc	Near

;	Get 128 byte contents of CMOS into a buffer.

	mov	cx,128		; count of times through loop
	lea	bx,CMOSBuff	; where to put the contents
	sub	al,al		; start offset in CMOS
GetLoop:
	Call	PeekCmos	; al=offset ah=contents
	mov	byte ptr[bx],ah
	inc	al
	inc	bx
	loop	GetLoop
	ret

GetCMOS EndP



;===============================================================


;	Add to this list if you need more volatile bytes.
;	Remember the trailing h.

VolatileList	db	0ch,032h

VolatileCount	equ	$-VolatileList


Volatile	Proc	near

;	Is cmos offset in AL volatile?	If so set carry.
;	These bytes will be undisturbed.
;	Preserves all registers.
;	00..09, 0C and 32 are volatile, rest are not.
;	0A 0B 0D 0E 0F used to be considered volatile, now are not.
;	if cmos is small, all bytes past end are considered volatile

	cmp	al,CMOSSize		; bytes past end are volatile
	jae	IsVolatile
	cmp	al,09h
	jbe	IsVolatile		; early bytes are for timing
	push	cx
	push	di
	mov	cx,VolatileCount
	lea	di,VolatileList
	repne	scasb			; search till find a match
	pop	di
	pop	cx
	je	IsVolatile

IsNotVolatile:
	clc				; clear carry
	ret

IsVolatile:
	stc
	ret

Volatile	EndP


;===============================================================


CalcCMOSSize	Proc	near

;	Is CMOS 64 or 128 bytes long?
;	It is 64 if bytes at 10..2F match those at 50..6F.
;	Otherwise it is 128 bytes.
;	Preserves all registers.

	push	si
	push	di
	push	cx
	lea	si,CMOSBuff+10h
	lea	di,CMOSBuff+50h
	mov	cx,02fh+1-10h
	repe	cmpsb
	je	IsCMOS64

IsCMOS128:
	mov	CMOSSize,128	; differ, must be a big CMOS
	jmp	CalcCMOSSizeDone

IsCMOS64:
	mov	CMOSSize,128	; all same, small CMOS

CalcCMOSSizeDone:
	pop	cx
	pop	di
	pop	si

	ret

CalcCMOSSize	EndP

;===============================================================


ReadCMOS	Proc	Near

;	Open a file read the CMOS into a buffer

	mov	dx,FileNamePtr	; DS:DX point to file
	xor	al,al		; AL=0 is attribute read/only
	mov	ah,03Dh 	; DOS open function
	int	21h
	jc	FileTrouble
	mov	bx,ax		; save handle
	mov	cx,128		; read 128 bytes
	lea	dx,CMOSBuff	; buffer address
	mov	ah,3fH		; DOS read
	int	21h
	jc	FileTrouble
	cmp	ax,128
	jne	FileTrouble
	mov	ah,3eh		; DOS close
	int	21h
	jc	FileTrouble
	ret

ReadCMOS	EndP


;===============================================================


WriteCMOS	Proc	Near

;	Create a file write CMOS to it

	mov	dx,FileNamePtr	; DS:DX point to file
	xor	cx,cx		; CX=0 is attribute
	mov	ah,03ch 	; DOS create function
	int	21h
	jc	FileTrouble
	mov	bx,ax		; SAVE HANDLE
	MOV	CX,128		; write 128 bytes
	lea	dx,CMOSBuff	; buffer address
	mov	ah,40h		; DOS write
	int	21h
	jc	FileTrouble
	cmp	ax,128
	jne	FileTrouble
	mov	ah,3eh		; DOS close
	int	21h
	jc	FileTrouble
	ret

WriteCMOS	EndP
;===============================================================


PeekCMOS	proc	near

;	Reads one byte from cmos.
;	on entry al has offset desired
;	on exit ah has the contents of that byte.
;	preserves all registers

;	See page 5-81 IBM AT Tech ref BIOS listing for how to read CMOS
;	We always enable the NMI with bit 7 on.

	push	bx
	push	ax
	cli				; disable interrupts
	or	al,80h			; disable NMI
	out	70h,al			; output the byte address to CMOS
	jmp	$+2			; delay, safer than nop
	in	al,71h			; read the CMOS byte
	jmp	$+2			; delay, safer than nop
	mov	bl,al
					; re-enable the NMI
	mov	al,0dh			; point to battery status register
	out	70h,al			; leave pointing at a safe r/o register
	sti				; restore interrupts
	pop	ax
	mov	ah,bl
	pop	bx
	ret

PeekCMOS	EndP




;===============================================================

CODE	ends			; end of code segment
	end	Start

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美三级午夜理伦三级中视频| 中文字幕av资源一区| 2022国产精品视频| 日本高清不卡视频| 美腿丝袜亚洲三区| 欧美三级蜜桃2在线观看| 欧美a级理论片| 在线亚洲+欧美+日本专区| 东方aⅴ免费观看久久av| 在线视频中文字幕一区二区| 亚州成人在线电影| 日韩欧美成人午夜| 国产91在线看| 一区二区三区欧美激情| 欧美日高清视频| 国产一区 二区| 国产精品高潮呻吟久久| 欧美日韩一区高清| 国产老女人精品毛片久久| 国产精品初高中害羞小美女文 | 国产欧美一区视频| 97se亚洲国产综合自在线| 香蕉久久夜色精品国产使用方法 | 久久精品99国产精品| 久久久久久久综合狠狠综合| fc2成人免费人成在线观看播放| 一区二区三区电影在线播| 欧美成人在线直播| 91啦中文在线观看| 免费高清成人在线| 中文字幕一区视频| 日韩天堂在线观看| av在线播放不卡| 全部av―极品视觉盛宴亚洲| 国产精品久久久久久一区二区三区| 欧美日韩五月天| 丁香婷婷综合色啪| 日韩av中文字幕一区二区三区| 久久精品无码一区二区三区| 欧美亚洲日本一区| 成人小视频在线观看| 视频一区二区三区在线| |精品福利一区二区三区| 欧美日韩国产成人在线91| 国产伦精品一区二区三区免费| ...中文天堂在线一区| 欧美嫩在线观看| 成人一级片网址| 香蕉av福利精品导航| 国产目拍亚洲精品99久久精品| 日本大香伊一区二区三区| 国产一区免费电影| 国产传媒欧美日韩成人| 久久综合色之久久综合| 在线观看91av| 欧美在线观看你懂的| 99久久精品免费精品国产| 国产一区二区不卡| 另类综合日韩欧美亚洲| 亚洲www啪成人一区二区麻豆 | 亚洲男人的天堂一区二区| 26uuu久久天堂性欧美| 日韩亚洲欧美在线观看| 欧美人牲a欧美精品| 欧美在线观看你懂的| 色88888久久久久久影院野外| 岛国av在线一区| 国产乱人伦偷精品视频不卡 | 国产精品 欧美精品| 麻豆久久久久久久| 天天综合网天天综合色| 亚洲综合一区二区精品导航| 亚洲欧美激情插| 日韩毛片在线免费观看| 国产精品国产自产拍高清av | 99视频精品免费视频| 丁香婷婷深情五月亚洲| 粉嫩aⅴ一区二区三区四区| 国产91精品欧美| 国产99久久久精品| 成人国产视频在线观看| av在线综合网| 91亚洲永久精品| 91国偷自产一区二区三区成为亚洲经典| 91影院在线免费观看| 色悠悠久久综合| 欧美日本韩国一区二区三区视频| 欧美三级日韩三级| 日韩一级大片在线| 久久蜜臀中文字幕| 国产精品国产三级国产普通话99| 亚洲欧洲一区二区三区| 亚洲激情男女视频| 秋霞影院一区二区| 国产精品综合一区二区三区| 成人av在线网| 欧美色窝79yyyycom| 欧美高清激情brazzers| 精品国产一二三区| 国产精品成人在线观看| 亚洲午夜免费视频| 美国毛片一区二区三区| 国产 日韩 欧美大片| 日本丶国产丶欧美色综合| 欧美一卡2卡三卡4卡5免费| 久久亚洲综合av| 亚洲色图欧洲色图婷婷| 全国精品久久少妇| 国产成人av资源| 在线视频你懂得一区| 欧美欧美欧美欧美| 国产视频不卡一区| 亚洲一二三四在线观看| 久久av老司机精品网站导航| 国产麻豆日韩欧美久久| 99精品视频一区二区三区| 色哟哟国产精品| 欧美美女bb生活片| 精品久久一区二区三区| 91精品国产综合久久久久久| 精品捆绑美女sm三区| 国产精品嫩草影院av蜜臀| 亚洲激情第一区| 毛片基地黄久久久久久天堂| a级精品国产片在线观看| 日韩欧美美女一区二区三区| 亚洲色图色小说| 国产精品中文字幕日韩精品| 在线观看日韩一区| 欧美国产欧美综合| 奇米888四色在线精品| 91玉足脚交白嫩脚丫在线播放| 精品国产乱码91久久久久久网站| 亚洲精品欧美激情| 国产成人午夜视频| 91精品国产麻豆国产自产在线 | 一区二区三区在线视频观看58| 久久国产视频网| 欧美午夜免费电影| 亚洲日本在线a| 国产大陆a不卡| 精品人在线二区三区| 丝袜a∨在线一区二区三区不卡| 99久久免费精品| 国产亚洲欧美色| 九九九久久久精品| 欧美精品1区2区| 五月婷婷欧美视频| 色拍拍在线精品视频8848| 国产女人水真多18毛片18精品视频| 美女视频免费一区| 91麻豆精品国产自产在线观看一区 | 精品亚洲国产成人av制服丝袜| 欧美日本在线看| 亚洲一区二区三区四区的| 99re这里只有精品首页| 国产精品欧美极品| a美女胸又www黄视频久久| 国产欧美精品在线观看| 国产精品小仙女| 久久精品一区蜜桃臀影院| 国产一区二区调教| 久久综合九色综合97婷婷| 国产一区二区在线电影| 久久精品一区二区| 国产成人综合亚洲91猫咪| 精品国产免费视频| 国产成人亚洲综合色影视| 国产亚洲人成网站| 春色校园综合激情亚洲| 国产精品污www在线观看| 成人开心网精品视频| 中文字幕久久午夜不卡| 99re视频这里只有精品| 亚洲免费色视频| 欧美日韩一区小说| 日本大胆欧美人术艺术动态| 欧美一级久久久| 国产麻豆成人精品| 综合中文字幕亚洲| 欧美三级电影精品| 免费人成网站在线观看欧美高清| 日韩欧美精品在线| 成人一二三区视频| 亚洲欧美日韩国产另类专区| 欧美性三三影院| 免费观看在线综合色| 久久色.com| 色先锋资源久久综合| 亚洲成年人影院| 亚洲精品一线二线三线无人区| 大陆成人av片| 五月天久久比比资源色| 欧美精品一区二区三区在线播放| 国产成人精品亚洲日本在线桃色 | 久久综合色一综合色88| 成人av网站在线| 亚洲国产精品久久人人爱蜜臀 | 欧美精品一区二区精品网| 国产91富婆露脸刺激对白|