介绍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