Bona Fide OS Development
http://forums.osdever.net/

Writing an OS in Assembly- Questions
http://forums.osdever.net/viewtopic.php?f=5&t=244
Page 2 of 2

Author:  Terry A. Davis [ Thu Apr 01, 2010 3:23 pm ]
Post subject:  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.

Author:  Wendell890 [ Fri Apr 02, 2010 1:12 am ]
Post subject:  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.

Author:  Wendell890 [ Wed Jun 02, 2010 6:13 am ]
Post subject:  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?

Author:  AndyEsser [ Thu Jun 03, 2010 9:45 am ]
Post subject:  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.

Author:  Wendell890 [ Thu Jun 03, 2010 11:23 am ]
Post subject:  Re: Writing an OS in Assembly- Questions

So you're saying I could use jumps to load multiple parts of a Kernel?

Author:  AndyEsser [ Fri Jun 04, 2010 10:47 am ]
Post subject:  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.

Page 2 of 2 All times are UTC - 6 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/