Home » CEEFAX disks » telesoftware17.adl » 11-08-89/BT\TEXT
11-08-89/BT\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 » telesoftware17.adl |
Filename: | 11-08-89/BT\TEXT |
Read OK: | ✔ |
File size: | 0763 bytes |
Load address: | FFFFFFFF |
Exec address: | FFFFFFFF |
File contents
Bingo Ticket Printer. _____________________ Andrew Blagg. _____________ The BINGO program written by Terry Blunt was originally intended to be used in clubs where the cost of the tickets is included in the stake money. For the occasional home user, an alternative to buying tickets is to print them as required, reducing the cost significantly. The basic program BTPRINT uses a random sorting procedure similar to the one in Terry Blunt's BINGO, but instead of mixing the numbers 1 to 90 into a random sequence, it randomises,in turn,the nine blocks :- 1-9,10-19,20-29,30-39,40-49,50-59,60-69,70-79,80-90. The array is dimensioned in line 130, and lines 140 to 400 take each block in turn, shuffling the elements using PROCexch and PROCmix and storing the new variables x%(1) to x%(90) ready to be printed in lines 520 to 860. Line 890 produces sufficient line feeds to advance the paper to the start of the next page when using standard 11" tractor feed paper. Another cost saving can be made by printing several pages then turning the paper upside down and printing on the unused half of each page. Print codes. ____________ Line 410 Printer on. Line 420 Set compressed. Line 430 Spacing 18/216"( 1/12 " ). Line 440 Double width. Line 450 Cancel slashed zero. Line 880 Reset and initialise printer. Line 900 Printer off. These codes are recognised by Epson compatible printers including the following:- Epson MX80,RX80,FX80,LX80 Citizen 120D Brother M-1109 Centronics GLP Shinwa CP80 Ensign 1650 Brother HR5 To run the program, switch the printer "on line" with the page perforations just above the print head, then Chain "BTPRINT"
00000000 20 20 20 20 20 20 20 20 42 69 6e 67 6f 20 54 69 | Bingo Ti| 00000010 63 6b 65 74 20 50 72 69 6e 74 65 72 2e 0a 0d 20 |cket Printer... | 00000020 20 20 20 20 20 20 20 5f 5f 5f 5f 5f 5f 5f 5f 5f | _________| 00000030 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 0a 0d 20 20 |____________.. | 00000040 20 20 20 20 20 20 20 20 20 20 41 6e 64 72 65 77 | Andrew| 00000050 20 42 6c 61 67 67 2e 0a 0d 20 20 20 20 20 20 20 | Blagg... | 00000060 20 20 20 20 20 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f | ___________| 00000070 5f 5f 0a 0d 0a 0d 20 20 20 20 20 54 68 65 20 42 |__.... The B| 00000080 49 4e 47 4f 20 70 72 6f 67 72 61 6d 20 77 72 69 |INGO program wri| 00000090 74 74 65 6e 20 62 79 20 54 65 72 72 79 20 42 6c |tten by Terry Bl| 000000a0 75 6e 74 20 77 61 73 20 6f 72 69 67 69 6e 61 6c |unt was original| 000000b0 6c 79 20 69 6e 74 65 6e 64 65 64 0a 0d 74 6f 20 |ly intended..to | 000000c0 62 65 20 75 73 65 64 20 69 6e 20 63 6c 75 62 73 |be used in clubs| 000000d0 20 77 68 65 72 65 20 74 68 65 20 63 6f 73 74 20 | where the cost | 000000e0 6f 66 20 74 68 65 20 74 69 63 6b 65 74 73 20 69 |of the tickets i| 000000f0 73 20 69 6e 63 6c 75 64 65 64 20 69 6e 20 74 68 |s included in th| 00000100 65 0a 0d 73 74 61 6b 65 20 6d 6f 6e 65 79 2e 0a |e..stake money..| 00000110 0d 0a 0d 20 20 20 20 20 46 6f 72 20 74 68 65 20 |... For the | 00000120 6f 63 63 61 73 69 6f 6e 61 6c 20 68 6f 6d 65 20 |occasional home | 00000130 75 73 65 72 2c 20 61 6e 20 61 6c 74 65 72 6e 61 |user, an alterna| 00000140 74 69 76 65 20 74 6f 20 62 75 79 69 6e 67 20 74 |tive to buying t| 00000150 69 63 6b 65 74 73 0a 0d 69 73 20 74 6f 20 70 72 |ickets..is to pr| 00000160 69 6e 74 20 74 68 65 6d 20 61 73 20 72 65 71 75 |int them as requ| 00000170 69 72 65 64 2c 20 72 65 64 75 63 69 6e 67 20 74 |ired, reducing t| 00000180 68 65 20 63 6f 73 74 20 73 69 67 6e 69 66 69 63 |he cost signific| 00000190 61 6e 74 6c 79 2e 0a 0d 0a 0d 20 20 20 20 20 54 |antly..... T| 000001a0 68 65 20 62 61 73 69 63 20 70 72 6f 67 72 61 6d |he basic program| 000001b0 20 42 54 50 52 49 4e 54 20 75 73 65 73 20 61 20 | BTPRINT uses a | 000001c0 72 61 6e 64 6f 6d 20 73 6f 72 74 69 6e 67 20 70 |random sorting p| 000001d0 72 6f 63 65 64 75 72 65 20 73 69 6d 69 6c 61 72 |rocedure similar| 000001e0 0a 0d 74 6f 20 74 68 65 20 6f 6e 65 20 69 6e 20 |..to the one in | 000001f0 54 65 72 72 79 20 42 6c 75 6e 74 27 73 20 42 49 |Terry Blunt's BI| 00000200 4e 47 4f 2c 20 62 75 74 20 69 6e 73 74 65 61 64 |NGO, but instead| 00000210 20 6f 66 20 6d 69 78 69 6e 67 20 74 68 65 20 6e | of mixing the n| 00000220 75 6d 62 65 72 73 20 31 0a 0d 74 6f 20 39 30 20 |umbers 1..to 90 | 00000230 69 6e 74 6f 20 61 20 72 61 6e 64 6f 6d 20 73 65 |into a random se| 00000240 71 75 65 6e 63 65 2c 20 69 74 20 72 61 6e 64 6f |quence, it rando| 00000250 6d 69 73 65 73 2c 69 6e 20 74 75 72 6e 2c 74 68 |mises,in turn,th| 00000260 65 20 6e 69 6e 65 20 62 6c 6f 63 6b 73 20 3a 2d |e nine blocks :-| 00000270 0a 0d 31 2d 39 2c 31 30 2d 31 39 2c 32 30 2d 32 |..1-9,10-19,20-2| 00000280 39 2c 33 30 2d 33 39 2c 34 30 2d 34 39 2c 35 30 |9,30-39,40-49,50| 00000290 2d 35 39 2c 36 30 2d 36 39 2c 37 30 2d 37 39 2c |-59,60-69,70-79,| 000002a0 38 30 2d 39 30 2e 0a 0d 0a 0d 20 20 20 20 20 54 |80-90..... T| 000002b0 68 65 20 61 72 72 61 79 20 69 73 20 64 69 6d 65 |he array is dime| 000002c0 6e 73 69 6f 6e 65 64 20 69 6e 20 6c 69 6e 65 20 |nsioned in line | 000002d0 31 33 30 2c 20 61 6e 64 20 6c 69 6e 65 73 20 31 |130, and lines 1| 000002e0 34 30 20 74 6f 20 34 30 30 20 74 61 6b 65 0a 0d |40 to 400 take..| 000002f0 65 61 63 68 20 62 6c 6f 63 6b 20 69 6e 20 74 75 |each block in tu| 00000300 72 6e 2c 20 73 68 75 66 66 6c 69 6e 67 20 74 68 |rn, shuffling th| 00000310 65 20 65 6c 65 6d 65 6e 74 73 20 75 73 69 6e 67 |e elements using| 00000320 20 50 52 4f 43 65 78 63 68 20 61 6e 64 20 50 52 | PROCexch and PR| 00000330 4f 43 6d 69 78 0a 0d 61 6e 64 20 73 74 6f 72 69 |OCmix..and stori| 00000340 6e 67 20 74 68 65 20 6e 65 77 20 76 61 72 69 61 |ng the new varia| 00000350 62 6c 65 73 20 78 25 28 31 29 20 74 6f 20 78 25 |bles x%(1) to x%| 00000360 28 39 30 29 20 72 65 61 64 79 20 74 6f 20 62 65 |(90) ready to be| 00000370 20 70 72 69 6e 74 65 64 20 69 6e 0a 0d 6c 69 6e | printed in..lin| 00000380 65 73 20 35 32 30 20 74 6f 20 38 36 30 2e 0a 0d |es 520 to 860...| 00000390 20 20 20 20 20 4c 69 6e 65 20 38 39 30 20 70 72 | Line 890 pr| 000003a0 6f 64 75 63 65 73 20 73 75 66 66 69 63 69 65 6e |oduces sufficien| 000003b0 74 20 6c 69 6e 65 20 66 65 65 64 73 20 74 6f 20 |t line feeds to | 000003c0 61 64 76 61 6e 63 65 20 74 68 65 20 70 61 70 65 |advance the pape| 000003d0 72 20 74 6f 0a 0d 74 68 65 20 73 74 61 72 74 20 |r to..the start | 000003e0 20 6f 66 20 74 68 65 20 6e 65 78 74 20 70 61 67 | of the next pag| 000003f0 65 20 77 68 65 6e 20 75 73 69 6e 67 20 73 74 61 |e when using sta| 00000400 6e 64 61 72 64 20 31 31 22 20 74 72 61 63 74 6f |ndard 11" tracto| 00000410 72 20 66 65 65 64 0a 0d 70 61 70 65 72 2e 20 41 |r feed..paper. A| 00000420 6e 6f 74 68 65 72 20 63 6f 73 74 20 73 61 76 69 |nother cost savi| 00000430 6e 67 20 63 61 6e 20 62 65 20 6d 61 64 65 20 62 |ng can be made b| 00000440 79 20 70 72 69 6e 74 69 6e 67 20 73 65 76 65 72 |y printing sever| 00000450 61 6c 20 70 61 67 65 73 20 74 68 65 6e 0a 0d 74 |al pages then..t| 00000460 75 72 6e 69 6e 67 20 74 68 65 20 70 61 70 65 72 |urning the paper| 00000470 20 75 70 73 69 64 65 20 64 6f 77 6e 20 61 6e 64 | upside down and| 00000480 20 70 72 69 6e 74 69 6e 67 20 6f 6e 20 74 68 65 | printing on the| 00000490 20 75 6e 75 73 65 64 20 68 61 6c 66 20 6f 66 20 | unused half of | 000004a0 65 61 63 68 0a 0d 70 61 67 65 2e 0a 0d 20 0a 0d |each..page... ..| 000004b0 0a 0d 20 20 20 20 20 20 20 20 20 20 20 20 50 72 |.. Pr| 000004c0 69 6e 74 20 63 6f 64 65 73 2e 0a 0d 20 20 20 20 |int codes... | 000004d0 20 20 20 20 20 20 20 20 5f 5f 5f 5f 5f 5f 5f 5f | ________| 000004e0 5f 5f 5f 5f 0a 0d 4c 69 6e 65 20 34 31 30 20 20 |____..Line 410 | 000004f0 50 72 69 6e 74 65 72 20 6f 6e 2e 0a 0d 4c 69 6e |Printer on...Lin| 00000500 65 20 34 32 30 20 20 53 65 74 20 63 6f 6d 70 72 |e 420 Set compr| 00000510 65 73 73 65 64 2e 0a 0d 4c 69 6e 65 20 34 33 30 |essed...Line 430| 00000520 20 20 53 70 61 63 69 6e 67 20 31 38 2f 32 31 36 | Spacing 18/216| 00000530 22 28 20 31 2f 31 32 20 22 20 29 2e 0a 0d 4c 69 |"( 1/12 " )...Li| 00000540 6e 65 20 34 34 30 20 20 44 6f 75 62 6c 65 20 77 |ne 440 Double w| 00000550 69 64 74 68 2e 0a 0d 4c 69 6e 65 20 34 35 30 20 |idth...Line 450 | 00000560 20 43 61 6e 63 65 6c 20 73 6c 61 73 68 65 64 20 | Cancel slashed | 00000570 7a 65 72 6f 2e 0a 0d 4c 69 6e 65 20 38 38 30 20 |zero...Line 880 | 00000580 20 52 65 73 65 74 20 61 6e 64 20 69 6e 69 74 69 | Reset and initi| 00000590 61 6c 69 73 65 20 70 72 69 6e 74 65 72 2e 0a 0d |alise printer...| 000005a0 4c 69 6e 65 20 39 30 30 20 20 50 72 69 6e 74 65 |Line 900 Printe| 000005b0 72 20 6f 66 66 2e 0a 0d 0a 0d 20 20 54 68 65 73 |r off..... Thes| 000005c0 65 20 63 6f 64 65 73 20 61 72 65 20 72 65 63 6f |e codes are reco| 000005d0 67 6e 69 73 65 64 20 62 79 20 45 70 73 6f 6e 20 |gnised by Epson | 000005e0 63 6f 6d 70 61 74 69 62 6c 65 20 70 72 69 6e 74 |compatible print| 000005f0 65 72 73 20 69 6e 63 6c 75 64 69 6e 67 0a 0d 74 |ers including..t| 00000600 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 3a 2d 0a 0d |he following:-..| 00000610 0a 0d 20 20 20 20 20 20 20 20 20 20 45 70 73 6f |.. Epso| 00000620 6e 20 4d 58 38 30 2c 52 58 38 30 2c 46 58 38 30 |n MX80,RX80,FX80| 00000630 2c 4c 58 38 30 0a 0d 20 20 20 20 20 20 20 20 20 |,LX80.. | 00000640 20 43 69 74 69 7a 65 6e 20 31 32 30 44 0a 0d 20 | Citizen 120D.. | 00000650 20 20 20 20 20 20 20 20 20 42 72 6f 74 68 65 72 | Brother| 00000660 20 4d 2d 31 31 30 39 0a 0d 20 20 20 20 20 20 20 | M-1109.. | 00000670 20 20 20 43 65 6e 74 72 6f 6e 69 63 73 20 47 4c | Centronics GL| 00000680 50 0a 0d 20 20 20 20 20 20 20 20 20 20 53 68 69 |P.. Shi| 00000690 6e 77 61 20 43 50 38 30 0a 0d 20 20 20 20 20 20 |nwa CP80.. | 000006a0 20 20 20 20 45 6e 73 69 67 6e 20 31 36 35 30 0a | Ensign 1650.| 000006b0 0d 20 20 20 20 20 20 20 20 20 20 42 72 6f 74 68 |. Broth| 000006c0 65 72 20 48 52 35 0a 0d 0a 0d 0a 0d 20 20 54 6f |er HR5...... To| 000006d0 20 72 75 6e 20 74 68 65 20 70 72 6f 67 72 61 6d | run the program| 000006e0 2c 20 73 77 69 74 63 68 20 74 68 65 20 70 72 69 |, switch the pri| 000006f0 6e 74 65 72 20 22 6f 6e 20 6c 69 6e 65 22 20 77 |nter "on line" w| 00000700 69 74 68 20 74 68 65 20 70 61 67 65 0a 0d 70 65 |ith the page..pe| 00000710 72 66 6f 72 61 74 69 6f 6e 73 20 6a 75 73 74 20 |rforations just | 00000720 61 62 6f 76 65 20 74 68 65 20 70 72 69 6e 74 20 |above the print | 00000730 68 65 61 64 2c 20 20 74 68 65 6e 20 43 68 61 69 |head, then Chai| 00000740 6e 20 22 42 54 50 52 49 4e 54 22 0a 0d 0a 0d 0a |n "BTPRINT".....| 00000750 0d 20 20 20 20 20 0a 0d 20 20 20 20 20 0a 0d 0a |. .. ...| 00000760 0d 0a 0d |...| 00000763