Please , help in assembly

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
zues

Please , help in assembly

Post 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
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re: Please, help in assembly

Post by Perica »

..
Last edited by Perica on Tue Dec 05, 2006 9:36 pm, edited 1 time in total.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Please , help in assembly

Post 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)
dh

Re:Please , help in assembly

Post 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.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Please , help in assembly

Post 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.
User avatar
Colonel Kernel
Member
Member
Posts: 1437
Joined: Tue Oct 17, 2006 6:06 pm
Location: Vancouver, BC, Canada
Contact:

Re:Please , help in assembly

Post by Colonel Kernel »

0x1BADB002 -- "One Bad Boot" :)
Top three reasons why my OS project died:
  1. Too much overtime at work
  2. Got married
  3. My brain got stuck in an infinite loop while trying to design the memory manager
Don't let this happen to you!
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Please , help in assembly

Post by Pype.Clicker »

mov eax, help
mov zues, eax

;D
dh

Re:Please , help in assembly

Post 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.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Please , help in assembly

Post 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/)...
Every good solution is obvious once you've found it.
Post Reply