Home » CEEFAX disks » telesoftware9.adl » 30-09-88/T\SPK00
30-09-88/T\SPK00
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 » telesoftware9.adl |
Filename: | 30-09-88/T\SPK00 |
Read OK: | ✔ |
File size: | 209D bytes |
Load address: | 0000 |
Exec address: | FFFFFFFF |
File contents
The Acorn Speech System - by - Gordon Horsington ---------------------------------------------------- Module 0. Introduction. ----------------------- The Acorn Speech system can be fitted into any of the BBC B series of computers. The speech upgrade cannot be fitted into either the Master computer or the Master Compact. The speech upgrade kit contains two chips (a Texas Instruments TMS 5220 speech processor and a Texas Instruments TMS 6100 word PHROM, known as word PHROM A), an extension socket for extra word PHROMs, a keyboard connector, two resistors and two capacitors. The upgrade kit can be bought for under twenty pounds. If you have an issue 2 or 3 BBC B computer you should have the upgrade fitted by your computer dealer because the main circuit board will have to be modified. If you have an issue 4 or an issue 7 BBC B or a BBC B+ you can easily fit the two speech chips yourself. As well as fitting the two chips you can also fit the optional extension socket for extra word PHROMs. This is supplied with the upgrade kit and has to be soldered onto the keyboard. This will be another job for your computer dealer if you don't have much experience of working with a soldering iron. You should not attempt to fit it yourself unless you are sure that you can do the work. It is quite tricky to fit but the extension socket is only required if you intend to use extra word PHROMs. The Acorn word PHROM A has the serial number VM6100A. There are four other 16k word PHROMs supplied by Texas Instruments all of which can be used with the Speech System. These alternative word PHROMs are: VM61002 General Vocabulary VM61003 Weather/Time Vocabulary VM61004 Military Vocabulary VM61005 Avionics Vocabulary The Acorn word PHROM A is the only one with an English accent. The other four listed above have an American accent. In order to use an alternative word PHROM it is necessary to make a small printed circuit board to carry the word PHROM and then plug the PCB into the extension socket on the keyboard. The board will need to make the following connections between the keyboard socket and the word PHROM pins (the socket key is between sockets 2 and 3): Socket VM6100x pins ------ ------------ 6 1 7 3 8 4 9 5 10 6 11 9 12 10 13 11 14 13 15 14 If you really need to use an alternative American vocabulary you may find that it is worth all the trouble of making a PCB to hold an extra word PHROM. I have been unable to find a supplier of PCBs to hold extra word PHROMs and it seems that if you want to use one of them you will have to make the PCB yourself. An easy-to-install alternative to extra word PHROMs has been produced by Computer Concepts. They market an excellent sideways ROM Speech System which can be used to control the speech processor and costs about the same as two extra word PHROMs. This system can be used without a word PHROM of any sort and can be supplied with the TMS 5220 speech processor if the Acorn Speech upgrade has not been fitted into your computer. The Computer Concepts Speech System uses the TMS 5220 speech processor to create the phonemes which produce speech. It produces high quality speech with a neutral accent and requires very little knowledge of programming. The system can be made to sing in a major scale (no sharps or flats) and can translate text into speech. This system is undoubtly more versatile than using extra word PHROMs. If you have bought the Acorn speech upgrade kit and want to use a larger vocabluary than the one supplied on word PHROM A it is not necessary to buy any extra word PHROMs or sideways ROMs. It is quite easy to produce a much larger vocabulary than the 165 words supplied in word PHROM A without any extra hardware, ROMs or PHROMs. This series of tutorial modules will teach you how to program the TMS 5220 speech processor directly and show you how to extract speech data from word PHROM A and use it to create an almost unlimited number of new words. There are seven modules in the Speech System block of the Opcodes series. The modules are in files named T/SPK00 to T/SPK06. The following topics will be covered in these modules. Module 0. This module. Introduction. Programs: EQUDEMO EQUATE Module 1. The speech synthesiser commands. Programs: BEWARE PENCE CLOCK TONE1 Module 2. The Acorn word PHROM A. Program: REVERSE Module 3. Using the Read and Branch instruction. Program: BRANCH Module 4. Searching the word PHROM for word names. Program: SEARCH Module 5. Using the Speak External command to extend the vocabulary. Programs: ADDRESS CREATE MOUTH Module 6. Creating new words with the Speak and Reset commands. Programs: ADDRESS CHOPUP TELSOFT The later modules develop the ideas and techniques described in the earlier modules and for this reason the series needs to be worked through from beginning to end rather than used as a reference guide to the speech system. You will need to refer to the Acorn Speech System User Guide throughout the series. When you have completed the speech modules you should be able to modify the demonstration programs to enable your speech system to say anything you want it to say. You will not need to use any software other than that provided with the modules and you should find that good quality speech can be easily produced without any additional hardware or firmware. The example programs have been written in BASIC 2 Assembly language. The BASIC 2 or BASIC 4 Assembler is essential for serious machine code work. If you have to use BASIC 1 then the equate pseudo-operation commands are not available and have to be simulated using the OPT FN command. This can be done by loading a program into memory and replacing every equate pseudo-operation command with its equivalent OPT FN simulation. This replacement is demonstrated in the program EQUDEMO. 10 REM: EQUDEMO 20 DIM mcode &100 30 FOR pass = 0 TO 3 STEP 3 40 P% = mcode 50 [ OPT pass 60 OPT FNequb(&12) 70 \ OPT FNequb(&12) is the \ BASIC 1 equivalent of EQUB &12 80 OPT FNequw(&1234) 90 \ OPT FNequw(&1234) is the \ BASIC 1 equivalent of EQUW &1234 100 OPT FNequd(&12345678) 110 \ OPT FNequd(&12345678) is the \ BASIC 1 equivalent of EQUD &12345678 120 OPT FNequs("hello") 130 \ OPT FNequs("hello") is the \ BASIC 1 equivalent of EQUS "hello" 140 ] 150 NEXT 160 END 170 DEFFNequb(byte) 180 ?P%=byte 190 P%=P%+1 200 =pass 210 DEFFNequw(word) 220 ?P%=word MOD 256 230 P%?1=word DIV 256 240 P%=P%+2 250 =pass 260 DEFFNequd(double) 270 !P%=double 280 P%=P%+4 290 =pass 300 DEFFNequs(string$) 310 $P%=string$ 320 P%=P%+LEN(string$) 330 =pass After making alterations similar to those illustrated in lines 60 to 130 of the program EQUDEMO, you can *EXEC the file EQUATE which will add the definitions of the simulated equate pseudo-operations onto the end of the program in memory. This will save you the effort of typing in the equate functions for every program. REM: EQUATE 30000 END 30010 DEFFNequb(byte) 30020 ?P%=byte 30030 P%=P%+1 30040 =pass 30050 DEFFNequw(word) 30060 ?P%=word MOD 256 30070 P%?1=word DIV 256 30080 P%=P%+2 30090 =pass 30100 DEFFNequd(double) 30110 !P%=double 30120 P%=P%+4 30130 =pass 30140 DEFFNequs(string$) 30150 $P%=string$ 30160 P%=P%+LEN(string$) 30170 =pass Making these modifications will allow all the programs to assemble properly using BASIC 1, but I feel sure that replacing the BASIC 1 ROM with either BASIC 2 (or BASIC 4 if you also install an R65C02 CPU) is far better than patching the BASIC 1 assembler in this way. -------------------------------------------------------------------------- Texas Instruments Ltd. Computer Concepts Ltd. Manton Lane Gaddesden Place Bedford Hemel Hempstead MK41 7PA Herts. HP2 6EX
00000000 54 68 65 20 41 63 6f 72 6e 20 53 70 65 65 63 68 |The Acorn Speech| 00000010 20 53 79 73 74 65 6d 20 20 2d 20 20 62 79 20 20 | System - by | 00000020 2d 20 20 47 6f 72 64 6f 6e 20 48 6f 72 73 69 6e |- Gordon Horsin| 00000030 67 74 6f 6e 0d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |gton.-----------| 00000040 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00000060 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 0d 4d 6f 64 75 6c |---------..Modul| 00000070 65 20 30 2e 20 49 6e 74 72 6f 64 75 63 74 69 6f |e 0. Introductio| 00000080 6e 2e 0d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |n..-------------| 00000090 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 0d 54 68 65 20 |----------..The | 000000a0 41 63 6f 72 6e 20 53 70 65 65 63 68 20 73 79 73 |Acorn Speech sys| 000000b0 74 65 6d 20 63 61 6e 20 62 65 20 66 69 74 74 65 |tem can be fitte| 000000c0 64 20 69 6e 74 6f 20 61 6e 79 20 6f 66 20 74 68 |d into any of th| 000000d0 65 20 42 42 43 20 42 20 73 65 72 69 65 73 20 6f |e BBC B series o| 000000e0 66 0d 63 6f 6d 70 75 74 65 72 73 2e 20 54 68 65 |f.computers. The| 000000f0 20 73 70 65 65 63 68 20 75 70 67 72 61 64 65 20 | speech upgrade | 00000100 63 61 6e 6e 6f 74 20 62 65 20 66 69 74 74 65 64 |cannot be fitted| 00000110 20 69 6e 74 6f 20 65 69 74 68 65 72 20 74 68 65 | into either the| 00000120 20 4d 61 73 74 65 72 0d 63 6f 6d 70 75 74 65 72 | Master.computer| 00000130 20 6f 72 20 74 68 65 20 4d 61 73 74 65 72 20 43 | or the Master C| 00000140 6f 6d 70 61 63 74 2e 20 54 68 65 20 73 70 65 65 |ompact. The spee| 00000150 63 68 20 75 70 67 72 61 64 65 20 6b 69 74 20 63 |ch upgrade kit c| 00000160 6f 6e 74 61 69 6e 73 20 74 77 6f 20 63 68 69 70 |ontains two chip| 00000170 73 0d 28 61 20 54 65 78 61 73 20 49 6e 73 74 72 |s.(a Texas Instr| 00000180 75 6d 65 6e 74 73 20 54 4d 53 20 35 32 32 30 20 |uments TMS 5220 | 00000190 73 70 65 65 63 68 20 70 72 6f 63 65 73 73 6f 72 |speech processor| 000001a0 20 61 6e 64 20 61 20 54 65 78 61 73 20 49 6e 73 | and a Texas Ins| 000001b0 74 72 75 6d 65 6e 74 73 0d 54 4d 53 20 36 31 30 |truments.TMS 610| 000001c0 30 20 77 6f 72 64 20 50 48 52 4f 4d 2c 20 6b 6e |0 word PHROM, kn| 000001d0 6f 77 6e 20 61 73 20 77 6f 72 64 20 50 48 52 4f |own as word PHRO| 000001e0 4d 20 41 29 2c 20 61 6e 20 65 78 74 65 6e 73 69 |M A), an extensi| 000001f0 6f 6e 20 73 6f 63 6b 65 74 20 66 6f 72 20 65 78 |on socket for ex| 00000200 74 72 61 0d 77 6f 72 64 20 50 48 52 4f 4d 73 2c |tra.word PHROMs,| 00000210 20 61 20 6b 65 79 62 6f 61 72 64 20 63 6f 6e 6e | a keyboard conn| 00000220 65 63 74 6f 72 2c 20 74 77 6f 20 72 65 73 69 73 |ector, two resis| 00000230 74 6f 72 73 20 61 6e 64 20 74 77 6f 20 63 61 70 |tors and two cap| 00000240 61 63 69 74 6f 72 73 2e 20 54 68 65 0d 75 70 67 |acitors. The.upg| 00000250 72 61 64 65 20 6b 69 74 20 63 61 6e 20 62 65 20 |rade kit can be | 00000260 62 6f 75 67 68 74 20 66 6f 72 20 75 6e 64 65 72 |bought for under| 00000270 20 74 77 65 6e 74 79 20 70 6f 75 6e 64 73 2e 0d | twenty pounds..| 00000280 0d 49 66 20 79 6f 75 20 68 61 76 65 20 61 6e 20 |.If you have an | 00000290 69 73 73 75 65 20 32 20 6f 72 20 33 20 42 42 43 |issue 2 or 3 BBC| 000002a0 20 42 20 63 6f 6d 70 75 74 65 72 20 79 6f 75 20 | B computer you | 000002b0 73 68 6f 75 6c 64 20 68 61 76 65 20 74 68 65 20 |should have the | 000002c0 75 70 67 72 61 64 65 0d 66 69 74 74 65 64 20 62 |upgrade.fitted b| 000002d0 79 20 79 6f 75 72 20 63 6f 6d 70 75 74 65 72 20 |y your computer | 000002e0 64 65 61 6c 65 72 20 62 65 63 61 75 73 65 20 74 |dealer because t| 000002f0 68 65 20 6d 61 69 6e 20 63 69 72 63 75 69 74 20 |he main circuit | 00000300 62 6f 61 72 64 20 77 69 6c 6c 20 68 61 76 65 20 |board will have | 00000310 74 6f 0d 62 65 20 6d 6f 64 69 66 69 65 64 2e 20 |to.be modified. | 00000320 49 66 20 79 6f 75 20 68 61 76 65 20 61 6e 20 69 |If you have an i| 00000330 73 73 75 65 20 34 20 6f 72 20 61 6e 20 69 73 73 |ssue 4 or an iss| 00000340 75 65 20 37 20 42 42 43 20 42 20 6f 72 20 61 20 |ue 7 BBC B or a | 00000350 42 42 43 20 42 2b 20 79 6f 75 0d 63 61 6e 20 65 |BBC B+ you.can e| 00000360 61 73 69 6c 79 20 66 69 74 20 74 68 65 20 74 77 |asily fit the tw| 00000370 6f 20 73 70 65 65 63 68 20 63 68 69 70 73 20 79 |o speech chips y| 00000380 6f 75 72 73 65 6c 66 2e 20 41 73 20 77 65 6c 6c |ourself. As well| 00000390 20 61 73 20 66 69 74 74 69 6e 67 20 74 68 65 20 | as fitting the | 000003a0 74 77 6f 0d 63 68 69 70 73 20 79 6f 75 20 63 61 |two.chips you ca| 000003b0 6e 20 61 6c 73 6f 20 66 69 74 20 74 68 65 20 6f |n also fit the o| 000003c0 70 74 69 6f 6e 61 6c 20 65 78 74 65 6e 73 69 6f |ptional extensio| 000003d0 6e 20 73 6f 63 6b 65 74 20 66 6f 72 20 65 78 74 |n socket for ext| 000003e0 72 61 20 77 6f 72 64 0d 50 48 52 4f 4d 73 2e 20 |ra word.PHROMs. | 000003f0 54 68 69 73 20 69 73 20 73 75 70 70 6c 69 65 64 |This is supplied| 00000400 20 77 69 74 68 20 74 68 65 20 75 70 67 72 61 64 | with the upgrad| 00000410 65 20 6b 69 74 20 61 6e 64 20 68 61 73 20 74 6f |e kit and has to| 00000420 20 62 65 20 73 6f 6c 64 65 72 65 64 20 6f 6e 74 | be soldered ont| 00000430 6f 0d 74 68 65 20 6b 65 79 62 6f 61 72 64 2e 20 |o.the keyboard. | 00000440 54 68 69 73 20 77 69 6c 6c 20 62 65 20 61 6e 6f |This will be ano| 00000450 74 68 65 72 20 6a 6f 62 20 66 6f 72 20 79 6f 75 |ther job for you| 00000460 72 20 63 6f 6d 70 75 74 65 72 20 64 65 61 6c 65 |r computer deale| 00000470 72 20 69 66 20 79 6f 75 0d 64 6f 6e 27 74 20 68 |r if you.don't h| 00000480 61 76 65 20 6d 75 63 68 20 65 78 70 65 72 69 65 |ave much experie| 00000490 6e 63 65 20 6f 66 20 77 6f 72 6b 69 6e 67 20 77 |nce of working w| 000004a0 69 74 68 20 61 20 73 6f 6c 64 65 72 69 6e 67 20 |ith a soldering | 000004b0 69 72 6f 6e 2e 20 59 6f 75 20 73 68 6f 75 6c 64 |iron. You should| 000004c0 0d 6e 6f 74 20 61 74 74 65 6d 70 74 20 74 6f 20 |.not attempt to | 000004d0 66 69 74 20 69 74 20 79 6f 75 72 73 65 6c 66 20 |fit it yourself | 000004e0 75 6e 6c 65 73 73 20 79 6f 75 20 61 72 65 20 73 |unless you are s| 000004f0 75 72 65 20 74 68 61 74 20 79 6f 75 20 63 61 6e |ure that you can| 00000500 20 64 6f 20 74 68 65 0d 77 6f 72 6b 2e 20 49 74 | do the.work. It| 00000510 20 69 73 20 71 75 69 74 65 20 74 72 69 63 6b 79 | is quite tricky| 00000520 20 74 6f 20 66 69 74 20 62 75 74 20 74 68 65 20 | to fit but the | 00000530 65 78 74 65 6e 73 69 6f 6e 20 73 6f 63 6b 65 74 |extension socket| 00000540 20 69 73 20 6f 6e 6c 79 20 72 65 71 75 69 72 65 | is only require| 00000550 64 0d 69 66 20 79 6f 75 20 69 6e 74 65 6e 64 20 |d.if you intend | 00000560 74 6f 20 75 73 65 20 65 78 74 72 61 20 77 6f 72 |to use extra wor| 00000570 64 20 50 48 52 4f 4d 73 2e 0d 0d 54 68 65 20 41 |d PHROMs...The A| 00000580 63 6f 72 6e 20 77 6f 72 64 20 50 48 52 4f 4d 20 |corn word PHROM | 00000590 41 20 68 61 73 20 74 68 65 20 73 65 72 69 61 6c |A has the serial| 000005a0 20 6e 75 6d 62 65 72 20 56 4d 36 31 30 30 41 2e | number VM6100A.| 000005b0 20 54 68 65 72 65 20 61 72 65 20 66 6f 75 72 20 | There are four | 000005c0 6f 74 68 65 72 0d 31 36 6b 20 77 6f 72 64 20 50 |other.16k word P| 000005d0 48 52 4f 4d 73 20 73 75 70 70 6c 69 65 64 20 62 |HROMs supplied b| 000005e0 79 20 54 65 78 61 73 20 49 6e 73 74 72 75 6d 65 |y Texas Instrume| 000005f0 6e 74 73 20 61 6c 6c 20 6f 66 20 77 68 69 63 68 |nts all of which| 00000600 20 63 61 6e 20 62 65 20 75 73 65 64 0d 77 69 74 | can be used.wit| 00000610 68 20 74 68 65 20 53 70 65 65 63 68 20 53 79 73 |h the Speech Sys| 00000620 74 65 6d 2e 20 54 68 65 73 65 20 61 6c 74 65 72 |tem. These alter| 00000630 6e 61 74 69 76 65 20 77 6f 72 64 20 50 48 52 4f |native word PHRO| 00000640 4d 73 20 61 72 65 3a 0d 0d 0d 56 4d 36 31 30 30 |Ms are:...VM6100| 00000650 32 20 47 65 6e 65 72 61 6c 20 56 6f 63 61 62 75 |2 General Vocabu| 00000660 6c 61 72 79 0d 56 4d 36 31 30 30 33 20 57 65 61 |lary.VM61003 Wea| 00000670 74 68 65 72 2f 54 69 6d 65 20 56 6f 63 61 62 75 |ther/Time Vocabu| 00000680 6c 61 72 79 0d 56 4d 36 31 30 30 34 20 4d 69 6c |lary.VM61004 Mil| 00000690 69 74 61 72 79 20 56 6f 63 61 62 75 6c 61 72 79 |itary Vocabulary| 000006a0 0d 56 4d 36 31 30 30 35 20 41 76 69 6f 6e 69 63 |.VM61005 Avionic| 000006b0 73 20 56 6f 63 61 62 75 6c 61 72 79 0d 0d 0d 54 |s Vocabulary...T| 000006c0 68 65 20 41 63 6f 72 6e 20 77 6f 72 64 20 50 48 |he Acorn word PH| 000006d0 52 4f 4d 20 41 20 69 73 20 74 68 65 20 6f 6e 6c |ROM A is the onl| 000006e0 79 20 6f 6e 65 20 77 69 74 68 20 61 6e 20 45 6e |y one with an En| 000006f0 67 6c 69 73 68 20 61 63 63 65 6e 74 2e 20 54 68 |glish accent. Th| 00000700 65 20 6f 74 68 65 72 0d 66 6f 75 72 20 6c 69 73 |e other.four lis| 00000710 74 65 64 20 61 62 6f 76 65 20 68 61 76 65 20 61 |ted above have a| 00000720 6e 20 41 6d 65 72 69 63 61 6e 20 61 63 63 65 6e |n American accen| 00000730 74 2e 20 49 6e 20 6f 72 64 65 72 20 74 6f 20 75 |t. In order to u| 00000740 73 65 20 61 6e 20 61 6c 74 65 72 6e 61 74 69 76 |se an alternativ| 00000750 65 0d 77 6f 72 64 20 50 48 52 4f 4d 20 69 74 20 |e.word PHROM it | 00000760 69 73 20 6e 65 63 65 73 73 61 72 79 20 74 6f 20 |is necessary to | 00000770 6d 61 6b 65 20 61 20 73 6d 61 6c 6c 20 70 72 69 |make a small pri| 00000780 6e 74 65 64 20 63 69 72 63 75 69 74 20 62 6f 61 |nted circuit boa| 00000790 72 64 20 74 6f 20 63 61 72 72 79 0d 74 68 65 20 |rd to carry.the | 000007a0 77 6f 72 64 20 50 48 52 4f 4d 20 61 6e 64 20 74 |word PHROM and t| 000007b0 68 65 6e 20 70 6c 75 67 20 74 68 65 20 50 43 42 |hen plug the PCB| 000007c0 20 69 6e 74 6f 20 74 68 65 20 65 78 74 65 6e 73 | into the extens| 000007d0 69 6f 6e 20 73 6f 63 6b 65 74 20 6f 6e 20 74 68 |ion socket on th| 000007e0 65 0d 6b 65 79 62 6f 61 72 64 2e 20 54 68 65 20 |e.keyboard. The | 000007f0 62 6f 61 72 64 20 77 69 6c 6c 20 6e 65 65 64 20 |board will need | 00000800 74 6f 20 6d 61 6b 65 20 74 68 65 20 66 6f 6c 6c |to make the foll| 00000810 6f 77 69 6e 67 20 63 6f 6e 6e 65 63 74 69 6f 6e |owing connection| 00000820 73 20 62 65 74 77 65 65 6e 0d 74 68 65 20 6b 65 |s between.the ke| 00000830 79 62 6f 61 72 64 20 73 6f 63 6b 65 74 20 61 6e |yboard socket an| 00000840 64 20 74 68 65 20 77 6f 72 64 20 50 48 52 4f 4d |d the word PHROM| 00000850 20 70 69 6e 73 20 28 74 68 65 20 73 6f 63 6b 65 | pins (the socke| 00000860 74 20 6b 65 79 20 69 73 20 62 65 74 77 65 65 6e |t key is between| 00000870 0d 73 6f 63 6b 65 74 73 20 32 20 61 6e 64 20 33 |.sockets 2 and 3| 00000880 29 3a 0d 0d 0d 53 6f 63 6b 65 74 20 20 20 20 20 |):...Socket | 00000890 20 20 20 20 56 4d 36 31 30 30 78 20 70 69 6e 73 | VM6100x pins| 000008a0 0d 2d 2d 2d 2d 2d 2d 20 20 20 20 20 20 20 20 20 |.------ | 000008b0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 20 36 20 |------------. 6 | 000008c0 20 20 20 20 20 20 20 20 20 20 20 20 20 31 0d 20 | 1. | 000008d0 37 20 20 20 20 20 20 20 20 20 20 20 20 20 20 33 |7 3| 000008e0 0d 20 38 20 20 20 20 20 20 20 20 20 20 20 20 20 |. 8 | 000008f0 20 34 0d 20 39 20 20 20 20 20 20 20 20 20 20 20 | 4. 9 | 00000900 20 20 20 35 0d 31 30 20 20 20 20 20 20 20 20 20 | 5.10 | 00000910 20 20 20 20 20 36 0d 31 31 20 20 20 20 20 20 20 | 6.11 | 00000920 20 20 20 20 20 20 20 39 0d 31 32 20 20 20 20 20 | 9.12 | 00000930 20 20 20 20 20 20 20 20 31 30 0d 31 33 20 20 20 | 10.13 | 00000940 20 20 20 20 20 20 20 20 20 20 31 31 0d 31 34 20 | 11.14 | 00000950 20 20 20 20 20 20 20 20 20 20 20 20 31 33 0d 31 | 13.1| 00000960 35 20 20 20 20 20 20 20 20 20 20 20 20 20 31 34 |5 14| 00000970 0d 0d 0d 49 66 20 79 6f 75 20 72 65 61 6c 6c 79 |...If you really| 00000980 20 6e 65 65 64 20 74 6f 20 75 73 65 20 61 6e 20 | need to use an | 00000990 61 6c 74 65 72 6e 61 74 69 76 65 20 41 6d 65 72 |alternative Amer| 000009a0 69 63 61 6e 20 76 6f 63 61 62 75 6c 61 72 79 20 |ican vocabulary | 000009b0 79 6f 75 20 6d 61 79 20 66 69 6e 64 0d 74 68 61 |you may find.tha| 000009c0 74 20 69 74 20 69 73 20 77 6f 72 74 68 20 61 6c |t it is worth al| 000009d0 6c 20 74 68 65 20 74 72 6f 75 62 6c 65 20 6f 66 |l the trouble of| 000009e0 20 6d 61 6b 69 6e 67 20 61 20 50 43 42 20 74 6f | making a PCB to| 000009f0 20 68 6f 6c 64 20 61 6e 20 65 78 74 72 61 20 77 | hold an extra w| 00000a00 6f 72 64 0d 50 48 52 4f 4d 2e 20 49 20 68 61 76 |ord.PHROM. I hav| 00000a10 65 20 62 65 65 6e 20 75 6e 61 62 6c 65 20 74 6f |e been unable to| 00000a20 20 66 69 6e 64 20 61 20 73 75 70 70 6c 69 65 72 | find a supplier| 00000a30 20 6f 66 20 50 43 42 73 20 74 6f 20 68 6f 6c 64 | of PCBs to hold| 00000a40 20 65 78 74 72 61 20 77 6f 72 64 0d 50 48 52 4f | extra word.PHRO| 00000a50 4d 73 20 61 6e 64 20 69 74 20 73 65 65 6d 73 20 |Ms and it seems | 00000a60 74 68 61 74 20 69 66 20 79 6f 75 20 77 61 6e 74 |that if you want| 00000a70 20 74 6f 20 75 73 65 20 6f 6e 65 20 6f 66 20 74 | to use one of t| 00000a80 68 65 6d 20 79 6f 75 20 77 69 6c 6c 20 68 61 76 |hem you will hav| 00000a90 65 20 74 6f 0d 6d 61 6b 65 20 74 68 65 20 50 43 |e to.make the PC| 00000aa0 42 20 79 6f 75 72 73 65 6c 66 2e 0d 0d 41 6e 20 |B yourself...An | 00000ab0 65 61 73 79 2d 74 6f 2d 69 6e 73 74 61 6c 6c 20 |easy-to-install | 00000ac0 61 6c 74 65 72 6e 61 74 69 76 65 20 74 6f 20 65 |alternative to e| 00000ad0 78 74 72 61 20 77 6f 72 64 20 50 48 52 4f 4d 73 |xtra word PHROMs| 00000ae0 20 68 61 73 20 62 65 65 6e 20 70 72 6f 64 75 63 | has been produc| 00000af0 65 64 20 62 79 0d 43 6f 6d 70 75 74 65 72 20 43 |ed by.Computer C| 00000b00 6f 6e 63 65 70 74 73 2e 20 54 68 65 79 20 6d 61 |oncepts. They ma| 00000b10 72 6b 65 74 20 61 6e 20 65 78 63 65 6c 6c 65 6e |rket an excellen| 00000b20 74 20 73 69 64 65 77 61 79 73 20 52 4f 4d 20 53 |t sideways ROM S| 00000b30 70 65 65 63 68 20 53 79 73 74 65 6d 0d 77 68 69 |peech System.whi| 00000b40 63 68 20 63 61 6e 20 62 65 20 75 73 65 64 20 74 |ch can be used t| 00000b50 6f 20 63 6f 6e 74 72 6f 6c 20 74 68 65 20 73 70 |o control the sp| 00000b60 65 65 63 68 20 70 72 6f 63 65 73 73 6f 72 20 61 |eech processor a| 00000b70 6e 64 20 63 6f 73 74 73 20 61 62 6f 75 74 20 74 |nd costs about t| 00000b80 68 65 20 73 61 6d 65 0d 61 73 20 74 77 6f 20 65 |he same.as two e| 00000b90 78 74 72 61 20 77 6f 72 64 20 50 48 52 4f 4d 73 |xtra word PHROMs| 00000ba0 2e 20 54 68 69 73 20 73 79 73 74 65 6d 20 63 61 |. This system ca| 00000bb0 6e 20 62 65 20 75 73 65 64 20 77 69 74 68 6f 75 |n be used withou| 00000bc0 74 20 61 20 77 6f 72 64 20 50 48 52 4f 4d 20 6f |t a word PHROM o| 00000bd0 66 0d 61 6e 79 20 73 6f 72 74 20 61 6e 64 20 63 |f.any sort and c| 00000be0 61 6e 20 62 65 20 73 75 70 70 6c 69 65 64 20 77 |an be supplied w| 00000bf0 69 74 68 20 74 68 65 20 54 4d 53 20 35 32 32 30 |ith the TMS 5220| 00000c00 20 73 70 65 65 63 68 20 70 72 6f 63 65 73 73 6f | speech processo| 00000c10 72 20 69 66 20 74 68 65 0d 41 63 6f 72 6e 20 53 |r if the.Acorn S| 00000c20 70 65 65 63 68 20 75 70 67 72 61 64 65 20 68 61 |peech upgrade ha| 00000c30 73 20 6e 6f 74 20 62 65 65 6e 20 66 69 74 74 65 |s not been fitte| 00000c40 64 20 69 6e 74 6f 20 79 6f 75 72 20 63 6f 6d 70 |d into your comp| 00000c50 75 74 65 72 2e 0d 0d 54 68 65 20 43 6f 6d 70 75 |uter...The Compu| 00000c60 74 65 72 20 43 6f 6e 63 65 70 74 73 20 53 70 65 |ter Concepts Spe| 00000c70 65 63 68 20 53 79 73 74 65 6d 20 75 73 65 73 20 |ech System uses | 00000c80 74 68 65 20 54 4d 53 20 35 32 32 30 20 73 70 65 |the TMS 5220 spe| 00000c90 65 63 68 20 70 72 6f 63 65 73 73 6f 72 20 74 6f |ech processor to| 00000ca0 0d 63 72 65 61 74 65 20 74 68 65 20 70 68 6f 6e |.create the phon| 00000cb0 65 6d 65 73 20 77 68 69 63 68 20 70 72 6f 64 75 |emes which produ| 00000cc0 63 65 20 73 70 65 65 63 68 2e 20 49 74 20 70 72 |ce speech. It pr| 00000cd0 6f 64 75 63 65 73 20 68 69 67 68 20 71 75 61 6c |oduces high qual| 00000ce0 69 74 79 20 73 70 65 65 63 68 0d 77 69 74 68 20 |ity speech.with | 00000cf0 61 20 6e 65 75 74 72 61 6c 20 61 63 63 65 6e 74 |a neutral accent| 00000d00 20 61 6e 64 20 72 65 71 75 69 72 65 73 20 76 65 | and requires ve| 00000d10 72 79 20 6c 69 74 74 6c 65 20 6b 6e 6f 77 6c 65 |ry little knowle| 00000d20 64 67 65 20 6f 66 20 70 72 6f 67 72 61 6d 6d 69 |dge of programmi| 00000d30 6e 67 2e 0d 54 68 65 20 73 79 73 74 65 6d 20 63 |ng..The system c| 00000d40 61 6e 20 62 65 20 6d 61 64 65 20 74 6f 20 73 69 |an be made to si| 00000d50 6e 67 20 69 6e 20 61 20 6d 61 6a 6f 72 20 73 63 |ng in a major sc| 00000d60 61 6c 65 20 28 6e 6f 20 73 68 61 72 70 73 20 6f |ale (no sharps o| 00000d70 72 20 66 6c 61 74 73 29 20 61 6e 64 0d 63 61 6e |r flats) and.can| 00000d80 20 74 72 61 6e 73 6c 61 74 65 20 74 65 78 74 20 | translate text | 00000d90 69 6e 74 6f 20 73 70 65 65 63 68 2e 20 54 68 69 |into speech. Thi| 00000da0 73 20 73 79 73 74 65 6d 20 69 73 20 75 6e 64 6f |s system is undo| 00000db0 75 62 74 6c 79 20 6d 6f 72 65 20 76 65 72 73 61 |ubtly more versa| 00000dc0 74 69 6c 65 0d 74 68 61 6e 20 75 73 69 6e 67 20 |tile.than using | 00000dd0 65 78 74 72 61 20 77 6f 72 64 20 50 48 52 4f 4d |extra word PHROM| 00000de0 73 2e 0d 0d 49 66 20 79 6f 75 20 68 61 76 65 20 |s...If you have | 00000df0 62 6f 75 67 68 74 20 74 68 65 20 41 63 6f 72 6e |bought the Acorn| 00000e00 20 73 70 65 65 63 68 20 75 70 67 72 61 64 65 20 | speech upgrade | 00000e10 6b 69 74 20 61 6e 64 20 77 61 6e 74 20 74 6f 20 |kit and want to | 00000e20 75 73 65 20 61 20 6c 61 72 67 65 72 0d 76 6f 63 |use a larger.voc| 00000e30 61 62 6c 75 61 72 79 20 74 68 61 6e 20 74 68 65 |abluary than the| 00000e40 20 6f 6e 65 20 73 75 70 70 6c 69 65 64 20 6f 6e | one supplied on| 00000e50 20 77 6f 72 64 20 50 48 52 4f 4d 20 41 20 69 74 | word PHROM A it| 00000e60 20 69 73 20 6e 6f 74 20 6e 65 63 65 73 73 61 72 | is not necessar| 00000e70 79 20 74 6f 0d 62 75 79 20 61 6e 79 20 65 78 74 |y to.buy any ext| 00000e80 72 61 20 77 6f 72 64 20 50 48 52 4f 4d 73 20 6f |ra word PHROMs o| 00000e90 72 20 73 69 64 65 77 61 79 73 20 52 4f 4d 73 2e |r sideways ROMs.| 00000ea0 20 49 74 20 69 73 20 71 75 69 74 65 20 65 61 73 | It is quite eas| 00000eb0 79 20 74 6f 20 70 72 6f 64 75 63 65 20 61 0d 6d |y to produce a.m| 00000ec0 75 63 68 20 6c 61 72 67 65 72 20 76 6f 63 61 62 |uch larger vocab| 00000ed0 75 6c 61 72 79 20 74 68 61 6e 20 74 68 65 20 31 |ulary than the 1| 00000ee0 36 35 20 77 6f 72 64 73 20 73 75 70 70 6c 69 65 |65 words supplie| 00000ef0 64 20 69 6e 20 77 6f 72 64 20 50 48 52 4f 4d 20 |d in word PHROM | 00000f00 41 20 77 69 74 68 6f 75 74 0d 61 6e 79 20 65 78 |A without.any ex| 00000f10 74 72 61 20 68 61 72 64 77 61 72 65 2c 20 52 4f |tra hardware, RO| 00000f20 4d 73 20 6f 72 20 50 48 52 4f 4d 73 2e 20 54 68 |Ms or PHROMs. Th| 00000f30 69 73 20 73 65 72 69 65 73 20 6f 66 20 74 75 74 |is series of tut| 00000f40 6f 72 69 61 6c 20 6d 6f 64 75 6c 65 73 20 77 69 |orial modules wi| 00000f50 6c 6c 0d 74 65 61 63 68 20 79 6f 75 20 68 6f 77 |ll.teach you how| 00000f60 20 74 6f 20 70 72 6f 67 72 61 6d 20 74 68 65 20 | to program the | 00000f70 54 4d 53 20 35 32 32 30 20 73 70 65 65 63 68 20 |TMS 5220 speech | 00000f80 70 72 6f 63 65 73 73 6f 72 20 64 69 72 65 63 74 |processor direct| 00000f90 6c 79 20 61 6e 64 20 73 68 6f 77 0d 79 6f 75 20 |ly and show.you | 00000fa0 68 6f 77 20 74 6f 20 65 78 74 72 61 63 74 20 73 |how to extract s| 00000fb0 70 65 65 63 68 20 64 61 74 61 20 66 72 6f 6d 20 |peech data from | 00000fc0 77 6f 72 64 20 50 48 52 4f 4d 20 41 20 61 6e 64 |word PHROM A and| 00000fd0 20 75 73 65 20 69 74 20 74 6f 20 63 72 65 61 74 | use it to creat| 00000fe0 65 20 61 6e 0d 61 6c 6d 6f 73 74 20 75 6e 6c 69 |e an.almost unli| 00000ff0 6d 69 74 65 64 20 6e 75 6d 62 65 72 20 6f 66 20 |mited number of | 00001000 6e 65 77 20 77 6f 72 64 73 2e 0d 0d 54 68 65 72 |new words...Ther| 00001010 65 20 61 72 65 20 73 65 76 65 6e 20 6d 6f 64 75 |e are seven modu| 00001020 6c 65 73 20 69 6e 20 74 68 65 20 53 70 65 65 63 |les in the Speec| 00001030 68 20 53 79 73 74 65 6d 20 62 6c 6f 63 6b 20 6f |h System block o| 00001040 66 20 74 68 65 20 4f 70 63 6f 64 65 73 20 73 65 |f the Opcodes se| 00001050 72 69 65 73 2e 0d 54 68 65 20 6d 6f 64 75 6c 65 |ries..The module| 00001060 73 20 61 72 65 20 69 6e 20 66 69 6c 65 73 20 6e |s are in files n| 00001070 61 6d 65 64 20 54 2f 53 50 4b 30 30 20 74 6f 20 |amed T/SPK00 to | 00001080 54 2f 53 50 4b 30 36 2e 20 54 68 65 20 66 6f 6c |T/SPK06. The fol| 00001090 6c 6f 77 69 6e 67 20 74 6f 70 69 63 73 0d 77 69 |lowing topics.wi| 000010a0 6c 6c 20 62 65 20 63 6f 76 65 72 65 64 20 69 6e |ll be covered in| 000010b0 20 74 68 65 73 65 20 6d 6f 64 75 6c 65 73 2e 0d | these modules..| 000010c0 0d 0d 4d 6f 64 75 6c 65 20 30 2e 20 54 68 69 73 |..Module 0. This| 000010d0 20 6d 6f 64 75 6c 65 2e 20 49 6e 74 72 6f 64 75 | module. Introdu| 000010e0 63 74 69 6f 6e 2e 0d 20 20 20 20 20 20 20 20 20 |ction.. | 000010f0 20 50 72 6f 67 72 61 6d 73 3a 20 45 51 55 44 45 | Programs: EQUDE| 00001100 4d 4f 20 45 51 55 41 54 45 0d 0d 4d 6f 64 75 6c |MO EQUATE..Modul| 00001110 65 20 31 2e 20 54 68 65 20 73 70 65 65 63 68 20 |e 1. The speech | 00001120 73 79 6e 74 68 65 73 69 73 65 72 20 63 6f 6d 6d |synthesiser comm| 00001130 61 6e 64 73 2e 0d 20 20 20 20 20 20 20 20 20 20 |ands.. | 00001140 50 72 6f 67 72 61 6d 73 3a 20 42 45 57 41 52 45 |Programs: BEWARE| 00001150 20 50 45 4e 43 45 20 43 4c 4f 43 4b 20 54 4f 4e | PENCE CLOCK TON| 00001160 45 31 0d 0d 4d 6f 64 75 6c 65 20 32 2e 20 54 68 |E1..Module 2. Th| 00001170 65 20 41 63 6f 72 6e 20 77 6f 72 64 20 50 48 52 |e Acorn word PHR| 00001180 4f 4d 20 41 2e 0d 20 20 20 20 20 20 20 20 20 20 |OM A.. | 00001190 50 72 6f 67 72 61 6d 3a 20 52 45 56 45 52 53 45 |Program: REVERSE| 000011a0 0d 0d 4d 6f 64 75 6c 65 20 33 2e 20 55 73 69 6e |..Module 3. Usin| 000011b0 67 20 74 68 65 20 52 65 61 64 20 61 6e 64 20 42 |g the Read and B| 000011c0 72 61 6e 63 68 20 69 6e 73 74 72 75 63 74 69 6f |ranch instructio| 000011d0 6e 2e 0d 20 20 20 20 20 20 20 20 20 20 50 72 6f |n.. Pro| 000011e0 67 72 61 6d 3a 20 42 52 41 4e 43 48 0d 0d 4d 6f |gram: BRANCH..Mo| 000011f0 64 75 6c 65 20 34 2e 20 53 65 61 72 63 68 69 6e |dule 4. Searchin| 00001200 67 20 74 68 65 20 77 6f 72 64 20 50 48 52 4f 4d |g the word PHROM| 00001210 20 66 6f 72 20 77 6f 72 64 20 6e 61 6d 65 73 2e | for word names.| 00001220 0d 20 20 20 20 20 20 20 20 20 20 50 72 6f 67 72 |. Progr| 00001230 61 6d 3a 20 53 45 41 52 43 48 0d 0d 4d 6f 64 75 |am: SEARCH..Modu| 00001240 6c 65 20 35 2e 20 55 73 69 6e 67 20 74 68 65 20 |le 5. Using the | 00001250 53 70 65 61 6b 20 45 78 74 65 72 6e 61 6c 20 63 |Speak External c| 00001260 6f 6d 6d 61 6e 64 20 74 6f 20 65 78 74 65 6e 64 |ommand to extend| 00001270 20 74 68 65 20 76 6f 63 61 62 75 6c 61 72 79 2e | the vocabulary.| 00001280 0d 20 20 20 20 20 20 20 20 20 20 50 72 6f 67 72 |. Progr| 00001290 61 6d 73 3a 20 41 44 44 52 45 53 53 20 43 52 45 |ams: ADDRESS CRE| 000012a0 41 54 45 20 4d 4f 55 54 48 0d 0d 4d 6f 64 75 6c |ATE MOUTH..Modul| 000012b0 65 20 36 2e 20 43 72 65 61 74 69 6e 67 20 6e 65 |e 6. Creating ne| 000012c0 77 20 77 6f 72 64 73 20 77 69 74 68 20 74 68 65 |w words with the| 000012d0 20 53 70 65 61 6b 20 61 6e 64 20 52 65 73 65 74 | Speak and Reset| 000012e0 20 63 6f 6d 6d 61 6e 64 73 2e 0d 20 20 20 20 20 | commands.. | 000012f0 20 20 20 20 20 50 72 6f 67 72 61 6d 73 3a 20 41 | Programs: A| 00001300 44 44 52 45 53 53 20 43 48 4f 50 55 50 20 54 45 |DDRESS CHOPUP TE| 00001310 4c 53 4f 46 54 0d 0d 0d 54 68 65 20 6c 61 74 65 |LSOFT...The late| 00001320 72 20 6d 6f 64 75 6c 65 73 20 64 65 76 65 6c 6f |r modules develo| 00001330 70 20 74 68 65 20 69 64 65 61 73 20 61 6e 64 20 |p the ideas and | 00001340 74 65 63 68 6e 69 71 75 65 73 20 64 65 73 63 72 |techniques descr| 00001350 69 62 65 64 20 69 6e 20 74 68 65 0d 65 61 72 6c |ibed in the.earl| 00001360 69 65 72 20 6d 6f 64 75 6c 65 73 20 61 6e 64 20 |ier modules and | 00001370 66 6f 72 20 74 68 69 73 20 72 65 61 73 6f 6e 20 |for this reason | 00001380 74 68 65 20 73 65 72 69 65 73 20 6e 65 65 64 73 |the series needs| 00001390 20 74 6f 20 62 65 20 77 6f 72 6b 65 64 20 74 68 | to be worked th| 000013a0 72 6f 75 67 68 0d 66 72 6f 6d 20 62 65 67 69 6e |rough.from begin| 000013b0 6e 69 6e 67 20 74 6f 20 65 6e 64 20 72 61 74 68 |ning to end rath| 000013c0 65 72 20 74 68 61 6e 20 75 73 65 64 20 61 73 20 |er than used as | 000013d0 61 20 72 65 66 65 72 65 6e 63 65 20 67 75 69 64 |a reference guid| 000013e0 65 20 74 6f 20 74 68 65 20 73 70 65 65 63 68 0d |e to the speech.| 000013f0 73 79 73 74 65 6d 2e 20 59 6f 75 20 77 69 6c 6c |system. You will| 00001400 20 6e 65 65 64 20 74 6f 20 72 65 66 65 72 20 74 | need to refer t| 00001410 6f 20 74 68 65 20 41 63 6f 72 6e 20 53 70 65 65 |o the Acorn Spee| 00001420 63 68 20 53 79 73 74 65 6d 20 55 73 65 72 20 47 |ch System User G| 00001430 75 69 64 65 0d 74 68 72 6f 75 67 68 6f 75 74 20 |uide.throughout | 00001440 74 68 65 20 73 65 72 69 65 73 2e 0d 0d 57 68 65 |the series...Whe| 00001450 6e 20 79 6f 75 20 68 61 76 65 20 63 6f 6d 70 6c |n you have compl| 00001460 65 74 65 64 20 74 68 65 20 73 70 65 65 63 68 20 |eted the speech | 00001470 6d 6f 64 75 6c 65 73 20 79 6f 75 20 73 68 6f 75 |modules you shou| 00001480 6c 64 20 62 65 20 61 62 6c 65 20 74 6f 20 6d 6f |ld be able to mo| 00001490 64 69 66 79 0d 74 68 65 20 64 65 6d 6f 6e 73 74 |dify.the demonst| 000014a0 72 61 74 69 6f 6e 20 70 72 6f 67 72 61 6d 73 20 |ration programs | 000014b0 74 6f 20 65 6e 61 62 6c 65 20 79 6f 75 72 20 73 |to enable your s| 000014c0 70 65 65 63 68 20 73 79 73 74 65 6d 20 74 6f 20 |peech system to | 000014d0 73 61 79 20 61 6e 79 74 68 69 6e 67 0d 79 6f 75 |say anything.you| 000014e0 20 77 61 6e 74 20 69 74 20 74 6f 20 73 61 79 2e | want it to say.| 000014f0 20 59 6f 75 20 77 69 6c 6c 20 6e 6f 74 20 6e 65 | You will not ne| 00001500 65 64 20 74 6f 20 75 73 65 20 61 6e 79 20 73 6f |ed to use any so| 00001510 66 74 77 61 72 65 20 6f 74 68 65 72 20 74 68 61 |ftware other tha| 00001520 6e 20 74 68 61 74 0d 70 72 6f 76 69 64 65 64 20 |n that.provided | 00001530 77 69 74 68 20 74 68 65 20 6d 6f 64 75 6c 65 73 |with the modules| 00001540 20 61 6e 64 20 79 6f 75 20 73 68 6f 75 6c 64 20 | and you should | 00001550 66 69 6e 64 20 74 68 61 74 20 67 6f 6f 64 20 71 |find that good q| 00001560 75 61 6c 69 74 79 20 73 70 65 65 63 68 20 63 61 |uality speech ca| 00001570 6e 0d 62 65 20 65 61 73 69 6c 79 20 70 72 6f 64 |n.be easily prod| 00001580 75 63 65 64 20 77 69 74 68 6f 75 74 20 61 6e 79 |uced without any| 00001590 20 61 64 64 69 74 69 6f 6e 61 6c 20 68 61 72 64 | additional hard| 000015a0 77 61 72 65 20 6f 72 20 66 69 72 6d 77 61 72 65 |ware or firmware| 000015b0 2e 0d 0d 54 68 65 20 65 78 61 6d 70 6c 65 20 70 |...The example p| 000015c0 72 6f 67 72 61 6d 73 20 68 61 76 65 20 62 65 65 |rograms have bee| 000015d0 6e 20 77 72 69 74 74 65 6e 20 69 6e 20 42 41 53 |n written in BAS| 000015e0 49 43 20 32 20 41 73 73 65 6d 62 6c 79 20 6c 61 |IC 2 Assembly la| 000015f0 6e 67 75 61 67 65 2e 20 54 68 65 0d 42 41 53 49 |nguage. The.BASI| 00001600 43 20 32 20 6f 72 20 42 41 53 49 43 20 34 20 41 |C 2 or BASIC 4 A| 00001610 73 73 65 6d 62 6c 65 72 20 69 73 20 65 73 73 65 |ssembler is esse| 00001620 6e 74 69 61 6c 20 66 6f 72 20 73 65 72 69 6f 75 |ntial for seriou| 00001630 73 20 6d 61 63 68 69 6e 65 20 63 6f 64 65 20 77 |s machine code w| 00001640 6f 72 6b 2e 0d 49 66 20 79 6f 75 20 68 61 76 65 |ork..If you have| 00001650 20 74 6f 20 75 73 65 20 42 41 53 49 43 20 31 20 | to use BASIC 1 | 00001660 74 68 65 6e 20 74 68 65 20 65 71 75 61 74 65 20 |then the equate | 00001670 70 73 65 75 64 6f 2d 6f 70 65 72 61 74 69 6f 6e |pseudo-operation| 00001680 20 63 6f 6d 6d 61 6e 64 73 20 61 72 65 0d 6e 6f | commands are.no| 00001690 74 20 61 76 61 69 6c 61 62 6c 65 20 61 6e 64 20 |t available and | 000016a0 68 61 76 65 20 74 6f 20 62 65 20 73 69 6d 75 6c |have to be simul| 000016b0 61 74 65 64 20 75 73 69 6e 67 20 74 68 65 20 4f |ated using the O| 000016c0 50 54 20 46 4e 20 63 6f 6d 6d 61 6e 64 2e 0d 0d |PT FN command...| 000016d0 54 68 69 73 20 63 61 6e 20 62 65 20 64 6f 6e 65 |This can be done| 000016e0 20 62 79 20 6c 6f 61 64 69 6e 67 20 61 20 70 72 | by loading a pr| 000016f0 6f 67 72 61 6d 20 69 6e 74 6f 20 6d 65 6d 6f 72 |ogram into memor| 00001700 79 20 61 6e 64 20 72 65 70 6c 61 63 69 6e 67 20 |y and replacing | 00001710 65 76 65 72 79 0d 65 71 75 61 74 65 20 70 73 65 |every.equate pse| 00001720 75 64 6f 2d 6f 70 65 72 61 74 69 6f 6e 20 63 6f |udo-operation co| 00001730 6d 6d 61 6e 64 20 77 69 74 68 20 69 74 73 20 65 |mmand with its e| 00001740 71 75 69 76 61 6c 65 6e 74 20 4f 50 54 20 46 4e |quivalent OPT FN| 00001750 20 73 69 6d 75 6c 61 74 69 6f 6e 2e 0d 54 68 69 | simulation..Thi| 00001760 73 20 72 65 70 6c 61 63 65 6d 65 6e 74 20 69 73 |s replacement is| 00001770 20 64 65 6d 6f 6e 73 74 72 61 74 65 64 20 69 6e | demonstrated in| 00001780 20 74 68 65 20 70 72 6f 67 72 61 6d 20 45 51 55 | the program EQU| 00001790 44 45 4d 4f 2e 0d 0d 0d 20 20 20 31 30 20 52 45 |DEMO.... 10 RE| 000017a0 4d 3a 20 45 51 55 44 45 4d 4f 0d 20 20 20 32 30 |M: EQUDEMO. 20| 000017b0 20 44 49 4d 20 6d 63 6f 64 65 20 26 31 30 30 0d | DIM mcode &100.| 000017c0 20 20 20 33 30 20 46 4f 52 20 70 61 73 73 20 3d | 30 FOR pass =| 000017d0 20 30 20 54 4f 20 33 20 53 54 45 50 20 33 0d 20 | 0 TO 3 STEP 3. | 000017e0 20 20 34 30 20 50 25 20 3d 20 6d 63 6f 64 65 0d | 40 P% = mcode.| 000017f0 20 20 20 35 30 20 5b 20 20 20 20 20 20 20 4f 50 | 50 [ OP| 00001800 54 20 70 61 73 73 0d 20 20 20 36 30 20 20 20 20 |T pass. 60 | 00001810 20 20 20 20 20 4f 50 54 20 46 4e 65 71 75 62 28 | OPT FNequb(| 00001820 26 31 32 29 0d 20 20 20 37 30 20 20 20 20 20 20 |&12). 70 | 00001830 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001840 20 5c 20 4f 50 54 20 46 4e 65 71 75 62 28 26 31 | \ OPT FNequb(&1| 00001850 32 29 20 69 73 20 74 68 65 0d 20 20 20 20 20 20 |2) is the. | 00001860 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001870 20 20 20 20 20 20 5c 20 42 41 53 49 43 20 31 20 | \ BASIC 1 | 00001880 65 71 75 69 76 61 6c 65 6e 74 20 6f 66 20 45 51 |equivalent of EQ| 00001890 55 42 20 26 31 32 0d 20 20 20 38 30 20 20 20 20 |UB &12. 80 | 000018a0 20 20 20 20 20 4f 50 54 20 46 4e 65 71 75 77 28 | OPT FNequw(| 000018b0 26 31 32 33 34 29 0d 20 20 20 39 30 20 20 20 20 |&1234). 90 | 000018c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000018d0 20 20 20 5c 20 4f 50 54 20 46 4e 65 71 75 77 28 | \ OPT FNequw(| 000018e0 26 31 32 33 34 29 20 69 73 20 74 68 65 0d 20 20 |&1234) is the. | 000018f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001900 20 20 20 20 20 20 20 20 20 20 5c 20 42 41 53 49 | \ BASI| 00001910 43 20 31 20 65 71 75 69 76 61 6c 65 6e 74 20 6f |C 1 equivalent o| 00001920 66 20 45 51 55 57 20 26 31 32 33 34 0d 20 20 31 |f EQUW &1234. 1| 00001930 30 30 20 20 20 20 20 20 20 20 20 4f 50 54 20 46 |00 OPT F| 00001940 4e 65 71 75 64 28 26 31 32 33 34 35 36 37 38 29 |Nequd(&12345678)| 00001950 0d 20 20 31 31 30 20 20 20 20 20 20 20 20 20 20 |. 110 | 00001960 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 20 4f | \ O| 00001970 50 54 20 46 4e 65 71 75 64 28 26 31 32 33 34 35 |PT FNequd(&12345| 00001980 36 37 38 29 20 69 73 20 74 68 65 0d 20 20 20 20 |678) is the. | 00001990 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000019a0 20 20 20 20 20 20 20 20 5c 20 42 41 53 49 43 20 | \ BASIC | 000019b0 31 20 65 71 75 69 76 61 6c 65 6e 74 20 6f 66 20 |1 equivalent of | 000019c0 45 51 55 44 20 26 31 32 33 34 35 36 37 38 0d 20 |EQUD &12345678. | 000019d0 20 31 32 30 20 20 20 20 20 20 20 20 20 4f 50 54 | 120 OPT| 000019e0 20 46 4e 65 71 75 73 28 22 68 65 6c 6c 6f 22 29 | FNequs("hello")| 000019f0 0d 20 20 31 33 30 20 20 20 20 20 20 20 20 20 20 |. 130 | 00001a00 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 20 4f | \ O| 00001a10 50 54 20 46 4e 65 71 75 73 28 22 68 65 6c 6c 6f |PT FNequs("hello| 00001a20 22 29 20 69 73 20 74 68 65 0d 20 20 20 20 20 20 |") is the. | 00001a30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001a40 20 20 20 20 20 20 5c 20 42 41 53 49 43 20 31 20 | \ BASIC 1 | 00001a50 65 71 75 69 76 61 6c 65 6e 74 20 6f 66 20 45 51 |equivalent of EQ| 00001a60 55 53 20 22 68 65 6c 6c 6f 22 0d 20 20 31 34 30 |US "hello". 140| 00001a70 20 5d 0d 20 20 31 35 30 20 4e 45 58 54 0d 20 20 | ]. 150 NEXT. | 00001a80 31 36 30 20 45 4e 44 0d 20 20 31 37 30 20 44 45 |160 END. 170 DE| 00001a90 46 46 4e 65 71 75 62 28 62 79 74 65 29 0d 20 20 |FFNequb(byte). | 00001aa0 31 38 30 20 3f 50 25 3d 62 79 74 65 0d 20 20 31 |180 ?P%=byte. 1| 00001ab0 39 30 20 50 25 3d 50 25 2b 31 0d 20 20 32 30 30 |90 P%=P%+1. 200| 00001ac0 20 3d 70 61 73 73 0d 20 20 32 31 30 20 44 45 46 | =pass. 210 DEF| 00001ad0 46 4e 65 71 75 77 28 77 6f 72 64 29 0d 20 20 32 |FNequw(word). 2| 00001ae0 32 30 20 3f 50 25 3d 77 6f 72 64 20 4d 4f 44 20 |20 ?P%=word MOD | 00001af0 32 35 36 0d 20 20 32 33 30 20 50 25 3f 31 3d 77 |256. 230 P%?1=w| 00001b00 6f 72 64 20 44 49 56 20 32 35 36 0d 20 20 32 34 |ord DIV 256. 24| 00001b10 30 20 50 25 3d 50 25 2b 32 0d 20 20 32 35 30 20 |0 P%=P%+2. 250 | 00001b20 3d 70 61 73 73 0d 20 20 32 36 30 20 44 45 46 46 |=pass. 260 DEFF| 00001b30 4e 65 71 75 64 28 64 6f 75 62 6c 65 29 0d 20 20 |Nequd(double). | 00001b40 32 37 30 20 21 50 25 3d 64 6f 75 62 6c 65 0d 20 |270 !P%=double. | 00001b50 20 32 38 30 20 50 25 3d 50 25 2b 34 0d 20 20 32 | 280 P%=P%+4. 2| 00001b60 39 30 20 3d 70 61 73 73 0d 20 20 33 30 30 20 44 |90 =pass. 300 D| 00001b70 45 46 46 4e 65 71 75 73 28 73 74 72 69 6e 67 24 |EFFNequs(string$| 00001b80 29 0d 20 20 33 31 30 20 24 50 25 3d 73 74 72 69 |). 310 $P%=stri| 00001b90 6e 67 24 0d 20 20 33 32 30 20 50 25 3d 50 25 2b |ng$. 320 P%=P%+| 00001ba0 4c 45 4e 28 73 74 72 69 6e 67 24 29 0d 20 20 33 |LEN(string$). 3| 00001bb0 33 30 20 3d 70 61 73 73 0d 0d 0d 41 66 74 65 72 |30 =pass...After| 00001bc0 20 6d 61 6b 69 6e 67 20 61 6c 74 65 72 61 74 69 | making alterati| 00001bd0 6f 6e 73 20 73 69 6d 69 6c 61 72 20 74 6f 20 74 |ons similar to t| 00001be0 68 6f 73 65 20 69 6c 6c 75 73 74 72 61 74 65 64 |hose illustrated| 00001bf0 20 69 6e 20 6c 69 6e 65 73 20 36 30 20 74 6f 20 | in lines 60 to | 00001c00 31 33 30 0d 6f 66 20 74 68 65 20 70 72 6f 67 72 |130.of the progr| 00001c10 61 6d 20 45 51 55 44 45 4d 4f 2c 20 79 6f 75 20 |am EQUDEMO, you | 00001c20 63 61 6e 20 2a 45 58 45 43 20 74 68 65 20 66 69 |can *EXEC the fi| 00001c30 6c 65 20 45 51 55 41 54 45 20 77 68 69 63 68 20 |le EQUATE which | 00001c40 77 69 6c 6c 20 61 64 64 20 74 68 65 0d 64 65 66 |will add the.def| 00001c50 69 6e 69 74 69 6f 6e 73 20 6f 66 20 74 68 65 20 |initions of the | 00001c60 73 69 6d 75 6c 61 74 65 64 20 65 71 75 61 74 65 |simulated equate| 00001c70 20 70 73 65 75 64 6f 2d 6f 70 65 72 61 74 69 6f | pseudo-operatio| 00001c80 6e 73 20 6f 6e 74 6f 20 74 68 65 20 65 6e 64 20 |ns onto the end | 00001c90 6f 66 20 74 68 65 0d 70 72 6f 67 72 61 6d 20 69 |of the.program i| 00001ca0 6e 20 6d 65 6d 6f 72 79 2e 20 54 68 69 73 20 77 |n memory. This w| 00001cb0 69 6c 6c 20 73 61 76 65 20 79 6f 75 20 74 68 65 |ill save you the| 00001cc0 20 65 66 66 6f 72 74 20 6f 66 20 74 79 70 69 6e | effort of typin| 00001cd0 67 20 69 6e 20 74 68 65 20 65 71 75 61 74 65 0d |g in the equate.| 00001ce0 66 75 6e 63 74 69 6f 6e 73 20 66 6f 72 20 65 76 |functions for ev| 00001cf0 65 72 79 20 70 72 6f 67 72 61 6d 2e 0d 0d 0d 20 |ery program.... | 00001d00 20 20 20 20 20 52 45 4d 3a 20 45 51 55 41 54 45 | REM: EQUATE| 00001d10 0d 33 30 30 30 30 20 45 4e 44 0d 33 30 30 31 30 |.30000 END.30010| 00001d20 20 44 45 46 46 4e 65 71 75 62 28 62 79 74 65 29 | DEFFNequb(byte)| 00001d30 0d 33 30 30 32 30 20 3f 50 25 3d 62 79 74 65 0d |.30020 ?P%=byte.| 00001d40 33 30 30 33 30 20 50 25 3d 50 25 2b 31 0d 33 30 |30030 P%=P%+1.30| 00001d50 30 34 30 20 3d 70 61 73 73 0d 33 30 30 35 30 20 |040 =pass.30050 | 00001d60 44 45 46 46 4e 65 71 75 77 28 77 6f 72 64 29 0d |DEFFNequw(word).| 00001d70 33 30 30 36 30 20 3f 50 25 3d 77 6f 72 64 20 4d |30060 ?P%=word M| 00001d80 4f 44 20 32 35 36 0d 33 30 30 37 30 20 50 25 3f |OD 256.30070 P%?| 00001d90 31 3d 77 6f 72 64 20 44 49 56 20 32 35 36 0d 33 |1=word DIV 256.3| 00001da0 30 30 38 30 20 50 25 3d 50 25 2b 32 0d 33 30 30 |0080 P%=P%+2.300| 00001db0 39 30 20 3d 70 61 73 73 0d 33 30 31 30 30 20 44 |90 =pass.30100 D| 00001dc0 45 46 46 4e 65 71 75 64 28 64 6f 75 62 6c 65 29 |EFFNequd(double)| 00001dd0 0d 33 30 31 31 30 20 21 50 25 3d 64 6f 75 62 6c |.30110 !P%=doubl| 00001de0 65 0d 33 30 31 32 30 20 50 25 3d 50 25 2b 34 0d |e.30120 P%=P%+4.| 00001df0 33 30 31 33 30 20 3d 70 61 73 73 0d 33 30 31 34 |30130 =pass.3014| 00001e00 30 20 44 45 46 46 4e 65 71 75 73 28 73 74 72 69 |0 DEFFNequs(stri| 00001e10 6e 67 24 29 0d 33 30 31 35 30 20 24 50 25 3d 73 |ng$).30150 $P%=s| 00001e20 74 72 69 6e 67 24 0d 33 30 31 36 30 20 50 25 3d |tring$.30160 P%=| 00001e30 50 25 2b 4c 45 4e 28 73 74 72 69 6e 67 24 29 0d |P%+LEN(string$).| 00001e40 33 30 31 37 30 20 3d 70 61 73 73 0d 0d 0d 4d 61 |30170 =pass...Ma| 00001e50 6b 69 6e 67 20 74 68 65 73 65 20 6d 6f 64 69 66 |king these modif| 00001e60 69 63 61 74 69 6f 6e 73 20 77 69 6c 6c 20 61 6c |ications will al| 00001e70 6c 6f 77 20 61 6c 6c 20 74 68 65 20 70 72 6f 67 |low all the prog| 00001e80 72 61 6d 73 20 74 6f 20 61 73 73 65 6d 62 6c 65 |rams to assemble| 00001e90 0d 70 72 6f 70 65 72 6c 79 20 75 73 69 6e 67 20 |.properly using | 00001ea0 42 41 53 49 43 20 31 2c 20 62 75 74 20 49 20 66 |BASIC 1, but I f| 00001eb0 65 65 6c 20 73 75 72 65 20 74 68 61 74 20 72 65 |eel sure that re| 00001ec0 70 6c 61 63 69 6e 67 20 74 68 65 20 42 41 53 49 |placing the BASI| 00001ed0 43 20 31 20 52 4f 4d 0d 77 69 74 68 20 65 69 74 |C 1 ROM.with eit| 00001ee0 68 65 72 20 42 41 53 49 43 20 32 20 28 6f 72 20 |her BASIC 2 (or | 00001ef0 42 41 53 49 43 20 34 20 69 66 20 79 6f 75 20 61 |BASIC 4 if you a| 00001f00 6c 73 6f 20 69 6e 73 74 61 6c 6c 20 61 6e 20 52 |lso install an R| 00001f10 36 35 43 30 32 20 43 50 55 29 20 69 73 20 66 61 |65C02 CPU) is fa| 00001f20 72 0d 62 65 74 74 65 72 20 74 68 61 6e 20 70 61 |r.better than pa| 00001f30 74 63 68 69 6e 67 20 74 68 65 20 42 41 53 49 43 |tching the BASIC| 00001f40 20 31 20 61 73 73 65 6d 62 6c 65 72 20 69 6e 20 | 1 assembler in | 00001f50 74 68 69 73 20 77 61 79 2e 0d 0d 2d 2d 2d 2d 2d |this way...-----| 00001f60 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00001fa0 2d 2d 2d 2d 2d 0d 0d 20 20 20 20 54 65 78 61 73 |-----.. Texas| 00001fb0 20 49 6e 73 74 72 75 6d 65 6e 74 73 20 4c 74 64 | Instruments Ltd| 00001fc0 2e 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |. | 00001fd0 20 20 20 43 6f 6d 70 75 74 65 72 20 43 6f 6e 63 | Computer Conc| 00001fe0 65 70 74 73 20 4c 74 64 2e 0d 20 20 20 20 4d 61 |epts Ltd.. Ma| 00001ff0 6e 74 6f 6e 20 4c 61 6e 65 20 20 20 20 20 20 20 |nton Lane | 00002000 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002010 20 20 20 20 20 20 47 61 64 64 65 73 64 65 6e 20 | Gaddesden | 00002020 50 6c 61 63 65 0d 20 20 20 20 42 65 64 66 6f 72 |Place. Bedfor| 00002030 64 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |d | 00002040 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002050 20 20 48 65 6d 65 6c 20 48 65 6d 70 73 74 65 61 | Hemel Hempstea| 00002060 64 0d 20 20 20 20 4d 4b 34 31 20 37 50 41 20 20 |d. MK41 7PA | 00002070 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002080 20 20 20 20 20 20 20 20 20 20 20 20 20 20 48 65 | He| 00002090 72 74 73 2e 20 48 50 32 20 36 45 58 0d |rts. HP2 6EX.| 0000209d