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).
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: 512-byte OS Contest

Post by Troy Martin »

Here's zeroflag's entry, a limited basic-like interactive interpretive language!

@inflater: I never got an email from you :?
Attachments
yaus.zip
YAUS - Yet Another Useless Stuff :)
(8.38 KiB) Downloaded 320 times
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
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Re: 512-byte OS Contest

Post by Dex »

I will wait a day or two, than i will take screenshots of the entrys and post a link.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: 512-byte OS Contest

Post by Troy Martin »

My entry, |)emOS is complete, it's not much, just a little shell with 1-letter commands in 512-bytes with a register dump tool for fun :D

Commands: e (echo), d (dump), h (random number generator), ? (help).
Attachments
demos.zip
|)emOS
(1.67 KiB) Downloaded 288 times
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
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: 512-byte OS Contest

Post by Troy Martin »

Zenith's entry, a snake game, is here!
Attachments
Snake512.zip
Snake512
(17.25 KiB) Downloaded 303 times
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
geppy
Member
Member
Posts: 27
Joined: Wed Jun 11, 2008 5:30 pm

Re: 512-byte OS Contest

Post by geppy »

Every single person here tries to put in one single feature.Could you explain how come is it an Operating System and whats the point of slow running Snake game without any features or effects (comparing to SSE version in Protected Mode).
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: 512-byte OS Contest

Post by Troy Martin »

Cause it's fun.

01000101's entry is ready, a "half-baked Fallout 3 terminal interface clone!"
Attachments
fallout3.zip
Fallout 3 Interface Clone
(2.67 KiB) Downloaded 389 times
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
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Re: 512-byte OS Contest

Post by inflater »

//EDIT:

Attention, please close your bids. 0:00 hours remaining :P

Deadline! Now it's time to check. Who's up for testing?
I'll do in case something doesn't work on my rHW.
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
eddyb
Member
Member
Posts: 248
Joined: Fri Aug 01, 2008 7:52 am

Re: 512-byte OS Contest

Post by eddyb »

Tested Fallout3.
i used 'qemu kernel.img' from the dir where i unzipped.
the password is 'hackit' :mrgreen: .
well, pretty, but i don't understand what he does :)

EDIT:
Tested Snake512.
command: 'qemu Snake512.bin'
verry funny snake game, congratz!
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: 512-byte OS Contest

Post by Troy Martin »

Sorry for the delay but we're having serious poll issues (options doubling, some disappearing) and we need to find someone who can host a poll for us.
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
inflater
Member
Member
Posts: 1309
Joined: Thu Sep 28, 2006 10:32 am
Location: Slovakia
Contact:

Re: 512-byte OS Contest

Post by inflater »

Mine results:

|)emos: compiling error,

Code: Select all

D:\OSdev\512BYTE>nasm -o boot.bin demos.asm
demos.asm:50: error: short jump is out of range
demos.asm:55: error: short jump is out of range
This can be fixed by either moving the labels onto the beginning of the file and JMP START, or just using the NEAR suffix (and setting CPU mode to 386).

Please explain, how it's useful to have section .bss, private variables and labels, and the "jmp short" suffix, Troy? :? These jumps are always "short", unless a memory location - another segment - is specified. Plus, these private labels and variables - that's overkill. :roll:

After all, it works. ;)
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English :P)
chezzestix
Member
Member
Posts: 118
Joined: Mon May 05, 2008 5:51 pm

Re: 512-byte OS Contest

Post by chezzestix »

Troy Martin wrote:Sorry for the delay but we're having serious poll issues (options doubling, some disappearing) and we need to find someone who can host a poll for us.
Not sure what you need but if you have the page and all you need is space on a webserver then I can help you out there.

I extensively tested Snake512. Got up to a score of 94 at one point.

Downfall:
You are allowed to turn back on yourself. This also counts as biting yourself and it gets kinda annoying when either you simply accidentally press back or the game misses your request to turn and then picks up the backward movement.

Not a bad game otherwise.
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Re: 512-byte OS Contest

Post by 01000101 »

shiner wrote:Tested Fallout3.
i used 'qemu kernel.img' from the dir where i unzipped.
the password is 'hackit' :mrgreen: .
well, pretty, but i don't understand what he does :)

haha yeah, I forgot to give the password, but it's pretty obvious if you check out the source.

I apologize for my half-baked entry as I stopped working on it a few days ago due to some new things with my own OS.

The point is just to look similar to that of the Fallout 3 terminals, nothing more, nothing less. I originally wanted to do some 64-bit stuff, but I couldn't find any 'features' that would be worth it and could still fit in the remaining space after paging/double-sized gdt/ and just the rest of the init code. Maybe next time I'll think a little harder about things to do in 64-bit.
mrnoob
Member
Member
Posts: 26
Joined: Thu Sep 18, 2008 11:45 am

Re: 512-byte OS Contest

Post by mrnoob »

ah well, i got caught up in other things and couldnt do my entry in time. I was going to make an interactive debugger, from lack of ideas.
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: 512-byte OS Contest

Post by Troy Martin »

inflater wrote:Please explain, how it's useful to have section .bss, private variables and labels, and the "jmp short" suffix, Troy? :? These jumps are always "short", unless a memory location - another segment - is specified. Plus, these private labels and variables - that's overkill. :roll:
TLDR version: It's my coding style and asm optimizations.

Long(er) version:
section .bss: I use this to reserve space in memory and not have huge buffers of zeroes in my kernel, allowing more code in.
private variables and labels: I assume you mean labels starting with a dot. This is so I can use more... uniform and recognizable names in my source and not things like "word_0x_18", instead using ".temp" and ".random", etc.
short jump out of range: Sorry, I was trying to do some optimizations by using short jumps, I seem to have left a few in...
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
cippo
Posts: 2
Joined: Tue Jan 06, 2009 5:48 pm

Re: 512-byte OS Contest

Post by cippo »

Oops, was I too late? Guess I misunderstood your "Entries must be in by Jan. 6th, 2009 at midnight PST (GMT-8)". Thought you meant Jan 6. 23:59:59+ 1 sec. Ohwell, I'll just dump it here anyway. It's a vi-like editor and a brainfuck interpreter. It supports moving around with h, j, k and l, opening lines above and below with O and o and inserting text with i. To interpret the file you've written press I (that is capital i). All the commands above should be inserted in command mode (you see which mode you're in in the lower left corner, C = command, I = input). And as always esc takes you back from input to command.

Cheers,
Cippo
Attachments
bootfuck.zip
Tested in bochs and qemu, no idea if it works on real hardware.
(2.75 KiB) Downloaded 282 times
Post Reply