OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Jun 26, 2017 6:10 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: assembly
PostPosted: Sun Jan 29, 2017 3:41 pm 
Offline

Joined: Tue Aug 26, 2014 9:12 pm
Posts: 15
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.

:?


Top
 Profile  
 
 Post subject: Re: assembly
PostPosted: Mon Jan 30, 2017 2:48 am 
Offline
Member
Member
User avatar

Joined: Sun Dec 25, 2016 1:54 am
Posts: 195
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....

_________________
Plagiarize. Plagiarize. Let not one line escape thine eyes...


Top
 Profile  
 
 Post subject: Re: assembly
PostPosted: Mon Jan 30, 2017 1:43 pm 
Offline

Joined: Tue Aug 26, 2014 9:12 pm
Posts: 15
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.


Top
 Profile  
 
 Post subject: Re: assembly
PostPosted: Mon Jan 30, 2017 3:25 pm 
Offline
Member
Member
User avatar

Joined: Thu Jul 12, 2012 7:29 am
Posts: 691
Location: Tallinn, Estonia
billcu wrote:
x64. for i686-elf.


wait, wat.

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

_________________
Learn to read.


Top
 Profile  
 
 Post subject: Re: assembly
PostPosted: Mon Jan 30, 2017 3:32 pm 
Offline

Joined: Tue Aug 26, 2014 9:12 pm
Posts: 15
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.


Top
 Profile  
 
 Post subject: Re: assembly
PostPosted: Mon Jan 30, 2017 4:19 pm 
Offline
Member
Member
User avatar

Joined: Thu Jul 12, 2012 7:29 am
Posts: 691
Location: Tallinn, Estonia
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)

_________________
Learn to read.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Steeler [Crawler] and 1 guest


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group