Bona Fide OS Developer
View unanswered posts | View active topics It is currently Thu Sep 20, 2018 7:24 pm



Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
 Writing an OS in Assembly- Questions 
Author Message

Joined: Tue Jan 19, 2010 11:51 pm
Posts: 66
Post Re: Writing an OS in Assembly- Questions
Your boot sector normally loads-in the next part. I don't know about Macs. On a PC, your boot sector is one block and normally uses the BIOS INT 13 to load-in more.


Thu Apr 01, 2010 3:23 pm
Profile

Joined: Mon Mar 29, 2010 3:55 pm
Posts: 10
Post Re: Writing an OS in Assembly- Questions
Well, right now I'm trying to figure out how to divide my kernel so I can put it into multiple parts.

_________________
2A9B982B-F231-487C-A5FF-B27FEF30BF44


Fri Apr 02, 2010 1:12 am
Profile

Joined: Mon Mar 29, 2010 3:55 pm
Posts: 10
Post Re: Writing an OS in Assembly- Questions
Progress on my OS has halted because of a very simple problem, however I have no idea how to fix it.
I'm trying to split my assembly kernel up into two parts and link those parts together.
Can someone help me with this problem?

_________________
2A9B982B-F231-487C-A5FF-B27FEF30BF44


Wed Jun 02, 2010 6:13 am
Profile

Joined: Mon Oct 26, 2009 2:33 pm
Posts: 38
Location: United Kingdom
Post Re: Writing an OS in Assembly- Questions
Write a bootloader, this is less than 512 Bytes and simply loads your Kernel (all of it) into memory and jumps execution.

There are various tutorials around to tell you how to do this so I won't go into specifics here.

_________________
Andy Esser
neogenix Broadcast


Thu Jun 03, 2010 9:45 am
Profile

Joined: Mon Mar 29, 2010 3:55 pm
Posts: 10
Post Re: Writing an OS in Assembly- Questions
So you're saying I could use jumps to load multiple parts of a Kernel?

_________________
2A9B982B-F231-487C-A5FF-B27FEF30BF44


Thu Jun 03, 2010 11:23 am
Profile

Joined: Mon Oct 26, 2009 2:33 pm
Posts: 38
Location: United Kingdom
Post Re: Writing an OS in Assembly- Questions
Not exactly.

Use BIOS Interrupt 13, which is for reading from a disk into memory.

Once that it done, if you jump execution to where you loaded the kernel into memory (using jmpi) then execution will continue from that 2nd stage that you've loaded into memory, and thus have a larger kernel.

If you do a google search for "2nd Stage Bootloader Tutorial" it should point you in the right direction.

_________________
Andy Esser
neogenix Broadcast


Fri Jun 04, 2010 10:47 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin and tweaked by the BF Team.