⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 prise.inc

📁 <BIOS研发技术剖析>书的源代码,包括完整的BIOS汇编语言源程序.
💻 INC
字号:
;
; Rise POST routines
;
;-----------------------------------------------------------------------------;

;-----------------------------------------------------------------------------;
; RISE P-Rating
;-----------------------------------------------------------------------------;
; Input:
;	DX	0
; Output:
;	DL	bit 0 = 1 Clock is PRxxx
;		bit 1 = 1 Append Clock to CPU string
;		bit 2 = 1 Don't display clock at checkpoint AA
;	DS:SI	offset of prating table if DL.3=0
;		bit 3 = 1 Get prating value directly from DS:SI
;	DH	ASCII charactor to be append
;		0 = nothing appended
;	CY	no prating
;-----------------------------------------------------------------------------;
rise_prating	proc
if (CPU_586)
	mov	ax,word ptr cpu_resetid	; AX = reset ID
					; (CPU0041.1)>
;	or	al,0fh			; ignore stepping
;	cmp	ax,050fh		; Rise mP6(tm) ?
	cmp	ah,05h			; mP6 or mP6 II ?
					; <(CPU0041.1)
	stc
	jne	rise_exit		; no.. no prating

	mov	dl,00000110b		; dl.1=clock to cpu string, dl.2=not actual clock display
	mov	si,offset cgroup:rise_pr_tbl
	clc
rise_exit:
endif
	ret
rise_prating	endp
;-------------------------------------------------------;
							; (CPU0037+)>
if (CPU_586)
rise_pr_tbl	label	byte
		dw	(offset cgroup:rise_pr_tbl_end - offset cgroup:rise_pr_tbl) / sizeof(vPRATINGSTRUC)	; $$$CPU0017
		vPRATINGSTRUC	{ 133,	133 }		; 66*2
		vPRATINGSTRUC	{ 150,	150 }		; 75*2
		vPRATINGSTRUC	{ 166,	166 }		; 83*2
		vPRATINGSTRUC	{ 190,	233 }		; 95*2
		vPRATINGSTRUC	{ 200,	266 }		; 100*2
							; (CPU0041+)>
		vPRATINGSTRUC	{ 238,	333 }		; 95*2.5
		vPRATINGSTRUC	{ 250,	366 }		; 100*2.5
		vPRATINGSTRUC	{ 285,	380 }		; 95*3
		vPRATINGSTRUC	{ 300,	400 }		; 100*3
		vPRATINGSTRUC	{ 333,	433 }		; 95*3.5
		vPRATINGSTRUC	{ 350,	466 }		; 100*3.5
							; <(CPU0041+)
rise_pr_tbl_end	label	byte
endif
							; <(CPU0037+)

; (CPU0014+)>
;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -