problem loading kernel
Posted: Tue Mar 09, 2004 11:09 am
my kernel consists of almost 36k.
but it's not loading properly.
here is my code to load kernel.
but it's not loading properly.
here is my code to load kernel.
Code: Select all
mov ax,0x0
mov es,ax
mov bx, 0xB800
mov ah,2
mov al,18
mov ch,7
mov cl,1
mov dh,0
int 0x13
jc error
mov ax,0x0
mov es,ax
mov bx, 0xDC00
mov ah,2
mov al,18
mov ch,8
mov cl,1
mov dh,0
int 0x13
jc error
mov ax,0x1000
mov es,ax
mov bx, 0x0
mov ah,2
mov al,18
mov ch,9
mov cl,1
mov dh,0
int 0x13
jc error
mov ax,0x1000
mov es,ax
mov bx, 0x2400
mov ah,2
mov al,18
mov ch,10
mov cl,1
mov dh,0
int 0x13
jc error
[\code]
the probelm occurs when i load 4th track.all tracks are loaded
properly cuz carry flag is not set.but i think something is wrong with loading addresses.
please tell me the problem and how to correct it.