Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape33a_acorn_eu_1992_april.wav » Q.SfEcho

Q.SfEcho

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 » Personal collection » Acorn tapes » Electron_User » Electron_User_tape33a_acorn_eu_1992_april.wav
Filename: Q.SfEcho
Read OK:
File size: 0C76 bytes
Load address: FFFF1900
Exec address: FFFF801F
Duplicates

There are 3 duplicate copies of this file in the archive:

File contents
   10PRINT"BEEB BODY BUILDING COURSE"
   20PRINT"Serial Sound Sampler"
   30PRINT"Echo Chamber"
   40PRINT:PRINT"Using Internal Sound Chip"
   50PRINT"By Mike Cook"
   60PRINT
   70PRINT"Calculating look up table"
   80V=15/LOG(255)
   90P%=&900
  100FOR A%=1 TO 255
  110?P%=15-INT(LOG(A%)*V)
  120P%=P%+1
  130NEXT
  140?&900=15
  150MODE 1
  160*KEY10 OLD|M RUN|M
  170FOR PASS=0 TO 2 STEP 2
  180P%=&A00
  190[
  200OPT PASS
  210.SETUP \ INITILISE
  220SEI \ DISABLE INTERRUPTS
  230LDA #&40
  240LDY #0
  250LDX #&30
  260STA &FE6B \ ENABLE TIMER 1
  270LDA #&C0
  280STA &FE6E \ ENABLE INTERRUPT
  290LDA #0
  300STA &FE65 \ START IT OFF
  310RTS
  320.ECHO
  330JSR SETUP:JSR INIT
  340.LOOP
  350LDA (&72),Y \ GET VALUE TO OUTPUT
  360JSR SND1 \ OUTPUT IT
  370.HOLD
  380LDA &FE6D \ GET INTERRUPT FLAG
  390BPL HOLD \ LOOP UNTIL TIME OUT
  400STA &FE6D \ CLEAR INTERRUPT
  410JSR sin
  420STA (&72),Y
  430INY \ MOVE POINTER ON
  440BNE LOOP \ LOOP FOR ANOTHER
  450INC &73 \ MOVE INPUT POINTER
  460LDA &70 \ GET LIMIT
  470CMP &73 \ HAS INPUT POINTER REACHED IT
  480BNE LOOP \ BRANCH IF NOT
  490LDX #&30
  500STX &73 \ RESET IT
  510JMP LOOP
  520.sin \ SAMPLE IN
  530LDX #10:LDA #0
  540STA &FE60 \ CS AND CLOCK LOW
  550.SLOOP
  560LDA &FE60 \ GET DATA
  570LSR A:ROL &80 \ MOVE INTO MEMORY
  580LDA #2:STA &FE60 \ CLOCK HIGH
  590LDA #0:STA &FE60 \ CLOCK LOW
  600DEX : BNE SLOOP
  610LDA #6: STA &FE60
  620LDA &80 \ GET SAMPLE
  630RTS
  640.BACK
  650JSR SETUP:JSR INIT
  660.LOOPB
  670LDA (&74),Y \ GET VALUE TO OUTPUT
  680JSR SND1 \ OUTPUT IT
  690DEC &74 \ REDUCE OUTPUT POINTER
  700LDA #&FF
  710CMP &74 \ TEST FOR WRAP AROUND
  720BNE SKIP1 \ BRANCH IF NOT OVER PAGE
  730DEC &75 \ DECREMENT PAGE
  740LDA #&30 \ SEE IF IT HAS REACHED THE END
  750CMP &75
  760BNE SKIP1 \ BRANCH IF IT HAS NOT
  770LDA &70 \ GET LIMIT
  780STA &75 \ MAKE OUTPUT POINTER LIMIT
  790.SKIP1
  800JSR sin \ GET INPUT SAMPLE
  810STA (&72),Y
  820INC &72 \ MOVE ON INPUT POINTER
  830BNE SKIP2
  840INC &73 \ MOVE ON PAGE
  850LDA &70 \ GET LIMIT
  860CMP &73 \ HAS INPUT POINTER REACHED IT
  870BNE SKIP2 \ BRANCH IF NOT
  880LDA #&30 \ PUT POINTER BACK TO START
  890STA &73
  900.SKIP2
  910LDA &FE6D \ GET INTERRUPT FLAG
  920BPL SKIP2 \ LOOP UNTIL TIME OUT
  930STA &FE6D \ CLEAR INTERRUPT
  940JMP LOOPB
  950.INIT \ INITILISE SOUND CHIP
  960LDA #&FF:STA &FE43
  970LDA #&84:JSR SND
  980LDA #&00:JSR SND
  990LDA #&A4:JSR SND
 1000LDA #&00:JSR SND
 1010LDA #&C4:JSR SND
 1020LDA #&00:JSR SND
 1030LDY #0
 1040RTS
 1050.SND
 1060STA &FE4F
 1070LDX #&00:STX &FE40
 1080NOP:NOP:NOP:NOP:NOP:NOP
 1090LDX #&08:STX &FE40
 1100RTS
 1110.SND1
 1120TAX
 1130LDA &900,X \ CONVERT TO LOG
 1140ORA #&90:JSR SND
 1150ORA #&20:JSR SND
 1160EOR #&60:JSR SND
 1170RTS
 1180]
 1190NEXT
 1200CLS
 1210PROC_INSTRUCTIONS
 1220IF R%=0 THEN R%=180
 1230?&FE66=R%
 1240?&FE62=6
 1250?&72=&00:?&74=&00
 1260?&73=&30:?&75=&30
 1270REPEAT
 1280PROC_UPDATE
 1290A$=GET$
 1300IF A$="B" THEN ?&70=F%+&30:?&75=?&70:CALL BACK
 1310IF A$="E" THEN ?&70=F%+&30:CALL ECHO
 1320IF A$="R" THEN INPUT"Sample Rate ",R%:?&FE66=R%
 1330IF A$="L" THEN PROC_BLEN
 1340UNTIL FALSE
 1350DEF PROC_BLEN
 1360REPEAT
 1370INPUT"Buffer length in pages (1 to 80) ",L%
 1380UNTIL L%>0 AND L%<81
 1390IF L%=80 THEN L%=0
 1400ENDPROC
 1410DEF PROC_UPDATE
 1420PRINT TAB(0,14)
 1430PRINT "Sample rate delay :- ";R%
 1440PRINT
 1450 IF L%=0 THEN F%=80 ELSE F%=L%
 1460PRINT "Buffer length ";F%/4;"K bytes"
 1470PRINT TAB(0,20);SPC(40)
 1480PRINT TAB(0,19)
 1490ENDPROC
 1500DEF PROC_INSTRUCTIONS
 1510PRINT
 1520PRINT"BEEB BODY BUILDING COURSE"
 1530 PRINT"Echo Chamber"
 1540PRINT:PRINT"Using Internal Sound Chip"
 1550PRINT"By Mike Cook"
 1560PRINT
 1570PRINT"Options are:-"
 1580PRINT"E  - Enter the echo chamber"
 1590PRINT"B  - Backwards echo"
 1600PRINT"R  - Rate of digitising"
 1610PRINT"L  - Length of buffer"
 1620PRINT"Break to return"
 1630ENDPROC

 �"BEEB BODY BUILDING COURSE"
�"Serial Sound Sampler"
�"Echo Chamber"
("�:�"Using Internal Sound Chip"
2�"By Mike Cook"
<�
F �"Calculating look up table"
PV=15/�(255)
ZP%=&900
d� A%=1 � 255
n?P%=15-�(�(A%)*V)
xP%=P%+1
��
�?&900=15
�� 1
�*KEY10 OLD|M RUN|M
�� PASS=0 � 2 � 2
�P%=&A00
�[
�OPT PASS
�.SETUP \ INITILISE
�SEI \ DISABLE �ERRUPTS
�LDA #&40
�
LDY #0
�LDX #&30
STA &FE6B \ ENABLE TIMER 1
LDA #&C0
STA &FE6E \ ENABLE �ERRUPT
"
LDA #0
,STA &FE65 \ START IT �
6RTS
@	.ECHO
JJSR SETUP:JSR INIT
T	.LOOP
^ LDA (&72),Y \ � �UE � OUTPUT
hJSR SND1 \ OUTPUT IT
r	.HOLD
|LDA &FE6D \ � �ERRUPT FLAG
�BPL HOLD \ LOOP � � OUT
�STA &FE6D \ � �ERRUPT
�JSR sin
�STA (&72),Y
�INY \ � POINTER �
�BNE LOOP \ LOOP � ANOTHER
�INC &73 \ � � POINTER
�LDA &70 \ � LIMIT
�&CMP &73 \ HAS � POINTER REACHED IT
�BNE LOOP \ BRANCH � �
�LDX #&30
�STX &73 \ RESET IT
�JMP LOOP
.sin \ SAMPLE IN
LDX #10:LDA #0
STA &FE60 \ CS � CLOCK LOW
&
.SLOOP
0LDA &FE60 \ � �
:LSR A:ROL &80 \ � �O MEMORY
D!LDA #2:STA &FE60 \ CLOCK HIGH
N LDA #0:STA &FE60 \ CLOCK LOW
XDEX : BNE SLOOP
bLDA #6: STA &FE60
lLDA &80 \ � SAMPLE
vRTS
�	.BACK
�JSR SETUP:JSR INIT
�
.LOOPB
� LDA (&74),Y \ � �UE � OUTPUT
�JSR SND1 \ OUTPUT IT
�#DEC &74 \ REDUCE OUTPUT POINTER
�LDA #&FF
� CMP &74 \ TEST � WRAP AROUND
�!BNE SKIP1 \ BRANCH � � OVER �
�DEC &75 \ DECREMENT �
�)LDA #&30 \ SEE � IT HAS REACHED THE �
�CMP &75
�!BNE SKIP1 \ BRANCH � IT HAS �
LDA &70 \ � LIMIT
'STA &75 \ MAKE OUTPUT POINTER LIMIT

.SKIP1
 JSR sin \ � � SAMPLE
*STA (&72),Y
4INC &72 \ � � � POINTER
>
BNE SKIP2
HINC &73 \ � � �
RLDA &70 \ � LIMIT
\&CMP &73 \ HAS � POINTER REACHED IT
fBNE SKIP2 \ BRANCH � �
p'LDA #&30 \ PUT POINTER BACK � START
zSTA &73
�
.SKIP2
�LDA &FE6D \ � �ERRUPT FLAG
�BPL SKIP2 \ LOOP � � OUT
�STA &FE6D \ � �ERRUPT
�
JMP LOOPB
�.INIT \ INITILISE � CHIP
�LDA #&FF:STA &FE43
�LDA #&84:JSR SND
�LDA #&00:JSR SND
�LDA #&A4:JSR SND
�LDA #&00:JSR SND
�LDA #&C4:JSR SND
�LDA #&00:JSR SND

LDY #0
RTS
.SND
$
STA &FE4F
.LDX #&00:STX &FE40
8NOP:NOP:NOP:NOP:NOP:NOP
BLDX #&08:STX &FE40
LRTS
V	.SND1
`TAX
jLDA &900,X \ CONVERT � �
t�A #&90:JSR SND
~�A #&20:JSR SND
�� #&60:JSR SND
�RTS
�]
��
��
��_INSTRUCTIONS
�� R%=0 � R%=180
�
?&FE66=R%
�?&FE62=6
�?&72=&00:?&74=&00
�?&73=&30:?&75=&30
��
�_UPDATE

A$=�
+� A$="B" � ?&70=F%+&30:?&75=?&70:� BACK
!� A$="E" � ?&70=F%+&30:� ECHO
(+� A$="R" � �"Sample Rate ",R%:?&FE66=R%
2� A$="L" � �_BLEN
<� �
F� �_BLEN
P�
Z+�"Buffer length in pages (1 to 80) ",L%
d� L%>0 � L%<81
n� L%=80 � L%=0
x�
�� �_UPDATE
�� �0,14)
� � "Sample rate delay :- ";R%
��
� � L%=0 � F%=80 � F%=L%
�%� "Buffer length ";F%/4;"K bytes"
�� �0,20);�(40)
�� �0,19)
��
�� �_INSTRUCTIONS
��
� �"BEEB BODY BUILDING COURSE"
� �"Echo Chamber"
"�:�"Using Internal Sound Chip"
�"By Mike Cook"
�
"�"Options are:-"
,"�"E  - Enter the echo chamber"
6�"B  - Backwards echo"
@�"R  - Rate of digitising"
J�"L  - Length of buffer"
T�"Break to return"
^�
�
00000000  0d 00 0a 20 f1 22 42 45  45 42 20 42 4f 44 59 20  |... ."BEEB BODY |
00000010  42 55 49 4c 44 49 4e 47  20 43 4f 55 52 53 45 22  |BUILDING COURSE"|
00000020  0d 00 14 1b f1 22 53 65  72 69 61 6c 20 53 6f 75  |....."Serial Sou|
00000030  6e 64 20 53 61 6d 70 6c  65 72 22 0d 00 1e 13 f1  |nd Sampler".....|
00000040  22 45 63 68 6f 20 43 68  61 6d 62 65 72 22 0d 00  |"Echo Chamber"..|
00000050  28 22 f1 3a f1 22 55 73  69 6e 67 20 49 6e 74 65  |(".:."Using Inte|
00000060  72 6e 61 6c 20 53 6f 75  6e 64 20 43 68 69 70 22  |rnal Sound Chip"|
00000070  0d 00 32 13 f1 22 42 79  20 4d 69 6b 65 20 43 6f  |..2.."By Mike Co|
00000080  6f 6b 22 0d 00 3c 05 f1  0d 00 46 20 f1 22 43 61  |ok"..<....F ."Ca|
00000090  6c 63 75 6c 61 74 69 6e  67 20 6c 6f 6f 6b 20 75  |lculating look u|
000000a0  70 20 74 61 62 6c 65 22  0d 00 50 0f 56 3d 31 35  |p table"..P.V=15|
000000b0  2f ab 28 32 35 35 29 0d  00 5a 0b 50 25 3d 26 39  |/.(255)..Z.P%=&9|
000000c0  30 30 0d 00 64 10 e3 20  41 25 3d 31 20 b8 20 32  |00..d.. A%=1 . 2|
000000d0  35 35 0d 00 6e 15 3f 50  25 3d 31 35 2d a8 28 ab  |55..n.?P%=15-.(.|
000000e0  28 41 25 29 2a 56 29 0d  00 78 0b 50 25 3d 50 25  |(A%)*V)..x.P%=P%|
000000f0  2b 31 0d 00 82 05 ed 0d  00 8c 0c 3f 26 39 30 30  |+1.........?&900|
00000100  3d 31 35 0d 00 96 07 eb  20 31 0d 00 a0 16 2a 4b  |=15..... 1....*K|
00000110  45 59 31 30 20 4f 4c 44  7c 4d 20 52 55 4e 7c 4d  |EY10 OLD|M RUN|M|
00000120  0d 00 aa 14 e3 20 50 41  53 53 3d 30 20 b8 20 32  |..... PASS=0 . 2|
00000130  20 88 20 32 0d 00 b4 0b  50 25 3d 26 41 30 30 0d  | . 2....P%=&A00.|
00000140  00 be 05 5b 0d 00 c8 0c  4f 50 54 20 50 41 53 53  |...[....OPT PASS|
00000150  0d 00 d2 16 2e 53 45 54  55 50 20 5c 20 49 4e 49  |.....SETUP \ INI|
00000160  54 49 4c 49 53 45 0d 00  dc 1a 53 45 49 20 5c 20  |TILISE....SEI \ |
00000170  44 49 53 41 42 4c 45 20  a8 45 52 52 55 50 54 53  |DISABLE .ERRUPTS|
00000180  0d 00 e6 0c 4c 44 41 20  23 26 34 30 0d 00 f0 0a  |....LDA #&40....|
00000190  4c 44 59 20 23 30 0d 00  fa 0c 4c 44 58 20 23 26  |LDY #0....LDX #&|
000001a0  33 30 0d 01 04 1e 53 54  41 20 26 46 45 36 42 20  |30....STA &FE6B |
000001b0  5c 20 45 4e 41 42 4c 45  20 54 49 4d 45 52 20 31  |\ ENABLE TIMER 1|
000001c0  0d 01 0e 0c 4c 44 41 20  23 26 43 30 0d 01 18 1e  |....LDA #&C0....|
000001d0  53 54 41 20 26 46 45 36  45 20 5c 20 45 4e 41 42  |STA &FE6E \ ENAB|
000001e0  4c 45 20 a8 45 52 52 55  50 54 0d 01 22 0a 4c 44  |LE .ERRUPT..".LD|
000001f0  41 20 23 30 0d 01 2c 1a  53 54 41 20 26 46 45 36  |A #0..,.STA &FE6|
00000200  35 20 5c 20 53 54 41 52  54 20 49 54 20 87 0d 01  |5 \ START IT ...|
00000210  36 07 52 54 53 0d 01 40  09 2e 45 43 48 4f 0d 01  |6.RTS..@..ECHO..|
00000220  4a 16 4a 53 52 20 53 45  54 55 50 3a 4a 53 52 20  |J.JSR SETUP:JSR |
00000230  49 4e 49 54 0d 01 54 09  2e 4c 4f 4f 50 0d 01 5e  |INIT..T..LOOP..^|
00000240  20 4c 44 41 20 28 26 37  32 29 2c 59 20 5c 20 a5  | LDA (&72),Y \ .|
00000250  20 bb 55 45 20 b8 20 4f  55 54 50 55 54 0d 01 68  | .UE . OUTPUT..h|
00000260  18 4a 53 52 20 53 4e 44  31 20 5c 20 4f 55 54 50  |.JSR SND1 \ OUTP|
00000270  55 54 20 49 54 0d 01 72  09 2e 48 4f 4c 44 0d 01  |UT IT..r..HOLD..|
00000280  7c 1e 4c 44 41 20 26 46  45 36 44 20 5c 20 a5 20  ||.LDA &FE6D \ . |
00000290  a8 45 52 52 55 50 54 20  46 4c 41 47 0d 01 86 1b  |.ERRUPT FLAG....|
000002a0  42 50 4c 20 48 4f 4c 44  20 5c 20 4c 4f 4f 50 20  |BPL HOLD \ LOOP |
000002b0  fd 20 91 20 4f 55 54 0d  01 90 19 53 54 41 20 26  |. . OUT....STA &|
000002c0  46 45 36 44 20 5c 20 d8  20 a8 45 52 52 55 50 54  |FE6D \ . .ERRUPT|
000002d0  0d 01 9a 0b 4a 53 52 20  73 69 6e 0d 01 a4 0f 53  |....JSR sin....S|
000002e0  54 41 20 28 26 37 32 29  2c 59 0d 01 ae 15 49 4e  |TA (&72),Y....IN|
000002f0  59 20 5c 20 ec 20 50 4f  49 4e 54 45 52 20 ee 0d  |Y \ . POINTER ..|
00000300  01 b8 1d 42 4e 45 20 4c  4f 4f 50 20 5c 20 4c 4f  |...BNE LOOP \ LO|
00000310  4f 50 20 e3 20 41 4e 4f  54 48 45 52 0d 01 c2 19  |OP . ANOTHER....|
00000320  49 4e 43 20 26 37 33 20  5c 20 ec 20 e8 20 50 4f  |INC &73 \ . . PO|
00000330  49 4e 54 45 52 0d 01 cc  15 4c 44 41 20 26 37 30  |INTER....LDA &70|
00000340  20 5c 20 a5 20 4c 49 4d  49 54 0d 01 d6 26 43 4d  | \ . LIMIT...&CM|
00000350  50 20 26 37 33 20 5c 20  48 41 53 20 e8 20 50 4f  |P &73 \ HAS . PO|
00000360  49 4e 54 45 52 20 52 45  41 43 48 45 44 20 49 54  |INTER REACHED IT|
00000370  0d 01 e0 19 42 4e 45 20  4c 4f 4f 50 20 5c 20 42  |....BNE LOOP \ B|
00000380  52 41 4e 43 48 20 e7 20  ac 0d 01 ea 0c 4c 44 58  |RANCH . .....LDX|
00000390  20 23 26 33 30 0d 01 f4  16 53 54 58 20 26 37 33  | #&30....STX &73|
000003a0  20 5c 20 52 45 53 45 54  20 49 54 0d 01 fe 0c 4a  | \ RESET IT....J|
000003b0  4d 50 20 4c 4f 4f 50 0d  02 08 14 2e 73 69 6e 20  |MP LOOP.....sin |
000003c0  5c 20 53 41 4d 50 4c 45  20 49 4e 0d 02 12 12 4c  |\ SAMPLE IN....L|
000003d0  44 58 20 23 31 30 3a 4c  44 41 20 23 30 0d 02 1c  |DX #10:LDA #0...|
000003e0  1e 53 54 41 20 26 46 45  36 30 20 5c 20 43 53 20  |.STA &FE60 \ CS |
000003f0  80 20 43 4c 4f 43 4b 20  4c 4f 57 0d 02 26 0a 2e  |. CLOCK LOW..&..|
00000400  53 4c 4f 4f 50 0d 02 30  13 4c 44 41 20 26 46 45  |SLOOP..0.LDA &FE|
00000410  36 30 20 5c 20 a5 20 dc  0d 02 3a 1f 4c 53 52 20  |60 \ . ...:.LSR |
00000420  41 3a 52 4f 4c 20 26 38  30 20 5c 20 ec 20 a8 4f  |A:ROL &80 \ . .O|
00000430  20 4d 45 4d 4f 52 59 0d  02 44 21 4c 44 41 20 23  | MEMORY..D!LDA #|
00000440  32 3a 53 54 41 20 26 46  45 36 30 20 5c 20 43 4c  |2:STA &FE60 \ CL|
00000450  4f 43 4b 20 48 49 47 48  0d 02 4e 20 4c 44 41 20  |OCK HIGH..N LDA |
00000460  23 30 3a 53 54 41 20 26  46 45 36 30 20 5c 20 43  |#0:STA &FE60 \ C|
00000470  4c 4f 43 4b 20 4c 4f 57  0d 02 58 13 44 45 58 20  |LOCK LOW..X.DEX |
00000480  3a 20 42 4e 45 20 53 4c  4f 4f 50 0d 02 62 15 4c  |: BNE SLOOP..b.L|
00000490  44 41 20 23 36 3a 20 53  54 41 20 26 46 45 36 30  |DA #6: STA &FE60|
000004a0  0d 02 6c 16 4c 44 41 20  26 38 30 20 5c 20 a5 20  |..l.LDA &80 \ . |
000004b0  53 41 4d 50 4c 45 0d 02  76 07 52 54 53 0d 02 80  |SAMPLE..v.RTS...|
000004c0  09 2e 42 41 43 4b 0d 02  8a 16 4a 53 52 20 53 45  |..BACK....JSR SE|
000004d0  54 55 50 3a 4a 53 52 20  49 4e 49 54 0d 02 94 0a  |TUP:JSR INIT....|
000004e0  2e 4c 4f 4f 50 42 0d 02  9e 20 4c 44 41 20 28 26  |.LOOPB... LDA (&|
000004f0  37 34 29 2c 59 20 5c 20  a5 20 bb 55 45 20 b8 20  |74),Y \ . .UE . |
00000500  4f 55 54 50 55 54 0d 02  a8 18 4a 53 52 20 53 4e  |OUTPUT....JSR SN|
00000510  44 31 20 5c 20 4f 55 54  50 55 54 20 49 54 0d 02  |D1 \ OUTPUT IT..|
00000520  b2 23 44 45 43 20 26 37  34 20 5c 20 52 45 44 55  |.#DEC &74 \ REDU|
00000530  43 45 20 4f 55 54 50 55  54 20 50 4f 49 4e 54 45  |CE OUTPUT POINTE|
00000540  52 0d 02 bc 0c 4c 44 41  20 23 26 46 46 0d 02 c6  |R....LDA #&FF...|
00000550  20 43 4d 50 20 26 37 34  20 5c 20 54 45 53 54 20  | CMP &74 \ TEST |
00000560  e3 20 57 52 41 50 20 41  52 4f 55 4e 44 0d 02 d0  |. WRAP AROUND...|
00000570  21 42 4e 45 20 53 4b 49  50 31 20 5c 20 42 52 41  |!BNE SKIP1 \ BRA|
00000580  4e 43 48 20 e7 20 ac 20  4f 56 45 52 20 90 0d 02  |NCH . . OVER ...|
00000590  da 19 44 45 43 20 26 37  35 20 5c 20 44 45 43 52  |..DEC &75 \ DECR|
000005a0  45 4d 45 4e 54 20 90 0d  02 e4 29 4c 44 41 20 23  |EMENT ....)LDA #|
000005b0  26 33 30 20 5c 20 53 45  45 20 e7 20 49 54 20 48  |&30 \ SEE . IT H|
000005c0  41 53 20 52 45 41 43 48  45 44 20 54 48 45 20 e0  |AS REACHED THE .|
000005d0  0d 02 ee 0b 43 4d 50 20  26 37 35 0d 02 f8 21 42  |....CMP &75...!B|
000005e0  4e 45 20 53 4b 49 50 31  20 5c 20 42 52 41 4e 43  |NE SKIP1 \ BRANC|
000005f0  48 20 e7 20 49 54 20 48  41 53 20 ac 0d 03 02 15  |H . IT HAS .....|
00000600  4c 44 41 20 26 37 30 20  5c 20 a5 20 4c 49 4d 49  |LDA &70 \ . LIMI|
00000610  54 0d 03 0c 27 53 54 41  20 26 37 35 20 5c 20 4d  |T...'STA &75 \ M|
00000620  41 4b 45 20 4f 55 54 50  55 54 20 50 4f 49 4e 54  |AKE OUTPUT POINT|
00000630  45 52 20 4c 49 4d 49 54  0d 03 16 0a 2e 53 4b 49  |ER LIMIT.....SKI|
00000640  50 31 0d 03 20 18 4a 53  52 20 73 69 6e 20 5c 20  |P1.. .JSR sin \ |
00000650  a5 20 e8 20 53 41 4d 50  4c 45 0d 03 2a 0f 53 54  |. . SAMPLE..*.ST|
00000660  41 20 28 26 37 32 29 2c  59 0d 03 34 1b 49 4e 43  |A (&72),Y..4.INC|
00000670  20 26 37 32 20 5c 20 ec  20 ee 20 e8 20 50 4f 49  | &72 \ . . . POI|
00000680  4e 54 45 52 0d 03 3e 0d  42 4e 45 20 53 4b 49 50  |NTER..>.BNE SKIP|
00000690  32 0d 03 48 13 49 4e 43  20 26 37 33 20 5c 20 ec  |2..H.INC &73 \ .|
000006a0  20 ee 20 90 0d 03 52 15  4c 44 41 20 26 37 30 20  | . ...R.LDA &70 |
000006b0  5c 20 a5 20 4c 49 4d 49  54 0d 03 5c 26 43 4d 50  |\ . LIMIT..\&CMP|
000006c0  20 26 37 33 20 5c 20 48  41 53 20 e8 20 50 4f 49  | &73 \ HAS . POI|
000006d0  4e 54 45 52 20 52 45 41  43 48 45 44 20 49 54 0d  |NTER REACHED IT.|
000006e0  03 66 1a 42 4e 45 20 53  4b 49 50 32 20 5c 20 42  |.f.BNE SKIP2 \ B|
000006f0  52 41 4e 43 48 20 e7 20  ac 0d 03 70 27 4c 44 41  |RANCH . ...p'LDA|
00000700  20 23 26 33 30 20 5c 20  50 55 54 20 50 4f 49 4e  | #&30 \ PUT POIN|
00000710  54 45 52 20 42 41 43 4b  20 b8 20 53 54 41 52 54  |TER BACK . START|
00000720  0d 03 7a 0b 53 54 41 20  26 37 33 0d 03 84 0a 2e  |..z.STA &73.....|
00000730  53 4b 49 50 32 0d 03 8e  1e 4c 44 41 20 26 46 45  |SKIP2....LDA &FE|
00000740  36 44 20 5c 20 a5 20 a8  45 52 52 55 50 54 20 46  |6D \ . .ERRUPT F|
00000750  4c 41 47 0d 03 98 1c 42  50 4c 20 53 4b 49 50 32  |LAG....BPL SKIP2|
00000760  20 5c 20 4c 4f 4f 50 20  fd 20 91 20 4f 55 54 0d  | \ LOOP . . OUT.|
00000770  03 a2 19 53 54 41 20 26  46 45 36 44 20 5c 20 d8  |...STA &FE6D \ .|
00000780  20 a8 45 52 52 55 50 54  0d 03 ac 0d 4a 4d 50 20  | .ERRUPT....JMP |
00000790  4c 4f 4f 50 42 0d 03 b6  1c 2e 49 4e 49 54 20 5c  |LOOPB.....INIT \|
000007a0  20 49 4e 49 54 49 4c 49  53 45 20 d4 20 43 48 49  | INITILISE . CHI|
000007b0  50 0d 03 c0 16 4c 44 41  20 23 26 46 46 3a 53 54  |P....LDA #&FF:ST|
000007c0  41 20 26 46 45 34 33 0d  03 ca 14 4c 44 41 20 23  |A &FE43....LDA #|
000007d0  26 38 34 3a 4a 53 52 20  53 4e 44 0d 03 d4 14 4c  |&84:JSR SND....L|
000007e0  44 41 20 23 26 30 30 3a  4a 53 52 20 53 4e 44 0d  |DA #&00:JSR SND.|
000007f0  03 de 14 4c 44 41 20 23  26 41 34 3a 4a 53 52 20  |...LDA #&A4:JSR |
00000800  53 4e 44 0d 03 e8 14 4c  44 41 20 23 26 30 30 3a  |SND....LDA #&00:|
00000810  4a 53 52 20 53 4e 44 0d  03 f2 14 4c 44 41 20 23  |JSR SND....LDA #|
00000820  26 43 34 3a 4a 53 52 20  53 4e 44 0d 03 fc 14 4c  |&C4:JSR SND....L|
00000830  44 41 20 23 26 30 30 3a  4a 53 52 20 53 4e 44 0d  |DA #&00:JSR SND.|
00000840  04 06 0a 4c 44 59 20 23  30 0d 04 10 07 52 54 53  |...LDY #0....RTS|
00000850  0d 04 1a 08 2e 53 4e 44  0d 04 24 0d 53 54 41 20  |.....SND..$.STA |
00000860  26 46 45 34 46 0d 04 2e  16 4c 44 58 20 23 26 30  |&FE4F....LDX #&0|
00000870  30 3a 53 54 58 20 26 46  45 34 30 0d 04 38 1b 4e  |0:STX &FE40..8.N|
00000880  4f 50 3a 4e 4f 50 3a 4e  4f 50 3a 4e 4f 50 3a 4e  |OP:NOP:NOP:NOP:N|
00000890  4f 50 3a 4e 4f 50 0d 04  42 16 4c 44 58 20 23 26  |OP:NOP..B.LDX #&|
000008a0  30 38 3a 53 54 58 20 26  46 45 34 30 0d 04 4c 07  |08:STX &FE40..L.|
000008b0  52 54 53 0d 04 56 09 2e  53 4e 44 31 0d 04 60 07  |RTS..V..SND1..`.|
000008c0  54 41 58 0d 04 6a 1c 4c  44 41 20 26 39 30 30 2c  |TAX..j.LDA &900,|
000008d0  58 20 5c 20 43 4f 4e 56  45 52 54 20 b8 20 ab 0d  |X \ CONVERT . ..|
000008e0  04 74 13 84 41 20 23 26  39 30 3a 4a 53 52 20 53  |.t..A #&90:JSR S|
000008f0  4e 44 0d 04 7e 13 84 41  20 23 26 32 30 3a 4a 53  |ND..~..A #&20:JS|
00000900  52 20 53 4e 44 0d 04 88  12 82 20 23 26 36 30 3a  |R SND..... #&60:|
00000910  4a 53 52 20 53 4e 44 0d  04 92 07 52 54 53 0d 04  |JSR SND....RTS..|
00000920  9c 05 5d 0d 04 a6 05 ed  0d 04 b0 05 db 0d 04 ba  |..].............|
00000930  12 f2 5f 49 4e 53 54 52  55 43 54 49 4f 4e 53 0d  |.._INSTRUCTIONS.|
00000940  04 c4 13 e7 20 52 25 3d  30 20 8c 20 52 25 3d 31  |.... R%=0 . R%=1|
00000950  38 30 0d 04 ce 0d 3f 26  46 45 36 36 3d 52 25 0d  |80....?&FE66=R%.|
00000960  04 d8 0c 3f 26 46 45 36  32 3d 36 0d 04 e2 15 3f  |...?&FE62=6....?|
00000970  26 37 32 3d 26 30 30 3a  3f 26 37 34 3d 26 30 30  |&72=&00:?&74=&00|
00000980  0d 04 ec 15 3f 26 37 33  3d 26 33 30 3a 3f 26 37  |....?&73=&30:?&7|
00000990  35 3d 26 33 30 0d 04 f6  05 f5 0d 05 00 0c f2 5f  |5=&30.........._|
000009a0  55 50 44 41 54 45 0d 05  0a 08 41 24 3d be 0d 05  |UPDATE....A$=...|
000009b0  14 2b e7 20 41 24 3d 22  42 22 20 8c 20 3f 26 37  |.+. A$="B" . ?&7|
000009c0  30 3d 46 25 2b 26 33 30  3a 3f 26 37 35 3d 3f 26  |0=F%+&30:?&75=?&|
000009d0  37 30 3a d6 20 42 41 43  4b 0d 05 1e 21 e7 20 41  |70:. BACK...!. A|
000009e0  24 3d 22 45 22 20 8c 20  3f 26 37 30 3d 46 25 2b  |$="E" . ?&70=F%+|
000009f0  26 33 30 3a d6 20 45 43  48 4f 0d 05 28 2b e7 20  |&30:. ECHO..(+. |
00000a00  41 24 3d 22 52 22 20 8c  20 e8 22 53 61 6d 70 6c  |A$="R" . ."Sampl|
00000a10  65 20 52 61 74 65 20 22  2c 52 25 3a 3f 26 46 45  |e Rate ",R%:?&FE|
00000a20  36 36 3d 52 25 0d 05 32  15 e7 20 41 24 3d 22 4c  |66=R%..2.. A$="L|
00000a30  22 20 8c 20 f2 5f 42 4c  45 4e 0d 05 3c 07 fd 20  |" . ._BLEN..<.. |
00000a40  a3 0d 05 46 0c dd 20 f2  5f 42 4c 45 4e 0d 05 50  |...F.. ._BLEN..P|
00000a50  05 f5 0d 05 5a 2b e8 22  42 75 66 66 65 72 20 6c  |....Z+."Buffer l|
00000a60  65 6e 67 74 68 20 69 6e  20 70 61 67 65 73 20 28  |ength in pages (|
00000a70  31 20 74 6f 20 38 30 29  20 22 2c 4c 25 0d 05 64  |1 to 80) ",L%..d|
00000a80  12 fd 20 4c 25 3e 30 20  80 20 4c 25 3c 38 31 0d  |.. L%>0 . L%<81.|
00000a90  05 6e 12 e7 20 4c 25 3d  38 30 20 8c 20 4c 25 3d  |.n.. L%=80 . L%=|
00000aa0  30 0d 05 78 05 e1 0d 05  82 0e dd 20 f2 5f 55 50  |0..x....... ._UP|
00000ab0  44 41 54 45 0d 05 8c 0c  f1 20 8a 30 2c 31 34 29  |DATE..... .0,14)|
00000ac0  0d 05 96 20 f1 20 22 53  61 6d 70 6c 65 20 72 61  |... . "Sample ra|
00000ad0  74 65 20 64 65 6c 61 79  20 3a 2d 20 22 3b 52 25  |te delay :- ";R%|
00000ae0  0d 05 a0 05 f1 0d 05 aa  1b 20 e7 20 4c 25 3d 30  |......... . L%=0|
00000af0  20 8c 20 46 25 3d 38 30  20 8b 20 46 25 3d 4c 25  | . F%=80 . F%=L%|
00000b00  0d 05 b4 25 f1 20 22 42  75 66 66 65 72 20 6c 65  |...%. "Buffer le|
00000b10  6e 67 74 68 20 22 3b 46  25 2f 34 3b 22 4b 20 62  |ngth ";F%/4;"K b|
00000b20  79 74 65 73 22 0d 05 be  12 f1 20 8a 30 2c 32 30  |ytes"..... .0,20|
00000b30  29 3b 89 28 34 30 29 0d  05 c8 0c f1 20 8a 30 2c  |);.(40)..... .0,|
00000b40  31 39 29 0d 05 d2 05 e1  0d 05 dc 14 dd 20 f2 5f  |19).......... ._|
00000b50  49 4e 53 54 52 55 43 54  49 4f 4e 53 0d 05 e6 05  |INSTRUCTIONS....|
00000b60  f1 0d 05 f0 20 f1 22 42  45 45 42 20 42 4f 44 59  |.... ."BEEB BODY|
00000b70  20 42 55 49 4c 44 49 4e  47 20 43 4f 55 52 53 45  | BUILDING COURSE|
00000b80  22 0d 05 fa 14 20 f1 22  45 63 68 6f 20 43 68 61  |".... ."Echo Cha|
00000b90  6d 62 65 72 22 0d 06 04  22 f1 3a f1 22 55 73 69  |mber"...".:."Usi|
00000ba0  6e 67 20 49 6e 74 65 72  6e 61 6c 20 53 6f 75 6e  |ng Internal Soun|
00000bb0  64 20 43 68 69 70 22 0d  06 0e 13 f1 22 42 79 20  |d Chip"....."By |
00000bc0  4d 69 6b 65 20 43 6f 6f  6b 22 0d 06 18 05 f1 0d  |Mike Cook"......|
00000bd0  06 22 14 f1 22 4f 70 74  69 6f 6e 73 20 61 72 65  |.".."Options are|
00000be0  3a 2d 22 0d 06 2c 22 f1  22 45 20 20 2d 20 45 6e  |:-"..,"."E  - En|
00000bf0  74 65 72 20 74 68 65 20  65 63 68 6f 20 63 68 61  |ter the echo cha|
00000c00  6d 62 65 72 22 0d 06 36  1a f1 22 42 20 20 2d 20  |mber"..6.."B  - |
00000c10  42 61 63 6b 77 61 72 64  73 20 65 63 68 6f 22 0d  |Backwards echo".|
00000c20  06 40 1e f1 22 52 20 20  2d 20 52 61 74 65 20 6f  |.@.."R  - Rate o|
00000c30  66 20 64 69 67 69 74 69  73 69 6e 67 22 0d 06 4a  |f digitising"..J|
00000c40  1c f1 22 4c 20 20 2d 20  4c 65 6e 67 74 68 20 6f  |.."L  - Length o|
00000c50  66 20 62 75 66 66 65 72  22 0d 06 54 16 f1 22 42  |f buffer"..T.."B|
00000c60  72 65 61 6b 20 74 6f 20  72 65 74 75 72 6e 22 0d  |reak to return".|
00000c70  06 5e 05 e1 0d ff                                 |.^....|
00000c76
Q.SfEcho.m0
Q.SfEcho.m1
Q.SfEcho.m2
Q.SfEcho.m4
Q.SfEcho.m5