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

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

?? smbsub.asm

?? AMI 主板的BIOS源碼。
?? ASM
字號:
	page	,132
	title	SUBROUTINES USED IN DMI
;---------------------------------------------------------------;
; NOTE:	Do not destroy EBP,FS,GS,SS,DS,ES unless otherwise specified.
;---------------------------------------------------------------;
;*****************************************************************;
;*****************************************************************;
;**								**;
;**	(C)Copyright 1985-1997, American Megatrends Inc.	**;
;**								**;
;**			All Rights Reserved.			**;
;**								**;
;**		6145-F, Northbelt Parkway, Norcross,		**;
;**								**;
;**		Georgia - 30071, USA. Phone-(770)-246-8600.	**;
;**								**;
;*****************************************************************;
;*****************************************************************;
;---------------------------------------;
	include	smb.cfg
	include	smb.equ
	include	smbstruc.def
;---------------------------------------;
	extrn	smbios_table_entry_point_struc:byte
	extrn	smbios_internal_data:byte
;---------------------------------------;
cgroup	group	_text
_text	segment	word	public	'CODE'
	assume	cs:cgroup
.486p
;---------------------------------------;
	public	_SMBSUB_STARTS
_SMBSUB_STARTS	label	byte		; marks start of module
;-----------------------------------------------------------------------;
;				GetStrucLen				;
; This routine returns the length of the given structure.		;
; input :								;
;	DS:SI	ptr to start of the given structure			;
; output:								;
;	CX	length of structure in bytes				;
; register destroyed : CX						;
;-----------------------------------------------------------------------;
	public	GetStrucLen
GetStrucLen		proc	near
	push	si
	push	ax
	movzx	cx,ds:byte ptr (DMIHDR_STRUC ptr [si]).bLength; CX = length of formatted part
;  calculate the length of variable portion
;  search for two NULLs except for Struc type 5 and 15
	mov	al,ds:byte ptr (DMIHDR_STRUC ptr [si]).bType; AL = structure type
	push	si
	add	si,cx				; DS:SI = ptr to end of formatted part
						; (CORE0072-)>
;;      cmp     al,05                           ; struc type 5 ?
;;      jz      short gsl_01                    ; yes
;;      cmp     al,15                           ; struc type 15 ?
;;      jz      short gsl_01                    ; yes
;;;  struc type is neither 05 nor 15
						; <(CORE0072-)
gsl_00:
	lodsb					; get next byte
	cmp	al,00h				; NULL ?
	jnz	short gsl_00			; yes
	lodsb					; check for two consecutive NULLs
	cmp	al,00h				; NULL ?
	jnz	short gsl_00
gsl_01:
;  CS:SI = ptr to end of structure + 1
	pop	cx				; CS:CX = ptr to start of structure
	sub	si,cx				; SI = length of structure
	mov	cx,si				; CX = length of structure
	pop	ax
	pop	si
	ret
GetStrucLen		endp
;-----------------------------------------------------------------------;
;			GET_SMBIOS_STRUCTURES_DETAILS			;
; This routine returns the SMBIOS structure details.			;
; input :								;
;	DS:SI	ptr to start of the structures				;
;	DS:DI	ptr to end of the structures				;
; output:								;
;	AX	size of the largest structure				;
;	CX	total #of structures present				;
;  register destroyed : AX CX						;
;-----------------------------------------------------------------------;
	public	get_smbios_structures_details
get_smbios_structures_details	proc	near
	push	si
	xor	ax,ax				; structure length of largest structure
	xor	cx,cx				; #of structures
fsd_02:
	push	ax
	mov	al,ds:byte ptr (DMIHDR_STRUC ptr [si]).bType; AL = structure type
	cmp	al,MAXM_SMBIOS_STRUCTURE_TYPE	; valid structure type ?
	pop	ax
	ja	short fsd_00			; invalid structure type
	push	cx
	call	GetStrucLen			; CX = curr structure length
	cmp	ax,cx				; find the larger of AX & CX
	jae	short fsd_01			; AX is larger
	mov	ax,cx				; CX is larger, put it in AX
fsd_01:
	add	si,cx				; DS:SI = ptr to next structure
	pop	cx
	inc	cx				; update #of structures
	cmp	si,di				; end of structure reached ?
	jb	short fsd_02			; no, so continue
fsd_00:
	pop	si
	ret
get_smbios_structures_details	endp
;-----------------------------------------------------------------------;
;			GET_STRUCTURE_DETAILS				;
;  this routine returns the concerned structure details.		;
;  input :								;
;	CX	given structure# (0-based)				;
;  output:								;
;	CY	error, structure not found				;
;	NC	successful						;
;		DS:SI	ptr to start of concerned structure		;
;		CX	structure length including terminator		;
;		AX	next structure# (FFFF if this is the last one)	;
;  register destroyed : AX CX SI DS					;
;-----------------------------------------------------------------------;
	public	get_structure_details
get_structure_details	proc	near
	mov	si,offset cgroup:smbios_table_entry_point_struc
	mov	ax,cgroup:(SMB_TABLE_HEADER_STRUC ptr [si]).wNumSMBStruc; AX = #of DMI structures present
	dec	ax				; #of structures (0-based)
	cmp	cx,ax				; valid structure# ?
	ja	short gsd_01			; invalid structure#
	push	cx
	jb	short gsd_00			; valid structure#
; valid struc# but this is the last structure
	mov	cx,0fffeh
gsd_00:
	inc	cx				; CX = return value of next structure#
	pop	ax				; AX = given structure# (0-based)
	push	cx				; save next structure#
	inc	ax				; AX = given structure# (1-based)
; AX = given structure# (1-based)
	push	cs
	pop	ds
	mov	si,cgroup:word ptr (SMB_INTERNAL_DATA_STRUC ptr smbios_internal_data).wSMBStructuresStart; DS:SI = ptr to start of SMBIOS structures
	xor	cx,cx				; init length of structure
gsd_04:
	add	si,cx				; DS:SI = ptr to next structure
	call	GetStrucLen			; CX = length of the structure
	dec	ax				; decrement the struc #
	jnz	short gsd_04			; check the next structure
	pop	ax				; AX = next structure#
	clc					; NC, successful
; DS:SI = ptr to the concerned structure requested by user
; CX = structure length in bytes
; AX = next structure# (FFFF if this is the last structure)
gsd_02:
; NC/CY = ok/error
	ret
gsd_01:
	stc					; CY, error
	jmp	short gsd_02
get_structure_details	endp
;-----------------------------------------------------------------------;
;			GET_STRING_DETAILS				;
;  this routine copies the source string to the destn taking into	;
;  account of the length available, padding it with blanks if needed,	;
;  etc.									;
;  input :								;
;	DS:SI	ptr to the start of structure				;
;	CX	given string#						;
;		(it is assured to be non-zero i.e. string exists)	;
;  output:								;
;	DS:SI	ptr to the concerned string within the structure	;
;	CX	concerned string length excluding NULL in bytes		;
;  registed destroyed : SI						;
;-----------------------------------------------------------------------;
	public	get_string_details
get_string_details	proc	near
	push	bx
	movzx	bx,ds:(DMIHDR_STRUC ptr [si]).bLength; formatted length
gsd_00:
	add	si,bx				; CS:SI = ptr to next string
; CX = concerned string# (1-based)
	push	cx
	call	get_string_length		; CX = string length in bytes
	mov	bx,cx				; BX = string length
	inc	bx				; include NULL
	pop	cx
	loop	gsd_00
	dec	bx				; exclude NULL
	mov	cx,bx				; CX = string length
	pop	bx
	ret
get_string_details	endp
;-----------------------------------------------------------------------;
;				COPY_STRING				;
;  this routine copies the source string to the destn taking into	;
;  account of the length available, padding it with blanks if needed,	;
;  etc.									;
;  input :								;
;	DS:SI	ptr to the source string				;
;	ES:DI	ptr to the destn string					;
;	CX	length available excluding NULL				;
;  output:								;
;	none								;
;  registed destroyed : ALL except DS, ES				;
;-----------------------------------------------------------------------;
	public	copy_string
copy_string	proc	near
; CX = length available excluding NULL
cs_01:
	lods	ds:byte ptr [si]	; get nest source byte
	or	al,al			; end of source ?
	jz	short cs_00		; yes
	stos	es:byte ptr [di]	; copy it to destn
	loop	cs_01
; control will come here if the available space is less than or equal to the
; source string length
	jmp	short cs_02		; exit
cs_00:
; control will come here if the available space is gretare than to the
; source string length
; the destn string needs to be padded with blanks
	mov	al,20h			; padd with CX #of Blanks
	rep	stosb
cs_02:
	ret
copy_string	endp
;-----------------------------------------------------------------------;
;			UPDATE_IEPS_CHECKSUM				;
; this routine updates the checksum in IEPS of SMBIOS Table Entry Point.;
; input :								;
;	DS:SI	ptr to SMBIOS Structure Table Entry Point		;
; output:								;
;	none								;
; register destroyed : none						;
;-----------------------------------------------------------------------;
	public	update_ieps_checksum
update_ieps_checksum	proc	near
;  calculate the intermediate checksum of IEPS
	pusha
	push	si
	mov	ds:byte ptr (SMB_TABLE_HEADER_STRUC ptr [si]).bIntChecksum,00; IEPS checksum
	mov	cx,IEPS_LENGTH		; length of IEPS
	movzx	ax,ds:byte ptr (SMB_TABLE_HEADER_STRUC ptr [si]).bLength; EPS size
	sub	ax,cx
	add	si,ax			; DS:SI = ptr to start of IEPS
	xor	ah,ah			; init checksum
spi_00:
	lods	ds:byte ptr [si]	; get next byte
	add	ah,al
	loop	spi_00
	neg	ah
	pop	si
	mov	ds:byte ptr (SMB_TABLE_HEADER_STRUC ptr [si]).bIntChecksum,ah; IEPS checksum
	popa
	ret
update_ieps_checksum	endp
;-----------------------------------------------------------------------;
;			UPDATE_EPS_CHECKSUM				;
; this routine updates the checksum in EPS of SMBIOS Table Entry Point.	;
; input :								;
;	DS:SI	ptr to SMBIOS Structure Table Entry Point		;
; output:								;
;	none								;
; register destroyed : none						;
;-----------------------------------------------------------------------;
	public	update_eps_checksum
update_eps_checksum	proc	near
	pusha
	mov	ds:byte ptr (SMB_TABLE_HEADER_STRUC ptr [si]).bChecksum,00; EPS checksum
;  calculate the checksum of EPS of the SMBIOS table entry point structure
	movzx	cx,ds:byte ptr (SMB_TABLE_HEADER_STRUC ptr [si]).bLength; entry point stucture size
	xor	ah,ah			; init cheksum
	push	si
spi_01:
	lods	ds:byte ptr [si]	; get next byte
	add	ah,al
	loop	spi_01
	pop	si
	neg	ah
	mov	ds:byte ptr (SMB_TABLE_HEADER_STRUC ptr [si]).bChecksum,ah; EPS checksum
	popa
	ret
update_eps_checksum	endp
;-----------------------------------------------------------------------;
;				GET_EBDA				;
; this routine returns the Extended BIOS Data Area Segment.		;
; input :								;
;	none								;
; output:								;
;	DS	EBDA segment						;
; register destroyed : DS						;
;-----------------------------------------------------------------------;
	public	get_ebda
get_ebda	proc	near
	push	0040h
	pop	ds
	mov	ds,ds:word ptr [000eh]	; DS = EBDA
	ret
get_ebda	endp
;-----------------------------------------------------------------------;
;*****************************************************************;
;*****************************************************************;
;**								**;
;**	(C)Copyright 1985-1997, American Megatrends Inc.	**;
;**								**;
;**			All Rights Reserved.			**;
;**								**;
;**		6145-F, Northbelt Parkway, Norcross,		**;
;**								**;
;**		Georgia - 30071, USA. Phone-(770)-246-8600.	**;
;**								**;
;*****************************************************************;
;*****************************************************************;
;-----------------------------------------------------------------------;
;		SUBROUTINES USED BY ROUTINES IN THIS FILE		;
;-----------------------------------------------------------------------;
;			GET_STRING_LENGTH				;
;  this routine copies the source string to the destn taking into	;
;  account of the length available, padding it with blanks if needed,	;
;  etc.									;
;  input :								;
;	DS:SI	ptr to the string					;
;  output:								;
;	CX	concerned string length excluding NULL in bytes		;
;  registed destroyed : CX						;
;-----------------------------------------------------------------------;
get_string_length:
	push	si
	push	ax
	xor	cx,cx			; init the string length
gsl_00:
	inc	cx			; update string length
	lodsb				; get next byte
	or	al,al			; end ?
	jnz	short gsl_00		; no
	dec	cx			; exclude NULL from string length
	pop	ax
	pop	si
	ret
;-----------------------------------------------------------------------------;
;*****************************************************************;
;*****************************************************************;
;**								**;
;**	(C)Copyright 1985-1997, American Megatrends Inc.	**;
;**								**;
;**			All Rights Reserved.			**;
;**								**;
;**		6145-F, Northbelt Parkway, Norcross,		**;
;**								**;
;**		Georgia - 30071, USA. Phone-(770)-246-8600.	**;
;**								**;
;*****************************************************************;
;*****************************************************************;
;-----------------------------------------------------------------------;
	public	_SMBSUB_ENDS
_SMBSUB_ENDS	label	byte		; marks start of module
;---------------------------------------------------------------;
_text	ends
END

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品福利久久久| 久久精品亚洲麻豆av一区二区 | 97精品久久久久中文字幕| 国产老妇另类xxxxx| 欧美在线你懂得| 91亚洲国产成人精品一区二三| 丝瓜av网站精品一区二区| 亚洲国产一区二区三区青草影视| 亚洲国产日韩一区二区| 午夜免费久久看| 卡一卡二国产精品| 国内精品伊人久久久久av一坑| 国产麻豆精品一区二区| 成人美女视频在线看| av一二三不卡影片| 在线观看亚洲一区| 91精品国产一区二区| 久久久蜜桃精品| 中文字幕人成不卡一区| 亚洲电影一级片| eeuss鲁片一区二区三区在线观看| 成人福利在线看| 国产精品乱码一区二区三区软件| 欧美电影免费观看高清完整版在线| 日韩午夜激情视频| 国产视频不卡一区| 亚洲一区二区成人在线观看| 精品一区二区三区免费观看| 成人动漫在线一区| 6080午夜不卡| 国产精品伦理一区二区| 日韩精品午夜视频| 大美女一区二区三区| 欧美影院午夜播放| 久久久久久久av麻豆果冻| 亚洲欧美另类图片小说| 老司机一区二区| 91在线云播放| 日韩一区二区精品在线观看| 中文字幕乱码久久午夜不卡 | 欧美tickle裸体挠脚心vk| 国产人成亚洲第一网站在线播放| 亚洲美女淫视频| 国产精品1区2区3区在线观看| 在线视频综合导航| 国产亚洲精久久久久久| 午夜影视日本亚洲欧洲精品| 国产成人在线观看免费网站| 欧美日本一道本| 中文字幕中文字幕一区二区| 国内精品嫩模私拍在线| 欧美日韩成人一区二区| 亚洲私人黄色宅男| a美女胸又www黄视频久久| 欧美成人video| 五月激情综合色| 欧洲日韩一区二区三区| 中文字幕在线观看不卡视频| 捆绑紧缚一区二区三区视频| 欧美视频在线一区二区三区| 国产精品乱码人人做人人爱| 国产大片一区二区| 中文字幕欧美区| 国产一区二区三区国产| 日韩欧美aaaaaa| 青青青伊人色综合久久| 欧美男同性恋视频网站| 一级特黄大欧美久久久| 97se亚洲国产综合自在线| 国产欧美视频在线观看| 国产成人午夜视频| 国产精品免费视频一区| 国产99久久久久| 日本道色综合久久| 亚洲国产精品自拍| 91女厕偷拍女厕偷拍高清| 午夜视频一区二区| 国产清纯白嫩初高生在线观看91 | 一区二区三区免费| 7777女厕盗摄久久久| 成人精品一区二区三区四区 | 7777精品伊人久久久大香线蕉的 | 亚洲女与黑人做爰| 337p日本欧洲亚洲大胆精品| 在线免费亚洲电影| 国产福利一区二区三区视频 | 一区二区三区电影在线播| 精品国产91乱码一区二区三区| 色综合天天综合色综合av| 国产做a爰片久久毛片| 亚洲国产成人av网| 日韩伦理av电影| 久久精品亚洲精品国产欧美kt∨| 欧美精品 日韩| 色噜噜狠狠成人中文综合| 国产99久久久国产精品潘金网站| 日韩精品五月天| 夜夜亚洲天天久久| 亚洲天堂成人网| 国产午夜精品一区二区三区嫩草| 欧美日韩成人综合天天影院| 91福利小视频| 色猫猫国产区一区二在线视频| 成人妖精视频yjsp地址| 国产一区二区成人久久免费影院 | 91网站最新网址| 东方aⅴ免费观看久久av| 精品一区二区三区在线观看| 亚洲大片免费看| 一区二区三区精品| 1000精品久久久久久久久| 欧美韩日一区二区三区四区| 国产天堂亚洲国产碰碰| 久久久久久久电影| 国产精品女同一区二区三区| 国产精品污www在线观看| 中文字幕av一区二区三区高| 国产精品成人在线观看| 亚洲欧洲日韩综合一区二区| 中文一区在线播放| ㊣最新国产の精品bt伙计久久| 国产精品色婷婷久久58| 国产精品电影院| 亚洲精品视频在线看| 亚洲一区影音先锋| 麻豆精品一区二区av白丝在线| 免费的成人av| 黄色精品一二区| 成人性视频网站| 日本二三区不卡| 欧美美女直播网站| 日韩欧美一区二区不卡| 国产情人综合久久777777| 1区2区3区精品视频| 天天综合色天天综合| 狠狠色丁香久久婷婷综合_中| 国产二区国产一区在线观看| 91在线播放网址| 欧美日韩国产一级| 欧美精品一区二区久久婷婷| 欧美国产日本韩| 一区二区三区不卡视频在线观看| 日韩专区中文字幕一区二区| 国产麻豆视频一区| 在线一区二区三区四区| 欧美精品一区二区蜜臀亚洲| 亚洲欧美日韩久久| 久久精品国产第一区二区三区| 国产suv精品一区二区6| 欧美绝品在线观看成人午夜影视| 精品理论电影在线观看| 中文字幕中文字幕在线一区 | 国产亚洲精久久久久久| 夜夜亚洲天天久久| 国产精一品亚洲二区在线视频| 91视频免费看| 2014亚洲片线观看视频免费| 亚洲视频精选在线| 国产一区二区调教| 欧美老人xxxx18| 国产日韩成人精品| 日韩成人免费在线| 一本色道久久综合精品竹菊| 久久久久久夜精品精品免费| 亚洲在线中文字幕| 成人一区二区三区在线观看| 欧美一区二区三区公司| 亚洲欧美一区二区三区国产精品 | 午夜精品一区二区三区电影天堂| 风流少妇一区二区| 日韩一区二区三区视频| 一区二区三区欧美| 成人av午夜电影| 欧美精品一区二区三| 日本美女视频一区二区| 欧美午夜精品免费| 亚洲日本va午夜在线影院| 懂色av一区二区三区蜜臀| 欧美电影免费观看高清完整版在线| 一区av在线播放| 91小视频免费看| 中文字幕制服丝袜一区二区三区| 韩国欧美一区二区| 91精品国产乱| 日韩国产欧美三级| 欧美色倩网站大全免费| 亚洲欧洲中文日韩久久av乱码| 不卡视频在线看| 国产精品三级av在线播放| 国产乱子轮精品视频| 精品国产免费人成在线观看| 日韩国产欧美三级| 日韩三级电影网址| 日韩激情在线观看| 91麻豆精品国产91久久久使用方法| 一区二区三区毛片| 欧美三级电影在线观看| 一区二区三国产精华液| 在线亚洲高清视频| 午夜视频在线观看一区|