ehm, tom, i'm sorry but u must be a lil less than u sau u r...
look in the manuals, sector must be a non-zero value. Thus, 1=0 2=1 etc.it is strange i agree. I also have to start at sector 2 for the 2nd half of the kernel loader, i thought i had to start at sector 0 or maybe 1 but i was wrong. Plus,in FritzOS u use sector 2 for both also so what in the world r u even talking about? I have ur code too, so ican show u(how could u forget this?? R u even Tom Fritz?? Did u steal that code? At least don't act like u know all.
|--------FritzOS boot.asm snippet----------|
; Read the floppy drive for loading the FritzOS C+ Kernel
ReadFloppy:
mov bx, 9000h ; Load FritzOS at 9000h.
mov ah, 0x02 ; Load disk data to ES:BX
mov al, 17 ; Load two floppy head full's worth of data.
mov ch, 0 ; First Cylinder
mov cl, 2 ; Start at the 2nd Sector, so you don't load the bootsector, you load
; the C++ Kernel/Second Stage Loader ( they are linked together ).
mov dh, 0 ; Use first floppy head
mov dl, [ drive ] ; Load from the drive FritzOS booted from.
int 13h ; Read the floppy disk.
jc ReadFloppy ; Error, try again.
; Now, since FritzOS is over 17 sectors ( one floppy head has 17 sectors ( 18, sector 0 is included in the
; number ), we load another floppy head.
ReadFloppy2:
mov al, 17 ; The Second Head Full
inc dh ; Set it to the second head
int 13h ; Read the floppy disk.
|-----------End snippet------------------|
That was from Pre-kernel 0.7
sigh, don't try to act above the rest of us, i don't appreciate it and i'm sure others don't either.
friendly regards,
mr. xsism
ps:bth mine and ur reset floppy code won't work on real PCs. I'm trying to figure it out, but till then, it's a problem

it lops (CF flag)