This directory contains some simple tests for vbcc/65816
that can be run on an Apple IIgs or SNES.

mandelbrot.c (all):

A simple mandelbrot generator taken from the cc65 samples.
The graphics routines from cc65 have been replaced by a
simple character buffer.


fmandelbrot.c (all):

The same generator, but the fixed point arithmetic has
been replaced by floating point. The result using wozfp
is much slower but it produces a visibly better result
than the fixed-point version.
The msfp version is much faster than wozfp.


dhry* (all):

The standard dhrystone test. The timing routines have
been adjusted to the C64. Not sure if timing is correct
for all targets. When in doubt, use a stop clock and
manually calculate dhrystones/s.

The loop counter has been changed to unsigned int to
allow more than 30000 iterations. Otherwise machines
like MEGA65 would be too fast to deliver measurable
results.

I get close to 1300 dhrystones/s for a SNES using slow
ROM.


calc.c (all):

Another floating point test. It parses arithmetic
expressions and calculates the result, e.g.

> 1.3e4 + 2 * (3.5+4)

It can be observed that the numerical precision of wozfp
is not that great. The msfp version gives better results.


files (iigs):

A demo demonstrating using file I/O. It can be used to read
and write files as well as perform some file operations.

Have a look at the documentation on vclib for the corresponding
target to see what limitations might apply.
