This week, the second and final part of the Tarot card listing. The program is fairly straightforward, apart from the graphics. When a card is to be printed, a check is made if it is a suit card. If so, the character 255 is defined for the suit and printed where necessary on the face to make the number of 'pips'or once for a court card as a suit marker. If it is a court card then K,Q,N or P is also printed. Trump and court card picture data starts in memory at 38000. There is a short (21-byte) machine code section at 39872. (The data for this is the last line of the program.) This simply uses LDIR to dump 72 bytes from the picture data area into the UDG area to fill out characters 246 to 254 (memory locations 37920 -37991), prior to printing a string containing these characters (a8). It is interesting that the screen can be filled with different card pictures while using only 10user-defined graphic characters in a present string. There is little agreement amongst Tarot card fortune tellers as to the card meanings. I have tried to synthesise ideas from a number of sources, with the prime objective always to keep the program as short as possible. Readers can easily substitute their own ideas and expand the meanings. Interpretative data begins at line 510. There are two pieces of data for each card starting at 'The Fool'. Generally these give 'Good'and 'Bad'meanings . . . but some cards tend to be totally good or totally bad. Once again, if all the typing seems beyond your abilities (or patience), then I can supply tape copies of the program at £1.50 each. Write to me, David Muir, at 78 Peverell Park Road, Peverell, Plymouth PL3 4ND. PopularComputingWeekly860403 |