Home » CEEFAX disks » telesoftware10.adl » 04-11-88/T\SPK05
04-11-88/T\SPK05
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 » telesoftware10.adl |
Filename: | 04-11-88/T\SPK05 |
Read OK: | ✔ |
File size: | 2F6C bytes |
Load address: | 0000 |
Exec address: | FFFFFFFF |
File contents
The Acorn Speech System - by - Gordon Horsington ---------------------------------------------------- Module 5. Using the Speak External command to extend the vocabulary. -------------------------------------------------------------------- It is possible to extend the vocabulary that can be produced with word PHROM A by using "illegal" speech data addresses. Because the speech data is stored in frames which last one fourtieth of a second you can search through the word PHROM to find the boundary of one of these frames and use the address of the boundary with a Speak command to speak the "new" word. This method can only extend the vocabulary with just a few meaningful words. You can produce words like CLOCK, MOUNT and LEGAL but, because the Speak command continues until a stop code nybble is found, you cannot use this method to produce an unlimited vocabulary. The examples in figure 1 are some of the words I have found in word PHROM A. The SOUND command with the first parameter equal to &FFBF is the BASIC equivalent of the speech processor's Speak command. The second parameter is the absolute address in word PHROM A (see pages 10 and 11 in the Speech System User Guide if you do not understand this use of the SOUND command). Word Address SOUND Command ---- ------- ------------- ADD &10D5 SOUND &FFBF,&10D5,0,0 AIM &32B4 SOUND &FFBF,&32B4,0,0 APE &19F4 SOUND &FFBF,&19F4,0,0 CLOCK &2849 SOUND &FFBF,&2849,0,0 CORN &0BE5 SOUND &FFBF,&0BE5,0,0 GAIN &0CCC SOUND &FFBF,&0CCC,0,0 LEGAL &1E63 SOUND &FFBF,&1E63,0,0 MOUNT &0D68 SOUND &FFBF,&0D68,0,0 PUT &1F1B SOUND &FFBF,&1F1B,0,0 ROM &1C1B SOUND &FFBF,&1C1B,0,0 SET &12E6 SOUND &FFBF,&12E6,0,0 TURN &3077 SOUND &FFBF,&3077,0,0 Figure 1. New words in word PHROM A ----------------------------------- A better way of extending the vocabulary is to isolate smaller parts of the available words rather than to simply start speaking a word at a new address and then carry on until a stop code is executed. Because the word frames are only one fourtieth of a second long it is possible to use this method to isolate all the phonemes used in a word PHROM. When all the available phonemes have been identified the data can be used to produce an almost unlimited vocabulary. In order to speak just a small part of a word it is necessary to identify the relevant part of the PHROM speech data, copy it from the word PHROM into RAM, and then use the Speak External command to speak only a part of the original word. To illustrate this idea I will demonstrate how the new word MOUTH can be constructed from the data stored in word PHROM A for the word AMOUNT and the word-part -TH. The same technique can be used to construct most of the phonemes used in the English language from the speech data in the 165 words in word PHROM A. The program ADDRESS can be used to find the start and end addresses of a part of the word AMOUNT which sounds like the mou- of the word mouth. The start address of AMOUNT in word PHROM A is at &0D46 (see appendix A of the Speech System User Guide). The address of the last data byte is &0DBB. Load and run the program ADDRESS and specify these start and end addresses. The program can be used to step though every byte of the data and attempt to speak it. Most of the addresses will produce garbled nonsence but eventually the word "mount" will be spoken. Press any key other than the spacebar and the program will print the start address of this new word. 10 REM: ADDRESS 20 REPEAT 30 INPUT"Start address &"start$ 40 address=EVAL("&"+start$) 50 UNTIL address > &250 AND address < &3FFF 60 REPEAT 70 INPUT"End address &"end$ 80 end=EVAL("&"+end$) 90 UNTIL end >= address AND end < &3FFF 100 PRINT'"Press spacebar to speak and" 110 PRINT"any other key to print address"' 120 REPEAT UNTIL GET = 32 130 REPEAT 140 SOUND &FFBF,address,0,0 150 REPEAT 160 spacebar=GET 170 IF spacebar <> 32 THEN SOUND &FFBF,address,0,0 : PRINT"address = &";~address 180 UNTIL spacebar = 32 190 address=address+1 200 UNTIL address > end Continue testing every byte of the original word and print the address every time a meaningful word-part is spoken. You should find that the last address at which mount is spoken is &D68. The address at which -nt is spoken is &D9B. The new word-part, MOU-, can be created with the data from between these two addresses, that is from &D68 to &D9A. The word-part -TH is a complete word in word PHROM A. The data for -TH can be found from &03DC to &3F1 (see appendix A of the Speech System User Guide). These data can be formatted for the Speak External command by using the program CREATE. 10 REM: CREATE 20 ON ERROR GOTO 850 30 VDU15 40 DIM mcode &100 50 DIM byte(3) 60 temp=&70 70 osbyte=&FFF4 80 FORpass=0TO2STEP2 90 P%=mcode 100 [ OPT pass 110 .read 120 LDA #&9F 130 LDY #&10 140 JSR osbyte 150 LDA #&9E 160 JSR osbyte 170 TYA 180 STA temp 190 ROL temp 200 ROR A 210 ROL temp 220 ROR A 230 ROL temp 240 ROR A 250 ROL temp 260 ROR A 270 ROL temp 280 ROR A 290 ROL temp 300 ROR A 310 ROL temp 320 ROR A 330 ROL temp 340 ROR A 350 RTS 360 ] 370 NEXT 380 REPEAT 390 INPUT'"Start address &"start$ 400 start=EVAL("&"+start$) 410 UNTIL start > &250 AND start < &3FFF 420 REPEAT 430 INPUT"End address &"end$ 440 end=EVAL("&"+end$) 450 UNTIL end >= start AND end < &3FFF 460 INPUT"First line number = "line 470 INPUT"Line nummber inc. = "inc 480 INPUT"Label = ."label$ 490 INPUT"Filename = "filename$ 500 INPUT"Byte count? (Y/N) "yes$ 510 yes$=LEFT$(yes$,1) 520 IF yes$="Y" THEN yes=TRUE ELSE yes=FALSE 530 A%=&9F 540 X%=0 550 Y%=&40+(start AND &F) 560 CALL osbyte 570 Y%=&40+(start AND &F0)DIV &10 580 CALL osbyte 590 Y%=&40+(start AND &F00)DIV &100 600 CALL osbyte 610 Y%=&4C+(start AND &F000)DIV &1000 620 CALL osbyte 630 Y%=&43 640 CALL osbyte 650 OSCLI("SPOOL "+filename$) 660 ON ERROR OSCLI("SPOOL") : REPORT : END 670 PRINT"AUTO ";line;",";inc 680 PRINT".";label$ 690 PRINT"\ Start address = &";start$;" (&0)" 700 PRINT"\ End address = &";end$;" (&";~end-start;")" 710 FOR block=start TO end STEP 4 720 count=block-start 730 FOR memory=0 TO 3 740 byte(memory)=USR(read)AND &FF 750 NEXT 760 PRINT;"EQUD &"; 770 FOR memory=3TO0STEP-1 780 A%=byte(memory) 790 IF A% < &10 VDU48 800 PRINT;~A%; 810 NEXT 820 IF yes PRINT;" \ &";~count+3;" - &";~count ELSE PRINT 830 NEXT 840 *SPOOL 850 INPUT'"Another (Y/N) "yes$ 860 IF LEFT$(yes$,1)="Y" THEN RUN 870 END The program CREATE reads and reverses the data from word PHROM A and produces a file of Assembly language commands which can be *EXECed into a source code program to produce the required data. Load and run the program CREATE to create a file of the data for the new word-part MOU-. You should specify the various parameters as shown in figure 2. The so-called byte count indexes the data bytes to make it easier to analyse the data. +---------------------------------+ | | | Start address &D68 | | End address &D9A | | First line number = 440 | | Line nummber inc. = 10 | | Label = .mou | | Filename = MOU | | Byte count? (Y/N) Y | | | | AUTO 440,10 | | .mou | | \ Start address = &D68 (&0) | | \ End address = &D9A (&32) | | EQUD &5A464D25 \ &3 - &0 | | EQUD &289DD721 \ &7 - &4 | | EQUD &59757587 \ &B - &8 | | EQUD &AEE28278 \ &F - &C | | EQUD &09E1B542 \ &13 - &10 | | EQUD &B372BBAA \ &17 - &14 | | EQUD &EEAA2786 \ &1B - &18 | | EQUD &9D6ACD3A \ &1F - &1C | | EQUD &B72EB4BC \ &23 - &20 | | EQUD &1ACA72AC \ &27 - &24 | | EQUD &CA74D23A \ &2B - &28 | | EQUD &0F2E4A6A \ &2F - &2C | | EQUD &2DAD59D1 \ &33 - &30 | | | | Another (Y/N) N | | | +---------------------------------+ Figure 2. The output from the program CREATE -------------------------------------------- The program CREATE allows you to specify the line numbers and a label to be used to mark the beginning of the data. This information is spooled into the named file. The data for MOU- and -TH can be created in this way and *EXECed into the program MOUTH. This program simply takes the speech data for the two word-parts and sends then to the speech processor using the Speak External command. You should note that it is essential to use the routine labeled 'status' (in lines 370 to 430) after speaking each word-part. This routine waits until the Talk Status bit is clear before going on to the next word-part. 10 REM: MOUTH 20 DIM mcode &200 30 count=&70 40 yreg=&71 50 address=&72 60 osbyte=&FFF4 70 FORpass=0TO2STEP2 80 P%=mcode 90 [ OPT pass 100 LDA #&33 \ offset to last byte +1 110 LDX #mou MOD 256 120 LDY #mou DIV 256 130 JSR spext 140 LDA #&16 \ offset to last byte +1 150 LDX #th MOD 256 160 LDY #th DIV 256 170 JSR spext 180 RTS 190 .spext 200 STA count \ offset to last byte + 1 210 STX address \ LSB of data address 220 STY address+1 \ MSB of data address 230 LDA #&9F \ write to speech processor 240 LDY #&60 \ Speak External command 250 JSR osbyte 260 LDY #0 \ start offset at zero 270 STY yreg \ current value of offset 280 .exloop 290 LDA (address),Y \ load next data byte 300 TAY \ data byte into Y register 310 LDA #&9F \ write to speech processor 320 JSR osbyte \ put data byte in FIFO buffer 330 INC yreg \ increment offset 340 LDY yreg \ load Y with current offset 350 CPY count \ compare current with max. offset 360 BCC exloop \ branch if more data to be sent 370 .status 380 LDA #&9E \ read speech processor status register 390 JSR osbyte 400 TYA \ status register in Y transfered to A 410 ROL A \ bit 7 (talk status) into carry 420 BCS status \ carry set if still speaking 430 RTS 440 .mou 450 \ Start address = &D68 (&0) 460 \ End address = &D9A (&32) 470 EQUD &5A464D25 \ &3 - &0 480 EQUD &289DD721 \ &7 - &4 490 EQUD &59757587 \ &B - &8 500 EQUD &AEE28278 \ &F - &C 510 EQUD &09E1B542 \ &13 - &10 520 EQUD &B372BBAA \ &17 - &14 530 EQUD &EEAA2786 \ &1B - &18 540 EQUD &9D6ACD3A \ &1F - &1C 550 EQUD &B72EB4BC \ &23 - &20 560 EQUD &1ACA72AC \ &27 - &24 570 EQUD &CA74D23A \ &2B - &28 580 EQUD &0F2E4A6A \ &2F - &2C 590 EQUD &2DAD59D1 \ &33 - &30 600 .th 610 \ Start address = &3DC (&0) 620 \ End address = &3F1 (&15) 630 EQUD &94221808 \ &3 - &0 640 EQUD &DCE80202 \ &7 - &4 650 EQUD &B85D0085 \ &B - &8 660 EQUD &30872031 \ &F - &C 670 EQUD &FE990404 \ &13 - &10 680 EQUD &045A154D \ &17 - &14 690 ] 700 NEXT 710 CALL mcode
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 35 2e 20 55 73 69 6e 67 20 74 68 65 20 53 |e 5. Using the S| 00000080 70 65 61 6b 20 45 78 74 65 72 6e 61 6c 20 63 6f |peak External co| 00000090 6d 6d 61 6e 64 20 74 6f 20 65 78 74 65 6e 64 20 |mmand to extend | 000000a0 74 68 65 20 76 6f 63 61 62 75 6c 61 72 79 2e 0d |the vocabulary..| 000000b0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 000000f0 2d 2d 2d 2d 0d 0d 49 74 20 69 73 20 70 6f 73 73 |----..It is poss| 00000100 69 62 6c 65 20 74 6f 20 65 78 74 65 6e 64 20 74 |ible to extend t| 00000110 68 65 20 76 6f 63 61 62 75 6c 61 72 79 20 74 68 |he vocabulary th| 00000120 61 74 20 63 61 6e 20 62 65 20 70 72 6f 64 75 63 |at can be produc| 00000130 65 64 20 77 69 74 68 20 77 6f 72 64 0d 50 48 52 |ed with word.PHR| 00000140 4f 4d 20 41 20 62 79 20 75 73 69 6e 67 20 22 69 |OM A by using "i| 00000150 6c 6c 65 67 61 6c 22 20 73 70 65 65 63 68 20 64 |llegal" speech d| 00000160 61 74 61 20 61 64 64 72 65 73 73 65 73 2e 20 42 |ata addresses. B| 00000170 65 63 61 75 73 65 20 74 68 65 20 73 70 65 65 63 |ecause the speec| 00000180 68 20 64 61 74 61 0d 69 73 20 73 74 6f 72 65 64 |h data.is stored| 00000190 20 69 6e 20 66 72 61 6d 65 73 20 77 68 69 63 68 | in frames which| 000001a0 20 6c 61 73 74 20 6f 6e 65 20 66 6f 75 72 74 69 | last one fourti| 000001b0 65 74 68 20 6f 66 20 61 20 73 65 63 6f 6e 64 20 |eth of a second | 000001c0 79 6f 75 20 63 61 6e 20 73 65 61 72 63 68 0d 74 |you can search.t| 000001d0 68 72 6f 75 67 68 20 74 68 65 20 77 6f 72 64 20 |hrough the word | 000001e0 50 48 52 4f 4d 20 74 6f 20 66 69 6e 64 20 74 68 |PHROM to find th| 000001f0 65 20 62 6f 75 6e 64 61 72 79 20 6f 66 20 6f 6e |e boundary of on| 00000200 65 20 6f 66 20 74 68 65 73 65 20 66 72 61 6d 65 |e of these frame| 00000210 73 20 61 6e 64 20 75 73 65 0d 74 68 65 20 61 64 |s and use.the ad| 00000220 64 72 65 73 73 20 6f 66 20 74 68 65 20 62 6f 75 |dress of the bou| 00000230 6e 64 61 72 79 20 77 69 74 68 20 61 20 53 70 65 |ndary with a Spe| 00000240 61 6b 20 63 6f 6d 6d 61 6e 64 20 74 6f 20 73 70 |ak command to sp| 00000250 65 61 6b 20 74 68 65 20 22 6e 65 77 22 20 77 6f |eak the "new" wo| 00000260 72 64 2e 0d 54 68 69 73 20 6d 65 74 68 6f 64 20 |rd..This method | 00000270 63 61 6e 20 6f 6e 6c 79 20 65 78 74 65 6e 64 20 |can only extend | 00000280 74 68 65 20 76 6f 63 61 62 75 6c 61 72 79 20 77 |the vocabulary w| 00000290 69 74 68 20 6a 75 73 74 20 61 20 66 65 77 20 6d |ith just a few m| 000002a0 65 61 6e 69 6e 67 66 75 6c 0d 77 6f 72 64 73 2e |eaningful.words.| 000002b0 20 59 6f 75 20 63 61 6e 20 70 72 6f 64 75 63 65 | You can produce| 000002c0 20 77 6f 72 64 73 20 6c 69 6b 65 20 43 4c 4f 43 | words like CLOC| 000002d0 4b 2c 20 4d 4f 55 4e 54 20 61 6e 64 20 4c 45 47 |K, MOUNT and LEG| 000002e0 41 4c 20 62 75 74 2c 20 62 65 63 61 75 73 65 20 |AL but, because | 000002f0 74 68 65 0d 53 70 65 61 6b 20 63 6f 6d 6d 61 6e |the.Speak comman| 00000300 64 20 63 6f 6e 74 69 6e 75 65 73 20 75 6e 74 69 |d continues unti| 00000310 6c 20 61 20 73 74 6f 70 20 63 6f 64 65 20 6e 79 |l a stop code ny| 00000320 62 62 6c 65 20 69 73 20 66 6f 75 6e 64 2c 20 79 |bble is found, y| 00000330 6f 75 20 63 61 6e 6e 6f 74 20 75 73 65 0d 74 68 |ou cannot use.th| 00000340 69 73 20 6d 65 74 68 6f 64 20 74 6f 20 70 72 6f |is method to pro| 00000350 64 75 63 65 20 61 6e 20 75 6e 6c 69 6d 69 74 65 |duce an unlimite| 00000360 64 20 76 6f 63 61 62 75 6c 61 72 79 2e 0d 0d 54 |d vocabulary...T| 00000370 68 65 20 65 78 61 6d 70 6c 65 73 20 69 6e 20 66 |he examples in f| 00000380 69 67 75 72 65 20 31 20 61 72 65 20 73 6f 6d 65 |igure 1 are some| 00000390 20 6f 66 20 74 68 65 20 77 6f 72 64 73 20 49 20 | of the words I | 000003a0 68 61 76 65 20 66 6f 75 6e 64 20 69 6e 20 77 6f |have found in wo| 000003b0 72 64 20 50 48 52 4f 4d 0d 41 2e 20 54 68 65 20 |rd PHROM.A. The | 000003c0 53 4f 55 4e 44 20 63 6f 6d 6d 61 6e 64 20 77 69 |SOUND command wi| 000003d0 74 68 20 74 68 65 20 66 69 72 73 74 20 70 61 72 |th the first par| 000003e0 61 6d 65 74 65 72 20 65 71 75 61 6c 20 74 6f 20 |ameter equal to | 000003f0 26 46 46 42 46 20 69 73 20 74 68 65 20 42 41 53 |&FFBF is the BAS| 00000400 49 43 0d 65 71 75 69 76 61 6c 65 6e 74 20 6f 66 |IC.equivalent of| 00000410 20 74 68 65 20 73 70 65 65 63 68 20 70 72 6f 63 | the speech proc| 00000420 65 73 73 6f 72 27 73 20 53 70 65 61 6b 20 63 6f |essor's Speak co| 00000430 6d 6d 61 6e 64 2e 20 54 68 65 20 73 65 63 6f 6e |mmand. The secon| 00000440 64 20 70 61 72 61 6d 65 74 65 72 0d 69 73 20 74 |d parameter.is t| 00000450 68 65 20 61 62 73 6f 6c 75 74 65 20 61 64 64 72 |he absolute addr| 00000460 65 73 73 20 69 6e 20 77 6f 72 64 20 50 48 52 4f |ess in word PHRO| 00000470 4d 20 41 20 28 73 65 65 20 70 61 67 65 73 20 31 |M A (see pages 1| 00000480 30 20 61 6e 64 20 31 31 20 69 6e 20 74 68 65 20 |0 and 11 in the | 00000490 53 70 65 65 63 68 0d 53 79 73 74 65 6d 20 55 73 |Speech.System Us| 000004a0 65 72 20 47 75 69 64 65 20 69 66 20 79 6f 75 20 |er Guide if you | 000004b0 64 6f 20 6e 6f 74 20 75 6e 64 65 72 73 74 61 6e |do not understan| 000004c0 64 20 74 68 69 73 20 75 73 65 20 6f 66 20 74 68 |d this use of th| 000004d0 65 20 53 4f 55 4e 44 20 63 6f 6d 6d 61 6e 64 29 |e SOUND command)| 000004e0 2e 0d 0d 0d 57 6f 72 64 20 20 20 20 20 20 41 64 |....Word Ad| 000004f0 64 72 65 73 73 20 20 20 20 20 20 53 4f 55 4e 44 |dress SOUND| 00000500 20 43 6f 6d 6d 61 6e 64 0d 2d 2d 2d 2d 20 20 20 | Command.---- | 00000510 20 20 20 2d 2d 2d 2d 2d 2d 2d 20 20 20 20 20 20 | ------- | 00000520 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 41 44 |-------------.AD| 00000530 44 20 20 20 20 20 20 20 26 31 30 44 35 20 20 20 |D &10D5 | 00000540 20 20 20 20 20 53 4f 55 4e 44 20 26 46 46 42 46 | SOUND &FFBF| 00000550 2c 26 31 30 44 35 2c 30 2c 30 0d 41 49 4d 20 20 |,&10D5,0,0.AIM | 00000560 20 20 20 20 20 26 33 32 42 34 20 20 20 20 20 20 | &32B4 | 00000570 20 20 53 4f 55 4e 44 20 26 46 46 42 46 2c 26 33 | SOUND &FFBF,&3| 00000580 32 42 34 2c 30 2c 30 0d 41 50 45 20 20 20 20 20 |2B4,0,0.APE | 00000590 20 20 26 31 39 46 34 20 20 20 20 20 20 20 20 53 | &19F4 S| 000005a0 4f 55 4e 44 20 26 46 46 42 46 2c 26 31 39 46 34 |OUND &FFBF,&19F4| 000005b0 2c 30 2c 30 0d 43 4c 4f 43 4b 20 20 20 20 20 26 |,0,0.CLOCK &| 000005c0 32 38 34 39 20 20 20 20 20 20 20 20 53 4f 55 4e |2849 SOUN| 000005d0 44 20 26 46 46 42 46 2c 26 32 38 34 39 2c 30 2c |D &FFBF,&2849,0,| 000005e0 30 0d 43 4f 52 4e 20 20 20 20 20 20 26 30 42 45 |0.CORN &0BE| 000005f0 35 20 20 20 20 20 20 20 20 53 4f 55 4e 44 20 26 |5 SOUND &| 00000600 46 46 42 46 2c 26 30 42 45 35 2c 30 2c 30 0d 47 |FFBF,&0BE5,0,0.G| 00000610 41 49 4e 20 20 20 20 20 20 26 30 43 43 43 20 20 |AIN &0CCC | 00000620 20 20 20 20 20 20 53 4f 55 4e 44 20 26 46 46 42 | SOUND &FFB| 00000630 46 2c 26 30 43 43 43 2c 30 2c 30 0d 4c 45 47 41 |F,&0CCC,0,0.LEGA| 00000640 4c 20 20 20 20 20 26 31 45 36 33 20 20 20 20 20 |L &1E63 | 00000650 20 20 20 53 4f 55 4e 44 20 26 46 46 42 46 2c 26 | SOUND &FFBF,&| 00000660 31 45 36 33 2c 30 2c 30 0d 4d 4f 55 4e 54 20 20 |1E63,0,0.MOUNT | 00000670 20 20 20 26 30 44 36 38 20 20 20 20 20 20 20 20 | &0D68 | 00000680 53 4f 55 4e 44 20 26 46 46 42 46 2c 26 30 44 36 |SOUND &FFBF,&0D6| 00000690 38 2c 30 2c 30 0d 50 55 54 20 20 20 20 20 20 20 |8,0,0.PUT | 000006a0 26 31 46 31 42 20 20 20 20 20 20 20 20 53 4f 55 |&1F1B SOU| 000006b0 4e 44 20 26 46 46 42 46 2c 26 31 46 31 42 2c 30 |ND &FFBF,&1F1B,0| 000006c0 2c 30 0d 52 4f 4d 20 20 20 20 20 20 20 26 31 43 |,0.ROM &1C| 000006d0 31 42 20 20 20 20 20 20 20 20 53 4f 55 4e 44 20 |1B SOUND | 000006e0 26 46 46 42 46 2c 26 31 43 31 42 2c 30 2c 30 0d |&FFBF,&1C1B,0,0.| 000006f0 53 45 54 20 20 20 20 20 20 20 26 31 32 45 36 20 |SET &12E6 | 00000700 20 20 20 20 20 20 20 53 4f 55 4e 44 20 26 46 46 | SOUND &FF| 00000710 42 46 2c 26 31 32 45 36 2c 30 2c 30 0d 54 55 52 |BF,&12E6,0,0.TUR| 00000720 4e 20 20 20 20 20 20 26 33 30 37 37 20 20 20 20 |N &3077 | 00000730 20 20 20 20 53 4f 55 4e 44 20 26 46 46 42 46 2c | SOUND &FFBF,| 00000740 26 33 30 37 37 2c 30 2c 30 0d 0d 46 69 67 75 72 |&3077,0,0..Figur| 00000750 65 20 31 2e 20 4e 65 77 20 77 6f 72 64 73 20 69 |e 1. New words i| 00000760 6e 20 77 6f 72 64 20 50 48 52 4f 4d 20 41 0d 2d |n word PHROM A.-| 00000770 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00000790 2d 2d 0d 0d 0d 41 20 62 65 74 74 65 72 20 77 61 |--...A better wa| 000007a0 79 20 6f 66 20 65 78 74 65 6e 64 69 6e 67 20 74 |y of extending t| 000007b0 68 65 20 76 6f 63 61 62 75 6c 61 72 79 20 69 73 |he vocabulary is| 000007c0 20 74 6f 20 69 73 6f 6c 61 74 65 20 73 6d 61 6c | to isolate smal| 000007d0 6c 65 72 20 70 61 72 74 73 20 6f 66 0d 74 68 65 |ler parts of.the| 000007e0 20 61 76 61 69 6c 61 62 6c 65 20 77 6f 72 64 73 | available words| 000007f0 20 72 61 74 68 65 72 20 74 68 61 6e 20 74 6f 20 | rather than to | 00000800 73 69 6d 70 6c 79 20 73 74 61 72 74 20 73 70 65 |simply start spe| 00000810 61 6b 69 6e 67 20 61 20 77 6f 72 64 20 61 74 20 |aking a word at | 00000820 61 20 6e 65 77 0d 61 64 64 72 65 73 73 20 61 6e |a new.address an| 00000830 64 20 74 68 65 6e 20 63 61 72 72 79 20 6f 6e 20 |d then carry on | 00000840 75 6e 74 69 6c 20 61 20 73 74 6f 70 20 63 6f 64 |until a stop cod| 00000850 65 20 69 73 20 65 78 65 63 75 74 65 64 2e 20 42 |e is executed. B| 00000860 65 63 61 75 73 65 20 74 68 65 20 77 6f 72 64 0d |ecause the word.| 00000870 66 72 61 6d 65 73 20 61 72 65 20 6f 6e 6c 79 20 |frames are only | 00000880 6f 6e 65 20 66 6f 75 72 74 69 65 74 68 20 6f 66 |one fourtieth of| 00000890 20 61 20 73 65 63 6f 6e 64 20 6c 6f 6e 67 20 69 | a second long i| 000008a0 74 20 69 73 20 70 6f 73 73 69 62 6c 65 20 74 6f |t is possible to| 000008b0 20 75 73 65 20 74 68 69 73 0d 6d 65 74 68 6f 64 | use this.method| 000008c0 20 74 6f 20 69 73 6f 6c 61 74 65 20 61 6c 6c 20 | to isolate all | 000008d0 74 68 65 20 70 68 6f 6e 65 6d 65 73 20 75 73 65 |the phonemes use| 000008e0 64 20 69 6e 20 61 20 77 6f 72 64 20 50 48 52 4f |d in a word PHRO| 000008f0 4d 2e 20 57 68 65 6e 20 61 6c 6c 20 74 68 65 0d |M. When all the.| 00000900 61 76 61 69 6c 61 62 6c 65 20 70 68 6f 6e 65 6d |available phonem| 00000910 65 73 20 68 61 76 65 20 62 65 65 6e 20 69 64 65 |es have been ide| 00000920 6e 74 69 66 69 65 64 20 74 68 65 20 64 61 74 61 |ntified the data| 00000930 20 63 61 6e 20 62 65 20 75 73 65 64 20 74 6f 20 | can be used to | 00000940 70 72 6f 64 75 63 65 20 61 6e 0d 61 6c 6d 6f 73 |produce an.almos| 00000950 74 20 75 6e 6c 69 6d 69 74 65 64 20 76 6f 63 61 |t unlimited voca| 00000960 62 75 6c 61 72 79 2e 0d 0d 49 6e 20 6f 72 64 65 |bulary...In orde| 00000970 72 20 74 6f 20 73 70 65 61 6b 20 6a 75 73 74 20 |r to speak just | 00000980 61 20 73 6d 61 6c 6c 20 70 61 72 74 20 6f 66 20 |a small part of | 00000990 61 20 77 6f 72 64 20 69 74 20 69 73 20 6e 65 63 |a word it is nec| 000009a0 65 73 73 61 72 79 20 74 6f 20 69 64 65 6e 74 69 |essary to identi| 000009b0 66 79 0d 74 68 65 20 72 65 6c 65 76 61 6e 74 20 |fy.the relevant | 000009c0 70 61 72 74 20 6f 66 20 74 68 65 20 50 48 52 4f |part of the PHRO| 000009d0 4d 20 73 70 65 65 63 68 20 64 61 74 61 2c 20 63 |M speech data, c| 000009e0 6f 70 79 20 69 74 20 66 72 6f 6d 20 74 68 65 20 |opy it from the | 000009f0 77 6f 72 64 20 50 48 52 4f 4d 0d 69 6e 74 6f 20 |word PHROM.into | 00000a00 52 41 4d 2c 20 61 6e 64 20 74 68 65 6e 20 75 73 |RAM, and then us| 00000a10 65 20 74 68 65 20 53 70 65 61 6b 20 45 78 74 65 |e the Speak Exte| 00000a20 72 6e 61 6c 20 63 6f 6d 6d 61 6e 64 20 74 6f 20 |rnal command to | 00000a30 73 70 65 61 6b 20 6f 6e 6c 79 20 61 20 70 61 72 |speak only a par| 00000a40 74 20 6f 66 0d 74 68 65 20 6f 72 69 67 69 6e 61 |t of.the origina| 00000a50 6c 20 77 6f 72 64 2e 20 54 6f 20 69 6c 6c 75 73 |l word. To illus| 00000a60 74 72 61 74 65 20 74 68 69 73 20 69 64 65 61 20 |trate this idea | 00000a70 49 20 77 69 6c 6c 20 64 65 6d 6f 6e 73 74 72 61 |I will demonstra| 00000a80 74 65 20 68 6f 77 20 74 68 65 20 6e 65 77 0d 77 |te how the new.w| 00000a90 6f 72 64 20 4d 4f 55 54 48 20 63 61 6e 20 62 65 |ord MOUTH can be| 00000aa0 20 63 6f 6e 73 74 72 75 63 74 65 64 20 66 72 6f | constructed fro| 00000ab0 6d 20 74 68 65 20 64 61 74 61 20 73 74 6f 72 65 |m the data store| 00000ac0 64 20 69 6e 20 77 6f 72 64 20 50 48 52 4f 4d 20 |d in word PHROM | 00000ad0 41 20 66 6f 72 20 74 68 65 0d 77 6f 72 64 20 41 |A for the.word A| 00000ae0 4d 4f 55 4e 54 20 61 6e 64 20 74 68 65 20 77 6f |MOUNT and the wo| 00000af0 72 64 2d 70 61 72 74 20 2d 54 48 2e 20 54 68 65 |rd-part -TH. The| 00000b00 20 73 61 6d 65 20 74 65 63 68 6e 69 71 75 65 20 | same technique | 00000b10 63 61 6e 20 62 65 20 75 73 65 64 20 74 6f 0d 63 |can be used to.c| 00000b20 6f 6e 73 74 72 75 63 74 20 6d 6f 73 74 20 6f 66 |onstruct most of| 00000b30 20 74 68 65 20 70 68 6f 6e 65 6d 65 73 20 75 73 | the phonemes us| 00000b40 65 64 20 69 6e 20 74 68 65 20 45 6e 67 6c 69 73 |ed in the Englis| 00000b50 68 20 6c 61 6e 67 75 61 67 65 20 66 72 6f 6d 20 |h language from | 00000b60 74 68 65 0d 73 70 65 65 63 68 20 64 61 74 61 20 |the.speech data | 00000b70 69 6e 20 74 68 65 20 31 36 35 20 77 6f 72 64 73 |in the 165 words| 00000b80 20 69 6e 20 77 6f 72 64 20 50 48 52 4f 4d 20 41 | in word PHROM A| 00000b90 2e 0d 0d 54 68 65 20 70 72 6f 67 72 61 6d 20 41 |...The program A| 00000ba0 44 44 52 45 53 53 20 63 61 6e 20 62 65 20 75 73 |DDRESS can be us| 00000bb0 65 64 20 74 6f 20 66 69 6e 64 20 74 68 65 20 73 |ed to find the s| 00000bc0 74 61 72 74 20 61 6e 64 20 65 6e 64 20 61 64 64 |tart and end add| 00000bd0 72 65 73 73 65 73 20 6f 66 20 61 0d 70 61 72 74 |resses of a.part| 00000be0 20 6f 66 20 74 68 65 20 77 6f 72 64 20 41 4d 4f | of the word AMO| 00000bf0 55 4e 54 20 77 68 69 63 68 20 73 6f 75 6e 64 73 |UNT which sounds| 00000c00 20 6c 69 6b 65 20 74 68 65 20 6d 6f 75 2d 20 6f | like the mou- o| 00000c10 66 20 74 68 65 20 77 6f 72 64 20 6d 6f 75 74 68 |f the word mouth| 00000c20 2e 20 54 68 65 0d 73 74 61 72 74 20 61 64 64 72 |. The.start addr| 00000c30 65 73 73 20 6f 66 20 41 4d 4f 55 4e 54 20 69 6e |ess of AMOUNT in| 00000c40 20 77 6f 72 64 20 50 48 52 4f 4d 20 41 20 69 73 | word PHROM A is| 00000c50 20 61 74 20 26 30 44 34 36 20 28 73 65 65 20 61 | at &0D46 (see a| 00000c60 70 70 65 6e 64 69 78 20 41 20 6f 66 20 74 68 65 |ppendix A of the| 00000c70 0d 53 70 65 65 63 68 20 53 79 73 74 65 6d 20 55 |.Speech System U| 00000c80 73 65 72 20 47 75 69 64 65 29 2e 20 54 68 65 20 |ser Guide). The | 00000c90 61 64 64 72 65 73 73 20 6f 66 20 74 68 65 20 6c |address of the l| 00000ca0 61 73 74 20 64 61 74 61 20 62 79 74 65 20 69 73 |ast data byte is| 00000cb0 20 26 30 44 42 42 2e 0d 4c 6f 61 64 20 61 6e 64 | &0DBB..Load and| 00000cc0 20 72 75 6e 20 74 68 65 20 70 72 6f 67 72 61 6d | run the program| 00000cd0 20 41 44 44 52 45 53 53 20 61 6e 64 20 73 70 65 | ADDRESS and spe| 00000ce0 63 69 66 79 20 74 68 65 73 65 20 73 74 61 72 74 |cify these start| 00000cf0 20 61 6e 64 20 65 6e 64 0d 61 64 64 72 65 73 73 | and end.address| 00000d00 65 73 2e 20 54 68 65 20 70 72 6f 67 72 61 6d 20 |es. The program | 00000d10 63 61 6e 20 62 65 20 75 73 65 64 20 74 6f 20 73 |can be used to s| 00000d20 74 65 70 20 74 68 6f 75 67 68 20 65 76 65 72 79 |tep though every| 00000d30 20 62 79 74 65 20 6f 66 20 74 68 65 20 64 61 74 | byte of the dat| 00000d40 61 0d 61 6e 64 20 61 74 74 65 6d 70 74 20 74 6f |a.and attempt to| 00000d50 20 73 70 65 61 6b 20 69 74 2e 20 4d 6f 73 74 20 | speak it. Most | 00000d60 6f 66 20 74 68 65 20 61 64 64 72 65 73 73 65 73 |of the addresses| 00000d70 20 77 69 6c 6c 20 70 72 6f 64 75 63 65 20 67 61 | will produce ga| 00000d80 72 62 6c 65 64 0d 6e 6f 6e 73 65 6e 63 65 20 62 |rbled.nonsence b| 00000d90 75 74 20 65 76 65 6e 74 75 61 6c 6c 79 20 74 68 |ut eventually th| 00000da0 65 20 77 6f 72 64 20 22 6d 6f 75 6e 74 22 20 77 |e word "mount" w| 00000db0 69 6c 6c 20 62 65 20 73 70 6f 6b 65 6e 2e 20 50 |ill be spoken. P| 00000dc0 72 65 73 73 20 61 6e 79 20 6b 65 79 0d 6f 74 68 |ress any key.oth| 00000dd0 65 72 20 74 68 61 6e 20 74 68 65 20 73 70 61 63 |er than the spac| 00000de0 65 62 61 72 20 61 6e 64 20 74 68 65 20 70 72 6f |ebar and the pro| 00000df0 67 72 61 6d 20 77 69 6c 6c 20 70 72 69 6e 74 20 |gram will print | 00000e00 74 68 65 20 73 74 61 72 74 20 61 64 64 72 65 73 |the start addres| 00000e10 73 20 6f 66 0d 74 68 69 73 20 6e 65 77 20 77 6f |s of.this new wo| 00000e20 72 64 2e 0d 0d 0d 20 20 20 31 30 20 52 45 4d 3a |rd.... 10 REM:| 00000e30 20 41 44 44 52 45 53 53 0d 20 20 20 32 30 20 52 | ADDRESS. 20 R| 00000e40 45 50 45 41 54 0d 20 20 20 33 30 20 49 4e 50 55 |EPEAT. 30 INPU| 00000e50 54 22 53 74 61 72 74 20 61 64 64 72 65 73 73 20 |T"Start address | 00000e60 26 22 73 74 61 72 74 24 0d 20 20 20 34 30 20 61 |&"start$. 40 a| 00000e70 64 64 72 65 73 73 3d 45 56 41 4c 28 22 26 22 2b |ddress=EVAL("&"+| 00000e80 73 74 61 72 74 24 29 0d 20 20 20 35 30 20 55 4e |start$). 50 UN| 00000e90 54 49 4c 20 61 64 64 72 65 73 73 20 3e 20 26 32 |TIL address > &2| 00000ea0 35 30 20 41 4e 44 20 61 64 64 72 65 73 73 20 3c |50 AND address <| 00000eb0 20 26 33 46 46 46 0d 20 20 20 36 30 20 52 45 50 | &3FFF. 60 REP| 00000ec0 45 41 54 0d 20 20 20 37 30 20 49 4e 50 55 54 22 |EAT. 70 INPUT"| 00000ed0 45 6e 64 20 61 64 64 72 65 73 73 20 20 20 26 22 |End address &"| 00000ee0 65 6e 64 24 0d 20 20 20 38 30 20 65 6e 64 3d 45 |end$. 80 end=E| 00000ef0 56 41 4c 28 22 26 22 2b 65 6e 64 24 29 0d 20 20 |VAL("&"+end$). | 00000f00 20 39 30 20 55 4e 54 49 4c 20 65 6e 64 20 3e 3d | 90 UNTIL end >=| 00000f10 20 61 64 64 72 65 73 73 20 41 4e 44 20 65 6e 64 | address AND end| 00000f20 20 3c 20 26 33 46 46 46 0d 20 20 31 30 30 20 50 | < &3FFF. 100 P| 00000f30 52 49 4e 54 27 22 50 72 65 73 73 20 73 70 61 63 |RINT'"Press spac| 00000f40 65 62 61 72 20 74 6f 20 73 70 65 61 6b 20 61 6e |ebar to speak an| 00000f50 64 22 0d 20 20 31 31 30 20 50 52 49 4e 54 22 61 |d". 110 PRINT"a| 00000f60 6e 79 20 6f 74 68 65 72 20 6b 65 79 20 74 6f 20 |ny other key to | 00000f70 70 72 69 6e 74 20 61 64 64 72 65 73 73 22 27 0d |print address"'.| 00000f80 20 20 31 32 30 20 52 45 50 45 41 54 20 55 4e 54 | 120 REPEAT UNT| 00000f90 49 4c 20 47 45 54 20 3d 20 33 32 0d 20 20 31 33 |IL GET = 32. 13| 00000fa0 30 20 52 45 50 45 41 54 0d 20 20 31 34 30 20 53 |0 REPEAT. 140 S| 00000fb0 4f 55 4e 44 20 26 46 46 42 46 2c 61 64 64 72 65 |OUND &FFBF,addre| 00000fc0 73 73 2c 30 2c 30 0d 20 20 31 35 30 20 52 45 50 |ss,0,0. 150 REP| 00000fd0 45 41 54 0d 20 20 31 36 30 20 73 70 61 63 65 62 |EAT. 160 spaceb| 00000fe0 61 72 3d 47 45 54 0d 20 20 31 37 30 20 49 46 20 |ar=GET. 170 IF | 00000ff0 73 70 61 63 65 62 61 72 20 3c 3e 20 33 32 20 54 |spacebar <> 32 T| 00001000 48 45 4e 20 53 4f 55 4e 44 20 26 46 46 42 46 2c |HEN SOUND &FFBF,| 00001010 61 64 64 72 65 73 73 2c 30 2c 30 20 3a 0d 20 20 |address,0,0 :. | 00001020 20 20 20 20 50 52 49 4e 54 22 61 64 64 72 65 73 | PRINT"addres| 00001030 73 20 3d 20 26 22 3b 7e 61 64 64 72 65 73 73 0d |s = &";~address.| 00001040 20 20 31 38 30 20 55 4e 54 49 4c 20 73 70 61 63 | 180 UNTIL spac| 00001050 65 62 61 72 20 3d 20 33 32 0d 20 20 31 39 30 20 |ebar = 32. 190 | 00001060 61 64 64 72 65 73 73 3d 61 64 64 72 65 73 73 2b |address=address+| 00001070 31 0d 20 20 32 30 30 20 55 4e 54 49 4c 20 61 64 |1. 200 UNTIL ad| 00001080 64 72 65 73 73 20 3e 20 65 6e 64 0d 0d 0d 43 6f |dress > end...Co| 00001090 6e 74 69 6e 75 65 20 74 65 73 74 69 6e 67 20 65 |ntinue testing e| 000010a0 76 65 72 79 20 62 79 74 65 20 6f 66 20 74 68 65 |very byte of the| 000010b0 20 6f 72 69 67 69 6e 61 6c 20 77 6f 72 64 20 61 | original word a| 000010c0 6e 64 20 70 72 69 6e 74 20 74 68 65 20 61 64 64 |nd print the add| 000010d0 72 65 73 73 0d 65 76 65 72 79 20 74 69 6d 65 20 |ress.every time | 000010e0 61 20 6d 65 61 6e 69 6e 67 66 75 6c 20 77 6f 72 |a meaningful wor| 000010f0 64 2d 70 61 72 74 20 69 73 20 73 70 6f 6b 65 6e |d-part is spoken| 00001100 2e 20 59 6f 75 20 73 68 6f 75 6c 64 20 66 69 6e |. You should fin| 00001110 64 20 74 68 61 74 20 74 68 65 20 6c 61 73 74 0d |d that the last.| 00001120 61 64 64 72 65 73 73 20 61 74 20 77 68 69 63 68 |address at which| 00001130 20 6d 6f 75 6e 74 20 69 73 20 73 70 6f 6b 65 6e | mount is spoken| 00001140 20 69 73 20 26 44 36 38 2e 20 54 68 65 20 61 64 | is &D68. The ad| 00001150 64 72 65 73 73 20 61 74 20 77 68 69 63 68 20 2d |dress at which -| 00001160 6e 74 20 69 73 0d 73 70 6f 6b 65 6e 20 69 73 20 |nt is.spoken is | 00001170 26 44 39 42 2e 20 54 68 65 20 6e 65 77 20 77 6f |&D9B. The new wo| 00001180 72 64 2d 70 61 72 74 2c 20 4d 4f 55 2d 2c 20 63 |rd-part, MOU-, c| 00001190 61 6e 20 62 65 20 63 72 65 61 74 65 64 20 77 69 |an be created wi| 000011a0 74 68 20 74 68 65 20 64 61 74 61 20 66 72 6f 6d |th the data from| 000011b0 0d 62 65 74 77 65 65 6e 20 74 68 65 73 65 20 74 |.between these t| 000011c0 77 6f 20 61 64 64 72 65 73 73 65 73 2c 20 74 68 |wo addresses, th| 000011d0 61 74 20 69 73 20 66 72 6f 6d 20 26 44 36 38 20 |at is from &D68 | 000011e0 74 6f 20 26 44 39 41 2e 0d 0d 54 68 65 20 77 6f |to &D9A...The wo| 000011f0 72 64 2d 70 61 72 74 20 2d 54 48 20 69 73 20 61 |rd-part -TH is a| 00001200 20 63 6f 6d 70 6c 65 74 65 20 77 6f 72 64 20 69 | complete word i| 00001210 6e 20 77 6f 72 64 20 50 48 52 4f 4d 20 41 2e 20 |n word PHROM A. | 00001220 54 68 65 20 64 61 74 61 20 66 6f 72 20 2d 54 48 |The data for -TH| 00001230 20 63 61 6e 0d 62 65 20 66 6f 75 6e 64 20 66 72 | can.be found fr| 00001240 6f 6d 20 26 30 33 44 43 20 74 6f 20 26 33 46 31 |om &03DC to &3F1| 00001250 20 28 73 65 65 20 61 70 70 65 6e 64 69 78 20 41 | (see appendix A| 00001260 20 6f 66 20 74 68 65 20 53 70 65 65 63 68 20 53 | of the Speech S| 00001270 79 73 74 65 6d 20 55 73 65 72 0d 47 75 69 64 65 |ystem User.Guide| 00001280 29 2e 0d 0d 54 68 65 73 65 20 64 61 74 61 20 63 |)...These data c| 00001290 61 6e 20 62 65 20 66 6f 72 6d 61 74 74 65 64 20 |an be formatted | 000012a0 66 6f 72 20 74 68 65 20 53 70 65 61 6b 20 45 78 |for the Speak Ex| 000012b0 74 65 72 6e 61 6c 20 63 6f 6d 6d 61 6e 64 20 62 |ternal command b| 000012c0 79 20 75 73 69 6e 67 20 74 68 65 0d 70 72 6f 67 |y using the.prog| 000012d0 72 61 6d 20 43 52 45 41 54 45 2e 0d 0d 0d 20 20 |ram CREATE.... | 000012e0 20 31 30 20 52 45 4d 3a 20 43 52 45 41 54 45 0d | 10 REM: CREATE.| 000012f0 20 20 20 32 30 20 4f 4e 20 45 52 52 4f 52 20 47 | 20 ON ERROR G| 00001300 4f 54 4f 20 38 35 30 0d 20 20 20 33 30 20 56 44 |OTO 850. 30 VD| 00001310 55 31 35 0d 20 20 20 34 30 20 44 49 4d 20 6d 63 |U15. 40 DIM mc| 00001320 6f 64 65 20 26 31 30 30 0d 20 20 20 35 30 20 44 |ode &100. 50 D| 00001330 49 4d 20 62 79 74 65 28 33 29 0d 20 20 20 36 30 |IM byte(3). 60| 00001340 20 74 65 6d 70 3d 26 37 30 0d 20 20 20 37 30 20 | temp=&70. 70 | 00001350 6f 73 62 79 74 65 3d 26 46 46 46 34 0d 20 20 20 |osbyte=&FFF4. | 00001360 38 30 20 46 4f 52 70 61 73 73 3d 30 54 4f 32 53 |80 FORpass=0TO2S| 00001370 54 45 50 32 0d 20 20 20 39 30 20 50 25 3d 6d 63 |TEP2. 90 P%=mc| 00001380 6f 64 65 0d 20 20 31 30 30 20 5b 20 20 20 20 20 |ode. 100 [ | 00001390 20 20 4f 50 54 20 70 61 73 73 0d 20 20 31 31 30 | OPT pass. 110| 000013a0 20 2e 72 65 61 64 0d 20 20 31 32 30 20 20 20 20 | .read. 120 | 000013b0 20 20 20 20 20 4c 44 41 20 23 26 39 46 0d 20 20 | LDA #&9F. | 000013c0 31 33 30 20 20 20 20 20 20 20 20 20 4c 44 59 20 |130 LDY | 000013d0 23 26 31 30 0d 20 20 31 34 30 20 20 20 20 20 20 |#&10. 140 | 000013e0 20 20 20 4a 53 52 20 6f 73 62 79 74 65 0d 20 20 | JSR osbyte. | 000013f0 31 35 30 20 20 20 20 20 20 20 20 20 4c 44 41 20 |150 LDA | 00001400 23 26 39 45 0d 20 20 31 36 30 20 20 20 20 20 20 |#&9E. 160 | 00001410 20 20 20 4a 53 52 20 6f 73 62 79 74 65 0d 20 20 | JSR osbyte. | 00001420 31 37 30 20 20 20 20 20 20 20 20 20 54 59 41 0d |170 TYA.| 00001430 20 20 31 38 30 20 20 20 20 20 20 20 20 20 53 54 | 180 ST| 00001440 41 20 74 65 6d 70 0d 20 20 31 39 30 20 20 20 20 |A temp. 190 | 00001450 20 20 20 20 20 52 4f 4c 20 74 65 6d 70 0d 20 20 | ROL temp. | 00001460 32 30 30 20 20 20 20 20 20 20 20 20 52 4f 52 20 |200 ROR | 00001470 41 0d 20 20 32 31 30 20 20 20 20 20 20 20 20 20 |A. 210 | 00001480 52 4f 4c 20 74 65 6d 70 0d 20 20 32 32 30 20 20 |ROL temp. 220 | 00001490 20 20 20 20 20 20 20 52 4f 52 20 41 0d 20 20 32 | ROR A. 2| 000014a0 33 30 20 20 20 20 20 20 20 20 20 52 4f 4c 20 74 |30 ROL t| 000014b0 65 6d 70 0d 20 20 32 34 30 20 20 20 20 20 20 20 |emp. 240 | 000014c0 20 20 52 4f 52 20 41 0d 20 20 32 35 30 20 20 20 | ROR A. 250 | 000014d0 20 20 20 20 20 20 52 4f 4c 20 74 65 6d 70 0d 20 | ROL temp. | 000014e0 20 32 36 30 20 20 20 20 20 20 20 20 20 52 4f 52 | 260 ROR| 000014f0 20 41 0d 20 20 32 37 30 20 20 20 20 20 20 20 20 | A. 270 | 00001500 20 52 4f 4c 20 74 65 6d 70 0d 20 20 32 38 30 20 | ROL temp. 280 | 00001510 20 20 20 20 20 20 20 20 52 4f 52 20 41 0d 20 20 | ROR A. | 00001520 32 39 30 20 20 20 20 20 20 20 20 20 52 4f 4c 20 |290 ROL | 00001530 74 65 6d 70 0d 20 20 33 30 30 20 20 20 20 20 20 |temp. 300 | 00001540 20 20 20 52 4f 52 20 41 0d 20 20 33 31 30 20 20 | ROR A. 310 | 00001550 20 20 20 20 20 20 20 52 4f 4c 20 74 65 6d 70 0d | ROL temp.| 00001560 20 20 33 32 30 20 20 20 20 20 20 20 20 20 52 4f | 320 RO| 00001570 52 20 41 0d 20 20 33 33 30 20 20 20 20 20 20 20 |R A. 330 | 00001580 20 20 52 4f 4c 20 74 65 6d 70 0d 20 20 33 34 30 | ROL temp. 340| 00001590 20 20 20 20 20 20 20 20 20 52 4f 52 20 41 0d 20 | ROR A. | 000015a0 20 33 35 30 20 20 20 20 20 20 20 20 20 52 54 53 | 350 RTS| 000015b0 0d 20 20 33 36 30 20 5d 0d 20 20 33 37 30 20 4e |. 360 ]. 370 N| 000015c0 45 58 54 0d 20 20 33 38 30 20 52 45 50 45 41 54 |EXT. 380 REPEAT| 000015d0 0d 20 20 33 39 30 20 49 4e 50 55 54 27 22 53 74 |. 390 INPUT'"St| 000015e0 61 72 74 20 61 64 64 72 65 73 73 20 26 22 73 74 |art address &"st| 000015f0 61 72 74 24 0d 20 20 34 30 30 20 73 74 61 72 74 |art$. 400 start| 00001600 3d 45 56 41 4c 28 22 26 22 2b 73 74 61 72 74 24 |=EVAL("&"+start$| 00001610 29 0d 20 20 34 31 30 20 55 4e 54 49 4c 20 73 74 |). 410 UNTIL st| 00001620 61 72 74 20 3e 20 26 32 35 30 20 41 4e 44 20 73 |art > &250 AND s| 00001630 74 61 72 74 20 3c 20 26 33 46 46 46 0d 20 20 34 |tart < &3FFF. 4| 00001640 32 30 20 52 45 50 45 41 54 0d 20 20 34 33 30 20 |20 REPEAT. 430 | 00001650 49 4e 50 55 54 22 45 6e 64 20 61 64 64 72 65 73 |INPUT"End addres| 00001660 73 20 20 20 26 22 65 6e 64 24 0d 20 20 34 34 30 |s &"end$. 440| 00001670 20 65 6e 64 3d 45 56 41 4c 28 22 26 22 2b 65 6e | end=EVAL("&"+en| 00001680 64 24 29 0d 20 20 34 35 30 20 55 4e 54 49 4c 20 |d$). 450 UNTIL | 00001690 65 6e 64 20 3e 3d 20 73 74 61 72 74 20 41 4e 44 |end >= start AND| 000016a0 20 65 6e 64 20 3c 20 26 33 46 46 46 0d 20 20 34 | end < &3FFF. 4| 000016b0 36 30 20 49 4e 50 55 54 22 46 69 72 73 74 20 6c |60 INPUT"First l| 000016c0 69 6e 65 20 6e 75 6d 62 65 72 20 3d 20 22 6c 69 |ine number = "li| 000016d0 6e 65 0d 20 20 34 37 30 20 49 4e 50 55 54 22 4c |ne. 470 INPUT"L| 000016e0 69 6e 65 20 6e 75 6d 6d 62 65 72 20 69 6e 63 2e |ine nummber inc.| 000016f0 20 3d 20 22 69 6e 63 0d 20 20 34 38 30 20 49 4e | = "inc. 480 IN| 00001700 50 55 54 22 4c 61 62 65 6c 20 3d 20 2e 22 6c 61 |PUT"Label = ."la| 00001710 62 65 6c 24 0d 20 20 34 39 30 20 49 4e 50 55 54 |bel$. 490 INPUT| 00001720 22 46 69 6c 65 6e 61 6d 65 20 3d 20 22 66 69 6c |"Filename = "fil| 00001730 65 6e 61 6d 65 24 0d 20 20 35 30 30 20 49 4e 50 |ename$. 500 INP| 00001740 55 54 22 42 79 74 65 20 63 6f 75 6e 74 3f 20 28 |UT"Byte count? (| 00001750 59 2f 4e 29 20 22 79 65 73 24 0d 20 20 35 31 30 |Y/N) "yes$. 510| 00001760 20 79 65 73 24 3d 4c 45 46 54 24 28 79 65 73 24 | yes$=LEFT$(yes$| 00001770 2c 31 29 0d 20 20 35 32 30 20 49 46 20 79 65 73 |,1). 520 IF yes| 00001780 24 3d 22 59 22 20 54 48 45 4e 20 79 65 73 3d 54 |$="Y" THEN yes=T| 00001790 52 55 45 20 45 4c 53 45 20 79 65 73 3d 46 41 4c |RUE ELSE yes=FAL| 000017a0 53 45 0d 20 20 35 33 30 20 41 25 3d 26 39 46 0d |SE. 530 A%=&9F.| 000017b0 20 20 35 34 30 20 58 25 3d 30 0d 20 20 35 35 30 | 540 X%=0. 550| 000017c0 20 59 25 3d 26 34 30 2b 28 73 74 61 72 74 20 41 | Y%=&40+(start A| 000017d0 4e 44 20 26 46 29 0d 20 20 35 36 30 20 43 41 4c |ND &F). 560 CAL| 000017e0 4c 20 6f 73 62 79 74 65 0d 20 20 35 37 30 20 59 |L osbyte. 570 Y| 000017f0 25 3d 26 34 30 2b 28 73 74 61 72 74 20 41 4e 44 |%=&40+(start AND| 00001800 20 26 46 30 29 44 49 56 20 26 31 30 0d 20 20 35 | &F0)DIV &10. 5| 00001810 38 30 20 43 41 4c 4c 20 6f 73 62 79 74 65 0d 20 |80 CALL osbyte. | 00001820 20 35 39 30 20 59 25 3d 26 34 30 2b 28 73 74 61 | 590 Y%=&40+(sta| 00001830 72 74 20 41 4e 44 20 26 46 30 30 29 44 49 56 20 |rt AND &F00)DIV | 00001840 26 31 30 30 0d 20 20 36 30 30 20 43 41 4c 4c 20 |&100. 600 CALL | 00001850 6f 73 62 79 74 65 0d 20 20 36 31 30 20 59 25 3d |osbyte. 610 Y%=| 00001860 26 34 43 2b 28 73 74 61 72 74 20 41 4e 44 20 26 |&4C+(start AND &| 00001870 46 30 30 30 29 44 49 56 20 26 31 30 30 30 0d 20 |F000)DIV &1000. | 00001880 20 36 32 30 20 43 41 4c 4c 20 6f 73 62 79 74 65 | 620 CALL osbyte| 00001890 0d 20 20 36 33 30 20 59 25 3d 26 34 33 0d 20 20 |. 630 Y%=&43. | 000018a0 36 34 30 20 43 41 4c 4c 20 6f 73 62 79 74 65 0d |640 CALL osbyte.| 000018b0 20 20 36 35 30 20 4f 53 43 4c 49 28 22 53 50 4f | 650 OSCLI("SPO| 000018c0 4f 4c 20 22 2b 66 69 6c 65 6e 61 6d 65 24 29 0d |OL "+filename$).| 000018d0 20 20 36 36 30 20 4f 4e 20 45 52 52 4f 52 20 4f | 660 ON ERROR O| 000018e0 53 43 4c 49 28 22 53 50 4f 4f 4c 22 29 20 3a 20 |SCLI("SPOOL") : | 000018f0 52 45 50 4f 52 54 20 3a 20 45 4e 44 0d 20 20 36 |REPORT : END. 6| 00001900 37 30 20 50 52 49 4e 54 22 41 55 54 4f 20 22 3b |70 PRINT"AUTO ";| 00001910 6c 69 6e 65 3b 22 2c 22 3b 69 6e 63 0d 20 20 36 |line;",";inc. 6| 00001920 38 30 20 50 52 49 4e 54 22 2e 22 3b 6c 61 62 65 |80 PRINT".";labe| 00001930 6c 24 0d 20 20 36 39 30 20 50 52 49 4e 54 22 5c |l$. 690 PRINT"\| 00001940 20 53 74 61 72 74 20 61 64 64 72 65 73 73 20 3d | Start address =| 00001950 20 26 22 3b 73 74 61 72 74 24 3b 22 20 28 26 30 | &";start$;" (&0| 00001960 29 22 0d 20 20 37 30 30 20 50 52 49 4e 54 22 5c |)". 700 PRINT"\| 00001970 20 45 6e 64 20 61 64 64 72 65 73 73 20 3d 20 26 | End address = &| 00001980 22 3b 65 6e 64 24 3b 22 20 28 26 22 3b 7e 65 6e |";end$;" (&";~en| 00001990 64 2d 73 74 61 72 74 3b 22 29 22 0d 20 20 37 31 |d-start;")". 71| 000019a0 30 20 46 4f 52 20 62 6c 6f 63 6b 3d 73 74 61 72 |0 FOR block=star| 000019b0 74 20 54 4f 20 65 6e 64 20 53 54 45 50 20 34 0d |t TO end STEP 4.| 000019c0 20 20 37 32 30 20 63 6f 75 6e 74 3d 62 6c 6f 63 | 720 count=bloc| 000019d0 6b 2d 73 74 61 72 74 0d 20 20 37 33 30 20 46 4f |k-start. 730 FO| 000019e0 52 20 6d 65 6d 6f 72 79 3d 30 20 54 4f 20 33 0d |R memory=0 TO 3.| 000019f0 20 20 37 34 30 20 62 79 74 65 28 6d 65 6d 6f 72 | 740 byte(memor| 00001a00 79 29 3d 55 53 52 28 72 65 61 64 29 41 4e 44 20 |y)=USR(read)AND | 00001a10 26 46 46 0d 20 20 37 35 30 20 4e 45 58 54 0d 20 |&FF. 750 NEXT. | 00001a20 20 37 36 30 20 50 52 49 4e 54 3b 22 45 51 55 44 | 760 PRINT;"EQUD| 00001a30 20 26 22 3b 0d 20 20 37 37 30 20 46 4f 52 20 6d | &";. 770 FOR m| 00001a40 65 6d 6f 72 79 3d 33 54 4f 30 53 54 45 50 2d 31 |emory=3TO0STEP-1| 00001a50 0d 20 20 37 38 30 20 41 25 3d 62 79 74 65 28 6d |. 780 A%=byte(m| 00001a60 65 6d 6f 72 79 29 0d 20 20 37 39 30 20 49 46 20 |emory). 790 IF | 00001a70 41 25 20 3c 20 26 31 30 20 56 44 55 34 38 0d 20 |A% < &10 VDU48. | 00001a80 20 38 30 30 20 50 52 49 4e 54 3b 7e 41 25 3b 0d | 800 PRINT;~A%;.| 00001a90 20 20 38 31 30 20 4e 45 58 54 0d 20 20 38 32 30 | 810 NEXT. 820| 00001aa0 20 49 46 20 79 65 73 20 50 52 49 4e 54 3b 22 20 | IF yes PRINT;" | 00001ab0 5c 20 26 22 3b 7e 63 6f 75 6e 74 2b 33 3b 22 20 |\ &";~count+3;" | 00001ac0 2d 20 26 22 3b 7e 63 6f 75 6e 74 20 45 4c 53 45 |- &";~count ELSE| 00001ad0 20 50 52 49 4e 54 0d 20 20 38 33 30 20 4e 45 58 | PRINT. 830 NEX| 00001ae0 54 0d 20 20 38 34 30 20 2a 53 50 4f 4f 4c 0d 20 |T. 840 *SPOOL. | 00001af0 20 38 35 30 20 49 4e 50 55 54 27 22 41 6e 6f 74 | 850 INPUT'"Anot| 00001b00 68 65 72 20 28 59 2f 4e 29 20 22 79 65 73 24 0d |her (Y/N) "yes$.| 00001b10 20 20 38 36 30 20 49 46 20 4c 45 46 54 24 28 79 | 860 IF LEFT$(y| 00001b20 65 73 24 2c 31 29 3d 22 59 22 20 54 48 45 4e 20 |es$,1)="Y" THEN | 00001b30 52 55 4e 0d 20 20 38 37 30 20 45 4e 44 0d 0d 0d |RUN. 870 END...| 00001b40 54 68 65 20 70 72 6f 67 72 61 6d 20 43 52 45 41 |The program CREA| 00001b50 54 45 20 72 65 61 64 73 20 61 6e 64 20 72 65 76 |TE reads and rev| 00001b60 65 72 73 65 73 20 74 68 65 20 64 61 74 61 20 66 |erses the data f| 00001b70 72 6f 6d 20 77 6f 72 64 20 50 48 52 4f 4d 20 41 |rom word PHROM A| 00001b80 20 61 6e 64 0d 70 72 6f 64 75 63 65 73 20 61 20 | and.produces a | 00001b90 66 69 6c 65 20 6f 66 20 41 73 73 65 6d 62 6c 79 |file of Assembly| 00001ba0 20 6c 61 6e 67 75 61 67 65 20 63 6f 6d 6d 61 6e | language comman| 00001bb0 64 73 20 77 68 69 63 68 20 63 61 6e 20 62 65 20 |ds which can be | 00001bc0 2a 45 58 45 43 65 64 20 69 6e 74 6f 20 61 0d 73 |*EXECed into a.s| 00001bd0 6f 75 72 63 65 20 63 6f 64 65 20 70 72 6f 67 72 |ource code progr| 00001be0 61 6d 20 74 6f 20 70 72 6f 64 75 63 65 20 74 68 |am to produce th| 00001bf0 65 20 72 65 71 75 69 72 65 64 20 64 61 74 61 2e |e required data.| 00001c00 20 4c 6f 61 64 20 61 6e 64 20 72 75 6e 20 74 68 | Load and run th| 00001c10 65 20 70 72 6f 67 72 61 6d 0d 43 52 45 41 54 45 |e program.CREATE| 00001c20 20 74 6f 20 63 72 65 61 74 65 20 61 20 66 69 6c | to create a fil| 00001c30 65 20 6f 66 20 74 68 65 20 64 61 74 61 20 66 6f |e of the data fo| 00001c40 72 20 74 68 65 20 6e 65 77 20 77 6f 72 64 2d 70 |r the new word-p| 00001c50 61 72 74 20 4d 4f 55 2d 2e 20 59 6f 75 20 73 68 |art MOU-. You sh| 00001c60 6f 75 6c 64 0d 73 70 65 63 69 66 79 20 74 68 65 |ould.specify the| 00001c70 20 76 61 72 69 6f 75 73 20 70 61 72 61 6d 65 74 | various paramet| 00001c80 65 72 73 20 61 73 20 73 68 6f 77 6e 20 69 6e 20 |ers as shown in | 00001c90 66 69 67 75 72 65 20 32 2e 20 54 68 65 20 73 6f |figure 2. The so| 00001ca0 2d 63 61 6c 6c 65 64 20 62 79 74 65 0d 63 6f 75 |-called byte.cou| 00001cb0 6e 74 20 69 6e 64 65 78 65 73 20 74 68 65 20 64 |nt indexes the d| 00001cc0 61 74 61 20 62 79 74 65 73 20 74 6f 20 6d 61 6b |ata bytes to mak| 00001cd0 65 20 69 74 20 65 61 73 69 65 72 20 74 6f 20 61 |e it easier to a| 00001ce0 6e 61 6c 79 73 65 20 74 68 65 20 64 61 74 61 2e |nalyse the data.| 00001cf0 0d 0d 0d 20 20 20 20 20 20 20 2b 2d 2d 2d 2d 2d |... +-----| 00001d00 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 00001d10 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2b 0d 20 20 |------------+. | 00001d20 20 20 20 20 20 7c 20 20 20 20 20 20 20 20 20 20 | | | 00001d30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001d40 20 20 20 20 20 20 20 7c 0d 20 20 20 20 20 20 20 | |. | 00001d50 7c 20 20 53 74 61 72 74 20 61 64 64 72 65 73 73 || Start address| 00001d60 20 26 44 36 38 20 20 20 20 20 20 20 20 20 20 20 | &D68 | 00001d70 20 20 7c 0d 20 20 20 20 20 20 20 7c 20 20 45 6e | |. | En| 00001d80 64 20 61 64 64 72 65 73 73 20 20 20 26 44 39 41 |d address &D9A| 00001d90 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 0d 20 | |. | 00001da0 20 20 20 20 20 20 7c 20 20 46 69 72 73 74 20 6c | | First l| 00001db0 69 6e 65 20 6e 75 6d 62 65 72 20 3d 20 34 34 30 |ine number = 440| 00001dc0 20 20 20 20 20 20 20 20 7c 0d 20 20 20 20 20 20 | |. | 00001dd0 20 7c 20 20 4c 69 6e 65 20 6e 75 6d 6d 62 65 72 | | Line nummber| 00001de0 20 69 6e 63 2e 20 3d 20 31 30 20 20 20 20 20 20 | inc. = 10 | 00001df0 20 20 20 7c 0d 20 20 20 20 20 20 20 7c 20 20 4c | |. | L| 00001e00 61 62 65 6c 20 3d 20 2e 6d 6f 75 20 20 20 20 20 |abel = .mou | 00001e10 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 0d | |.| 00001e20 20 20 20 20 20 20 20 7c 20 20 46 69 6c 65 6e 61 | | Filena| 00001e30 6d 65 20 3d 20 4d 4f 55 20 20 20 20 20 20 20 20 |me = MOU | 00001e40 20 20 20 20 20 20 20 20 20 7c 0d 20 20 20 20 20 | |. | 00001e50 20 20 7c 20 20 42 79 74 65 20 63 6f 75 6e 74 3f | | Byte count?| 00001e60 20 28 59 2f 4e 29 20 59 20 20 20 20 20 20 20 20 | (Y/N) Y | 00001e70 20 20 20 20 7c 0d 20 20 20 20 20 20 20 7c 20 20 | |. | | 00001e80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001e90 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7c | || 00001ea0 0d 20 20 20 20 20 20 20 7c 20 20 20 20 41 55 54 |. | AUT| 00001eb0 4f 20 34 34 30 2c 31 30 20 20 20 20 20 20 20 20 |O 440,10 | 00001ec0 20 20 20 20 20 20 20 20 20 20 7c 0d 20 20 20 20 | |. | 00001ed0 20 20 20 7c 20 20 20 20 2e 6d 6f 75 20 20 20 20 | | .mou | 00001ee0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001ef0 20 20 20 20 20 7c 0d 20 20 20 20 20 20 20 7c 20 | |. | | 00001f00 20 20 20 5c 20 53 74 61 72 74 20 61 64 64 72 65 | \ Start addre| 00001f10 73 73 20 3d 20 26 44 36 38 20 28 26 30 29 20 20 |ss = &D68 (&0) | 00001f20 7c 0d 20 20 20 20 20 20 20 7c 20 20 20 20 5c 20 ||. | \ | 00001f30 45 6e 64 20 61 64 64 72 65 73 73 20 3d 20 26 44 |End address = &D| 00001f40 39 41 20 28 26 33 32 29 20 20 20 7c 0d 20 20 20 |9A (&32) |. | 00001f50 20 20 20 20 7c 20 20 20 20 45 51 55 44 20 26 35 | | EQUD &5| 00001f60 41 34 36 34 44 32 35 20 5c 20 26 33 20 2d 20 26 |A464D25 \ &3 - &| 00001f70 30 20 20 20 20 20 7c 0d 20 20 20 20 20 20 20 7c |0 |. || 00001f80 20 20 20 20 45 51 55 44 20 26 32 38 39 44 44 37 | EQUD &289DD7| 00001f90 32 31 20 5c 20 26 37 20 2d 20 26 34 20 20 20 20 |21 \ &7 - &4 | 00001fa0 20 7c 0d 20 20 20 20 20 20 20 7c 20 20 20 20 45 | |. | E| 00001fb0 51 55 44 20 26 35 39 37 35 37 35 38 37 20 5c 20 |QUD &59757587 \ | 00001fc0 26 42 20 2d 20 26 38 20 20 20 20 20 7c 0d 20 20 |&B - &8 |. | 00001fd0 20 20 20 20 20 7c 20 20 20 20 45 51 55 44 20 26 | | EQUD &| 00001fe0 41 45 45 32 38 32 37 38 20 5c 20 26 46 20 2d 20 |AEE28278 \ &F - | 00001ff0 26 43 20 20 20 20 20 7c 0d 20 20 20 20 20 20 20 |&C |. | 00002000 7c 20 20 20 20 45 51 55 44 20 26 30 39 45 31 42 || EQUD &09E1B| 00002010 35 34 32 20 5c 20 26 31 33 20 2d 20 26 31 30 20 |542 \ &13 - &10 | 00002020 20 20 7c 0d 20 20 20 20 20 20 20 7c 20 20 20 20 | |. | | 00002030 45 51 55 44 20 26 42 33 37 32 42 42 41 41 20 5c |EQUD &B372BBAA \| 00002040 20 26 31 37 20 2d 20 26 31 34 20 20 20 7c 0d 20 | &17 - &14 |. | 00002050 20 20 20 20 20 20 7c 20 20 20 20 45 51 55 44 20 | | EQUD | 00002060 26 45 45 41 41 32 37 38 36 20 5c 20 26 31 42 20 |&EEAA2786 \ &1B | 00002070 2d 20 26 31 38 20 20 20 7c 0d 20 20 20 20 20 20 |- &18 |. | 00002080 20 7c 20 20 20 20 45 51 55 44 20 26 39 44 36 41 | | EQUD &9D6A| 00002090 43 44 33 41 20 5c 20 26 31 46 20 2d 20 26 31 43 |CD3A \ &1F - &1C| 000020a0 20 20 20 7c 0d 20 20 20 20 20 20 20 7c 20 20 20 | |. | | 000020b0 20 45 51 55 44 20 26 42 37 32 45 42 34 42 43 20 | EQUD &B72EB4BC | 000020c0 5c 20 26 32 33 20 2d 20 26 32 30 20 20 20 7c 0d |\ &23 - &20 |.| 000020d0 20 20 20 20 20 20 20 7c 20 20 20 20 45 51 55 44 | | EQUD| 000020e0 20 26 31 41 43 41 37 32 41 43 20 5c 20 26 32 37 | &1ACA72AC \ &27| 000020f0 20 2d 20 26 32 34 20 20 20 7c 0d 20 20 20 20 20 | - &24 |. | 00002100 20 20 7c 20 20 20 20 45 51 55 44 20 26 43 41 37 | | EQUD &CA7| 00002110 34 44 32 33 41 20 5c 20 26 32 42 20 2d 20 26 32 |4D23A \ &2B - &2| 00002120 38 20 20 20 7c 0d 20 20 20 20 20 20 20 7c 20 20 |8 |. | | 00002130 20 20 45 51 55 44 20 26 30 46 32 45 34 41 36 41 | EQUD &0F2E4A6A| 00002140 20 5c 20 26 32 46 20 2d 20 26 32 43 20 20 20 7c | \ &2F - &2C || 00002150 0d 20 20 20 20 20 20 20 7c 20 20 20 20 45 51 55 |. | EQU| 00002160 44 20 26 32 44 41 44 35 39 44 31 20 5c 20 26 33 |D &2DAD59D1 \ &3| 00002170 33 20 2d 20 26 33 30 20 20 20 7c 0d 20 20 20 20 |3 - &30 |. | 00002180 20 20 20 7c 20 20 20 20 20 20 20 20 20 20 20 20 | | | 00002190 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000021a0 20 20 20 20 20 7c 0d 20 20 20 20 20 20 20 7c 20 | |. | | 000021b0 20 41 6e 6f 74 68 65 72 20 28 59 2f 4e 29 20 4e | Another (Y/N) N| 000021c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000021d0 7c 0d 20 20 20 20 20 20 20 7c 20 20 20 20 20 20 ||. | | 000021e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000021f0 20 20 20 20 20 20 20 20 20 20 20 7c 0d 20 20 20 | |. | 00002200 20 20 20 20 2b 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d | +-----------| 00002210 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| 00002220 2d 2d 2d 2d 2d 2d 2b 0d 0d 46 69 67 75 72 65 20 |------+..Figure | 00002230 32 2e 20 54 68 65 20 6f 75 74 70 75 74 20 66 72 |2. The output fr| 00002240 6f 6d 20 74 68 65 20 70 72 6f 67 72 61 6d 20 43 |om the program C| 00002250 52 45 41 54 45 0d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |REATE.----------| 00002260 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00002280 2d 2d 0d 0d 0d 54 68 65 20 70 72 6f 67 72 61 6d |--...The program| 00002290 20 43 52 45 41 54 45 20 61 6c 6c 6f 77 73 20 79 | CREATE allows y| 000022a0 6f 75 20 74 6f 20 73 70 65 63 69 66 79 20 74 68 |ou to specify th| 000022b0 65 20 6c 69 6e 65 20 6e 75 6d 62 65 72 73 20 61 |e line numbers a| 000022c0 6e 64 20 61 20 6c 61 62 65 6c 20 74 6f 0d 62 65 |nd a label to.be| 000022d0 20 75 73 65 64 20 74 6f 20 6d 61 72 6b 20 74 68 | used to mark th| 000022e0 65 20 62 65 67 69 6e 6e 69 6e 67 20 6f 66 20 74 |e beginning of t| 000022f0 68 65 20 64 61 74 61 2e 20 54 68 69 73 20 69 6e |he data. This in| 00002300 66 6f 72 6d 61 74 69 6f 6e 20 69 73 20 73 70 6f |formation is spo| 00002310 6f 6c 65 64 0d 69 6e 74 6f 20 74 68 65 20 6e 61 |oled.into the na| 00002320 6d 65 64 20 66 69 6c 65 2e 20 54 68 65 20 64 61 |med file. The da| 00002330 74 61 20 66 6f 72 20 4d 4f 55 2d 20 61 6e 64 20 |ta for MOU- and | 00002340 2d 54 48 20 63 61 6e 20 62 65 20 63 72 65 61 74 |-TH can be creat| 00002350 65 64 20 69 6e 20 74 68 69 73 20 77 61 79 0d 61 |ed in this way.a| 00002360 6e 64 20 2a 45 58 45 43 65 64 20 69 6e 74 6f 20 |nd *EXECed into | 00002370 74 68 65 20 70 72 6f 67 72 61 6d 20 4d 4f 55 54 |the program MOUT| 00002380 48 2e 20 54 68 69 73 20 70 72 6f 67 72 61 6d 20 |H. This program | 00002390 73 69 6d 70 6c 79 20 74 61 6b 65 73 20 74 68 65 |simply takes the| 000023a0 20 73 70 65 65 63 68 0d 64 61 74 61 20 66 6f 72 | speech.data for| 000023b0 20 74 68 65 20 74 77 6f 20 77 6f 72 64 2d 70 61 | the two word-pa| 000023c0 72 74 73 20 61 6e 64 20 73 65 6e 64 73 20 74 68 |rts and sends th| 000023d0 65 6e 20 74 6f 20 74 68 65 20 73 70 65 65 63 68 |en to the speech| 000023e0 20 70 72 6f 63 65 73 73 6f 72 20 75 73 69 6e 67 | processor using| 000023f0 0d 74 68 65 20 53 70 65 61 6b 20 45 78 74 65 72 |.the Speak Exter| 00002400 6e 61 6c 20 63 6f 6d 6d 61 6e 64 2e 20 59 6f 75 |nal command. You| 00002410 20 73 68 6f 75 6c 64 20 6e 6f 74 65 20 74 68 61 | should note tha| 00002420 74 20 69 74 20 69 73 20 65 73 73 65 6e 74 69 61 |t it is essentia| 00002430 6c 20 74 6f 20 75 73 65 0d 74 68 65 20 72 6f 75 |l to use.the rou| 00002440 74 69 6e 65 20 6c 61 62 65 6c 65 64 20 27 73 74 |tine labeled 'st| 00002450 61 74 75 73 27 20 28 69 6e 20 6c 69 6e 65 73 20 |atus' (in lines | 00002460 33 37 30 20 74 6f 20 34 33 30 29 20 61 66 74 65 |370 to 430) afte| 00002470 72 20 73 70 65 61 6b 69 6e 67 20 65 61 63 68 0d |r speaking each.| 00002480 77 6f 72 64 2d 70 61 72 74 2e 20 54 68 69 73 20 |word-part. This | 00002490 72 6f 75 74 69 6e 65 20 77 61 69 74 73 20 75 6e |routine waits un| 000024a0 74 69 6c 20 74 68 65 20 54 61 6c 6b 20 53 74 61 |til the Talk Sta| 000024b0 74 75 73 20 62 69 74 20 69 73 20 63 6c 65 61 72 |tus bit is clear| 000024c0 20 62 65 66 6f 72 65 0d 67 6f 69 6e 67 20 6f 6e | before.going on| 000024d0 20 74 6f 20 74 68 65 20 6e 65 78 74 20 77 6f 72 | to the next wor| 000024e0 64 2d 70 61 72 74 2e 0d 0d 0d 20 20 20 31 30 20 |d-part.... 10 | 000024f0 52 45 4d 3a 20 4d 4f 55 54 48 0d 20 20 20 32 30 |REM: MOUTH. 20| 00002500 20 44 49 4d 20 6d 63 6f 64 65 20 26 32 30 30 0d | DIM mcode &200.| 00002510 20 20 20 33 30 20 63 6f 75 6e 74 3d 26 37 30 0d | 30 count=&70.| 00002520 20 20 20 34 30 20 79 72 65 67 3d 26 37 31 0d 20 | 40 yreg=&71. | 00002530 20 20 35 30 20 61 64 64 72 65 73 73 3d 26 37 32 | 50 address=&72| 00002540 0d 20 20 20 36 30 20 6f 73 62 79 74 65 3d 26 46 |. 60 osbyte=&F| 00002550 46 46 34 0d 20 20 20 37 30 20 46 4f 52 70 61 73 |FF4. 70 FORpas| 00002560 73 3d 30 54 4f 32 53 54 45 50 32 0d 20 20 20 38 |s=0TO2STEP2. 8| 00002570 30 20 50 25 3d 6d 63 6f 64 65 0d 20 20 20 39 30 |0 P%=mcode. 90| 00002580 20 5b 20 20 20 20 20 20 20 4f 50 54 20 70 61 73 | [ OPT pas| 00002590 73 0d 20 20 31 30 30 20 20 20 20 20 20 20 20 20 |s. 100 | 000025a0 4c 44 41 20 23 26 33 33 20 20 20 20 20 20 5c 20 |LDA #&33 \ | 000025b0 6f 66 66 73 65 74 20 74 6f 20 6c 61 73 74 20 62 |offset to last b| 000025c0 79 74 65 20 2b 31 0d 20 20 31 31 30 20 20 20 20 |yte +1. 110 | 000025d0 20 20 20 20 20 4c 44 58 20 23 6d 6f 75 20 4d 4f | LDX #mou MO| 000025e0 44 20 32 35 36 0d 20 20 31 32 30 20 20 20 20 20 |D 256. 120 | 000025f0 20 20 20 20 4c 44 59 20 23 6d 6f 75 20 44 49 56 | LDY #mou DIV| 00002600 20 32 35 36 0d 20 20 31 33 30 20 20 20 20 20 20 | 256. 130 | 00002610 20 20 20 4a 53 52 20 73 70 65 78 74 0d 20 20 31 | JSR spext. 1| 00002620 34 30 20 20 20 20 20 20 20 20 20 4c 44 41 20 23 |40 LDA #| 00002630 26 31 36 20 20 20 20 20 20 5c 20 6f 66 66 73 65 |&16 \ offse| 00002640 74 20 74 6f 20 6c 61 73 74 20 62 79 74 65 20 2b |t to last byte +| 00002650 31 0d 20 20 31 35 30 20 20 20 20 20 20 20 20 20 |1. 150 | 00002660 4c 44 58 20 23 74 68 20 4d 4f 44 20 32 35 36 0d |LDX #th MOD 256.| 00002670 20 20 31 36 30 20 20 20 20 20 20 20 20 20 4c 44 | 160 LD| 00002680 59 20 23 74 68 20 44 49 56 20 32 35 36 0d 20 20 |Y #th DIV 256. | 00002690 31 37 30 20 20 20 20 20 20 20 20 20 4a 53 52 20 |170 JSR | 000026a0 73 70 65 78 74 0d 20 20 31 38 30 20 20 20 20 20 |spext. 180 | 000026b0 20 20 20 20 52 54 53 0d 20 20 31 39 30 20 2e 73 | RTS. 190 .s| 000026c0 70 65 78 74 0d 20 20 32 30 30 20 20 20 20 20 20 |pext. 200 | 000026d0 20 20 20 53 54 41 20 63 6f 75 6e 74 20 20 20 20 | STA count | 000026e0 20 5c 20 6f 66 66 73 65 74 20 74 6f 20 6c 61 73 | \ offset to las| 000026f0 74 20 62 79 74 65 20 2b 20 31 0d 20 20 32 31 30 |t byte + 1. 210| 00002700 20 20 20 20 20 20 20 20 20 53 54 58 20 61 64 64 | STX add| 00002710 72 65 73 73 20 20 20 5c 20 4c 53 42 20 6f 66 20 |ress \ LSB of | 00002720 64 61 74 61 20 61 64 64 72 65 73 73 0d 20 20 32 |data address. 2| 00002730 32 30 20 20 20 20 20 20 20 20 20 53 54 59 20 61 |20 STY a| 00002740 64 64 72 65 73 73 2b 31 20 5c 20 4d 53 42 20 6f |ddress+1 \ MSB o| 00002750 66 20 64 61 74 61 20 61 64 64 72 65 73 73 0d 20 |f data address. | 00002760 20 32 33 30 20 20 20 20 20 20 20 20 20 4c 44 41 | 230 LDA| 00002770 20 23 26 39 46 20 20 20 20 20 20 5c 20 77 72 69 | #&9F \ wri| 00002780 74 65 20 74 6f 20 73 70 65 65 63 68 20 70 72 6f |te to speech pro| 00002790 63 65 73 73 6f 72 0d 20 20 32 34 30 20 20 20 20 |cessor. 240 | 000027a0 20 20 20 20 20 4c 44 59 20 23 26 36 30 20 20 20 | LDY #&60 | 000027b0 20 20 20 5c 20 53 70 65 61 6b 20 45 78 74 65 72 | \ Speak Exter| 000027c0 6e 61 6c 20 63 6f 6d 6d 61 6e 64 0d 20 20 32 35 |nal command. 25| 000027d0 30 20 20 20 20 20 20 20 20 20 4a 53 52 20 6f 73 |0 JSR os| 000027e0 62 79 74 65 0d 20 20 32 36 30 20 20 20 20 20 20 |byte. 260 | 000027f0 20 20 20 4c 44 59 20 23 30 20 20 20 20 20 20 20 | LDY #0 | 00002800 20 5c 20 73 74 61 72 74 20 6f 66 66 73 65 74 20 | \ start offset | 00002810 61 74 20 7a 65 72 6f 0d 20 20 32 37 30 20 20 20 |at zero. 270 | 00002820 20 20 20 20 20 20 53 54 59 20 79 72 65 67 20 20 | STY yreg | 00002830 20 20 20 20 5c 20 63 75 72 72 65 6e 74 20 76 61 | \ current va| 00002840 6c 75 65 20 6f 66 20 6f 66 66 73 65 74 0d 20 20 |lue of offset. | 00002850 32 38 30 20 2e 65 78 6c 6f 6f 70 0d 20 20 32 39 |280 .exloop. 29| 00002860 30 20 20 20 20 20 20 20 20 20 4c 44 41 20 28 61 |0 LDA (a| 00002870 64 64 72 65 73 73 29 2c 59 20 5c 20 6c 6f 61 64 |ddress),Y \ load| 00002880 20 6e 65 78 74 20 64 61 74 61 20 62 79 74 65 0d | next data byte.| 00002890 20 20 33 30 30 20 20 20 20 20 20 20 20 20 54 41 | 300 TA| 000028a0 59 20 20 20 20 20 20 20 20 20 20 20 5c 20 64 61 |Y \ da| 000028b0 74 61 20 62 79 74 65 20 69 6e 74 6f 20 59 20 72 |ta byte into Y r| 000028c0 65 67 69 73 74 65 72 0d 20 20 33 31 30 20 20 20 |egister. 310 | 000028d0 20 20 20 20 20 20 4c 44 41 20 23 26 39 46 20 20 | LDA #&9F | 000028e0 20 20 20 20 5c 20 77 72 69 74 65 20 74 6f 20 73 | \ write to s| 000028f0 70 65 65 63 68 20 70 72 6f 63 65 73 73 6f 72 0d |peech processor.| 00002900 20 20 33 32 30 20 20 20 20 20 20 20 20 20 4a 53 | 320 JS| 00002910 52 20 6f 73 62 79 74 65 20 20 20 20 5c 20 70 75 |R osbyte \ pu| 00002920 74 20 64 61 74 61 20 62 79 74 65 20 69 6e 20 46 |t data byte in F| 00002930 49 46 4f 20 62 75 66 66 65 72 0d 20 20 33 33 30 |IFO buffer. 330| 00002940 20 20 20 20 20 20 20 20 20 49 4e 43 20 79 72 65 | INC yre| 00002950 67 20 20 20 20 20 20 5c 20 69 6e 63 72 65 6d 65 |g \ increme| 00002960 6e 74 20 6f 66 66 73 65 74 0d 20 20 33 34 30 20 |nt offset. 340 | 00002970 20 20 20 20 20 20 20 20 4c 44 59 20 79 72 65 67 | LDY yreg| 00002980 20 20 20 20 20 20 5c 20 6c 6f 61 64 20 59 20 77 | \ load Y w| 00002990 69 74 68 20 63 75 72 72 65 6e 74 20 6f 66 66 73 |ith current offs| 000029a0 65 74 0d 20 20 33 35 30 20 20 20 20 20 20 20 20 |et. 350 | 000029b0 20 43 50 59 20 63 6f 75 6e 74 20 20 20 20 20 5c | CPY count \| 000029c0 20 63 6f 6d 70 61 72 65 20 63 75 72 72 65 6e 74 | compare current| 000029d0 20 77 69 74 68 20 6d 61 78 2e 20 6f 66 66 73 65 | with max. offse| 000029e0 74 0d 20 20 33 36 30 20 20 20 20 20 20 20 20 20 |t. 360 | 000029f0 42 43 43 20 65 78 6c 6f 6f 70 20 20 20 20 5c 20 |BCC exloop \ | 00002a00 62 72 61 6e 63 68 20 69 66 20 6d 6f 72 65 20 64 |branch if more d| 00002a10 61 74 61 20 74 6f 20 62 65 20 73 65 6e 74 0d 20 |ata to be sent. | 00002a20 20 33 37 30 20 2e 73 74 61 74 75 73 0d 20 20 33 | 370 .status. 3| 00002a30 38 30 20 20 20 20 20 20 20 20 20 4c 44 41 20 23 |80 LDA #| 00002a40 26 39 45 20 20 20 20 20 20 5c 20 72 65 61 64 20 |&9E \ read | 00002a50 73 70 65 65 63 68 20 70 72 6f 63 65 73 73 6f 72 |speech processor| 00002a60 20 73 74 61 74 75 73 20 72 65 67 69 73 74 65 72 | status register| 00002a70 0d 20 20 33 39 30 20 20 20 20 20 20 20 20 20 4a |. 390 J| 00002a80 53 52 20 6f 73 62 79 74 65 0d 20 20 34 30 30 20 |SR osbyte. 400 | 00002a90 20 20 20 20 20 20 20 20 54 59 41 20 20 20 20 20 | TYA | 00002aa0 20 20 20 20 20 20 5c 20 73 74 61 74 75 73 20 72 | \ status r| 00002ab0 65 67 69 73 74 65 72 20 69 6e 20 59 20 74 72 61 |egister in Y tra| 00002ac0 6e 73 66 65 72 65 64 20 74 6f 20 41 0d 20 20 34 |nsfered to A. 4| 00002ad0 31 30 20 20 20 20 20 20 20 20 20 52 4f 4c 20 41 |10 ROL A| 00002ae0 20 20 20 20 20 20 20 20 20 5c 20 62 69 74 20 37 | \ bit 7| 00002af0 20 28 74 61 6c 6b 20 73 74 61 74 75 73 29 20 69 | (talk status) i| 00002b00 6e 74 6f 20 63 61 72 72 79 0d 20 20 34 32 30 20 |nto carry. 420 | 00002b10 20 20 20 20 20 20 20 20 42 43 53 20 73 74 61 74 | BCS stat| 00002b20 75 73 20 20 20 20 5c 20 63 61 72 72 79 20 73 65 |us \ carry se| 00002b30 74 20 69 66 20 73 74 69 6c 6c 20 73 70 65 61 6b |t if still speak| 00002b40 69 6e 67 0d 20 20 34 33 30 20 20 20 20 20 20 20 |ing. 430 | 00002b50 20 20 52 54 53 0d 20 20 34 34 30 20 2e 6d 6f 75 | RTS. 440 .mou| 00002b60 0d 20 20 34 35 30 20 20 20 20 20 20 20 20 20 20 |. 450 | 00002b70 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5c 20 | \ | 00002b80 53 74 61 72 74 20 61 64 64 72 65 73 73 20 3d 20 |Start address = | 00002b90 26 44 36 38 20 28 26 30 29 0d 20 20 34 36 30 20 |&D68 (&0). 460 | 00002ba0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002bb0 20 20 20 20 20 20 20 5c 20 45 6e 64 20 61 64 64 | \ End add| 00002bc0 72 65 73 73 20 3d 20 26 44 39 41 20 28 26 33 32 |ress = &D9A (&32| 00002bd0 29 0d 20 20 34 37 30 20 20 20 20 20 20 20 20 20 |). 470 | 00002be0 45 51 55 44 20 26 35 41 34 36 34 44 32 35 20 5c |EQUD &5A464D25 \| 00002bf0 20 26 33 20 2d 20 26 30 0d 20 20 34 38 30 20 20 | &3 - &0. 480 | 00002c00 20 20 20 20 20 20 20 45 51 55 44 20 26 32 38 39 | EQUD &289| 00002c10 44 44 37 32 31 20 5c 20 26 37 20 2d 20 26 34 0d |DD721 \ &7 - &4.| 00002c20 20 20 34 39 30 20 20 20 20 20 20 20 20 20 45 51 | 490 EQ| 00002c30 55 44 20 26 35 39 37 35 37 35 38 37 20 5c 20 26 |UD &59757587 \ &| 00002c40 42 20 2d 20 26 38 0d 20 20 35 30 30 20 20 20 20 |B - &8. 500 | 00002c50 20 20 20 20 20 45 51 55 44 20 26 41 45 45 32 38 | EQUD &AEE28| 00002c60 32 37 38 20 5c 20 26 46 20 2d 20 26 43 0d 20 20 |278 \ &F - &C. | 00002c70 35 31 30 20 20 20 20 20 20 20 20 20 45 51 55 44 |510 EQUD| 00002c80 20 26 30 39 45 31 42 35 34 32 20 5c 20 26 31 33 | &09E1B542 \ &13| 00002c90 20 2d 20 26 31 30 0d 20 20 35 32 30 20 20 20 20 | - &10. 520 | 00002ca0 20 20 20 20 20 45 51 55 44 20 26 42 33 37 32 42 | EQUD &B372B| 00002cb0 42 41 41 20 5c 20 26 31 37 20 2d 20 26 31 34 0d |BAA \ &17 - &14.| 00002cc0 20 20 35 33 30 20 20 20 20 20 20 20 20 20 45 51 | 530 EQ| 00002cd0 55 44 20 26 45 45 41 41 32 37 38 36 20 5c 20 26 |UD &EEAA2786 \ &| 00002ce0 31 42 20 2d 20 26 31 38 0d 20 20 35 34 30 20 20 |1B - &18. 540 | 00002cf0 20 20 20 20 20 20 20 45 51 55 44 20 26 39 44 36 | EQUD &9D6| 00002d00 41 43 44 33 41 20 5c 20 26 31 46 20 2d 20 26 31 |ACD3A \ &1F - &1| 00002d10 43 0d 20 20 35 35 30 20 20 20 20 20 20 20 20 20 |C. 550 | 00002d20 45 51 55 44 20 26 42 37 32 45 42 34 42 43 20 5c |EQUD &B72EB4BC \| 00002d30 20 26 32 33 20 2d 20 26 32 30 0d 20 20 35 36 30 | &23 - &20. 560| 00002d40 20 20 20 20 20 20 20 20 20 45 51 55 44 20 26 31 | EQUD &1| 00002d50 41 43 41 37 32 41 43 20 5c 20 26 32 37 20 2d 20 |ACA72AC \ &27 - | 00002d60 26 32 34 0d 20 20 35 37 30 20 20 20 20 20 20 20 |&24. 570 | 00002d70 20 20 45 51 55 44 20 26 43 41 37 34 44 32 33 41 | EQUD &CA74D23A| 00002d80 20 5c 20 26 32 42 20 2d 20 26 32 38 0d 20 20 35 | \ &2B - &28. 5| 00002d90 38 30 20 20 20 20 20 20 20 20 20 45 51 55 44 20 |80 EQUD | 00002da0 26 30 46 32 45 34 41 36 41 20 5c 20 26 32 46 20 |&0F2E4A6A \ &2F | 00002db0 2d 20 26 32 43 0d 20 20 35 39 30 20 20 20 20 20 |- &2C. 590 | 00002dc0 20 20 20 20 45 51 55 44 20 26 32 44 41 44 35 39 | EQUD &2DAD59| 00002dd0 44 31 20 5c 20 26 33 33 20 2d 20 26 33 30 0d 20 |D1 \ &33 - &30. | 00002de0 20 36 30 30 20 2e 74 68 0d 20 20 36 31 30 20 20 | 600 .th. 610 | 00002df0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00002e00 20 20 20 20 20 20 5c 20 53 74 61 72 74 20 61 64 | \ Start ad| 00002e10 64 72 65 73 73 20 3d 20 26 33 44 43 20 28 26 30 |dress = &3DC (&0| 00002e20 29 0d 20 20 36 32 30 20 20 20 20 20 20 20 20 20 |). 620 | 00002e30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 5c | \| 00002e40 20 45 6e 64 20 61 64 64 72 65 73 73 20 3d 20 26 | End address = &| 00002e50 33 46 31 20 28 26 31 35 29 0d 20 20 36 33 30 20 |3F1 (&15). 630 | 00002e60 20 20 20 20 20 20 20 20 45 51 55 44 20 26 39 34 | EQUD &94| 00002e70 32 32 31 38 30 38 20 5c 20 26 33 20 2d 20 26 30 |221808 \ &3 - &0| 00002e80 0d 20 20 36 34 30 20 20 20 20 20 20 20 20 20 45 |. 640 E| 00002e90 51 55 44 20 26 44 43 45 38 30 32 30 32 20 5c 20 |QUD &DCE80202 \ | 00002ea0 26 37 20 2d 20 26 34 0d 20 20 36 35 30 20 20 20 |&7 - &4. 650 | 00002eb0 20 20 20 20 20 20 45 51 55 44 20 26 42 38 35 44 | EQUD &B85D| 00002ec0 30 30 38 35 20 5c 20 26 42 20 2d 20 26 38 0d 20 |0085 \ &B - &8. | 00002ed0 20 36 36 30 20 20 20 20 20 20 20 20 20 45 51 55 | 660 EQU| 00002ee0 44 20 26 33 30 38 37 32 30 33 31 20 5c 20 26 46 |D &30872031 \ &F| 00002ef0 20 2d 20 26 43 0d 20 20 36 37 30 20 20 20 20 20 | - &C. 670 | 00002f00 20 20 20 20 45 51 55 44 20 26 46 45 39 39 30 34 | EQUD &FE9904| 00002f10 30 34 20 5c 20 26 31 33 20 2d 20 26 31 30 0d 20 |04 \ &13 - &10. | 00002f20 20 36 38 30 20 20 20 20 20 20 20 20 20 45 51 55 | 680 EQU| 00002f30 44 20 26 30 34 35 41 31 35 34 44 20 5c 20 26 31 |D &045A154D \ &1| 00002f40 37 20 2d 20 26 31 34 0d 20 20 36 39 30 20 5d 0d |7 - &14. 690 ].| 00002f50 20 20 37 30 30 20 4e 45 58 54 0d 20 20 37 31 30 | 700 NEXT. 710| 00002f60 20 43 41 4c 4c 20 6d 63 6f 64 65 0d | CALL mcode.| 00002f6c