|
|
Writing an OS in Assembly- Questions
Author |
Message |
Terry A. Davis
Joined: Tue Jan 19, 2010 11:51 pm Posts: 66
|
![Post Post](./styles/serenity/imageset/icon_topic_latest.gif) 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 |
|
![](./styles/serenity/theme/images/spacer.gif) |
Wendell890
Joined: Mon Mar 29, 2010 3:55 pm Posts: 10
|
![Post Post](./styles/serenity/imageset/icon_topic_latest.gif) 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 |
|
![](./styles/serenity/theme/images/spacer.gif) |
Wendell890
Joined: Mon Mar 29, 2010 3:55 pm Posts: 10
|
![Post Post](./styles/serenity/imageset/icon_topic_latest.gif) 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 |
|
![](./styles/serenity/theme/images/spacer.gif) |
AndyEsser
Joined: Mon Oct 26, 2009 2:33 pm Posts: 38 Location: United Kingdom
|
![Post Post](./styles/serenity/imageset/icon_topic_latest.gif) 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 |
|
![](./styles/serenity/theme/images/spacer.gif) |
Wendell890
Joined: Mon Mar 29, 2010 3:55 pm Posts: 10
|
![Post Post](./styles/serenity/imageset/icon_topic_latest.gif) 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 |
|
![](./styles/serenity/theme/images/spacer.gif) |
AndyEsser
Joined: Mon Oct 26, 2009 2:33 pm Posts: 38 Location: United Kingdom
|
![Post Post](./styles/serenity/imageset/icon_topic_latest.gif) 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 |
|
|
Who is online |
Users browsing this forum: No registered users and 92 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
|
|