I want to hook INT 13h to when this interrupt read sector(s) i intercept it and i read the sector(s) in sector 10H(16) but OS kant bootstrap with my code. here is my source:
code:
cli
cs
mov si,[4Ch]
cs
mov di,[4Eh]
cs
mov [180h],cx
cs
mov [182h],dx
mov si,0
mov di,2000h
cs
mov [4Ch],si
cs
mov [4Eh],di
sti
mov si,2000h
mov es,si
mov si,payload
mov di,0
mov cx,codelastbyte-payload
cld
repz
movsb
mov ax,201h
push cs
pop es
mov bx,7c00h
mov cx,7
mov dx,80h
int 60h
jmp 0:7C00h
payload: ;NEW INT13H
;pushaw
pushfw
push ds
push es
push ss
sti
cld
cmp ah,2h
jnz gogo
pusha
MOV AH,3
MOV AL,1
MOV CH,0
MOV CL,10H
MOV DH,0
MOV DL,80H
INT 60H ;ORIGINAL INT 13H
popa
gogo:
INT 60H
pop ss
pop es
pop ds
popfw
iret
codelastbyte:
what is wrong?