* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                                                                             *
*                                  PIC-PONG                                   *
*                           (C) Rickard Gune 1998                            *
*                                                                             *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

				INTRODUCTION
			------------------------------

	This is the game PONG. Not much to say about it. It is possible
	to play human vs human, human vs computer or computer vs computer.
	Scince I only had 1024 + 64 bytes to play with it was not possible
	to make the computer beatable, so when playing computer vs computer
	the game will keep on playing forever. Everything is as simple as
	possible, the "ball" is a square, and the sound effects are not to
	impressing either, but concidering the size I think it's pretty
	nice. The program uses all the program eprom and all the data 
	eprom, so there is not much room for improovements. Probably I
	won't touch the code ever again, but I'm planning to do another
	game, tetris, with the same hardware. Remember this is shareware !
	Don't sell, hurt, harm, kill, or anything else that is not nice,
	with this. I don't take any responebility of what you do with it.
	Just have fun, and be exelent to eachother =)


				PLAYING THE GAME
			--------------------------------

	When turning on the power you should get a screen that looks
	something like this:

				   PONG
				(C)R.GUNEE
			
				 PL1   PL2
				  H     H

	By using joystick 1, you can change how you want to play.

	DOWN  = human vs human       (H  H)
	LEFT  = human vs computer    (H  C)
	RIGHT = computer vs computer (C  C)

	Press fire after you have selected how you want to play.

	Now the game screen sould come up. Player 1 always starts to
	serve. The player who has got the serve is marked by a black
	border around the score at the bottom of the screen. Start
	serving by pressing fire. Move up and down and prevent ball
	from getting past you. You only get points when you win a 
	ball and alread has got the serve. The player who first get
	10 points win the game. A new screen tells who won, get back
	to the first menu by pressing fire.


				THE CIRCUIT
			----------------------------

	The circuit is quite simple. The sound and video is generated
	using only resistors. The sound part uses a lot of current, but
	that is because the input impedance for audio may be between
	600 and 100K or something like that. The video input impedance 
	is always 75. The joystick requires the 100k pullup resistors.
	Scince I use PORTB as a shift register, PORTB must be switched
	to output mode during videogeneration. Connecting a output to
	ground changes the contens of the register, that's why there
	must be 1k serial resistors. I don't use caps at the chrystal,
	it works nice anyway. The power ssupply part is quite standard.
	The input voltage can be 8-18v or something like that, both
	ac and dc will do just fine. There are no critical values on
	any parts except the video genrating resistors, and the
	chrystal ofcourse. The joysticks used are the old kind of
	joystick used with C64, Atari and Amiga.


			FILES INCLUDED IN THIS PACKAGE
		-----------------------------------------------

	PONG.TXT        the cool text you're reading now
	PONG.HEX        the compiled program in hex format
	PONG.ASM        the source code
	PONG.GIF        the layout in gif format
	PONGSCH.GIF     the schematics in gif format



				CONTACT ME
			----------------------------

	If you build this game, please tell me about it, could be 
	interesting to see if there is anyone who build this =)


	email:  e96rg@efd.lth.se
	
	picpage: www.efd.lth.se/~e96rg/pic.html




	Happy PIC-ing

	  / Rickard Gune




