Please , help in assembly
Please , help in assembly
Hi all, i'd like to express my pleasure to join this wonderful forum .
firstly i'm new in os develop.
i want a good resource or tutorial that explains assembly langauge for OS develpo. in an easy steps.
please help.
thx for reading
Tarek
firstly i'm new in os develop.
i want a good resource or tutorial that explains assembly langauge for OS develpo. in an easy steps.
please help.
thx for reading
Tarek
Re: Please, help in assembly
..
Last edited by Perica on Tue Dec 05, 2006 9:36 pm, edited 1 time in total.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Please , help in assembly
imho, if you're not comfortable with ASM, try to avoid it ... you can achieve that quite easily by using GRUB, the faq-providen Bare Bones and basic inline function (in the FAQ too)
Re:Please , help in assembly
Enjoy the OS-FAQ!!! It's great stuff and easy to read (even if your a "uber-n00b").
@pype: how does one use the arguements supplied by the code in barebones?
What i mean is: what does mbd point to (void* means NOTHING to me) and what is magic for? Thanks ;D
Cheers, DH.
@pype: how does one use the arguements supplied by the code in barebones?
Code: Select all
( void* mbd, unsigned int magic )
Cheers, DH.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Please , help in assembly
Keep in mind that BareBones is a multiboot-aware kernel. The "magic" word it recieves is the multiboot magic word (should be 0xbadb0012 or something, check multiboot specs) and if that magic word is matched, then MBD should point to the Multiboot Data structure, which gives information about available memory, video modes, etc.Dragon_Hilord wrote: @pype: how does one use the arguements supplied by the code in barebones?What i mean is: what does mbd point to (void* means NOTHING to me) and what is magic for? Thanks ;DCode: Select all
( void* mbd, unsigned int magic )
- Colonel Kernel
- Member
- Posts: 1437
- Joined: Tue Oct 17, 2006 6:06 pm
- Location: Vancouver, BC, Canada
- Contact:
Re:Please , help in assembly
0x1BADB002 -- "One Bad Boot"
Top three reasons why my OS project died:
- Too much overtime at work
- Got married
- My brain got stuck in an infinite loop while trying to design the memory manager
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Please , help in assembly
Thats great 1BADB002....
Thanks pype! (sorry im late to reply, I lose track of which threads I'm talking in ???).
[edit]oh ya, is the multiboot structure in the document also?[/edit]
Cheers, DH.
Thanks pype! (sorry im late to reply, I lose track of which threads I'm talking in ???).
[edit]oh ya, is the multiboot structure in the document also?[/edit]
Cheers, DH.
Re:Please , help in assembly
The Multiboot structure is in the Multiboot specification, which is part of the GRUB documentation (www.gnu.org/software/grub/)...Dragon_Hilord wrote: [edit]oh ya, is the multiboot structure in the document also?[/edit]
Every good solution is obvious once you've found it.