[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

256 byte contest



Well, the contest is over now, and I must say I'm disappointed with
the result: I've received a grand total of --> ONE <-- entry, by
Christer Ericson <christer@cs.umu.se>.

I wonder what was the problem. Was the 20-day period too short? Probably.
There's also the question of timing: I hadn't realized it, but we're now 
in the middle of final exams (at least here in Canada). This means less 
time to code.

Oh well. At least we have a winner, and with a great program: a 166-byte
low-res maze generator! We had such a program to write as an assignment
in freshman Pascal, a few years ago, and some students turned in thirty-
page programs! (Most of them had bugs, too ;-)

Here is Christer's program. I'm posting it as I received it, in
monitor dump format. There was no source code included, and I didn't
have time to disassemble it. Let's say it's left as an exercise for
the reader (Christer, if you want, you're welcome to post the source
here).

4000- A2 06 BD 50 C0 CA CA 10
4008- F9 20 32 F8 A9 FF 85 30
4010- A9 2F 85 00 A9 27 85 01
4018- A5 00 85 04 A4 01 84 05
4020- 20 00 F8 A9 00 85 02 A5
4028- 02 C9 0F F0 5B 20 AE EF
4030- A5 9F 29 03 AA A8 A9 01
4038- 88 30 05 0A D0 FA D0 C9
4040- 05 02 85 02 18 A5 04 7D
4048- 9C 40 30 DB C9 30 B0 D7
4050- 85 06 A5 05 7D 9D 40 30
4058- CE C9 28 B0 CA A8 A5 06
4060- 4A 08 20 47 F8 28 A9 0F
4068- 90 02 69 E0 31 26 D0 B7
4070- A5 06 85 04 84 05 20 00
4078- F8 18 A5 05 7D A2 40 A8
4080- 18 A5 04 7D A1 40 10 98
4088- C6 01 C6 01 10 8A C6 00
4090- C6 00 10 80 20 DD FB 20
4098- 0C FD D0 A2 02 00 FE 00
40A0- 02 FF 00 01 00 FF

The code is fully relocatable and should work on all flavors of Apples.

What it does? Oh, it simply draws a maze in lores, beeps, waits for
you to press a key, and draws a new maze, etc...

As you can see, I still have some bytes left to fill the assigned
qouta, and I had planned to actually have a version where you could
walk around in the scrolling maze(!), but I really don't have the
time... Perhaps for the next contest! :-)