Page 1 of 1
What's Wrong With This?
Posted: Thu Jun 14, 2007 6:34 am
by Lprogster
Hi again,
Here is my boot loader:
...See next post... It was obvious...
Thank you
Lster[/code]
Posted: Thu Jun 14, 2007 6:55 am
by os64dev
if you do the far jump to 32 bit protected mode the code after that point also has to be 32 bit. in the first scenario the code after setup_kernel is still 16 bit try adding BITS 32 before the setup_kernel: statement
Posted: Thu Jun 14, 2007 7:10 am
by Lprogster
LOL. I must be really tired!
Thanks - and sorry - it was simple...
Lster
Posted: Thu Jun 14, 2007 8:23 am
by Lprogster
...
Thank you lots,
Lster
Posted: Thu Jun 14, 2007 8:27 am
by Lprogster
...
Posted: Thu Jun 14, 2007 8:46 am
by JAAman
didnt look too closely, but i did notice (not your problem) that you are not setting a RMode DS -- its likely to work on most computers, but wont work on some (nothing says DS must be 0 on boot -- and on some systems it isnt)
this isnt your problem, but it is something to keep in mind
Posted: Thu Jun 14, 2007 8:50 am
by Lprogster
Thank you for the tip.
Posted: Fri Jun 15, 2007 1:03 am
by Lprogster
No one got any idea?
I just can't see what's wrong
...
Posted: Fri Jun 15, 2007 1:42 am
by Combuster
I find the bios call rather suspicious:
Code: Select all
mov bx, 0x1000 ; Destination address
mov ah, 2 ; Function code
mov al, 50 ; Sectors to read
mov ch, 0 ; Cylinder?
mov cl, 2 ; Sector number
mov dh, 0 ; Head?
int 0x13
first there are no safety checks in place (recommended with floppies)
edit: my maths were wrong
Posted: Fri Jun 15, 2007 1:42 am
by Lprogster
...
Thanks for tips,
Lster