@L}5 _$% l0$)$$Hȱ$ UhL" `e$$%`$%`  R@W!( L(1   Y I`  d  Ld M * @  $ % CC$$)%1 Udߥ$9%: !0 S$% DD˙`  }J)Lr e-FILEFLALINEWIDTKEER$$#####}#########################$$# TEXT DISPLAY TO SCREEN OR #$$# PRINTER by Les Ellingham #$$######################}######## 9;@,!6. D:MANUAL.1-6-96- @ @@@@@}K:" A) A6-%@)-@)@(!&@*"@2'( @`}((@>:,-*"AU' 6-%@* @`2 <-(@#F:@,!@!- AF!@ }T AZ @ d--($ӠݠϠŠn)@x(>:A%,$ F:A, }A6Au:F:A,"A6#@.@:6-@/4 D:MANUAL.1%6. D:MANUAL.2/ @/ }4 D:MANUAL.2%6. D:MANUAL.3/ @a(0(%END OF MANUAL - PRESS TO RE-RUND(ANY KEY TO EXITVAdAU }a@F:B2y,"@%dF:Ad,AU*AdAU7(>:A%,a(%РˠҠĠ }ԠŠd  AU*'(ERROR F:A, CHECK DISK*,@*@$6&-@@"(}@& @6-$) +@@) A*-@@*(COMPUTER CRICKET)()(S}ELECT ()creen or ()rinter ?)@!!"@)"AA&!!"@)"AAu0 A0}?26-@7/@@E:2$X ( (Width 1) 40 columns]( 2) 80 columnsb<)@}6-&@H< @)!@Al46-$@@1@@P:4$B A0(ˠ}ҠĠԠBAdAU)@@ A D2:DISPLAY.MAN A0(ˠeCOMPUTER CRICKETComputer Cricket is a simulation of the game of limited-over cricket. The game may be played by either one} or two players. The player takes the part of captain of one (or both) of the opposing teams. As captain, the player has a co}nsiderable say in the selection of his team and, of course, he has the final say in both batting order and selection of bowle}rs.Six touring parties are available from which to choose opponents for a particular match. These touring parties are from }Australia, West Indies, Pakistan, England, India and New Zealand.TO BEGINTo begin play, simply insert the disk and turn t}he computer on. The program will run automatically. After the main program has loaded you will be presented with the title sc}reen and invited to make a choice between two options, namely Load Old Game or New Game. The Load Old Game option may be chos}en if you wish to continue play in an unfinished game which you have previously saved to disk. (The procedure for this option} will be discussed later.) For the present, however, select the New Game option.From this point on, everything is controlle}d by the joystick and trigger.STARTING A NEW GAMEAfter a short pause (during which the computer gets a few of the basics }organised) you will be presented with another screen and invited to select the two nations to play. Use the joystick to move }the flashing cursor vertically and press the trigger when the cursor is adjacent the desired nation.After you have selected} two nations, the touring party for the first selected nation appears. As stated in the flashing message at the bottom of the } screen, you should now select your team in batting order. Press the trigger to kill the flashing message and initiate team s!}election. Use the joystick to move the cursor vertically and press the trigger when the cursor is adjacent the desired player"}'s name.To assist you in keeping track of where you are, each player's name will, when selected, disappear from the 'Tourin#}g Party' column and appear in the 'Selected Team' column. Note that you may correct any selection errors, or re-select your t$}eam at the completion of initial selection, by pressing the ESC key. Also note that the outcome o the game will depend to a c%}onsiderable extent on both the players you select and the order in which you select them. Put good batsmen at the head of the&} batting order by all means but make sure you have good bowlers and the odd all-rounder in your line-up as well.When you ha'}ve selected the eleven players for the first team, press the trigger to proceed to the toss.THE TOSS AND SELECTION OF TEAM (}TO BAT FIRSTAfter a short pause (during which the toss routine is loaded from disk) a coin will appear and the appropriate )}team captain will be invited to call the toss. When the call is made, the coin spins and alights on either 'heads' or 'tails'*}. The captain who wins the toss will then be invited to indicate which team is to bat first. Following this decision, there w+}ill be a brief interlude while the covers are removed (i.e., more code is loaded from disk).THE MAIN MENUFollowing the re,}moval of the covers, the main menu appears. As you will see, this menu offers a number of options, the first four of which ar-}e chosen through the joystick. The options are:-1. Display Scoreboard - first team.2. Display Scoreboard - second team.3..} Select bowler for next over.4. Richie Benaud's summary.5. Save game to disk (chosen with the ESC key).DISPLAY SCOREBOARD/}SCalling up scoreboards is quite simple. Use the joystick and trigger to select the required team's scoreboard and, when yo0}u wish to return to the menu from this scoreboard, press the trigger.RICHIE BENAUD'S SUMMARYDuring the game, should you h1}unger for more statistics than are displayed on the scoreboards, call up Richie Benaud's summary. There are three main compar2}ative statistics that Richie will dwell upon, namely;-1. Fall of wicket (i.e., each team's total accumulated runs at the ti3}me of each successive batsman's departure from the crease)]2. Run Rate (i.e., each team's total accumulated runs at the end4} of each tenth over).3. Partnerships (i.e., the total runs made by a particular pair of batsmen during their combined stay 5}at the crease).SAVE GAME TO DISKPressing the ESC key will result in the current state-of-play to be saved to disk. At som6}e future time you may recommence play by choosing the Load Old Game option referred to earlier.SELECT BOWLER NEXT OVERTo 7}get the game going, however, your most obvious choice at this point will be to select the bowler for the first over. Choose t8}his option and you will exit the menu to the bowler selection menu.BOWLER SELECTIONThe bowler selection screen not only a9}llows you to choose your bowler but also provides you with relevant bowler statistics. These are updated every over and inclu:}de the number of overs bowled, maiden overs, run-offs and wickets taken. The numbers may assist you in determining which of y;}our star bowlers are 'in form' today.After every over, when you return to the bowler selection screen, the cursor will be a<}djacent the bowler who bowled the last over. yOu will not be permitted to employ this bowler for the next over, nor will you =}be allowed to use any other bowler who has already bowled 10 overs. A hooter will expose any such attempts at unsporting beha>}viour.THE MAIN GAMEHaving selected your bowler, press the trigger to begin the over. At the trigger press, you will move ?}to the main game screen to watch the toll that your chosen bowler takes of the opposition (or, alternatively, the manner in w@}hich the opposition demolished your bowler). The result of each ball will be displayed on the screen as well as the current bA}atsmen, the bowler, the batsman on strike, the over being played, the current run rate and, when the second team is batting, B}the run rate required for victory. The current total runs for the batsman on strike will appear on the right hand side of theC} screen as each ball is bowled.Should a batsman be dismissed during the over, a scrolling message will appear spelling out D}the details of the dismissal. This message will continue to scroll until the trigger is pressed, at which time play will resuE}me.Fours and half-centuries will be noted and sixes and centuries will be given somewhat more demonstrative recognition.AF}t the end of each over you have two options: press the trigger to select he bowler for the next over; or pull the joystick baG}ck to return the return to the menu for a check of the scoreboards or, perhaps, a quick Richie Benaud summary. (If you go to H}the menu you can, of course, get back to the bowler selection screen from there as well.)Should an innings terminate (firstI} team batting) or should the game be won (second team batting) during the over, a scrolling message indicating the nature of J}the outcome will appear at the bottom of the screen. This message will continue to scroll until the trigger is pressed, at whK}ich time you will be returned to the menu. If the event is the end of the first batting team's innings, the same menu optionsL} will apply as previously described, except, of course, that the former fielding team will now be batting. If, however, theM} event is the end of the game, the third menu option will be changed from 'Select Bowler Next Over' to 'End of Game Options'.N}END OF GAME OPTIONSAt this point you can, of course, take a quick run around the scoreboards and Richie's end-of-game sumO}mary. You may even choose to save the completed game to disk for later printout. However, if you choose End of Game options oP}ption, all current options will be eliminated and replaced with two new options: New Game and Print Summary. Choosing New GamQ}e option is self-explanatory: the program will be reloaded from disk and you will be back where we started.PRINT SUMMARYIR}f you choose the Print Summary option (which you should only do if you have an Epson printer all wired up and ready to go) thS}ere will be a sort delay while the print module is entered from disk.Eventually, a prompt will appear at the bottom of the T}screen inviting you to type in the venue of the game (e.g., SYDNEY CRICKET GROUND) and press the RETURN key. You will then beU} asked to input the date (e.g., 21 JAN 85). Type it in and press RETURN. A reminder then will appear asking you to make sure V}that he printer is 'ON-LINE'. Do so, press RETURN and printout will begin.MODIFYING PLAYER RATINGSThere are those, of couW}rse, who will not agree with the author's player ratings. Others may go so far as to insist on changing these ratings, and inX}deed the whole touring party line-up. A utility program is included with Computer Cricket to facilitate modification of the nY}ames of touring party personnel and of the related batting and bowling ratings. This program is called 'RATINGS.BAS'.Load aZ}nd run RATINGS.BAS and you will be presented with a three-option menu. The choices are Print Ratings to screen, Print ratings[} to printer and Create new ratings. If you choose the first option, each touring party will be listed to the screen with a su\}mmary of player and overall team ratings. (As indicated, press the space bar to step through each team and back to the menu).]} If you have an Epson printer and choose the second option, the Epson will present you with a page similar to the 'Current Ba^}tting and Bowling Ratings' sheet.CREATING NEW RATINGSIf you choose to create new ratings, you will be asked to indicate w_}hich team. When you have answered that question that touring party, complete with the current player and overall team ratings`}, will appear on the left of the screen. The right side of the screen is used to input the changes you require, whether they a}be names, batting ratings or bowling ratings. Follow the prompts to input the changed data for all 16 members of the touring b}party.Note that when you begin this process the overall team ratings at the bottom of the screen disappear. As you enter eac}ch player's data the totals for the various ratings (one-star, two-star or three-star) are incremented to assist you in baland}cing the team's capabilities against the other five teams. The author considers that, for both batsmen and bowlers, a line-upe} which gives four three-star, four two-star and eight one-star players is a reasonable proposition. However, you are at liberf}ty to set up your touring parties as you see fit. If, just once, you would like to see the 'Windies' defeated, then here is yg}our chance to cheat!!When you have entered the revised data for the last player, new data lines for the main program will bh}e automatically written and saved to disk. (This is the data which will b used when you next play Computer Cricket). At the ei}nd of the save-to-disk you will be given the choice of returning to the menu or terminating the program.For the Walter Mittj}ys among us, the RATINGS.BAS utility is a good way to insert our own names into these teams of giants. The author's son, for k}example, has been known to replace a lesser light in the Australian team in order to assist his idols (Border, Rackemann and l}Lawson) in the bowling onslaught against the opposition.Australian team in order to assist his idols (Border, Rackemann and 9FOR THE MORE ADVENTUROUSMemory constraints limit the options to six teams. Those wishing to replace one nation with anothen}r (e.g., SRI LANKA) should use RATINGS.BAS to insert the touring party data and manually change the nation name and colours ao}t the following lines of CRICKET2.BAS:Lines 3210-3220 Change nation name against the relevant team number (maximum 11 charap}cters).Lines 3280-3330 One of these lines will contain your team. Change the name and put your new team colours against varq}iables C11, C12 and C13.Lines 3350-3400 As for lines 3280-3330 except that the variables for your team colours are C21, C22r} and C23.Using the team selection screen at the beginning of a new game as an example, the colour variables mentioned aboves} control the following:C11 and C21 Central BackgroundC12 and C22 Nation NameC13 and C23 Screen BorderThe author's daut}ghter, incidentally, has replaced one team on her disk with the HOLDER HIGH all-stars, complete with school colours. This allu}-female team has under contract a star bowler by the name of Bessie. Bessie is the family dog. The author accepts that, despiv}te this arrogant creature's distinguished pedigree, the cricketing purist might reasonably be expected to object, and with sow}me vigour, to the sight of Imran Khan being dismissed for a duck by a Golden Retriever.COMPUTER CRICKET PROGRAM NOTESSCALx}AR VARIABLESB General utilityBAT Batsman on strike (value in BAT1 if BAT1 on strike or value in BAT2 if Bat2 on sy}trike)BAT1 Current batsman No. 1 (holds a number equivalent to this batsman's place in the batting order)BAT2 Currentz} batsman No. 2 (holdsa number equivalent to this batsman's place in the batting order)BOWL Current bowler (holds a numbe{}r equivalent to bowler's place in the batting order)CB Cursor bottom limit on screen (used in joystick handler routine)|}CH Cursor horizontal position (used in joystick handler routine)CI Cursor increment value (used in joystick handl}}er routine)CT Cursor top limit on screen (used in joystick handler routine)C11 Team 1 Colour No.1C12 Team 1 C~}olour No.2C13 Team 1 Colour No.3C21 Team 2 Colour No.1C22 Team 2 Colour No.2C23 Team 3 Colour No.3CHECK } Toggled variable used by the joystick handler routineCURSOR Vertical position of cursor on screen. Relates this position }to player identity etc. during joystick selection routineD General utilityDLP Start address of modified display l}it for scoreboards (data in this particular display list must be refreshed after scoreboard display)ESCLINE Program line to }GOTO if ESCape key is pressedINNINGS Set to 1 when first team is batting and 2 when second team is battingL General u}tility (mainly FOR/NEXT loops)LL General utility (mainly nested FOR/NEXT loops)OUT Number of batsmen out so farOVERB}ALL Number of balls bowled this over so farOVERUNS Number of runs scored this over so far (if zero then end of over, bowler}s maiden overs incremented)P General utilityPARTRUN Current Partnership runs. Transferred to TEMPERF array when batsman i}s dismissed or when innings or game overPLAYDAT1 Program line where first selected nation's touring party data is locatedPL}AYDAT2 Program line where second selected nation's touring party data is locatedPMBASE Player/Missile bit-map base address} set to four pages below top of RAM (see RAMTOP)RAMTOP Top of RAM. (bumped back four pages in this program to accommodate }and protect the Player/Missile bit-map)SWAP Toggled to swap the batsman on strike, i.e., to swap the values in BAT1 and }BAT2STRING VARIABLESBAR$ A string of horizontal line ATASCII graphics characters for general utility useBLINE$ A s}tring of blanks for general utility use NATION1$ Identity of first nation selected to playNATION2$ Identity of second natio}n selected to playNATION$ Temporary way-station for NATION2$ when all team-related variables are swapped at innings and gam}e end and sometimes after the tossPART$ Holds all names in touring party of selected team during team selection. At end-o}f-innings and end-of-game, holds the scrolling end-of-innings and end-of-game messagesPLAYER$ Holds player's name temporari}ly be fore transfer to PARTS$ during team selectionR$ Holds EOL character. Used to separate data items during save-gam}e routineTEAM1$ Holds all data for one teamTEAM2$ Holds all data for the other teamTEMP$ Temporary way-station for }TEAM2$ when all team-related variables are swapped at innings and game end and sometimes after the toss. Also used for variou}s other utilitarian purposes.SUBSCRIPTED VARIABLESTEMPERF Array used to temporarily hold player rating data before trans}fer to TEAM1$ and TEAM2$ during team selection. After team selection, used to hold batting partnership data.THE TWO MAJOR S}TRING VARIABLESTwo 740 character string variables hold all the data relevant to a particular team. These variables are TEAM}1$ and TEAM2$. Both of these strings have the same internal sub-string organisation. The broad internal arrangement is as fol}lows:1-660 Data on individual players held in eleven 60-character substrings661-663 Extras664-665 Overs received666}-667 Wickets lost668-670 Runs total671-674 Run Rate675-678 Run rate required679 Flag set if team won the toss68}0-720 Fall of wicket data721-740 Run rate data (total runs accumulated every tenth over)The internal arrangement of each} individual player's sub-string is as follows:1-10 Name11-13 'C' is placed here if caught out14-23 Catcher's na}me placed here if caught out11-23 'Stumped', 'LBW' or 'RUN OUT' placed here if these were the cause of dismissal24-26 } 'B' placed here if bowled, caught or LBW27-36 Bowler's name placed here if bowled, caught or LBW38-40 Player's curre}nt total runsThe above data on each player is the data printed to the scoreboard.41-42 No. of fours scored43-44 No}. of sixes scoredThe two items above feature in the summary printout only.45-47 Balls receivedThe above item is used} to calculate the player's batting strike rate for the summary printout.48-49 Overs bowled50-51 Maidens52-54 Run}s-off55-56 Wickets takenThe above items appear on the bowler-select screen and in the summary printout. The last two ar}e also used to calculate the player's bowling average for the summary printout.57 Player's batting rating58 Pl}ayer's bowling rating59 Flag set when this player has batted60 Flag set when this player has reached the half- }and full-centuryPROGRAMSComputer Cricket comprises several programs, as follows:CRICKET.BAS pokes a machine language di}splay list interrupt routine and modified display lists for the various screens to free RAM before loading CRICKET2.BAS, ENTE}Ring PLAYERS.LST and running the lot.CRICKET2.BAS is the main programPLAYERS.LST contains the player names and rating dat}a for all touring parties. This is kept separate from CRICKET2.BAS to facilitate user amendment of touring party data using t}he RATINGS.BAS utility program.CRICKET3.LST will be entered immediately after the team selection. This file contains the to}ss routine. It will not be entered if you choose the 'Load Old Game' option.CRICKET4.LST will be entered immediately after }the toss routine (or immediately after selection of the 'Load Old Game' option if it is selected). This file contains the tex}t data and associated subroutines accessed by the main game routine in the main program CRICKET2.BAS.CRICKET5.LST will be e}ntered when the 'Print Summary' option is chosen at game's end. This file contains the print module.SAVEGAME.DAT contains t}he saved-game data.RATINGS.BAS is a utility program which facilitates the viewing of and, where desired, the modification o}f the touring party data in PLAYERS.LST.GENERAL NOTESPlayer/Missile graphics are used to create the borders for the score}board, bowler-select and team-select screens.Modified display lists and display list interrupts (DLIs) are used for all scr}eens. The modified display lists are used on the scoreboard, bowler-select, team-select screens and main game screens to both} modify the vertical screen architecture and call the display list interrupt routine. On other screens, the GRAPHICS O displa}y list is modified to call the DLI routine only. The DLI routine is used to modify the value COLPF2 (Dec-53272, Hex-$DO18), t}he hardware colour register shadowed at COLOR2 (Dec-710, Hex-$2C6 or BASIC colour register 21. The DLI routine contains a fou}r-element colour table.The modified display list for the scoreboards undergoes substantial modification during the game and} has to be refreshed after each scoreboard display. The reason for this is that the basic modified display lit is further mod}ified immediately before scoreboard displayed, to highlight in white, current and 'not-out' batsmen.Liberal use is made of }ATARI's 'forced-read' mode (sometimes referred to as the 'RETURN' key mode) during various LOADs and ENTERs. This is to ensur}e continuation of program execution after the LOAD or ENTER. The text over which the cursor runs during these operations is a}ctually on the screen; however, it is rendered invisible by the appropriate manipulation of the playfield colour registers.}Seamless changes between the various screens are ensured through judicious use of Direct Memory Access(DMA) enable and disabl}e, Non-maskable Interrupt enable and disable and Player/Missile enable and disable. Direct pokes to the playfield colour regi}sters are used, rather than the BASIC SETCOLOUR, to speed up the process a trifle.In general, some areas of the program, pa}rticularly in the area of screen displays, text justification etc, are extravagantly wasteful of memory. However, the author }considered that visually-interesting screen displays would be needed to compensate for the fact that the simulation accuratel}y captures one key element of the game: at times, it can be pretty damn boring!te for the fact that the simulation accuratelP[The above documentation for Computer Cricket appeared in INSIDE INFO No.17 February 1985. Since then, the author has added }a utility called SERIES.BAS to enable you to run a whole series between six teams. These notes are provided to explain how t }o use this utility.]RUN YOUR OWN SERIESSERIES.BAS will create another file called SERIES.DAT. The program initially pres }ents you with two choices.1. Start New Series:Choose this option to start a new series. The existing SERIES.DAT file will } be re-initialized so a verification prompt is included to prevent you accidentally wiping out the records of a partially com }pleted series.2. Continue Current Series:If this option is chosen, you will move immediately to a four-choice menu. The c }hoices are as follows:(a) Next Match Details - Select this option and the two teams to play the next match in the series wi }ll be displayed together with the venue.(b) Record Match Results - Select this option and you will be led through the proce }ss of recording the results of the match you have just played. The inputs required are the winning team and, except in the s }emi-finals and grand final, the losing team and the run-rate for each team. The data file will be updated when you complete }these inputs.(c) Series Summary - This option will display all teams on the screen together with the number of games played }, the number of wins and, except during the finals, the total points scored. During the finals, the teams are rank-ordered o }n a re-formatted screen and additional information is presented so that you will know exactly where you are in the final seri }es.(d) Exit - This option will cause you to exit the program.o that you will know exactly where you are in the final seri ABDISPLAY MANBZMANUAL 1 BQmMANUAL 2 BMANUAL 3