building a OS

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
zonas
Posts: 8
Joined: Tue Sep 25, 2007 1:22 pm
Location: Danmark

building a OS

Post by zonas »

i want to build a simlp Unix like OS like Linux i want to build it in asm but what asm is the best to build a OS in i am runing Linux(Mandriva2008rc2)... my OS will have a Kernel call zxKernel and a simpl text based user interface edit: my homepage for more info about zxkernel http://www.jonasogco.vapnet.dk
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Post by neon »

I personally recommend NASM...It supports more output formats then TASM and MASM, it also uses a nice syntax that tends to be "easier" to work with.

*edit: I clicked your link, but all I got was a blank white page...
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
zonas
Posts: 8
Joined: Tue Sep 25, 2007 1:22 pm
Location: Danmark

Post by zonas »

the site works now but need more work
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

zonas wrote:the site works now but need more work
Really? 8)

Code: Select all

src="file:///C:/Documents%20and%20Settings/Jonas%20Emil%20Sommer/Skrivebord/site/img/zxkernel.PNG"
That doesn't look right.. ;) :lol:
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
zonas
Posts: 8
Joined: Tue Sep 25, 2007 1:22 pm
Location: Danmark

Post by zonas »

it works fine now
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Post by neon »

...Still does not work for me.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

Post by Craze Frog »

It seems to work here.
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Post by neon »

Craze Frog wrote:It seems to work here.
Hmm... For mw, I just get a blank white page (Firefox 2.0.0.7)

I see... It seems to work in IE 7, but not firefox...
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

neon wrote:
Craze Frog wrote:It seems to work here.
Hmm... For mw, I just get a blank white page (Firefox 2.0.0.7)

I see... It seems to work in IE 7, but not firefox...
It has that fugly Web2.0 look.. but it works fine in Firefox 2.0.0.6 on OpenBSD..

One thing I noticed though, Apache virtual hosts aren't configured properly..

Without the "www." prefix it loads a different page ;)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
vhg119
Member
Member
Posts: 71
Joined: Fri Aug 24, 2007 5:56 pm
Location: CA, USA

Re: building a OS

Post by vhg119 »

zonas wrote:i want to build a simlp Unix like OS like Linux i want to build it in asm but what asm is the best to build a OS in i am runing Linux(Mandriva2008rc2)... my OS will have a Kernel call zxKernel and a simpl text based user interface edit: my homepage for more info about zxkernel http://www.jonasogco.vapnet.dk
I recommend GNU AS. That way you won't get shocked when you have to write some inline assembly for GCC.
vhg119
Member
Member
Posts: 71
Joined: Fri Aug 24, 2007 5:56 pm
Location: CA, USA

Post by vhg119 »

I'd also advise you to start using periods and commas. Punctuation does a lot for readability.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

I'd point you towards NASM, because it uses intel syntax and is thus actually human-readable. And I also concur with the punctuation statement.
zonas
Posts: 8
Joined: Tue Sep 25, 2007 1:22 pm
Location: Danmark

Post by zonas »

Post Reply