Page 1 of 1

Please , help in assembly

Posted: Wed Jan 19, 2005 6:56 am
by zues
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

Re: Please, help in assembly

Posted: Wed Jan 19, 2005 7:34 am
by Perica
..

Re:Please , help in assembly

Posted: Wed Jan 19, 2005 8:43 am
by Pype.Clicker
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

Posted: Wed Jan 19, 2005 10:47 am
by dh
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?

Code: Select all

( void* mbd, unsigned int magic )
What i mean is: what does mbd point to (void* means NOTHING to me) and what is magic for? Thanks ;D



Cheers, DH.

Re:Please , help in assembly

Posted: Wed Jan 19, 2005 12:33 pm
by Pype.Clicker
Dragon_Hilord wrote: @pype: how does one use the arguements supplied by the code in barebones?

Code: Select all

( void* mbd, unsigned int magic )
What i mean is: what does mbd point to (void* means NOTHING to me) and what is magic for? Thanks ;D
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.

Re:Please , help in assembly

Posted: Wed Jan 19, 2005 2:57 pm
by Colonel Kernel
0x1BADB002 -- "One Bad Boot" :)

Re:Please , help in assembly

Posted: Wed Jan 19, 2005 3:51 pm
by Pype.Clicker
mov eax, help
mov zues, eax

;D

Re:Please , help in assembly

Posted: Tue Jan 25, 2005 8:49 am
by dh
Thats great :D 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.

Re:Please , help in assembly

Posted: Tue Jan 25, 2005 10:25 am
by Solar
Dragon_Hilord wrote: [edit]oh ya, is the multiboot structure in the document also?[/edit]
The Multiboot structure is in the Multiboot specification, which is part of the GRUB documentation (www.gnu.org/software/grub/)...