Page 4 of 5

Re: The Fourth 512-byte OS Contest!

Posted: Tue Jan 05, 2010 5:18 pm
by a427
@js: Are you in the process to submit an entry you're still working on,
or do you intend to compete with your snake-like (gfx mode) demo shipped with your nifty kb input trick ?

(because I've started listing all submitted entries in the main post of this topic)

remember, deadline is jan 15th 2010

Re: The Fourth 512-byte OS Contest!

Posted: Wed Jan 06, 2010 10:06 am
by js
a427 wrote:@js: Are you in the process to submit an entry you're still working on,
or do you intend to compete with your snake-like (gfx mode) demo shipped with your nifty kb input trick ?
I'm still working on it, this was just a tip for other competitors.
a427 wrote:remember, deadline is jan 15th 2010
I know, thanks :) .

Cheers.

EDIT :
@XanClic I forgot to say I was impressed that you managed to fit some network communication in only 312 bytes... If I have time [ which I never have], I'd like to make a joke based on your bootsector... I hope you don't mind ?

Re: The Fourth 512-byte OS Contest!

Posted: Wed Jan 06, 2010 2:17 pm
by Dex
Nice work XanClic 8).

I am too busy with the next release of DexOS, but good luck to all who enter.

Re: The Fourth 512-byte OS Contest!

Posted: Thu Jan 14, 2010 9:11 am
by js
About the deadline hour, it's 15th january 2010 23h59 UTC, right ?
Or is it 15th january 2010 00h00 UTC ??? (owowow, I'mnotgonnamakeit :-p)

*actively working on my entry*

Re: The Fourth 512-byte OS Contest!

Posted: Thu Jan 14, 2010 2:11 pm
by Krap
Hi everybody,

I come a bit late, but not too late, so here's my compo !
It's been quite ready for 2 months, but i wanted to take time to improve it a bit and fix a few bugs, ... but no time for it :roll: , so here it is, as is.

It's named "The Imperial Couac !" ; it's a "scenarized" :mrgreen: Conway's game of life-like, with its wonderful (close your ears to avoid damage) soundtrack that gave its name to the program :lol:

So here's the binary :
TheImperialOuch.zip
The binary... Fun to make a zip bigger than its content ;-)
(637 Bytes) Downloaded 251 times
And here's the source code
TheImperialOuch.asm
The source...
(16.52 KiB) Downloaded 318 times
I must thank a427 for giving me the opportunity to get back my hands in assembly after more than 10 years (and for having threatened me of the most horrible things if i hadn't sent my code) ! It was sooooooo good :D

Good luck to everyone !

Re: The Fourth 512-byte OS Contest!

Posted: Thu Jan 14, 2010 4:20 pm
by a427
js wrote:About the deadline hour, it's 15th january 2010 23h59 UTC, right ?
Or is it 15th january 2010 00h00 UTC ??? (owowow, I'mnotgonnamakeit :-p)

*actively working on my entry*
The deadline is the 15th january 2010 23h59 UTC.
I mean we should theoretically close the contest for submission starting from the 16th january 2010 00h00 UTC.

This way, you get a little more time to join us !

I plan to open the poll starting from the 16th january, and let it go for 2 weeks.. (hoping that some people will vote in that period)

what do you think guys ?

Re: The Fourth 512-byte OS Contest!

Posted: Thu Jan 14, 2010 5:03 pm
by js
a427 wrote:The deadline is the 15th january 2010 23h59 UTC.
I mean we should theoretically close the contest for submission starting from the 16th january 2010 00h00 UTC.
Pheeeew.... glad of that.
a427 wrote:I plan to open the poll starting from the 16th january, and let it go for 2 weeks.. (hoping that some people will vote in that period)
I wonder if competitors will be able to vote ?

[my life]
Yeeeeaaaaah !!! I managed to fit that darn heightmap function into 69 bytes ! I found myself singing and dancing around the room :lol:... luckily, nobody's there watching
[/my life]

Re: The Fourth 512-byte OS Contest!

Posted: Thu Jan 14, 2010 5:15 pm
by a427
js wrote: I wonder if competitors will be able to vote ?
Well I guess so...
Like a normal vote : every OSDev.org forum members interested in this contest should be able
to vote for their favorite 4th 512 byte asm compo entry..

Only once of course !

But I don't see why competitors couldn't vote, too...
(one could even vote for somebody else, if the competitor performed better ;-))

Anyway, this contest (compared to quok's one) has no money prize, and is only run for fun,
so I suppose we can tolerate such a loosely democratic poll... :-)

Re: The Fourth 512-byte OS Contest!

Posted: Fri Jan 15, 2010 5:07 pm
by a427
@js :

Are you in the process to submit your entry real soon, or should we close the submission and start the vote ?

Re: The Fourth 512-byte OS Contest!

Posted: Fri Jan 15, 2010 6:01 pm
by js
my entry.

Re: The Fourth 512-byte OS Contest!

Posted: Fri Jan 15, 2010 6:33 pm
by js
[EDIT]Use qemu -fda 512.txt to test it. I didn't try it with any other emulator or real machine, although it should work.[/EDIT]

DAMN THIS SLUGGISH COMPUTER ! I posted my entry one minute after deadline, I hope you'll still accept it.

Now for the description I didn't have time to put in my previous post :

Features
* Code is 456 bytes, so there's some space left for improvement (and I didn't squish my last hour of work, so you can assume it to be below 450 bytes actually).
* Draws a (fractal) 3D terrain in grayscale on the screen.
* Draws (fractal) trees on it
* Is interactive : you can move by pressing the Up/Down/Left/Right keyboard keys. Press one per frame though, as otherwise the BIOS will kindly buffer a dozen movements for you.

Non-features
* It's slow as hell. But since AFAIK, real mode code is executed by an emulated 8mhz chip by the processor, this explains that...
Those I didn't have time to implement :
* The sky isn't cleared at each frame, as a result the top of the trees stays there forever...
* I didn't use double-buffering, but I don't think there's enough space left to add that and the missing features below.
* The movement is parallel to your initial angle. Only a few instructions are missing to add rotation, though, since each column is computed as a rotation, starting from leftmost (or is it rightmost ?)
* Initially, I intended to display a (fractal) butterfly, with flapping wings, which would be the protagonist moving in the terrain. But I didn't have time to implement that *at all*, and now I see it's already 450 bytes, I doubt it will actually fit.
* The colormap is grayscale. I have done some experiments to use a nice gradient, but didn't have time to finish it / merge it.
* Talking about colors, I intended to have one gradient for the ground, another one for the butterfly, and maybe a third and fourth for the trees & sky.

The entry is named "butterfly", a reference to the should-have-been butterfly with flapping wings.

(my stupid browser crashed, I had to type everything again, grr...)

Re: The Fourth 512-byte OS Contest!

Posted: Fri Jan 15, 2010 6:58 pm
by a427
@js: Yeah don't worry, your entry has been accepted, and is in the process of being validated the exact same way I did for other entries.
(watch out your PM !)

So now the submission process is officially closed, and I'm glad so much people took part in this fun competition
(we have 10 entries ! perfect for the poll system ;-))

Well, whatever the results, I hope you all had so much fun coding your entry as I did, and, once again,
thanks for your participation !!

I'll soon create the poll and let it run for about two weeks.

a427.

Re: The Fourth 512-byte OS Contest!

Posted: Sat Jan 16, 2010 6:54 am
by a427
Now the poll is open to elect the best entry for the fourth 512-byte OS compo !!!

Please vote now for your favorite entry !!
(go to the first post to place your vote)

Re: The Fourth 512-byte OS Contest!

Posted: Sat Jan 16, 2010 1:13 pm
by ~
XanClic wrote:Hi,

This is my contribution to this contest. It's an OS running in real mode which is capable of sending an ARP network packet over an RTL8139 network card. That means you can resolve IP addresses to MAC addresses in the current LAN. Once it's started, you enter your IP and the IP to be resolved. Then it'll print your MAC and (hopefully :wink:) the destination's MAC address.
Does it work on any of the 8139 family cards, for example would it work in a Realtek 8139D? If so, your program could be among the 3 more practical ones that were posted here.

Re: The Fourth 512-byte OS Contest!

Posted: Sat Jan 16, 2010 1:27 pm
by XanClic
It worked on my RTL8139C, I can't say anything about other non-qemu cards. :wink: