Home » CEEFAX disks » telesoftware15.adl » 21-02-89/B\Text

21-02-89/B\Text

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » CEEFAX disks » telesoftware15.adl
Filename: 21-02-89/B\Text
Read OK:
File size: 09B3 bytes
Load address: 0000
Exec address: FFFFFFFF
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
The program on this disc runs in MODE 7 and will work with any version of
BASIC and on the Model B, B+ and Master. It has run bug free for a couple
of years now (the updates only being necessary to change the colours for
clearer monochrome display and to ensure compatability with the Master).

Instructions can be called when the program is first run and there is
little that I can add by way of explanation.

I have arranged the active keys to minimise accidental pressing of the
wrong ones.

The snowball function if turned on at the begining if the program, has to
be accessed manually from the checking table. If it were automatic then it
would not be possible to deal with half houses and lines etc. The user is
given the oportunity to change the snowball number at the begining of each
game - different people have different ideas about that - and is turned
off by the snowball actually comming up. I've not yet heard of a session
running two snowballs !

Special numbers are simply random numbers from 1 to 90 which have no
effect on the game in progress and are usefull for spot prizes, splitting
draws e.t.c.

The principal feature of the program is the use of DATA to fill a string
array (num$) with teletext graphic characters to print really large
numbers that look pleasing. This array is filled at the start of the
program in PROCinit and takes a little while, but this is not a problem as
it is only done once. New games are started with ESCAPE which is trapped
to loop.

The array bag% is 'shaken' in PROCshuf - no explanation needed there! This
is done several times for psycological reasons. People are suspicious of
shuffling that's done too quickly.

PROCclear zeros all elements of the array chk%. The locations are set as
the relevant numbers are called.

PROCchk prints the checking table and sets flg% to enable snowball to be
tested.

PROCnum finds the number to be printed - PROCspec in the case of an out of
sequence random number.

PROCpos splits it into separate digits and sets the printing position
accordingly.

Printing the appropriate element of num$ is done by PROCprint. Defining a
small text window enables the string to be printed extremely rapidly
without complicated cursor positioning.

PROCchk prints out the checking table with the called numbers in cyan and
uncalled numbers red.

PROCsnow tests the number of calls made against the snowball number and
prints the appropriate message.

Other odds and ends are, I think self explanatory.
00000000  0d 54 68 65 20 70 72 6f  67 72 61 6d 20 6f 6e 20  |.The program on |
00000010  74 68 69 73 20 64 69 73  63 20 72 75 6e 73 20 69  |this disc runs i|
00000020  6e 20 4d 4f 44 45 20 37  20 61 6e 64 20 77 69 6c  |n MODE 7 and wil|
00000030  6c 20 77 6f 72 6b 20 77  69 74 68 20 61 6e 79 20  |l work with any |
00000040  76 65 72 73 69 6f 6e 20  6f 66 0d 42 41 53 49 43  |version of.BASIC|
00000050  20 61 6e 64 20 6f 6e 20  74 68 65 20 4d 6f 64 65  | and on the Mode|
00000060  6c 20 42 2c 20 42 2b 20  61 6e 64 20 4d 61 73 74  |l B, B+ and Mast|
00000070  65 72 2e 20 49 74 20 68  61 73 20 72 75 6e 20 62  |er. It has run b|
00000080  75 67 20 66 72 65 65 20  66 6f 72 20 61 20 63 6f  |ug free for a co|
00000090  75 70 6c 65 0d 6f 66 20  79 65 61 72 73 20 6e 6f  |uple.of years no|
000000a0  77 20 28 74 68 65 20 75  70 64 61 74 65 73 20 6f  |w (the updates o|
000000b0  6e 6c 79 20 62 65 69 6e  67 20 6e 65 63 65 73 73  |nly being necess|
000000c0  61 72 79 20 74 6f 20 63  68 61 6e 67 65 20 74 68  |ary to change th|
000000d0  65 20 63 6f 6c 6f 75 72  73 20 66 6f 72 0d 63 6c  |e colours for.cl|
000000e0  65 61 72 65 72 20 6d 6f  6e 6f 63 68 72 6f 6d 65  |earer monochrome|
000000f0  20 64 69 73 70 6c 61 79  20 61 6e 64 20 74 6f 20  | display and to |
00000100  65 6e 73 75 72 65 20 63  6f 6d 70 61 74 61 62 69  |ensure compatabi|
00000110  6c 69 74 79 20 77 69 74  68 20 74 68 65 20 4d 61  |lity with the Ma|
00000120  73 74 65 72 29 2e 0d 0d  49 6e 73 74 72 75 63 74  |ster)...Instruct|
00000130  69 6f 6e 73 20 63 61 6e  20 62 65 20 63 61 6c 6c  |ions can be call|
00000140  65 64 20 77 68 65 6e 20  74 68 65 20 70 72 6f 67  |ed when the prog|
00000150  72 61 6d 20 69 73 20 66  69 72 73 74 20 72 75 6e  |ram is first run|
00000160  20 61 6e 64 20 74 68 65  72 65 20 69 73 0d 6c 69  | and there is.li|
00000170  74 74 6c 65 20 74 68 61  74 20 49 20 63 61 6e 20  |ttle that I can |
00000180  61 64 64 20 62 79 20 77  61 79 20 6f 66 20 65 78  |add by way of ex|
00000190  70 6c 61 6e 61 74 69 6f  6e 2e 0d 0d 49 20 68 61  |planation...I ha|
000001a0  76 65 20 61 72 72 61 6e  67 65 64 20 74 68 65 20  |ve arranged the |
000001b0  61 63 74 69 76 65 20 6b  65 79 73 20 74 6f 20 6d  |active keys to m|
000001c0  69 6e 69 6d 69 73 65 20  61 63 63 69 64 65 6e 74  |inimise accident|
000001d0  61 6c 20 70 72 65 73 73  69 6e 67 20 6f 66 20 74  |al pressing of t|
000001e0  68 65 0d 77 72 6f 6e 67  20 6f 6e 65 73 2e 0d 0d  |he.wrong ones...|
000001f0  54 68 65 20 73 6e 6f 77  62 61 6c 6c 20 66 75 6e  |The snowball fun|
00000200  63 74 69 6f 6e 20 69 66  20 74 75 72 6e 65 64 20  |ction if turned |
00000210  6f 6e 20 61 74 20 74 68  65 20 62 65 67 69 6e 69  |on at the begini|
00000220  6e 67 20 69 66 20 74 68  65 20 70 72 6f 67 72 61  |ng if the progra|
00000230  6d 2c 20 68 61 73 20 74  6f 0d 62 65 20 61 63 63  |m, has to.be acc|
00000240  65 73 73 65 64 20 6d 61  6e 75 61 6c 6c 79 20 66  |essed manually f|
00000250  72 6f 6d 20 74 68 65 20  63 68 65 63 6b 69 6e 67  |rom the checking|
00000260  20 74 61 62 6c 65 2e 20  49 66 20 69 74 20 77 65  | table. If it we|
00000270  72 65 20 61 75 74 6f 6d  61 74 69 63 20 74 68 65  |re automatic the|
00000280  6e 20 69 74 0d 77 6f 75  6c 64 20 6e 6f 74 20 62  |n it.would not b|
00000290  65 20 70 6f 73 73 69 62  6c 65 20 74 6f 20 64 65  |e possible to de|
000002a0  61 6c 20 77 69 74 68 20  68 61 6c 66 20 68 6f 75  |al with half hou|
000002b0  73 65 73 20 61 6e 64 20  6c 69 6e 65 73 20 65 74  |ses and lines et|
000002c0  63 2e 20 54 68 65 20 75  73 65 72 20 69 73 0d 67  |c. The user is.g|
000002d0  69 76 65 6e 20 74 68 65  20 6f 70 6f 72 74 75 6e  |iven the oportun|
000002e0  69 74 79 20 74 6f 20 63  68 61 6e 67 65 20 74 68  |ity to change th|
000002f0  65 20 73 6e 6f 77 62 61  6c 6c 20 6e 75 6d 62 65  |e snowball numbe|
00000300  72 20 61 74 20 74 68 65  20 62 65 67 69 6e 69 6e  |r at the beginin|
00000310  67 20 6f 66 20 65 61 63  68 0d 67 61 6d 65 20 2d  |g of each.game -|
00000320  20 64 69 66 66 65 72 65  6e 74 20 70 65 6f 70 6c  | different peopl|
00000330  65 20 68 61 76 65 20 64  69 66 66 65 72 65 6e 74  |e have different|
00000340  20 69 64 65 61 73 20 61  62 6f 75 74 20 74 68 61  | ideas about tha|
00000350  74 20 2d 20 61 6e 64 20  69 73 20 74 75 72 6e 65  |t - and is turne|
00000360  64 0d 6f 66 66 20 62 79  20 74 68 65 20 73 6e 6f  |d.off by the sno|
00000370  77 62 61 6c 6c 20 61 63  74 75 61 6c 6c 79 20 63  |wball actually c|
00000380  6f 6d 6d 69 6e 67 20 75  70 2e 20 49 27 76 65 20  |omming up. I've |
00000390  6e 6f 74 20 79 65 74 20  68 65 61 72 64 20 6f 66  |not yet heard of|
000003a0  20 61 20 73 65 73 73 69  6f 6e 0d 72 75 6e 6e 69  | a session.runni|
000003b0  6e 67 20 74 77 6f 20 73  6e 6f 77 62 61 6c 6c 73  |ng two snowballs|
000003c0  20 21 0d 0d 53 70 65 63  69 61 6c 20 6e 75 6d 62  | !..Special numb|
000003d0  65 72 73 20 61 72 65 20  73 69 6d 70 6c 79 20 72  |ers are simply r|
000003e0  61 6e 64 6f 6d 20 6e 75  6d 62 65 72 73 20 66 72  |andom numbers fr|
000003f0  6f 6d 20 31 20 74 6f 20  39 30 20 77 68 69 63 68  |om 1 to 90 which|
00000400  20 68 61 76 65 20 6e 6f  0d 65 66 66 65 63 74 20  | have no.effect |
00000410  6f 6e 20 74 68 65 20 67  61 6d 65 20 69 6e 20 70  |on the game in p|
00000420  72 6f 67 72 65 73 73 20  61 6e 64 20 61 72 65 20  |rogress and are |
00000430  75 73 65 66 75 6c 6c 20  66 6f 72 20 73 70 6f 74  |usefull for spot|
00000440  20 70 72 69 7a 65 73 2c  20 73 70 6c 69 74 74 69  | prizes, splitti|
00000450  6e 67 0d 64 72 61 77 73  20 65 2e 74 2e 63 2e 0d  |ng.draws e.t.c..|
00000460  0d 54 68 65 20 70 72 69  6e 63 69 70 61 6c 20 66  |.The principal f|
00000470  65 61 74 75 72 65 20 6f  66 20 74 68 65 20 70 72  |eature of the pr|
00000480  6f 67 72 61 6d 20 69 73  20 74 68 65 20 75 73 65  |ogram is the use|
00000490  20 6f 66 20 44 41 54 41  20 74 6f 20 66 69 6c 6c  | of DATA to fill|
000004a0  20 61 20 73 74 72 69 6e  67 0d 61 72 72 61 79 20  | a string.array |
000004b0  28 6e 75 6d 24 29 20 77  69 74 68 20 74 65 6c 65  |(num$) with tele|
000004c0  74 65 78 74 20 67 72 61  70 68 69 63 20 63 68 61  |text graphic cha|
000004d0  72 61 63 74 65 72 73 20  74 6f 20 70 72 69 6e 74  |racters to print|
000004e0  20 72 65 61 6c 6c 79 20  6c 61 72 67 65 0d 6e 75  | really large.nu|
000004f0  6d 62 65 72 73 20 74 68  61 74 20 6c 6f 6f 6b 20  |mbers that look |
00000500  70 6c 65 61 73 69 6e 67  2e 20 54 68 69 73 20 61  |pleasing. This a|
00000510  72 72 61 79 20 69 73 20  66 69 6c 6c 65 64 20 61  |rray is filled a|
00000520  74 20 74 68 65 20 73 74  61 72 74 20 6f 66 20 74  |t the start of t|
00000530  68 65 0d 70 72 6f 67 72  61 6d 20 69 6e 20 50 52  |he.program in PR|
00000540  4f 43 69 6e 69 74 20 61  6e 64 20 74 61 6b 65 73  |OCinit and takes|
00000550  20 61 20 6c 69 74 74 6c  65 20 77 68 69 6c 65 2c  | a little while,|
00000560  20 62 75 74 20 74 68 69  73 20 69 73 20 6e 6f 74  | but this is not|
00000570  20 61 20 70 72 6f 62 6c  65 6d 20 61 73 0d 69 74  | a problem as.it|
00000580  20 69 73 20 6f 6e 6c 79  20 64 6f 6e 65 20 6f 6e  | is only done on|
00000590  63 65 2e 20 4e 65 77 20  67 61 6d 65 73 20 61 72  |ce. New games ar|
000005a0  65 20 73 74 61 72 74 65  64 20 77 69 74 68 20 45  |e started with E|
000005b0  53 43 41 50 45 20 77 68  69 63 68 20 69 73 20 74  |SCAPE which is t|
000005c0  72 61 70 70 65 64 0d 74  6f 20 6c 6f 6f 70 2e 0d  |rapped.to loop..|
000005d0  0d 54 68 65 20 61 72 72  61 79 20 62 61 67 25 20  |.The array bag% |
000005e0  69 73 20 27 73 68 61 6b  65 6e 27 20 69 6e 20 50  |is 'shaken' in P|
000005f0  52 4f 43 73 68 75 66 20  2d 20 6e 6f 20 65 78 70  |ROCshuf - no exp|
00000600  6c 61 6e 61 74 69 6f 6e  20 6e 65 65 64 65 64 20  |lanation needed |
00000610  74 68 65 72 65 21 20 54  68 69 73 0d 69 73 20 64  |there! This.is d|
00000620  6f 6e 65 20 73 65 76 65  72 61 6c 20 74 69 6d 65  |one several time|
00000630  73 20 66 6f 72 20 70 73  79 63 6f 6c 6f 67 69 63  |s for psycologic|
00000640  61 6c 20 72 65 61 73 6f  6e 73 2e 20 50 65 6f 70  |al reasons. Peop|
00000650  6c 65 20 61 72 65 20 73  75 73 70 69 63 69 6f 75  |le are suspiciou|
00000660  73 20 6f 66 0d 73 68 75  66 66 6c 69 6e 67 20 74  |s of.shuffling t|
00000670  68 61 74 27 73 20 64 6f  6e 65 20 74 6f 6f 20 71  |hat's done too q|
00000680  75 69 63 6b 6c 79 2e 0d  0d 50 52 4f 43 63 6c 65  |uickly...PROCcle|
00000690  61 72 20 7a 65 72 6f 73  20 61 6c 6c 20 65 6c 65  |ar zeros all ele|
000006a0  6d 65 6e 74 73 20 6f 66  20 74 68 65 20 61 72 72  |ments of the arr|
000006b0  61 79 20 63 68 6b 25 2e  20 54 68 65 20 6c 6f 63  |ay chk%. The loc|
000006c0  61 74 69 6f 6e 73 20 61  72 65 20 73 65 74 20 61  |ations are set a|
000006d0  73 0d 74 68 65 20 72 65  6c 65 76 61 6e 74 20 6e  |s.the relevant n|
000006e0  75 6d 62 65 72 73 20 61  72 65 20 63 61 6c 6c 65  |umbers are calle|
000006f0  64 2e 0d 0d 50 52 4f 43  63 68 6b 20 70 72 69 6e  |d...PROCchk prin|
00000700  74 73 20 74 68 65 20 63  68 65 63 6b 69 6e 67 20  |ts the checking |
00000710  74 61 62 6c 65 20 61 6e  64 20 73 65 74 73 20 66  |table and sets f|
00000720  6c 67 25 20 74 6f 20 65  6e 61 62 6c 65 20 73 6e  |lg% to enable sn|
00000730  6f 77 62 61 6c 6c 20 74  6f 20 62 65 0d 74 65 73  |owball to be.tes|
00000740  74 65 64 2e 0d 0d 50 52  4f 43 6e 75 6d 20 66 69  |ted...PROCnum fi|
00000750  6e 64 73 20 74 68 65 20  6e 75 6d 62 65 72 20 74  |nds the number t|
00000760  6f 20 62 65 20 70 72 69  6e 74 65 64 20 2d 20 50  |o be printed - P|
00000770  52 4f 43 73 70 65 63 20  69 6e 20 74 68 65 20 63  |ROCspec in the c|
00000780  61 73 65 20 6f 66 20 61  6e 20 6f 75 74 20 6f 66  |ase of an out of|
00000790  0d 73 65 71 75 65 6e 63  65 20 72 61 6e 64 6f 6d  |.sequence random|
000007a0  20 6e 75 6d 62 65 72 2e  0d 0d 50 52 4f 43 70 6f  | number...PROCpo|
000007b0  73 20 73 70 6c 69 74 73  20 69 74 20 69 6e 74 6f  |s splits it into|
000007c0  20 73 65 70 61 72 61 74  65 20 64 69 67 69 74 73  | separate digits|
000007d0  20 61 6e 64 20 73 65 74  73 20 74 68 65 20 70 72  | and sets the pr|
000007e0  69 6e 74 69 6e 67 20 70  6f 73 69 74 69 6f 6e 0d  |inting position.|
000007f0  61 63 63 6f 72 64 69 6e  67 6c 79 2e 0d 0d 50 72  |accordingly...Pr|
00000800  69 6e 74 69 6e 67 20 74  68 65 20 61 70 70 72 6f  |inting the appro|
00000810  70 72 69 61 74 65 20 65  6c 65 6d 65 6e 74 20 6f  |priate element o|
00000820  66 20 6e 75 6d 24 20 69  73 20 64 6f 6e 65 20 62  |f num$ is done b|
00000830  79 20 50 52 4f 43 70 72  69 6e 74 2e 20 44 65 66  |y PROCprint. Def|
00000840  69 6e 69 6e 67 20 61 0d  73 6d 61 6c 6c 20 74 65  |ining a.small te|
00000850  78 74 20 77 69 6e 64 6f  77 20 65 6e 61 62 6c 65  |xt window enable|
00000860  73 20 74 68 65 20 73 74  72 69 6e 67 20 74 6f 20  |s the string to |
00000870  62 65 20 70 72 69 6e 74  65 64 20 65 78 74 72 65  |be printed extre|
00000880  6d 65 6c 79 20 72 61 70  69 64 6c 79 0d 77 69 74  |mely rapidly.wit|
00000890  68 6f 75 74 20 63 6f 6d  70 6c 69 63 61 74 65 64  |hout complicated|
000008a0  20 63 75 72 73 6f 72 20  70 6f 73 69 74 69 6f 6e  | cursor position|
000008b0  69 6e 67 2e 0d 0d 50 52  4f 43 63 68 6b 20 70 72  |ing...PROCchk pr|
000008c0  69 6e 74 73 20 6f 75 74  20 74 68 65 20 63 68 65  |ints out the che|
000008d0  63 6b 69 6e 67 20 74 61  62 6c 65 20 77 69 74 68  |cking table with|
000008e0  20 74 68 65 20 63 61 6c  6c 65 64 20 6e 75 6d 62  | the called numb|
000008f0  65 72 73 20 69 6e 20 63  79 61 6e 20 61 6e 64 0d  |ers in cyan and.|
00000900  75 6e 63 61 6c 6c 65 64  20 6e 75 6d 62 65 72 73  |uncalled numbers|
00000910  20 72 65 64 2e 0d 0d 50  52 4f 43 73 6e 6f 77 20  | red...PROCsnow |
00000920  74 65 73 74 73 20 74 68  65 20 6e 75 6d 62 65 72  |tests the number|
00000930  20 6f 66 20 63 61 6c 6c  73 20 6d 61 64 65 20 61  | of calls made a|
00000940  67 61 69 6e 73 74 20 74  68 65 20 73 6e 6f 77 62  |gainst the snowb|
00000950  61 6c 6c 20 6e 75 6d 62  65 72 20 61 6e 64 0d 70  |all number and.p|
00000960  72 69 6e 74 73 20 74 68  65 20 61 70 70 72 6f 70  |rints the approp|
00000970  72 69 61 74 65 20 6d 65  73 73 61 67 65 2e 0d 0d  |riate message...|
00000980  4f 74 68 65 72 20 6f 64  64 73 20 61 6e 64 20 65  |Other odds and e|
00000990  6e 64 73 20 61 72 65 2c  20 49 20 74 68 69 6e 6b  |nds are, I think|
000009a0  20 73 65 6c 66 20 65 78  70 6c 61 6e 61 74 6f 72  | self explanator|
000009b0  79 2e 0d                                          |y..|
000009b3
21-02-89/B\Text.m0
21-02-89/B\Text.m1
21-02-89/B\Text.m2
21-02-89/B\Text.m4
21-02-89/B\Text.m5