Page 3 of 5

Re: The Third 512-byte OS Contest!

Posted: Mon May 25, 2009 8:42 am
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!

Re: The Third 512-byte OS Contest!

Posted: Mon May 25, 2009 9:21 am
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?

Re: The Third 512-byte OS Contest!

Posted: Mon May 25, 2009 9:45 am
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 :)

Re: The Third 512-byte OS Contest!

Posted: Mon May 25, 2009 9:59 am
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.

Re: The Third 512-byte OS Contest!

Posted: Mon May 25, 2009 4:40 pm
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.

Re: The Third 512-byte OS Contest!

Posted: Tue May 26, 2009 8:10 pm
by quanganht
Music demo gives sounds on VM Ware

Re: The Third 512-byte OS Contest!

Posted: Tue May 26, 2009 9:47 pm
by salil_bhagurkar
Whats the prize for being last in the poll? :lol:

Re: The Third 512-byte OS Contest!

Posted: Wed May 27, 2009 3:07 am
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 ;)

Re: The Third 512-byte OS Contest!

Posted: Wed May 27, 2009 10:18 pm
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?

Re: The Third 512-byte OS Contest!

Posted: Thu May 28, 2009 8:20 am
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.

Re: The Third 512-byte OS Contest!

Posted: Thu May 28, 2009 4:07 pm
by Coty
yes, the rotien would cost more than what it would be worth... I cannot find the source, was it even included?

oops

Posted: Thu May 28, 2009 4:10 pm
by Coty
oops :oops:

Re: The Third 512-byte OS Contest!

Posted: Thu May 28, 2009 4:11 pm
by Troy Martin
I don't think it was... I'll definitely include that as a rule in the next compo.

Re: The Third 512-byte OS Contest!

Posted: Thu May 28, 2009 4:13 pm
by Coty
So i guess how it works will remain a mystery.

Re: The Third 512-byte OS Contest!

Posted: Thu May 28, 2009 4:15 pm
by Troy Martin
Well, one could always decompile the binary, but that would translate stuff incorrectly..