Page 1 of 1
assembly
Posted: Sun Jan 29, 2017 3:41 pm
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.
Re: assembly
Posted: Mon Jan 30, 2017 2:48 am
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....
Re: assembly
Posted: Mon Jan 30, 2017 1:43 pm
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.
Re: assembly
Posted: Mon Jan 30, 2017 3:25 pm
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?
Re: assembly
Posted: Mon Jan 30, 2017 3:32 pm
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.
Re: assembly
Posted: Mon Jan 30, 2017 4:19 pm
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)