Software for the PET lID (QJ OTHELLO S 9.95 DOMINOES S 6.95 LETTER LETIER SQUARES S 6.95 2m @J DIR/REF S RPN MATHPACK S19.95 $19.95 SUPER NIM S 6.95 CIR/ REF $ 6.95 ~ SPACE WARS S 9.95 GRAND PRIX S 6.95 E.S.P. S 9.959 FORECAST S 9.95 S 6.95 BLOCKADE S 9.95 0 , DEPTH CHARGE S 9.95 BASKETBALL S 9.95 SLOT MACHINE S 6.95 lJ HOME ACCOUNTING S 9.95 , All orden orders include 3% postage and hllndling handling with ivilh a minimum 01 of 5SI.00. 1.00. Califo.nia California . residents include 6'" 6% Sales T.~ Tax. . VISA MASTERCHARCE MASTERCHARGE , COM MODORE BUSINESS MACHINES. INC . BATTLE SH IP S 9.95 lJ PET IS A TRADEMARK OF COMMODORE BUSINESS MACHINES, INC. BATTLE SHIP S 9.95 0 PROGRAMMA RAMMA INTERNATIONAL. INTERNATIONAL, Inc. a. 3400 Wilshire Blvd. Los Angeles, CA 90010 I: 384-1117 2m ~ ~ ~ UJ "tI ct ~ III , (1) 0 CO (213) 384·0579 384-0579 n 384·1 384-1116 6 ct 384·1117 SHOOTING GALLERY S 9.95 Oeal2f Dealsr InqUiries Inquiries InVited Invited ZAP S 6.96 6.95 III 3 II
MAY/JUNE.<strong>1980</strong> MAV/JUNE. 198O ISSUE.a 4 COMPUTE. 89 FOT For)'OIiT your cOl/lienie1lU: convenience i,l in making flU usr f!.f of the following fol/owillg (lTlide. article, I I'm '/'r lrprilltrd reprinted (I a /JlJrtioll portion oj of C~/lck Chuck.I0/I/ Johnson HOIl 's rxu:lIrnl excellent article ankle ill in Jjesl lies! of the PET Ga:etlr, Gazette, p. pA2. -I2, RCL PET ting WITH PET ting WITH AJOYSTICK HONey B. Herm on Harvey B. Herman Chemistry Deportment Department University of North Carolina at Greensboro Greensboro, N.C, 27412 Greensboro, N.C 27412 My y older style PET keyboard gets banged around quite a bit when my kids play games which use the number pad. , A recent PET-Pourri column in Kilobaud ((1) I) prompted me to install a joystick on my PET in order to save my keylOps keytops from further wear. This article is intended to share my experiences with this project and lO to encourage other fumblethumbs like myself to try it. . fumble- I purchased the Atari-joysticks from Sears as suggested in the above column (catalog #6C99835) for r $9.95 each. Since I could not find a mating connector, eClOr, I cut off ff' each end and attached ached them to a User Pon Port connector as per the e instructions (see also refs 2 and 3). The latter connector can be purchased from any number of companies (e.g.,, AB All <strong>Computers</strong>). Four signal d iodes ( I N662), whose speci fi ca puters). Four signal diodes (1N662), whose specifica tions I believe are not t critical, ical, are also used in this s super simple interface circuit it which can be constructed in about 112 1/2 hour. Check to make sure thatt the diode cathodes are connected as shown in the e circuit diagram (1) I) and the color coded wires of the joystick are connected to the proper pins s ofo f the e User Port conneclOr. connector. OtherwiseO no special precautions are arc necessary. I did it right the first time e (yes brag!) brag') This neat hardware would, , of course, be useless withoutw software to work it. CursorC magazine e (4) has supplied several programs which have a joystick option. I tried these first (Demon, Canyon, Pickup and Nab) with happy success. . These programs area rc written to work withw various model joysticks wired \"ired and oriented in differentd llt ways. SinceS my configuration io n was fixed I modified the joystick subroutine uti in each Cursor program to lO skip the test step. That procedure can be tedious if a program is run repeatedly. TheT following g changes in the CursorC joystick subroutine should work for alla Atari-type type joysticks wired according to the circuit diagram in reference 1: I: 610306 PRINT: FOR R I = ~ 0 to 5: READ T, T , P: GOSUB 61120: 6 T(I) T = ~ T: T : J(T) J ) = ~ P: NEXT I 611206 T = ~ INT (T/16) I16) ANDA NDT: RETURNR U R N 612506 DATA 255, 5, 223,4,239,6 239, 6 127,8, 191,2, 1,2, 63, 0.7, 0 1, I , 9, 3 I ran the original program once to find the values in the T array and used data statements tement s in the modified program in order to skip the test step. This considerably speeds up thee beginning of a game. I have deliberately ignored thee rationall behind the bitt manipulations ns in statement 61120. 20, It is not necessary to understand that in order to use joysticks. I emphasize this point because I hope it will encourage PET users who may strain aatl bitss to attempt projects such as described here. I Inn a future an article e I may try my hand at a tutorialo forr those who wish to delve imo into thiss mystery further. er, If a program was nott writlen written with a joystick in mind another modification n procedure must be used to convert it a\",ay away from number pad usc. use. As an example I modified the programm Obsracl Obstacle e (5) which utilizes utlitzes the full keyboard as two pseudo-joysticks. Each player manipulates hiss piece (screen character) with the now standard keyboard patterns, ""W, , X X, , A and D" and "8, 2, 4, 6". The object is to keep from running into the screen traill left by the other player - the first to do so loses. As withh many games it is easier to use than to describe. The following statements in the original program are used lO to sense a keypress by a player and change direction if necessary: 260 GET R$ 265 IF RS R$ = ~ ""W" W " THEN AD = ~ 1I • 300 IF RS ~ "8" THEN E 11D llD = 1 • It If W is pressed the direction of the player on the leit's left's piece is changed to up. If 8 is pressed the direction of the player on the right's piece picce is also changed to up. . Player and direction are detc deterr mined by the above keyboard pattern which can be learned quickly by new pl ayers. learned quickly by new players. Converting a program like this s to joystick use is very easy. The following owing statements s will do this: 260 M = ~ PEEK (59471) 1) 265 IF (M ORO R 240) = ~ 247 THEN AD = ~ 1I • 300 IF (M OR 15) 127 THEN E BD = • The elipsis is can be fleshed out with the help of the table below. . A peek ata t the User Port Pon gives a unique value e for each position on of o f the e joystick as long as only y one is being used. . It is necessary to "mask"" with 15 IS or 240 if the possibility ilit y exists of both being g used at the e same time. If only one joystick is used and it doesn't matter which, a further opera-
- Page 1 and 2:
MAY / JUNE 1980 ISSUE 4. $2.00 MAY/
- Page 3 and 4:
ow you can add high resolution grap
- Page 5 and 6:
MAY/JUNE, I NE. 1980. I960. ISSUE 4
- Page 7 and 8:
MAY/JUNE. 1Q80.ISSUE I960. ll. 4 CO
- Page 9 and 10:
MAY/JUNE, I JUNE. 1980. ISSUE 4. 4
- Page 11 and 12:
Take the mystery lake the mystery o
- Page 13 and 14:
MAY/JUNE. I 1980 198O ISSUE .d. &.
- Page 15 and 16:
MAY MAV/JUNE. I 1980 198O. ISSUE 4.
- Page 17 and 18:
' nrnauui J Authorized Dealers APRI
- Page 19 and 20:
■ ■ (:: Authorized Dealers •
- Page 21 and 22:
MAY/JUNE, I 1980, I960. ISSUE 4. CO
- Page 23 and 24:
MAY/JUNE. I 1980. ISSUE 4. COMPUTE.
- Page 25 and 26:
MAY/JUNE. 1980 198O ISSUE 4. 4 COMP
- Page 27 and 28:
THANKS FOR THANKS FOR THE MEMORIES.
- Page 29 and 30:
MAY/JUNE. I 1960. 198O. ISSUE 4. CO
- Page 31 and 32:
MAY/JUNE. . 198O. 1980. ISSUE 4. CO
- Page 33 and 34:
MAY/JUNE, . 1980. ISSUE 4. 4 COMPUT
- Page 35 and 36:
MAY/JUNE, MAV/JUNE. 1980 , ISSUE 4,
- Page 37 and 38:
MAY/JUNE. MAV/JUNE. 1980 198O. . IS
- Page 39 and 40: MAY/JUNE. WAY/JUNE. 1980. I960. ISS
- Page 41 and 42: MAY/JUNE. I lQBO 1980. ISSUE 44. CO
- Page 43 and 44: MAY/JUNE, I JUNE. 1980. I960. ISSUE
- Page 45 and 46: MAY/JUNE, 1980 ISSUE A COMPUTE. 43
- Page 47 and 48: MAY/JUNE. J980 I960. . ISSUE 4. COM
- Page 49 and 50: MAY/JUNE. I 1980. 198O. ISSUE 4. CO
- Page 51 and 52: MAY/JUNE. , 1980 1960. ISSUE 4. A.
- Page 53 and 54: MAY/JUNE. 1980. 198O. ISSUE d. 4. C
- Page 55 and 56: MAY/JUNE. 1980 ISSUE 4 COMPUTE. 53
- Page 57 and 58: MAY/JUNE. , 1980 198O. ISSUE 4. COM
- Page 59 and 60: MAY/JUNE. 1980. 198O. ISSUE 4. 4 CO
- Page 61 and 62: MAY/JUNE, MAY/JUNE. 1980 198O ISSUE
- Page 63 and 64: , A rt\\>sALL ~\uS'ALL NEW from MIC
- Page 65 and 66: MAY/JUNE, I 193O 1980. ISSUE 4. COM
- Page 67 and 68: MAY/JUNE. MAY/JUNE . 198O 1980 ISSU
- Page 69 and 70: MAY/JUNE. MAY/JUNE, 19S0. 198O. ISS
- Page 71 and 72: 'VlA MAY/JUNE. Y I 1980 198O ISSUE
- Page 73 and 74: MAY/JUNE. MAY/JUNE, 1980. 198O. ISS
- Page 75 and 76: MAY/JUNE. 1980 I960 ISSUE 4 COMPUTE
- Page 77 and 78: MAY/JUNE. 1980. 198O. ISSUE A. COMP
- Page 79 and 80: MAY/JUNE. I 198O. 1980. ISSUE 4. CO
- Page 81 and 82: MAY/JUNE. 1980. 198O. IS$UE ISSUE 4
- Page 83 and 84: MAY/JUNE. 1980 198O ISSUE 4 A. COMP
- Page 85 and 86: MAY/JUNE. . 1980. 198O. ISSUE .SSUE
- Page 87 and 88: MAY MAY/JUNE. I lQ8o. 198O. ISSUE 4
- Page 89: MAY/JUNE, I JUNE. 1980 ISSUE 4, 4 C
- Page 93 and 94: MAY/JUNE. I 1980. ISSUE a. 4. COMPU
- Page 95 and 96: MAY/JUNE. I 1980. 198O. ISSUE A. 4.
- Page 97 and 98: MAY/JUNE. 1980. 198O. ISSUE 4. COMP
- Page 99 and 100: MAY/JUNE. . 19So. 198O. ISSUE 4. CO
- Page 101 and 102: MAY/JUNE. I 1980 I960. . ISSUE 4. 4
- Page 103 and 104: MAY/JUNE. I 1980. 198O. ISSUE 4. A.
- Page 105 and 106: MAY/JUNE, I JUNE. 1980. 198O. ISSUE
- Page 107 and 108: MAY/JUNE. I 1980. 198O ISSUE 4. COM
- Page 109 and 110: Said the Toolkit to the Word Proces
- Page 111 and 112: MAY/JUNE. I 1980. 198O. ISSUE 4, 4.
- Page 113 and 114: MAY/JUNE. I 1980. ISSUE 4. COMPUTE.
- Page 115 and 116: MAY/JUNE. MAY/JUNE, 1980. ISSUE 4.
- Page 117 and 118: MAY/JUNE, I JUNE. 1980. 198O. ISSUE
- Page 119 and 120: ■ ■ ' MAY/JUNE, AY/JUNE. 1980 1
- Page 121 and 122: MAY/JUNE, I JUNE. 1980 198O. . ISSU
- Page 123 and 124: COMPUTE. COMPUTE. TM The Journal Fo
- Page 125 and 126: Dear MICRO-ED: Dear MICRO-ED: I wou
- Page 127 and 128: Look To MTU For 6502 System Expansi