Re: A86: Show Down, (Life)


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

Re: A86: Show Down, (Life)




> But, I see a couple of problems with this challege.  The first is that
> there is no accurate way to time the program, due to the fact that the
> calculator has virtually no timing hardware.  It might be possible to do it
> using interrupts and by having the program count frames, but this speed
> would be affected by battery life and other conditions.  It would be
> impossible to count cycles of a program like this.
> 
> The second fact is that the refresh rate of the LCD display is so slow that
> a fast program would run faster than the screen could keep up (the same as
> the maximum bandwidth of a VGA...).  This would make visual compares very
> hard or impossible.
> 
> But, I agree it is a good challege.

All you'd need to do is install an interrupt that breaks the program after the
65535th interrupt call or something like that.  And add a requirement that
the programmer adds a counter to tell how many refreshes have occurred.
It's easy and 100% accurate.