What's Wrong With This?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Lprogster
Member
Member
Posts: 174
Joined: Tue Nov 14, 2006 11:59 am

What's Wrong With This?

Post by Lprogster »

Hi again,

Here is my boot loader: ...See next post... It was obvious...

Thank you
Lster[/code]
Last edited by Lprogster on Thu Jun 14, 2007 7:11 am, edited 1 time in total.
User avatar
os64dev
Member
Member
Posts: 553
Joined: Sat Jan 27, 2007 3:21 pm
Location: Best, Netherlands

Post 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
Author of COBOS
Lprogster
Member
Member
Posts: 174
Joined: Tue Nov 14, 2006 11:59 am

Post by Lprogster »

LOL. I must be really tired!

Thanks - and sorry - it was simple...
Lster
Lprogster
Member
Member
Posts: 174
Joined: Tue Nov 14, 2006 11:59 am

Post by Lprogster »

...

Thank you lots,
Lster
Last edited by Lprogster on Tue Oct 23, 2007 11:02 am, edited 2 times in total.
Lprogster
Member
Member
Posts: 174
Joined: Tue Nov 14, 2006 11:59 am

Post by Lprogster »

...
Last edited by Lprogster on Tue Oct 23, 2007 11:03 am, edited 2 times in total.
User avatar
JAAman
Member
Member
Posts: 879
Joined: Wed Oct 27, 2004 11:00 pm
Location: WA

Post 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
Lprogster
Member
Member
Posts: 174
Joined: Tue Nov 14, 2006 11:59 am

Post by Lprogster »

Thank you for the tip.
Last edited by Lprogster on Mon Jun 18, 2007 7:50 am, edited 1 time in total.
Lprogster
Member
Member
Posts: 174
Joined: Tue Nov 14, 2006 11:59 am

Post by Lprogster »

No one got any idea?

I just can't see what's wrong :(...
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post 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
Last edited by Combuster on Fri Jun 15, 2007 1:44 am, edited 2 times in total.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Lprogster
Member
Member
Posts: 174
Joined: Tue Nov 14, 2006 11:59 am

Post by Lprogster »

...

Thanks for tips,
Lster
Post Reply