OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 24, 2024 1:10 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: The Loader
PostPosted: Wed Feb 07, 2001 12:00 am 
Hello,
I've found this site through luck. Anyway
wonderful explaination about C-asm connection.
But is any way to learn how the loader works?

Second thing is that the loader seems to be
larger than 512 bytes, is it legal though? Or
is the loader just have to manually load the
parts after 512 bytes?


Top
  
 
 Post subject: RE:TheĀ Loader
PostPosted: Wed Feb 07, 2001 12:00 am 
>On 2001-02-07 18:34:05, Ben wrote:
>Hello,
> I've found this site through luck. Anyway
>wonderful explaination about C-asm connection.
>But is any way to learn how the loader works?

Did you notice the last sentence contains a link to
the source code? Hopefully within the next month or 2
I'll make a tutorial on second stage bootloaders.

The loader basically has DOS read a 64k chuck of the
kernel and then starts PMode and copies that chuck
upto the first meg of memory. Then repeats until the
entire kernel is read and then calls the fully loaded
kernel.

> Second thing is that the loader seems to be
>larger than 512 bytes, is it legal though? Or
>is the loader just have to manually load the
>parts after 512 bytes?

Yes it's legal because it's nothing more than a
standard DOS app (well maybe not that standard),
so DOS handles loading the entire file. The 512
limit really only comes into play when creating
boot sectors and second stage loaders. I'm working
on the Boot Sector tutorial as we speak, so it
should be up in the next two weeks.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 116 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group