介绍bios的一些代码!色粉的说的 受伤的发生大幅啊四谛法的四谛法四谛法阿斯顿发生的是 士大夫的发生阿斯顿飞爱上
public power_on_init_end
extrn hreset_clear:near
public hreset_clear_end
extrn sreset_clear:near
public sreset_clear_end
extern StopUsbHostController(dummy_ret):near
extrn dummy_ret:near
extrn disable_all_cache:near
extrn shutdown_init:near
public shutdown_init_end
extrn decompress_post_init:near
;---------------------------------------;
; C O D E S E G M E N T ;
;---------------------------------------;
cgroup group _text
_text segment word public 'CODE'
assume cs:cgroup
.486p
;---------------------------------------;
public _BIOS_STARTS
_BIOS_STARTS label byte ; marks start of module
;---------------------------------------;
; FLAGS TEST (SF,ZF,PF,CF) ;
; ;---;---;---;---;---;---;---;---; ;
; ; S ; Z ; x ; A ; x ; P ; x ; C ; ;
; ;---;---;---;---;---;---;---;---; ;
; HARD RESET OR SHUTDOWN RESET ;
;---------------------------------------;
; SHUTDOWN PROCESSING ;
;---------------------------------------;
bios_suru:
cli ; test under CLI mode
cld ; ensure direction
mov ax,cs
mov ss,ax
; $$$CORE0036+ >>>
extern wake_up(wake_up_end):near
public wake_up_end
jmp wake_up ; check for wakeup
wake_up_end: ; control will come here only if wake up is not needed
; $$$CORE0036+ <<<
jmp power_on_init
power_on_init_end:
in al,kb_stat_port ; if sys_flag bit is set