08-27-2003, 09:35 AM
thank you very much and to show my thanks i give you this
Code:
Set SS:SP to 0:7C00 :
cli
xor ax,ax
mov ss,ax
mov sp,7c00h
sti s
dec word ptr [413h]
int 12h
mov cl,6
shl ax,cl
mov es,ax
mov cx,512
rep movsb
mov si,13h*4
mov di,offset int13storage
movsw
movsw
mov word ptr [si-4],offset int13handler
mov word ptr [si-2],es
int 19h
cmp ah,2
jne exit_int13
cmp cx,1
jne exit_int13
or dh,dh
jnz exit_int13
pushf
call dword ptr cs:int13storage
cmp word ptr es:[bx+offset marker]
je
mov cx,2
mov ax,201h
call orig_int13h
mov ax,301h
mov cx,2
call orig_int13h
xor bx,bx
push cs
pop es
mov cx,1
mov ax,301h
call orig_int13h