OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 18, 2024 1:15 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 71 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

Which one is the best?
Poll ended at Sat May 30, 2009 8:37 am
Dex's mouse driver 39%  39%  [ 7 ]
Masterkiller's memory browser 11%  11%  [ 2 ]
Inflater's low level formatter 6%  6%  [ 1 ]
scgtrp's etch-a-sketch 11%  11%  [ 2 ]
salil's port access tool 0%  0%  [ 0 ]
Zenith's music/graphics demo 33%  33%  [ 6 ]
Total votes : 18
Author Message
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Fri May 15, 2009 1:47 am 
Offline
Member
Member

Joined: Tue Jun 20, 2006 9:17 am
Posts: 566
Hi,
I might enter this time . I think its going to be fun :)

Regards
Shrek


Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Sat May 16, 2009 6:27 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 28, 2009 7:32 pm
Posts: 30
I think I'll give it a try, out of pure boredom. Can it use BIOS interrupts?

_________________
(Resonance)


Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Sat May 16, 2009 6:41 pm 
Offline
Member
Member
User avatar

Joined: Fri Apr 18, 2008 4:40 pm
Posts: 1686
Location: Langley, Vancouver, BC, Canada
Most certainly.

_________________
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


Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Sun May 17, 2009 1:22 pm 
Offline
Member
Member

Joined: Thu Jul 07, 2005 11:00 pm
Posts: 1546
I think the best way to create a 512 byte OS is to use not assembler, but machine code. It has a few subtle advantages for size... such as every instruction is also a constant and also can be done mathematical things with..

Though, anyone that can code in x86 hex code is surely a madman..

_________________
My new NEW blag


Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Sun May 17, 2009 3:15 pm 
Offline
Member
Member

Joined: Fri Jun 10, 2005 11:00 pm
Posts: 116
@earlz:
I strongly disagree.
At first you can easy use db or other "insert raw data" instructions inside the assembler and still use the advantages of letting the assembler calculate jump points... etc.
And second if you use parts of the code as numbers you end up with pointing at there positions. But a pointer also is a number and therefor wasts space.

And you don't need to be a madman to know some basic x86 instruction numbers or bit patterns for the different registers in a instruction.

If you really run out of bytes you can perhaps use some polymorph code. But I think 512 byte is far enough to do some nice demos without memory squishing your code.


Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Wed May 20, 2009 2:00 pm 
Offline
Member
Member
User avatar

Joined: Sat May 05, 2007 6:20 pm
Posts: 153
This is my first time I take part in such a competition. Last year I have programming only for web applications and it seems that there are a lot of stuff in assembly language I forgot.
So I took my old memory hex editor and make it fit in 512 (510) bytes, but it seems I was unable to fit editing part, so I end up with memory browser (I should remember how to work with processor registers :shock: ). At least now it works for all 4GB address space (in unreal mode).

Question: I use port 0x92 to enable A20; I tried to call the BIOS 0x2401/INT 15h - that works on bochs, but not in MSVrtualPC or real hardware; Anyway port 0x92 works everywhere I tested; Since that is not universal way (will not work everywhere) is that allowed in the competition?


Attachments:
File comment: About the competition
512Program.rar [3.27 KiB]
Downloaded 196 times

_________________
ALCA OS: Project temporarity suspended!
Current state: real-mode kernel-FS reader...
Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Wed May 20, 2009 8:46 pm 
Offline
Member
Member
User avatar

Joined: Fri Jan 27, 2006 12:00 am
Posts: 1444
You are free to use it, but if someone test and it does not work, then they will not vote for it, so best to make it work on as many emulators or real pc as possable, but it only as far as giving you a better chance of winning.


Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Fri May 22, 2009 1:33 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 28, 2009 7:32 pm
Posts: 30
My entry: a bootable etch-a-sketch.


Attachments:
scribbler.asm [1.49 KiB]
Downloaded 238 times

_________________
(Resonance)
Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Fri May 22, 2009 4:04 pm 
Offline
Member
Member

Joined: Sun Nov 09, 2008 2:55 am
Posts: 524
Location: Pennsylvania, USA
Code:
; TODO How do you do modulus in assembly?

The div instruction gives you the remainder as well as the quotient.


Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Fri May 22, 2009 10:08 pm 
Offline
Member
Member
User avatar

Joined: Fri Mar 07, 2008 5:36 pm
Posts: 2111
Location: Bucharest, Romania
earlz wrote:
I think the best way to create a 512 byte OS is to use not assembler, but machine code. It has a few subtle advantages for size... such as every instruction is also a constant and also can be done mathematical things with..

Though, anyone that can code in x86 hex code is surely a madman..


:shock: :shock: :shock:

You know, assembly is just a fancy way of writing machine code. For example "INT 10H" will always end up as "CD10H" in memory, etc. There is absolutely no advantage (nor difference in functionality) and the whole reasons assemblers are used is so that no one needs to memorize machine code.

_________________
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]


Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Sat May 23, 2009 9:11 am 
Offline
Member
Member
User avatar

Joined: Mon Feb 19, 2007 10:40 am
Posts: 261
Location: India
Heres my 512:

Porter, which allows you to send to or receive from I/O ports. You can reboot by sending 'FE' to 0064 :D


Attachments:
porter.zip [1.68 KiB]
Downloaded 201 times
Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Sun May 24, 2009 5:57 pm 
Offline
Member
Member
User avatar

Joined: Tue Apr 10, 2007 4:42 pm
Posts: 224
Whoops, before I forget, here is my entry. It's a small PC Speaker and graphics demo under 512 bytes. Not as impressive as my Snake entry for the last contest, but it's still pretty good.

And if you're going to test this, DON'T use Bochs or Qemu because they don't emulate a PC speaker. Use something like Virtual PC or real hardware to try it out. Hope you like it. 8)

Attachment:
MusicDemo.zip [11.16 KiB]
Downloaded 256 times

BTW, the entry list sure seems more sparse than last time :(. But oh well, the entries that are there seem pretty great!

_________________
"Sufficiently advanced stupidity is indistinguishable from malice."


Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Mon May 25, 2009 1:30 am 
Offline
Member
Member

Joined: Fri Oct 27, 2006 5:11 am
Posts: 155
Location: Oberbayern
Zenith wrote:
DON'T use Bochs or Qemu because they don't emulate a PC speaker.


Qemu, at least on Linux, does if you use:

Code:
qemu -soundhw pcspk


M

_________________
MikeOS -- simple, well-documented x86 real-mode OS written in assembly language
http://mikeos.sourceforge.net


Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Mon May 25, 2009 5:32 am 
Offline
Member
Member
User avatar

Joined: Fri Mar 07, 2008 5:36 pm
Posts: 2111
Location: Bucharest, Romania
They both do.

_________________
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]


Top
 Profile  
 
 Post subject: Re: The Third 512-byte OS Contest!
PostPosted: Mon May 25, 2009 8:11 am 
Offline
Member
Member
User avatar

Joined: Thu Feb 12, 2009 5:12 pm
Posts: 286
lol, I got rick roll'd in Qemu, XD, sound worked fine in win. XP

_________________
My hero, is Mel.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 71 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: Fahr and 97 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group