OSDev.org
https://forum.osdev.org/

assembly
https://forum.osdev.org/viewtopic.php?f=13&t=31318
Page 1 of 1

Author:  billcu [ Sun Jan 29, 2017 3:41 pm ]
Post subject:  assembly

Ok I know some general stuff about assembly but I have generally tried to avoid it. To work with "Bare Bones" which is the first and easiest of the OS tutorials I am assuming, assembly is going to be needed. Does anyone have any opinions about where good assembly tutorials are? DJ Delorie's site looks good. How deep into this is one going to have to go to do the bare bones project? I am thinking writing a MBR and bootsector.

:?

Author:  dchapiesky [ Mon Jan 30, 2017 2:48 am ]
Post subject:  Re: assembly

Before choosing which assembly tutorial... you should make us aware what architecture you mean to target.... as in i486? or x86_64? etc... that will play a role in just what tutorials to suggest....

Author:  billcu [ Mon Jan 30, 2017 1:43 pm ]
Post subject:  Re: assembly

dchapiesky wrote:
Before choosing which assembly tutorial... you should make us aware what architecture you mean to target.... as in i486? or x86_64? etc... that will play a role in just what tutorials to suggest....


I am running a x64. I am going with the wiki and I will compile for i686-elf.

Author:  dozniak [ Mon Jan 30, 2017 3:25 pm ]
Post subject:  Re: assembly

billcu wrote:
x64. for i686-elf.


wait, wat.

do you mean your host machine is x86_64 and you're targeting plain x86?

Author:  billcu [ Mon Jan 30, 2017 3:32 pm ]
Post subject:  Re: assembly

dozniak wrote:
billcu wrote:
x64. for i686-elf.


wait, wat.

do you mean your host machine is x86_64 and you're targeting plain x86?


Yes. bare Bones wants you to build a i686-elf binary OS. I am trying to find all the compiler switches I would need.

Author:  dozniak [ Mon Jan 30, 2017 4:19 pm ]
Post subject:  Re: assembly

billcu wrote:
dozniak wrote:
billcu wrote:
x64. for i686-elf.


wait, wat.

do you mean your host machine is x86_64 and you're targeting plain x86?


Yes. bare Bones wants you to build a i686-elf binary OS. I am trying to find all the compiler switches I would need.


Try

http://cs.lmu.edu/~ray/notes/nasmtutorial/
http://asmtutor.com
http://stackoverflow.com/questions/1947 ... m-tutorial

should be enough for starters (yup, all three are top hits from a google search, because it's faster than asking on forums)

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