Home » CEEFAX disks » telesoftware10.adl » 08-10-88/BEWARE

08-10-88/BEWARE

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: 08-10-88/BEWARE
Read OK:
File size: 0693 bytes
Load address: FFFF1900
Exec address: FFFF8023
File contents
   10REM: BEWARE
   20REM: Writing to the PHROM address register
   30REM: must be followed by a write to speech
   40REM: processor command (osbyte &9F with
   50REM: Y = either &10, &30, &50 or &70) before
   60REM: writing to the address register again.
   70REM: Otherwise the second write results in
   80REM: an error in the address register.
   90osnewl=&FFE7
  100oswrch=&FFEE
  110osbyte=&FFF4
  120DIM mcode &100
  130FORpass=0TO2STEP2
  140P%=mcode
  150[OPT pass
  160LDA #&EB
  170LDX #0
  180LDY #&FF
  190JSR osbyte \ check for Acorn Speech upgrade
  200CPX #&FF
  210BEQ start
  220BRK
  230BRK
  240EQUS "No Speech upgrade"
  250BRK
  260.start
  270JSR address \ (TONE1) data address
  280JSR read \ read the byte
  290JSR printhex \ should be &B1
  300JSR address \ (TONE1) data address
  310\
  320\ use LDY #0 in line 350 to generate an error
  330\ or just delete lines 350, 360 and 370
  340\
  350LDY #&70 \ &10,&30,&50,&70 work &0,&20,&4n,&60 don't
  360LDA #&9F
  370JSR osbyte
  380\
  390JSR address \ (TONE1) data address
  400JSR read \ read the byte
  410JSR printhex \ should be &B1
  420JSR osnewl
  430RTS \ return to BASIC
  440.address
  450LDA #&9F \ write to speech processor
  460LDY #&42 \ address &0272
  470JSR osbyte
  480LDY #&47
  490JSR osbyte
  500LDY #&42
  510JSR osbyte
  520LDY #&4C
  530JSR osbyte
  540LDY #&43
  550JMP osbyte \ osbyte and return
  560.read
  570LDA #&9F \ write to speech processor
  580LDY #&10 \ read byte command
  590JSR osbyte \ send read byte command
  600LDA #&9E \ read from speech processor
  610JSR osbyte \ read next byte from PHROM
  620TYA \ result in accumulator
  630RTS
  640.printhex
  650PHA
  660LSR A
  670LSR A
  680LSR A
  690LSR A
  700JSR nybble
  710PLA
  720.nybble
  730AND #&F
  740SED
  750CLC
  760ADC #&90
  770ADC #&40
  780CLD
  790JMP oswrch
  800]
  810NEXT
  820CALL mcode


�: BEWARE
,�: Writing to the PHROM address register
,�: must be followed by a write to speech
()�: processor command (osbyte &9F with
2.�: Y = either &10, &30, &50 or &70) before
<-�: writing to the address register again.
F,�: Otherwise the second write results in
P(�: an error in the address register.
Zosnewl=&FFE7
doswrch=&FFEE
nosbyte=&FFF4
x� mcode &100
��pass=0�2�2
�P%=mcode
�
[OPT pass
�LDA #&EB
�
LDX #0
�LDY #&FF
�/JSR osbyte \ check for Acorn Speech upgrade
�CPX #&FF
�
BEQ start
�BRK
�BRK
�EQUS "No Speech upgrade"
�BRK

.start
%JSR address \ (�NE1) data address
JSR read \ read the byte
" JSR printhex \ should be &B1
,%JSR address \ (�NE1) data address
6\
@1\ use LDY #0 in line 350 to generate an error
J+\ or just delete lines 350, 360 and 370
T\
^8LDY #&70 \ &10,&30,&50,&70 work &0,&20,&4n,&60 don't
hLDA #&9F
rJSR osbyte
|\
�%JSR address \ (�NE1) data address
�JSR read \ read the byte
� JSR printhex \ should be &B1
�JSR osnewl
�RTS \ return to BASIC
�.address
�(LDA #&9F \ write to speech processor
�LDY #&42 \ address &0272
�JSR osbyte
�LDY #&47
�JSR osbyte
�LDY #&42
�JSR osbyte
LDY #&4C
JSR osbyte
LDY #&43
&"JMP osbyte \ osbyte and return
0	.read
:(LDA #&9F \ write to speech processor
D LDY #&10 \ read byte command
N'JSR osbyte \ send read byte command
X)LDA #&9E \ read from speech processor
b*JSR osbyte \ read next byte from PHROM
lTYA \ result in accumulator
vRTS
�
.printhex
�PHA
�	LSR A
�	LSR A
�	LSR A
�	LSR A
�JSR nybble
�PLA
�.nybble
�	� #&F
�SED
�CLC
�ADC #&90
ADC #&40
CLD
JMP oswrch
 ]
*�
4� mcode
�
00000000  0d 00 0a 0d f4 3a 20 42  45 57 41 52 45 0d 00 14  |.....: BEWARE...|
00000010  2c f4 3a 20 57 72 69 74  69 6e 67 20 74 6f 20 74  |,.: Writing to t|
00000020  68 65 20 50 48 52 4f 4d  20 61 64 64 72 65 73 73  |he PHROM address|
00000030  20 72 65 67 69 73 74 65  72 0d 00 1e 2c f4 3a 20  | register...,.: |
00000040  6d 75 73 74 20 62 65 20  66 6f 6c 6c 6f 77 65 64  |must be followed|
00000050  20 62 79 20 61 20 77 72  69 74 65 20 74 6f 20 73  | by a write to s|
00000060  70 65 65 63 68 0d 00 28  29 f4 3a 20 70 72 6f 63  |peech..().: proc|
00000070  65 73 73 6f 72 20 63 6f  6d 6d 61 6e 64 20 28 6f  |essor command (o|
00000080  73 62 79 74 65 20 26 39  46 20 77 69 74 68 0d 00  |sbyte &9F with..|
00000090  32 2e f4 3a 20 59 20 3d  20 65 69 74 68 65 72 20  |2..: Y = either |
000000a0  26 31 30 2c 20 26 33 30  2c 20 26 35 30 20 6f 72  |&10, &30, &50 or|
000000b0  20 26 37 30 29 20 62 65  66 6f 72 65 0d 00 3c 2d  | &70) before..<-|
000000c0  f4 3a 20 77 72 69 74 69  6e 67 20 74 6f 20 74 68  |.: writing to th|
000000d0  65 20 61 64 64 72 65 73  73 20 72 65 67 69 73 74  |e address regist|
000000e0  65 72 20 61 67 61 69 6e  2e 0d 00 46 2c f4 3a 20  |er again...F,.: |
000000f0  4f 74 68 65 72 77 69 73  65 20 74 68 65 20 73 65  |Otherwise the se|
00000100  63 6f 6e 64 20 77 72 69  74 65 20 72 65 73 75 6c  |cond write resul|
00000110  74 73 20 69 6e 0d 00 50  28 f4 3a 20 61 6e 20 65  |ts in..P(.: an e|
00000120  72 72 6f 72 20 69 6e 20  74 68 65 20 61 64 64 72  |rror in the addr|
00000130  65 73 73 20 72 65 67 69  73 74 65 72 2e 0d 00 5a  |ess register...Z|
00000140  10 6f 73 6e 65 77 6c 3d  26 46 46 45 37 0d 00 64  |.osnewl=&FFE7..d|
00000150  10 6f 73 77 72 63 68 3d  26 46 46 45 45 0d 00 6e  |.oswrch=&FFEE..n|
00000160  10 6f 73 62 79 74 65 3d  26 46 46 46 34 0d 00 78  |.osbyte=&FFF4..x|
00000170  10 de 20 6d 63 6f 64 65  20 26 31 30 30 0d 00 82  |.. mcode &100...|
00000180  0f e3 70 61 73 73 3d 30  b8 32 88 32 0d 00 8c 0c  |..pass=0.2.2....|
00000190  50 25 3d 6d 63 6f 64 65  0d 00 96 0d 5b 4f 50 54  |P%=mcode....[OPT|
000001a0  20 70 61 73 73 0d 00 a0  0c 4c 44 41 20 23 26 45  | pass....LDA #&E|
000001b0  42 0d 00 aa 0a 4c 44 58  20 23 30 0d 00 b4 0c 4c  |B....LDX #0....L|
000001c0  44 59 20 23 26 46 46 0d  00 be 2f 4a 53 52 20 6f  |DY #&FF.../JSR o|
000001d0  73 62 79 74 65 20 5c 20  63 68 65 63 6b 20 66 6f  |sbyte \ check fo|
000001e0  72 20 41 63 6f 72 6e 20  53 70 65 65 63 68 20 75  |r Acorn Speech u|
000001f0  70 67 72 61 64 65 0d 00  c8 0c 43 50 58 20 23 26  |pgrade....CPX #&|
00000200  46 46 0d 00 d2 0d 42 45  51 20 73 74 61 72 74 0d  |FF....BEQ start.|
00000210  00 dc 07 42 52 4b 0d 00  e6 07 42 52 4b 0d 00 f0  |...BRK....BRK...|
00000220  1c 45 51 55 53 20 22 4e  6f 20 53 70 65 65 63 68  |.EQUS "No Speech|
00000230  20 75 70 67 72 61 64 65  22 0d 00 fa 07 42 52 4b  | upgrade"....BRK|
00000240  0d 01 04 0a 2e 73 74 61  72 74 0d 01 0e 25 4a 53  |.....start...%JS|
00000250  52 20 61 64 64 72 65 73  73 20 5c 20 28 b8 4e 45  |R address \ (.NE|
00000260  31 29 20 64 61 74 61 20  61 64 64 72 65 73 73 0d  |1) data address.|
00000270  01 18 1c 4a 53 52 20 72  65 61 64 20 5c 20 72 65  |...JSR read \ re|
00000280  61 64 20 74 68 65 20 62  79 74 65 0d 01 22 20 4a  |ad the byte.." J|
00000290  53 52 20 70 72 69 6e 74  68 65 78 20 5c 20 73 68  |SR printhex \ sh|
000002a0  6f 75 6c 64 20 62 65 20  26 42 31 0d 01 2c 25 4a  |ould be &B1..,%J|
000002b0  53 52 20 61 64 64 72 65  73 73 20 5c 20 28 b8 4e  |SR address \ (.N|
000002c0  45 31 29 20 64 61 74 61  20 61 64 64 72 65 73 73  |E1) data address|
000002d0  0d 01 36 05 5c 0d 01 40  31 5c 20 75 73 65 20 4c  |..6.\..@1\ use L|
000002e0  44 59 20 23 30 20 69 6e  20 6c 69 6e 65 20 33 35  |DY #0 in line 35|
000002f0  30 20 74 6f 20 67 65 6e  65 72 61 74 65 20 61 6e  |0 to generate an|
00000300  20 65 72 72 6f 72 0d 01  4a 2b 5c 20 6f 72 20 6a  | error..J+\ or j|
00000310  75 73 74 20 64 65 6c 65  74 65 20 6c 69 6e 65 73  |ust delete lines|
00000320  20 33 35 30 2c 20 33 36  30 20 61 6e 64 20 33 37  | 350, 360 and 37|
00000330  30 0d 01 54 05 5c 0d 01  5e 38 4c 44 59 20 23 26  |0..T.\..^8LDY #&|
00000340  37 30 20 5c 20 26 31 30  2c 26 33 30 2c 26 35 30  |70 \ &10,&30,&50|
00000350  2c 26 37 30 20 77 6f 72  6b 20 26 30 2c 26 32 30  |,&70 work &0,&20|
00000360  2c 26 34 6e 2c 26 36 30  20 64 6f 6e 27 74 0d 01  |,&4n,&60 don't..|
00000370  68 0c 4c 44 41 20 23 26  39 46 0d 01 72 0e 4a 53  |h.LDA #&9F..r.JS|
00000380  52 20 6f 73 62 79 74 65  0d 01 7c 05 5c 0d 01 86  |R osbyte..|.\...|
00000390  25 4a 53 52 20 61 64 64  72 65 73 73 20 5c 20 28  |%JSR address \ (|
000003a0  b8 4e 45 31 29 20 64 61  74 61 20 61 64 64 72 65  |.NE1) data addre|
000003b0  73 73 0d 01 90 1c 4a 53  52 20 72 65 61 64 20 5c  |ss....JSR read \|
000003c0  20 72 65 61 64 20 74 68  65 20 62 79 74 65 0d 01  | read the byte..|
000003d0  9a 20 4a 53 52 20 70 72  69 6e 74 68 65 78 20 5c  |. JSR printhex \|
000003e0  20 73 68 6f 75 6c 64 20  62 65 20 26 42 31 0d 01  | should be &B1..|
000003f0  a4 0e 4a 53 52 20 6f 73  6e 65 77 6c 0d 01 ae 19  |..JSR osnewl....|
00000400  52 54 53 20 5c 20 72 65  74 75 72 6e 20 74 6f 20  |RTS \ return to |
00000410  42 41 53 49 43 0d 01 b8  0c 2e 61 64 64 72 65 73  |BASIC.....addres|
00000420  73 0d 01 c2 28 4c 44 41  20 23 26 39 46 20 5c 20  |s...(LDA #&9F \ |
00000430  77 72 69 74 65 20 74 6f  20 73 70 65 65 63 68 20  |write to speech |
00000440  70 72 6f 63 65 73 73 6f  72 0d 01 cc 1c 4c 44 59  |processor....LDY|
00000450  20 23 26 34 32 20 5c 20  61 64 64 72 65 73 73 20  | #&42 \ address |
00000460  26 30 32 37 32 0d 01 d6  0e 4a 53 52 20 6f 73 62  |&0272....JSR osb|
00000470  79 74 65 0d 01 e0 0c 4c  44 59 20 23 26 34 37 0d  |yte....LDY #&47.|
00000480  01 ea 0e 4a 53 52 20 6f  73 62 79 74 65 0d 01 f4  |...JSR osbyte...|
00000490  0c 4c 44 59 20 23 26 34  32 0d 01 fe 0e 4a 53 52  |.LDY #&42....JSR|
000004a0  20 6f 73 62 79 74 65 0d  02 08 0c 4c 44 59 20 23  | osbyte....LDY #|
000004b0  26 34 43 0d 02 12 0e 4a  53 52 20 6f 73 62 79 74  |&4C....JSR osbyt|
000004c0  65 0d 02 1c 0c 4c 44 59  20 23 26 34 33 0d 02 26  |e....LDY #&43..&|
000004d0  22 4a 4d 50 20 6f 73 62  79 74 65 20 5c 20 6f 73  |"JMP osbyte \ os|
000004e0  62 79 74 65 20 61 6e 64  20 72 65 74 75 72 6e 0d  |byte and return.|
000004f0  02 30 09 2e 72 65 61 64  0d 02 3a 28 4c 44 41 20  |.0..read..:(LDA |
00000500  23 26 39 46 20 5c 20 77  72 69 74 65 20 74 6f 20  |#&9F \ write to |
00000510  73 70 65 65 63 68 20 70  72 6f 63 65 73 73 6f 72  |speech processor|
00000520  0d 02 44 20 4c 44 59 20  23 26 31 30 20 5c 20 72  |..D LDY #&10 \ r|
00000530  65 61 64 20 62 79 74 65  20 63 6f 6d 6d 61 6e 64  |ead byte command|
00000540  0d 02 4e 27 4a 53 52 20  6f 73 62 79 74 65 20 5c  |..N'JSR osbyte \|
00000550  20 73 65 6e 64 20 72 65  61 64 20 62 79 74 65 20  | send read byte |
00000560  63 6f 6d 6d 61 6e 64 0d  02 58 29 4c 44 41 20 23  |command..X)LDA #|
00000570  26 39 45 20 5c 20 72 65  61 64 20 66 72 6f 6d 20  |&9E \ read from |
00000580  73 70 65 65 63 68 20 70  72 6f 63 65 73 73 6f 72  |speech processor|
00000590  0d 02 62 2a 4a 53 52 20  6f 73 62 79 74 65 20 5c  |..b*JSR osbyte \|
000005a0  20 72 65 61 64 20 6e 65  78 74 20 62 79 74 65 20  | read next byte |
000005b0  66 72 6f 6d 20 50 48 52  4f 4d 0d 02 6c 1f 54 59  |from PHROM..l.TY|
000005c0  41 20 5c 20 72 65 73 75  6c 74 20 69 6e 20 61 63  |A \ result in ac|
000005d0  63 75 6d 75 6c 61 74 6f  72 0d 02 76 07 52 54 53  |cumulator..v.RTS|
000005e0  0d 02 80 0d 2e 70 72 69  6e 74 68 65 78 0d 02 8a  |.....printhex...|
000005f0  07 50 48 41 0d 02 94 09  4c 53 52 20 41 0d 02 9e  |.PHA....LSR A...|
00000600  09 4c 53 52 20 41 0d 02  a8 09 4c 53 52 20 41 0d  |.LSR A....LSR A.|
00000610  02 b2 09 4c 53 52 20 41  0d 02 bc 0e 4a 53 52 20  |...LSR A....JSR |
00000620  6e 79 62 62 6c 65 0d 02  c6 07 50 4c 41 0d 02 d0  |nybble....PLA...|
00000630  0b 2e 6e 79 62 62 6c 65  0d 02 da 09 80 20 23 26  |..nybble..... #&|
00000640  46 0d 02 e4 07 53 45 44  0d 02 ee 07 43 4c 43 0d  |F....SED....CLC.|
00000650  02 f8 0c 41 44 43 20 23  26 39 30 0d 03 02 0c 41  |...ADC #&90....A|
00000660  44 43 20 23 26 34 30 0d  03 0c 07 43 4c 44 0d 03  |DC #&40....CLD..|
00000670  16 0e 4a 4d 50 20 6f 73  77 72 63 68 0d 03 20 05  |..JMP oswrch.. .|
00000680  5d 0d 03 2a 05 ed 0d 03  34 0b d6 20 6d 63 6f 64  |]..*....4.. mcod|
00000690  65 0d ff                                          |e..|
00000693
08-10-88/BEWARE.m0
08-10-88/BEWARE.m1
08-10-88/BEWARE.m2
08-10-88/BEWARE.m4
08-10-88/BEWARE.m5