The Third 512-byte OS Contest!

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).

Which one is the best?

Poll ended at Sat May 30, 2009 8:37 am

Dex's mouse driver
7
39%
Masterkiller's memory browser
2
11%
Inflater's low level formatter
1
6%
scgtrp's etch-a-sketch
2
11%
salil's port access tool
0
No votes
Zenith's music/graphics demo
6
33%
 
Total votes: 18

User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: The Third 512-byte OS Contest!

Post by Troy Martin »

salil: Crashes in both Bochs and VPC:

Code: Select all

00112411872p[FDD  ] >>PANIC<< write 0x03f5: receiving new command 0x00, old one
(0xe6) pending
00112411872e[FDD  ] io_write: 0x3f5: invalid floppy command 0x00
00128689730e[CPU0 ] read_RMW_virtual_word_32(): segment limit violation
00128703055e[CPU0 ] read_RMW_virtual_word_32(): segment limit violation
00128716380e[CPU0 ] read_RMW_virtual_word_32(): segment limit violation
00128729705e[CPU0 ] read_RMW_virtual_word_32(): segment limit violation
00128743030e[CPU0 ] read_RMW_virtual_word_32(): segment limit violation
00128756355e[CPU0 ] read_RMW_virtual_word_32(): segment limit violation
00128769681e[CPU0 ] read_RMW_virtual_word_32(): segment limit violation
00128783007e[CPU0 ] read_RMW_virtual_word_32(): segment limit violation
00128829255i[CPU0 ] WARNING: HLT instruction with IF=0!
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
salil_bhagurkar
Member
Member
Posts: 261
Joined: Mon Feb 19, 2007 10:40 am
Location: India

Re: The Third 512-byte OS Contest!

Post by salil_bhagurkar »

That is weird. For me it works perfectly fine in both Bochs and Qemu. I don't know about VPC since i don't have it right now. It seems to have written to the port 0x3f5.. Did you do that or it just happened. I am not using that port by default in code. Are you sure you configured bochs correctly?
User avatar
Masterkiller
Member
Member
Posts: 153
Joined: Sat May 05, 2007 6:20 pm

Re: The Third 512-byte OS Contest!

Post by Masterkiller »

salil_bhagurkar wrote:That is weird. For me it works perfectly fine in both Bochs and Qemu. I don't know about VPC since i don't have it right now. It seems to have written to the port 0x3f5.. Did you do that or it just happened. I am not using that port by default in code. Are you sure you configured bochs correctly?
It works fine, anyway in bochs I was unable to restart neither writing FE to 0064, not writing 01 to 0092, it just stops, but in Virtual PC works fine. Anyway that problem is not part of your program :)
ALCA OS: Project temporarity suspended!
Current state: real-mode kernel-FS reader...
User avatar
salil_bhagurkar
Member
Member
Posts: 261
Joined: Mon Feb 19, 2007 10:40 am
Location: India

Re: The Third 512-byte OS Contest!

Post by salil_bhagurkar »

Yes, I just tried it in Bochs-2.3.7 and it just freezes. But it works in old versions of Bochs. I guess its about clearing the 8042 buffer or something.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: The Third 512-byte OS Contest!

Post by Troy Martin »

salil_bhagurkar wrote:That is weird. For me it works perfectly fine in both Bochs and Qemu. I don't know about VPC since i don't have it right now. It seems to have written to the port 0x3f5.. Did you do that or it just happened. I am not using that port by default in code. Are you sure you configured bochs correctly?
It doesn't even boot. freezes after a bunch of dots.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: The Third 512-byte OS Contest!

Post by quanganht »

Music demo gives sounds on VM Ware
"Programmers are tools for converting caffeine into code."
User avatar
salil_bhagurkar
Member
Member
Posts: 261
Joined: Mon Feb 19, 2007 10:40 am
Location: India

Re: The Third 512-byte OS Contest!

Post by salil_bhagurkar »

Whats the prize for being last in the poll? :lol:
User avatar
Masterkiller
Member
Member
Posts: 153
Joined: Sat May 05, 2007 6:20 pm

Re: The Third 512-byte OS Contest!

Post by Masterkiller »

Yeah, 10x for that music demo. I just discovered that my internal speaker not working. Anyway MS VPC emulate the sound of internal speaker through the sound card ;) Hm, now I'm looking for a speaker...

BTW scgtrp, you should try to upgrade your etch a sketch with a mouse driver outside of the competition. It'll result a really good program ;)
ALCA OS: Project temporarity suspended!
Current state: real-mode kernel-FS reader...
User avatar
salil_bhagurkar
Member
Member
Posts: 261
Joined: Mon Feb 19, 2007 10:40 am
Location: India

Re: The Third 512-byte OS Contest!

Post by salil_bhagurkar »

I don't understand how Zenith rolls in the whole song in 512 bytes. Its got the PC speaker frequency information, the tone delay and the graphic colors... How can that fill in to 512 bytes? Or is he compressing?
User avatar
NickJohnson
Member
Member
Posts: 1249
Joined: Tue Mar 24, 2009 8:11 pm
Location: Sunnyvale, California

Re: The Third 512-byte OS Contest!

Post by NickJohnson »

I don't think compression would save much space regardless of what you're doing. 512 bytes of anything will only compress fractionally, and you also need to add a decompression routine.
User avatar
Coty
Member
Member
Posts: 286
Joined: Thu Feb 12, 2009 5:12 pm

Re: The Third 512-byte OS Contest!

Post by Coty »

yes, the rotien would cost more than what it would be worth... I cannot find the source, was it even included?
My hero, is Mel.
User avatar
Coty
Member
Member
Posts: 286
Joined: Thu Feb 12, 2009 5:12 pm

oops

Post by Coty »

oops :oops:
Last edited by Coty on Thu May 28, 2009 4:12 pm, edited 2 times in total.
My hero, is Mel.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: The Third 512-byte OS Contest!

Post by Troy Martin »

I don't think it was... I'll definitely include that as a rule in the next compo.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
Coty
Member
Member
Posts: 286
Joined: Thu Feb 12, 2009 5:12 pm

Re: The Third 512-byte OS Contest!

Post by Coty »

So i guess how it works will remain a mystery.
My hero, is Mel.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: The Third 512-byte OS Contest!

Post by Troy Martin »

Well, one could always decompile the binary, but that would translate stuff incorrectly..
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
Post Reply