介绍bios的一些代码!色粉的说的 受伤的发生大幅啊四谛法的四谛法四谛法阿斯顿发生的是 士大夫的发生阿斯顿飞爱上
; this routine copies 64k code to ram segment and give control to ram. ; ; input : ;
; none ;
; stack available ;
; output: ;
; none ;
; register destroyed..ALL except DS, ES, BP ;
;-----------------------------------------------------------------------;
extrn copy_64k_memory:near
public copy_control_to_ram
copy_control_to_ram proc near
push es
push ds
mov es,cgroup:ram_segment
push cs
pop ds ; source segment
call copy_64k_memory
; transfer control to ram segment..
push es ; ram_segment
push offset cgroup:xxx
retf
xxx:
pop ds
pop es
xxx_exit:
ret
copy_control_to_ram endp
;-----------------------------------------------------------------------;
; COPY_TO_SHADOW ;
;-----------------------------------------------------------------------;
; this routine copies the code to asked shadow. ;
; input : ;
; ES:DI destn seg:off ;
; DS:SI source segment:offset ;
; CX #of bytes to move ;
; 0000 = 64k copy ;
; stack available ;
; output: ;
; none ;
; register destroyed..ALL except DS, ES, BP ;
;-----------------------------------------------------------------------;
extrn move_bytes:near
extrn enable_shadow_write:near
extrn disable_shadow_write:near
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库中文诊断卡代码大全(BIOS_POST)(14)在线全文阅读。
相关推荐: