
README
------

This archive contains sprite software for three configurations:
spectrum display (256x192 pixel, 32x24 colour), ts2068/tc2048
hi-colour (256x192 pixel, 32x192 colour) and ts2068/tc2048
hi-res (512x192 pixel monochrome).  The sprite software is fully
featured and contains a sw rotater (for pixel precison in the
vertical and horizontal directions), support for any-size
and number of sprites, a dynamic block memory allocator and
a tiled background.


Contents:

sprites-spectrum.txt    Z80 source for sprites on spectrum display
sprites-hicolour.txt    Z80 source for sprites on hi-colour display
sprites-512x192.txt     Z80 source for sprites on hi-res display

sprspec.tap             a demo for the spectrum display
sprclr.tap              a demo for the hi-colour display
spr512.tap              a demo for the hi-res display


All Z80 source is ready for compilation via TASM, as described
in the comments in the source files.  The demos are really the
quick and dirty test runs that I used to debug the software.
Each tap file contains the complete assembled sprite code plus
a small tester that can be run as follows:

- enter CLEAR 32255 to move spectrum basic out of the way
- enter LOAD ""CODE to load up the software
- enter RANDOMIZE USR 59648 to run the demo
  (RANDOMIZE USR 59392 for spr512.tap).

You should be using an appropriate emulator (or real machine!).
Eg: a spectrum emulator for sprspec.tap but a ts2068/tc2048
emulator for the others.  You can run the other tap files on
a spectrum emulator, but you'll be missing out on half the
show!  Note: some emulators do not accurately set the overflow
flag following an 'inc l' instruction, causing spr512.tap to
run incorrectly.


Alvin Albrecht  10/17/2002
aralbrec@interchange.ubc.ca

