介绍bios的一些代码!色粉的说的 受伤的发生大幅啊四谛法的四谛法四谛法阿斯顿发生的是 士大夫的发生阿斯顿飞爱上
;---------------------------------------;
jmp hreset_clear ; hard reset init (if any)
;;;;hreset_clear_end:
;;;; jmp shutdown_0x ; hard reset, goto regs. test
shut_5:
jmp sreset_clear ; GA20 disable and other....
sreset_clear_end:
mov al,8fh ; shutdown address
out cmos_addr_port,al ; mask NMI & select shut byte
jcxz short $+2 ; i/o delay
jcxz short $+2 ; i/o delay
IN AL,CMOS_DATA_PORT ; read shutdown code mov ah,00
MOV SI,AX ; save in (SI)
MOV AL,8FH ; shutdown address
JCXZ SHORT $+2 ; i/o delay
OUT CMOS_ADDR_PORT,AL
mov al,00 ; clear shutdown byte
jcxz short $+2 ; i/o delay
jcxz short $+2 ; i/o delay
out cmos_data_port,al
mov ax,cs
mov ss,ax
mov ax,si ; restore shutdown code
cmp al,04h ; for BOOT loader shutdown
jz shut_1 ; & for USER defined shutdown
cmp al,05h ; initialize 8259 (#1, #2)
jz shut_1 ; and (DS), (SS), (SP), STI
cmp al,0ah ; if shut code > 10
jbe shut_2 ; bypass intr. init
jmp short shutdown_0 ; then hard reset
;---------------------------------------;
; INIT 8259 for SHUTDOWN 04, 05 ;
;---------------------------------------;
shut_1:
mov bx,level_2_int*256+level_1_int
ret_sp init_8259_80287 ; shut 4/5, init 8259, 80287
;---------------------------------------;
; INTERNAL CACHE IS ALWAYS ON ;
;---------------------------------------;
shut_2:
jmp shutdown_init
shutdown_init_end:
mov ax,40h ; global data segment (ah) = 0