jcz@ncsu.UUCP (John A. Toebes, VIII) (03/03/86)
Posting the source to Hack on the Amiga has generated a lot of questions
and 'garbled' sources as well as a couple of problems. To alleviate some
of the problems of garbled sources, I am posting the sources a second time.
However, due to the size it is not reasonable to email it to individual
sites without imposing an unnecessary burdon to sites along the way.
Some clarifications that are necessary:
1) The source is for an improved 1.0.1 - mostly involving bug fixes in
the original code to make it run in an environment where the games
does not load in the same place all the time and to incorporate
MKLEV into the main program.
2) The Amiga specific changes involved writing Un*x interfaces where
not provided on the Amiga and revectoring all I/O through a window
type manager that mimics the termcap interface.
3) To decompress the HACK.Z binary to a usable form you must use the
-d option on compress:
compress -d hack
(Sorry about that - just a minor oversight)
4) I neglected to include my signal.h include file was on my development
disk. For completeness, here it is:
#define SIGHUP (0)
#define SIGQUIT (0)
#define SIGINT (0)
#define SIG_IGN (0)
#define SIG_DFL (0)
5) The code may not compile under MANX (no more death threats please)
because it ASSUMES that you can cast from a pointer to an INT and
back with no ill effects. The code also excercizes the compiler to
the limits (structure returns, structure assignments, bitfields,
register variables, and generally nasty expressions). Running it
through Lattice 3.02 generated many problems (don't attempt with 3.01)
but 3.03 works ok (mostly) and 3.04 is what the binary was compiled
with.
6) The code assumes that a #define AMIGA is automatically supplied by
the compiler (Lattice does this) but not all Amiga specific code
it #ifdefed.
7) I will post the 1.0.3 Graphics version in about a month when I get it
running AND I can make fit on a 512K machine.
The sources are being posted to net.sources.games because it is the place
it belongs (as many kind souls have pointed out).
Good luck and happy hacking.
John A. Toebes, VIII
120 H Northington Place
Cary NC 27511
(919) 469-4210
...mcnc!ncsu!jcz
Disclaimer: My Amiga wrote the above stuff, how was I supposed to know what
it means?