Grayscale 5-in-a-row (S, SX, G, or GX)

By:	Daniel Lidstrm
Date	1999-02-20

email:	danli97@ite.mh.se
WWW:	http://www.ite.mh.se/~danli97/

Home address:
Nackstavgen 22 C 4tr
853 52  Sundsvall

-------------------------------------------------

Files:
------
TTT		Transfer this file to your HP48.
TTT.TXT		This file
TTT.S		Source (compileable with JAZZ)
TODO.TXT	Things to do/things done

Installation:
-------------

Download TTT to your '48 with your favorite transfer program.
It is a standalone program and can be stored anywhere in your
calculator.

Checksum:
# BB74h
1624 bytes

Keys: 
-----

[^] or [8] move up
[v] or [2] move down
[<-] or [4] move left
[->] or [6] move right
[7] move up left
[9] move up right
[1] move down left
[3] move down right
[ENTER] or [5] make move
[<-] or [ON] Exit


Game Play:
----------

This is a very simple game. You play against another human and alternate
moves. When exited, TTT leaves the playing field in the GROB passed as
argument. This enables resuming a game later. Note however that there is
currently not possible to store the player who is next: crosses start
every game by default.

Source:
-------

The interesting part!
The program contains a custom interrupt handler with accompanying subroutines
to setup/close an interrupt handler. There are also routines to compensate
the covering of ROM. These include:
routine:	ROM equivalent
move_down	=MOVEDOWN
move_up		=MOVEUP
gettimchk	=GETTIMCHK
debounce	=Debounce
bitmap		=BITMAP
cinrtn		=CINRTN
outcin		OUT=C, GOSBVL =CINRTN

+ others (see source for more details)

The source was written with TextPad and is meant to be compiled
with Jazz. Thanks Mika Heiskanen & Jan Brittenson!

Anyone with a little experience with assembler on the '48 could use these
routines to easily make something more powerful. One can make a greyscale
paint program fairly easy for example. Someone interested in 5-in-a-row
might want to extend the program to look for 5-in-a-rows, which it currently
doesn't. If you make something, I would really like to have a copy.

Daniel Lidstrm,
Sundsvall 1999-02-20

