assembly

Programming, for all ages and all languages.
Post Reply
billcu
Posts: 17
Joined: Tue Aug 26, 2014 9:12 pm

assembly

Post by billcu »

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.

:?
User avatar
dchapiesky
Member
Member
Posts: 204
Joined: Sun Dec 25, 2016 1:54 am
Libera.chat IRC: dchapiesky

Re: assembly

Post by dchapiesky »

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

Re: assembly

Post by billcu »

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.
User avatar
dozniak
Member
Member
Posts: 723
Joined: Thu Jul 12, 2012 7:29 am
Location: Tallinn, Estonia

Re: assembly

Post by dozniak »

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

Re: assembly

Post by billcu »

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.
User avatar
dozniak
Member
Member
Posts: 723
Joined: Thu Jul 12, 2012 7:29 am
Location: Tallinn, Estonia

Re: assembly

Post by dozniak »

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.
Post Reply