介绍bios的一些代码!色粉的说的 受伤的发生大幅啊四谛法的四谛法四谛法阿斯顿发生的是 士大夫的发生阿斯顿飞爱上
test al,00000100b ; then soft reset else power on
jnz shut_5 ; not power-on
;---------------------------------------;
; VANILLA MEMORY PATCH ;
;---------------------------------------;
ifdef VANILLA_BIOS
;---------------------------------------;
; save CPUID in cmos 35h(DL), 36h(DH)
extrn cmos_data_out:near
extrn _refresh_value:byte
mov ebp,edx
mov al,0b5h
mov ah,dl
ret_sp cmos_data_out
mov al,0b6h
mov ah,dh
ret_sp cmos_data_out
; start memory refresh..
mov al,00h ; initialise DMA-PAGE reg.
out 8fh,al ; (used in MEMORY REFRESH)
io_delay
mov al,01010100b ; start CH_1 (REFRESH)
out 43h,al ; one byte count used
io_delay
mov al,cgroup:_refresh_value; low byte count
OUT 41H,AL
MOV CX,100H ; 400h..01/11/95
XOR DI,DI
MOV ES,DI
wpulse1:
stosb
loop wpulse1
;---------------------------------------;
extrn vanilla_patch_offset:near
cmp cgroup:word ptr vanilla_patch_offset,0ffffh
jz ret_off ; no routine
mov sp,offset cgroup:sp_ret_off
jmp vanilla_patch_offset-1
even
sp_ret_off:
dw offset cgroup:ret_off
dw 0f000h
ret_off:
endif