[comp.sys.handhelds] syzygy v0.1 - a chip-48 game

rtrevino@cpocd5.intel.com (Roy Trevino) (10/30/90)

SYZYGY v0.1 for HP48SX using CHIP48

One of the first games I remember playing on a computer was 
called "syzygy" on a now ancient TRSH80 Model 1.  It has since
appeared on other computers under various names.  Why it was
called syzygy, I have no idea (consult Websters).  However, since
the HP48SX has approximately the same memory, graphics and cpu
power as my TRSH80 did (something like 16kB, 128x64, and a 1.2Mhz Z80),
I thought it would be amusing to play it again.  Now, approximately
to my recollection, and with many apologies to the original author,
here is a CHIP48 version of SYZYGY for the HP48.  Enough drivel.

The object of the game is to seek out "targets".  You do this with
your syzygy.  Initially small, the syzygy will grow by some amount
each time a target is hit.  Eventually, your syzygy will
be so long as to make tougher and tougher to get any points (and easier
and easier to get killed).  Confused?  Just try it.

Anyways, the syzygy is not allowed to run into anything except targets.
It cannot run into the screen border (if present), or itself (this 
includes backing into itself).  Fast and immediate death will result.
Don't worry if you die quickly a few times.  The keys take a few 
minutes to get used to.

To start:	+   start/restart game with border
		-   start/restart borderless game
		
To play:	9       up
		6       down
		1       left
		2       right

After death:	SPC     display score, etc, then + or - to start


Chip48:	        <-      chip48 exit (backspace key)
		+/-	chip48 toggle sound
		ENTER   chip48 restart game from beginning
	     
Standard chip48 program procedure:  clip out the following string and
download to your hp48.  Convert to a binary string with ASC->.  Store
the new string into the variable "SYZYGY".  Recall the variable to
the stack.  Execute the code object "CHIP" on it.  Play.

=================== 8< clip here 8< =====================================
%%HP: T(1)A(R)F(.);
"C2A20967002121D8D8029A139393030225454502E8E800426B42AD06F00E1A21
4206E00E1A2182216142AD21C2000E21C21CF117012CF027803C305803680178
02880384007710841077FF84206710843067FF5AC41D126D17460F961F8A004F
E108030F5547108A004FE106100F555222A600A7000F70030021C9D300214906
000F92BD5CF31021C8BD5C52220F5121C9EF51D610E60021C9080E0F92BD5C52
2206300E1A360006600E1A361006700E1A362006800E1A3630340027FF341027
10342017FF343017105AC41D12F3103142D310318806F3182006F12820080B08
71F3103188080B07300851F3103188080C0872F3103188080C07400852F31031
8806400F81EC70E720A84E5AC41D1206000F92BD5C080E0F92BD5C06030F510F
70030031A15AC41D12390531E347108A004FE108030F5547108A004FE106000F
5558038A004FE10F5607100F55A400318506C007FF030031E4A7FF21075AC46D
17840077FF84107710842067FF843067108A009FE10F5607FF0F550300210797
108A009FE10F5688009710210706D00F8106B00EE931E8B610C600D600B710B3
A031AAB600C710C3A031AAC600D7105AC46D17840077FF84107710842067FF84
3067108A009FE10F5607FF0F5503003189990431ED97108A009FE10F56880097
103189000E6611769086F296715A256DE78DE777FF5AE46D176D1967806D176D
1967806D176D1967805A056D176D195AE96631761142A95AEA3F56390D414208
03085DF31041A34144290C41230802085CF31041A341440801085BF30041445A
EA380D280C180B3F555AEA3F566631779FD803C802B8015A4A42A91CF32CF106
D00851F30041C706030871F30041C706300852F30041C706810872F30041C741
283CF03F921D5206F00E1A410906E00E1A41694165000E426B21C2000E21C26D
575AAA67206D47DF9267A06D57CF9267506D57BF9267506D5700EE5AE4160026
0066F11D121D161780130441EB5A25261056F31DF25DF227F01DF25DF200EE16
C026705A261DA25AC617601DA25A6717601DA25AC617601DA25A0817601DA25A
C617601DA216E026815AA81D325AE8178027FF1D42179027EF5A291D62176027
105A891D5200EED65CBCF3E80BE84DF4105142B710D66ECCF1E80CE84DF41051
23C710D600ECF3E704EF51ECF3E70400EE0800FF00EF00080808080808080808
08080808080808F1010101F110101010F111111111F14040404040F110202040
40808001F1F11101010131111111F15050200017151557C021E141219041E351
51A20077444241770075252725750000100010000000000845"
=================== 8< clip here 8< =====================================

Alternately, I have also enclosed the uuencoded binary object, to give
everyone a second chance at getting this downloaded:  uudecode the below
stuff.  Download directly to HP48 using "binary" transfer on both sides.
Recall the variable to the stack, etc. as above.

=================== 8< clip here 8< =====================================
begin 644 syzygy
M2%!(4#0X+40L*I!V !(2C8T@J3$Y.3 @4E14((Z. "2V)-I@#^"A$B1@#N"A
M$B@2%B3:$BP X!(LP1]Q$,(/<@C#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" @(" @(" @(" @(" @(" 'Q 0$!\! 0$!'Q$1$1$?! 0$! 0?
M 0("! 0("! ?'Q$0$! 3$1$1'P4% @!Q45%U#!(>%!()%#X5%2H =T0D%'< 
.5U)R4E<   $  0     3
 
end
=================== 8< clip here 8< =====================================

Good luck!  (I realize the program is rather huge, but consider 
the price. :-)  The program works fine on my REV-D hp48sx under
CHIP-48 v2.25.  Source code may be posted if demand warrants.

Fine print (borrowed from Andreas Gustafsson, author of CHIP-48):

	SYZYGY if (c) copyright 1990 by Roy Trevino (RTT)

	Noncommercial distribution allowed, provided that this
	copyright message is preserved, and any modified versions
	are clearly marked as such.

	SYZYGY, via CHIP-48, makes use of undocumented low-level features
	of the HP48SX calculator, and may or may not cause loss of data,
	excessive battery drainage, and/or damage to the calcultor
	hardware.  The Author takes no responsibility whatsoever for
	any damage caused by the use of this program.
	
	THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
	IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
	WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
	PURPOSE.

Roy

  --------------------------------------------------------------
  Roy Trevino                                        Intel Corp.
  E-mail: rtrevino@sedona.intel.com          Tel: (602) 554 2816
  UUCP:  decwrl!apple!oliveb!orc!inews!rtrevino@sedona.intel.com

--
  --------------------------------------------------------------
  Roy Trevino                                        Intel Corp.
  E-mail: rtrevino@sedona.intel.com          Tel: (602) 554 2816
  UUCP:  decwrl!apple!oliveb!orc!inews!rtrevino@sedona.intel.com