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

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

?? runvuma.asm

?? AMI 主板的BIOS源碼。
?? ASM
?? 第 1 頁 / 共 2 頁
字號:
;              boot for all VUMA devices in units of 64KB                      ;
;                                                                              ;
; Destroys: AL, AH (if successful)                                             ;
;------------------------------------------------------------------------------;
VumaGetNextBootAllMemSize	proc near
	call	VumaGetNextBootDeviceMemSize ;See above
	ret
VumaGetNextBootAllMemSize	endp


;---------------------------------------;
; VumaGetCurrentMemSize (05)            ;
;---------------------------------------;--------------------------------------;
; This function returns the current size and address of VUMA frame buffer      ;
; memory for a given VUMA device or for all VUMA devices.                      ;
;                                                                              ;
; Input: CL = PCI Device/Function number of VUMA device (FF means all devices) ;
;                Bits 7-3: PCI device number                                   ;
;                Bits 2-0: Function number within the device                   ;
;        CH = PCI Bus number of VUMA device (FF means all devices)             ;
;                                                                              ;
; Output: CF = Set if error, clear if successful                               ;
;         AH = Nonzero return code if function was not successful              ;
;              (value is "don't care" if function is successful)               ;
;         DX = Size of VUMA frame buffer memory that is currently active       ;
;              in units of 64KB                                                ;
;         BH = 00: VUMA memory is not visible to the CPU                       ;
;              01: VUMA memory is visible to the CPU                           ;
;         CX = Memory banks in use by VUMA frame buffer                        ;
;               Bit 0: Set if bank 0 is used                                   ;
;               Bit 1: Set if bank 1 is used                                   ;
;               ...                                                            ;
;               Bit 15: Set if bank 15 is used                                 ;
;         SI = Upper 16 bits VUMA frame buffer's physical address              ;
;         DI = Lower 16 bits VUMA frame buffer's physical address              ;
;                                                                              ;
; Destroys: AL, AH (if successful)                                             ;
;------------------------------------------------------------------------------;
VumaGetCurrentMemSize	proc near

	call	FrameBufGetCurSize	;Returns DX = cur frame buf size in 64k
	or	dx,dx
	mov	ah,05h			; FrameBuffer not support error
	jz	func_05_error

	call	FrameBufGetCurAddress	;Returns EAX = cur addr of frame buffer
	mov	ebx,eax
	mov	ah,04h
	jc	func_05_error
	mov	di, bx			;DI = lower half of addr
	shr	ebx, 16
	mov	si, bx			;SI = upper half of addr

	call	FrameBufGetVisibility	;Returns BH = 0/1 for invisible/visible
	call	FrameBufGetCurBanks	;Returns CX = bitmap of banks in use as frame buffer

	clc
	jmp	short func_05_done

func_05_error:
	stc

func_05_done:
	ret
VumaGetCurrentMemSize	endp


;---------------------------------------;
; VumaGetMemorySpeedType (06)           ;
;---------------------------------------;--------------------------------------;
; This function returns information on the memory installed in a given bank.   ;
;                                                                              ;
; Input: CX = Memory bank number                                               ;
;             Bit 0: Set if bank 0 is requested                                ;
;             Bit 1: Set if bank 1 is requested                                ;
;             ...                                                              ;
;             Bit 15: Set if bank 15 is requested                              ;
;        DX = Iteration number for the above bank                              ;
;                                                                              ;
; Output: CF = Set if error, clear if successful                               ;
;         AH = Nonzero return code if function was not successful              ;
;              (value is "don't care" if function is successful)               ;
;         EBX = Bit 31-18: Reserved                                            ;
;               Bit 17-16: External buffering of DRAM bank                     ;
;                            00 = Unknown                                      ;
;                            01 = Bank has external buffer                     ;
;                            10 = Bank does not have external buffer           ;
;                            11 = Reserved                                     ;
;               Bit 15:    Reserved                                            ;
;               Bit 14:    Set if bank (or this portion of bank) is used as    ;
;                          VUMA memory                                         ;
;               Bit 13-7:  Speed of memory in nanoseconds (00=unknown)         ;
;               Bit 6-0:   Reserved                                            ;
;         ECX = Bit 31-24: If bank contains asymetrical DRAM, number of rows   ;
;               Bit 23-16: If bank contains asymetrical DRAM, number of columns;
;               Bit 15-9:  Memory supply voltage in tenths of a volt (00 =     ;
;                          unknown)                                            ;
;               Bit 8:     Burst order                                         ;
;                            0 = Interleave burst order                        ;
;                            1 = Sequential burst order                        ;
;               Bit 7-6:   Burst size                                          ;
;                            00 = 1 Byte                                       ;
;                            01 = 2 Bytes                                      ;
;                            10 = 4 Bytes                                      ;
;                            11 = Unknown                                      ;
;               Bit 5-4:   CAS latency in CPU clocks                           ;
;               Bit 3-0:   Type of memory                                      ;
;                            0 = Unknown                                       ;
;                            1 = Fast page mode                                ;
;                            2 = EDO                                           ;
;                            3 = SDRAM                                         ;
;                            4 = PN EDO (Burst EDO)                            ;
;                            5-F = Reserved                                    ;
;         EDX = Amount of memory installed in bank in units of 64kb            ;
;         SI = Upper 16 bits memory bank's physical address                    ;
;         DI = Lower 16 bits memory bank's physical address                    ;
;                                                                              ;
; Destroys: AL, AH (if successful)                                             ;
;------------------------------------------------------------------------------;
VumaGetMemorySpeedType	proc near
	push	bp
	push	eax

;; SiS VUMA not support iteration
;	push	dx			;Save iteration value


;; SiS VUMA using RAS0 if not then return error message
	bsf	cx, cx			;CL = Bank number
	or	cx,cx
	jnz	GetMemError

; EDX[32:24]/[23:16] = Asynchronous mem row/col count
; EBX[31:28] = MA scrambling table selection[3:0]

	call	FrameBufGetAsymMemInfo	;Returns BL=MA table, DL=cols, DH=rows for bank CL
	shl	edx, 16			;EDX[31:24]/[23:16] = asym rows/cols
	shl	ebx, 28			; EBX[31:28] = MA table

; EBX[14] = Main VUMA memory
	or	ebx,4000h

; SiS reserved
; EBX[17:16] = Ext buffer flags
; EDX[15:9]  = Bank voltage
;	call	FrameBufGetBankVoltage	;Returns AL=Voltage, AH=Ext buffer flags for bank CL
;	and	ah, 00000011b
;	movzx	ebx, ah
;	shl	ebx, 16			;EBX[17:16] = Ext buffer flags

;	and	al, 01111111b		;Limit voltage info to 7 bits
;	shl	ax, 9			;AX[15:9] = Voltage
;	or	dx, ax			;EDX[15:9] = Voltage

; EDX[8]/[7:6]/[5:4] = Burst order, burst size, and CAS latency

	call	FrameBufGetBankTimingInfo ;Returns AL[4],[3:2],[1:0] = timing info for bank CL
	and	ax, 001Fh		;Limit timing info to 5 bits
	shl	ax, 4
	or	dx, ax			;EDX[8]/[7:6]/[5:4] = timing info

; EDX[3:0] = Type of memory

	call	FrameBufGetBankMemType	;Returns AL=mem type for bank CL
	and	al, 0Fh			;Limit mem type to 4 bits
	or	dl, al			;EDX[3:0] = mem type

; EBX[5:4] = DRAM controller write/read cycle
	call	dram_control_cycle	;Returns AH[1:0]= write/read cycle
	shl	ah,4
	or	bl,ah

; EBX[3:0] = M/B frequency
	call	find_frequency		;Returns AH=0/1/2/3/4 60/66/75/83/100 MHz
	or	bl,ah

; SiS reserved
; EBX[13:7] = Memory speed in ns
;	call	FrameBufGetBankMemSpeed	;Returns AL=mem speed for bank CL
;	and	ax, 007Fh		;Limit mem speed to 7 bits
;	shl	ax, 7			;AX[13:7] = mem speed
;	or	bx, ax			;EBX[13:7] = mem speed, EBX ready to return

;; SI/DI = Start address of bank's memory
;	call	FrameBufGetBankAddress	;Returns EAX = start addr of bank CL
;	mov	di, ax			;DI = lower half of addr
;	shr	eax, 16
;	mov	si, ax			;SI = upper half of addr

; EDX = Amount of memory installed in bank
;	call	FrameBufGetBankMemSize	;Returns AX = size of mem in bank CL in 64k

	mov	bp, cx			;BP = bank number
	mov	ecx, edx		;ECX = memory bank info ready to return

; Check the iteration value passed in by the caller.  If it is non-zero, then
; this bank should be the bank that contains the frame buffer (return error
; if this is not true).  Also if the iteration value is higher than 0001h, it
; is an illegal value, so return an error.  If the iteration value is 0001h and
; the frame buffer is using this bank of memory then update the start address
; in SI/DI and set bit 14 in EBX.

;	pop	ax			;Restore iteration value
;	push	cx			;Save values ready to be returned
;
;	call	FrameBufGetCurBanks	;Returns CX = bitmap of banks in use as frame buffer

;	or	ax, ax
;	jz	GetMemFirstIteration	;Br if iteration value is zero
;	cmp	ax, 1
;	ja	GetMemError		;Br if iteration value is > 1

;	bts	cx, bp			;Sets CF = bit number BP of CX
;	jnc	GetMemError		;Br if this bank is not frame buffer bank

; EDX = Amount of memory installed in bank(RAS0 - share)
; SI/DI = Start address of memory
	call	FrameBufGetCurAddress	;Returns EAX = cur addr of frame buffer
	mov	di, ax			;DI = lower half of addr
	shr	eax, 16
	mov	si, ax			;SI = upper half of addr
	movzx	edx, ax			;EDX = amount of mem ready to return

GetMemDone:
;; for TV out
	push	ax
	mov	al,Q_MONITOR_DEVICE
	extrn	get_cmos_item:near
	call	get_cmos_item
	ror	ebx,24
	and	bx,not 07h
	or	bl,al
	rol	ebx,24
	pop	ax
	clc				;Indicate success
GetMemExit:
;	pop	cx			;Restore CX return value

	pop	bp			;Lower half of EAX on entry (discard this)
	pop	bp			;Upper half of EAX on entry (put this back)
	ror	eax, 16
	mov	ax, bp
	ror	eax, 16
	pop	bp
	ret

; If the frame buffer starts in this memory bank, return with CF set and AH=80h
; This will inform the caller to make another call with iteration value = 01h

;GetMemFirstIteration:
;	bts	cx, bp			;Sets CF = bit number BP of CX
;	jnc	GetMemDone		;Br if this bank is not frame buffer bank
;	mov	ah, 080h		;Indicate another iteration is needed
;	stc
;	jmp	short GetMemExit

GetMemError:
	mov	ah, 004h		;Error return code.......................
	stc
	jmp	short GetMemExit

VumaGetMemorySpeedType	endp


;---------------------------------------;
; VumaMemoryEnableDisable (07)          ;
;---------------------------------------;--------------------------------------;
; This function enables or disables CPU access to the VUMA frame buffer memory.;
;                                                                              ;
; Input: BH = Bit 0: Set if memory should me made visible to the CPU           ;
;                    Clear if memory should me made invisible to the CPU       ;
;             Bit 1-7: Reserved                                                ;
;                                                                              ;
; Output: CF = Set if error, clear if successful                               ;
;         AH = Nonzero return code if function was not successful              ;
;              (value is "don't care" if function is successful)               ;
;                                                                              ;
; Destroys: AL, AH (if successful)                                             ;
;------------------------------------------------------------------------------;
VumaMemoryEnableDisable	proc near

	test	bh, 1
	jnz	@f			;Br if frame buffer should be enabled
	call	FrameBufMakeInvisible
	jmp	short EnableDisableDone
@@:	call	FrameBufMakeVisible

EnableDisableDone:
	clc
	ret
VumaMemoryEnableDisable	endp


_text	ends
	end
;*****************************************************************;
;*****************************************************************;
;**                                                             **;
;**      (C)Copyright 1985-1995, American Megatrends, Inc.      **;
;**                                                             **;
;**                     All Rights Reserved.                    **;
;**                                                             **;
;**           6145-F Northbelt Pkwy, Norcross, GA 30071         **;
;**                                                             **;
;**                     Phone (770)-263-8181                    **;
;**                                                             **;
;*****************************************************************;
;*****************************************************************;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产在线播放网站| 亚洲色图制服诱惑| 欧美一级高清片在线观看| 欧美在线影院一区二区| 91色乱码一区二区三区| 成人丝袜18视频在线观看| 国产剧情一区二区三区| 国产成人自拍高清视频在线免费播放| 麻豆精品新av中文字幕| 国内精品伊人久久久久影院对白| 久久99精品国产麻豆婷婷| 久久99热99| 国产精品亚洲一区二区三区在线 | 国产一区二区调教| 国产呦萝稀缺另类资源| 国产福利一区二区三区| 成人av免费在线观看| 91丝袜美腿高跟国产极品老师| 99久久国产免费看| 欧美曰成人黄网| 51精品秘密在线观看| 日韩一区二区高清| 国产午夜精品一区二区| 国产精品国产三级国产普通话蜜臀| 一区二区三区在线观看国产| 调教+趴+乳夹+国产+精品| 久久国产精品色婷婷| 国产精品99久久久久久有的能看| 成人av动漫在线| 欧美日韩中字一区| 2023国产精品自拍| 一区视频在线播放| 懂色av中文字幕一区二区三区 | 91精品欧美综合在线观看最新 | 午夜成人免费电影| 韩国成人在线视频| 99这里都是精品| 欧美精品xxxxbbbb| 国产视频一区在线观看| 一区二区三区四区激情| 青青草伊人久久| av一区二区三区黑人| 欧美日产在线观看| 国产日产欧美精品一区二区三区| 亚洲美女精品一区| 九九九精品视频| 91麻豆免费看| 日韩午夜三级在线| 中文字幕五月欧美| 免费xxxx性欧美18vr| 成人av在线资源网站| 欧美麻豆精品久久久久久| 久久精品男人的天堂| 亚洲电影第三页| 国产98色在线|日韩| 精品视频1区2区3区| 日本一区二区三级电影在线观看| 亚洲h在线观看| 粉嫩av一区二区三区| 欧美一级国产精品| 一区二区三区在线观看动漫| 国产另类ts人妖一区二区| 欧美日韩国产影片| 国产精品久久久久久久岛一牛影视| 日韩中文字幕亚洲一区二区va在线| 国产91在线看| 欧美videos中文字幕| 亚洲午夜精品在线| av资源网一区| 日韩免费电影一区| 亚洲国产另类精品专区| 成人h精品动漫一区二区三区| 日韩午夜av一区| 亚洲一区二区三区四区五区黄| 国产一区二区三区免费看| 7777精品伊人久久久大香线蕉| 亚洲欧洲美洲综合色网| 国产一区中文字幕| 日韩欧美亚洲一区二区| 亚洲一区免费视频| 日韩免费高清电影| 日韩av不卡在线观看| 欧洲色大大久久| 椎名由奈av一区二区三区| 国产成人自拍高清视频在线免费播放| 日韩视频一区二区三区在线播放| 亚洲国产一区二区三区| 日本高清不卡aⅴ免费网站| 国产精品日日摸夜夜摸av| 国产老肥熟一区二区三区| 久久综合久久99| 久久99日本精品| 日韩免费性生活视频播放| 热久久久久久久| 欧美一区二区三区电影| 日韩激情中文字幕| 欧美日韩精品二区第二页| 亚洲在线中文字幕| 欧美在线观看一区二区| 亚洲综合精品久久| 91福利国产精品| 亚洲国产精品久久人人爱蜜臀| 91免费精品国自产拍在线不卡| 中文字幕日韩欧美一区二区三区| 国产福利一区二区三区视频在线 | 亚洲欧美激情插| 99视频精品在线| 亚洲日本丝袜连裤袜办公室| 99久久国产免费看| 亚洲三级在线观看| 日本久久一区二区| 一区二区久久久| 欧美午夜一区二区三区| 亚洲国产中文字幕在线视频综合 | 日韩欧美国产1| 国产精品亚洲一区二区三区妖精 | 91麻豆精品国产91久久久资源速度| 亚洲一区二区三区三| 欧美男生操女生| 琪琪久久久久日韩精品| 精品免费99久久| 国产成人亚洲精品青草天美| 国产精品免费观看视频| 91视频国产观看| 午夜精品影院在线观看| 日韩一区二区免费在线电影| 国产精品影视在线| 国产精品美女久久福利网站| 91福利资源站| 蜜臀久久99精品久久久久久9| 久久综合九色综合欧美就去吻| 成人h动漫精品一区二| 亚洲已满18点击进入久久| 日韩一区二区免费电影| 国产成人精品一区二| 亚洲理论在线观看| 在线不卡一区二区| 国产精华液一区二区三区| 亚洲天堂福利av| 911精品国产一区二区在线| 极品尤物av久久免费看| 亚洲欧洲av另类| 69p69国产精品| 高清国产一区二区三区| 一级女性全黄久久生活片免费| 日韩午夜三级在线| 本田岬高潮一区二区三区| 亚洲国产美女搞黄色| 国产女同性恋一区二区| 欧美三级视频在线| 国内精品伊人久久久久av一坑 | 久88久久88久久久| 1000部国产精品成人观看| 884aa四虎影成人精品一区| 成人免费视频caoporn| 丝袜亚洲精品中文字幕一区| 国产欧美精品一区二区色综合朱莉| 欧美一a一片一级一片| 国产乱码字幕精品高清av | 国产精品久久777777| 在线91免费看| 91原创在线视频| 九一九一国产精品| 亚洲成人一区二区在线观看| 国产欧美精品一区二区色综合| 欧美一区二区三区在线| 91伊人久久大香线蕉| 国产一区二区三区观看| 成人免费三级在线| 久久成人精品无人区| 亚洲一区二区三区四区中文字幕| 欧美激情一区二区三区四区| 欧美精品乱人伦久久久久久| 日本二三区不卡| 波多野结衣中文一区| 国内欧美视频一区二区| 日本91福利区| 亚洲成人免费看| 一区二区三区四区蜜桃| 亚洲国产成人一区二区三区| 日韩精品一区二区三区视频在线观看 | 狠狠色狠狠色综合系列| 首页亚洲欧美制服丝腿| 亚洲一区二区偷拍精品| 中文字幕一区二区三区不卡在线| 久久亚区不卡日本| 91精品一区二区三区久久久久久| 欧美在线色视频| 91免费在线播放| 97成人超碰视| 国产成人午夜精品5599 | 色94色欧美sute亚洲13| 成人小视频免费在线观看| 国产麻豆精品在线观看| 精品一区二区免费看| 日韩av在线发布| 免费观看成人鲁鲁鲁鲁鲁视频| 午夜视频在线观看一区二区三区| 一区二区三区在线免费| 一区二区三区视频在线看|