Home » Personal collection » Acorn ADFS disks » Electron » Electrolysis.ADF » TEMP

TEMP

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 ADFS disks » Electron » Electrolysis.ADF
Filename: TEMP
Read OK:
File size: 090C bytes
Load address: 0000
Exec address: FFFFFFFF
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
>L.

 1000REM Background tune player

 1010REM by Darren Smith

 1020REM (c) The Micro User

 1030REM November 1990

 1040MODE 7:FOR pass=0 TO 2 STEP 2

 1050FOR pass=0 TO 2 STEP 2:P%=&A00

 1060P%=&A00:[OPT pass:.init LDA #0

 1070STA &9F:LDA #14:LDX #0:JSR &FFF4

 1080SEI:LDA &220:STA oldvector

 1090LDA &221:STA oldvector+1

 1100LDA #event MOD 256:STA &220

 1110LDA #event DIV 256:STA &221

 1120CLI:LDA #0:LDX #5:JMP event

 1130.event PHA:CMP #0:BNE notevent

 1140TXA:PHA:CMP #5:BNE notbuffer

 1150TYA:PHA:.checknote LDX &9F

 1160LDA &900,X:CMP #&FF:BNE findlength

 1170LDX #0:STX &9F:.findlength

 1180LDA &900,X:LSR A:BCC short

 1190.long LDA speed:ASL A:STA sound+6

 1200JMP mask_pitch:.short LDA speed

 1210STA sound+6:.mask_pitch

 1220LDA &900,X:AND #&FE:STA sound+4

 1230.playnote:LDA #7:LDX #sound MOD256

 1240LDY #sound DIV256:JSR &FFF1

 1250.nextnote INC &9F:.endcode

 1260PLA:TAY:.notbuffer PLA:TAX

 1270.notevent PLA:JMP (oldvector)

 1280.oldvector OPT FNw(0):.speed

 1290OPT FNb(3):.sound OPT FNw(1)

 1300OPT FNw(-8):OPT FNw(0):OPT FNw(4)

 1310]:NEXT:loop=0:REPEAT:READ data:IF data=1000 THEN 1320 ELSE ?(&900+loop)=data:loop=loop+1:UNTIL 0

 1320CALL init:END

 1330DEFFNb(Z%):?P%=Z%:P%=P%+1:=pass

 1340DEFFNw(Z%):!P%=Z%:P%=P%+2:=pass

 1350REM *** Tune data ***

 1360DATA 133,116,121,108,113,96,101,80,84,72,65,0,113,64,113,65,113,1,113,109

 1370DATA 104,112,128,104,112,128,104,112,128,104,112,129,120,112,104,96,100

 1380DATA 120,96,100,120,96,100,120,96,100,121,112,100,84,105,100,105,100,105

 1390DATA 93,88,93,88,93,84,60,64,84,100,80,84,100,112,96,100,112,133,101,104

 1400DATA 112,128,104,112,128,104,112,128,104,112,129,120,112,104,96,100,120

 1410DATA 96,100,120,96,100,120,96,100,121,112,100,84,120,72,88,121,112,104

 1420DATA 100,92,88,92,121,112,104,92,100,64,84,101,64,93,85,113,109,104,112

 1430DATA 128,104,112,128,104,112,128,104,112,129,120,112,104,96,100,120,96

 1440DATA 100,120,96,100,120,96,100,121,112,100,84,105,100,105,100,105,93,88

 1450DATA 93,88,93,84,60,64,84,100,80,84,100,112,96,100,112,133,101,104,112

 1460DATA 128,104,112,128,104,112,128,104,112,129,120,112,104,96,100,120,96

 1470DATA 100,120,96,100,120,96,100,121,112,100,84,120,72,88,121,112,104,100

 1480DATA 92,88,92,121,112,104,92,100,64,84,101,64,93,85,255,1000

>*SPOOL

00000000  3e 4c 2e 0a 0d 20 31 30  30 30 52 45 4d 20 42 61  |>L... 1000REM Ba|
00000010  63 6b 67 72 6f 75 6e 64  20 74 75 6e 65 20 70 6c  |ckground tune pl|
00000020  61 79 65 72 0a 0d 20 31  30 31 30 52 45 4d 20 62  |ayer.. 1010REM b|
00000030  79 20 44 61 72 72 65 6e  20 53 6d 69 74 68 0a 0d  |y Darren Smith..|
00000040  20 31 30 32 30 52 45 4d  20 28 63 29 20 54 68 65  | 1020REM (c) The|
00000050  20 4d 69 63 72 6f 20 55  73 65 72 0a 0d 20 31 30  | Micro User.. 10|
00000060  33 30 52 45 4d 20 4e 6f  76 65 6d 62 65 72 20 31  |30REM November 1|
00000070  39 39 30 0a 0d 20 31 30  34 30 4d 4f 44 45 20 37  |990.. 1040MODE 7|
00000080  3a 46 4f 52 20 70 61 73  73 3d 30 20 54 4f 20 32  |:FOR pass=0 TO 2|
00000090  20 53 54 45 50 20 32 0a  0d 20 31 30 35 30 46 4f  | STEP 2.. 1050FO|
000000a0  52 20 70 61 73 73 3d 30  20 54 4f 20 32 20 53 54  |R pass=0 TO 2 ST|
000000b0  45 50 20 32 3a 50 25 3d  26 41 30 30 0a 0d 20 31  |EP 2:P%=&A00.. 1|
000000c0  30 36 30 50 25 3d 26 41  30 30 3a 5b 4f 50 54 20  |060P%=&A00:[OPT |
000000d0  70 61 73 73 3a 2e 69 6e  69 74 20 4c 44 41 20 23  |pass:.init LDA #|
000000e0  30 0a 0d 20 31 30 37 30  53 54 41 20 26 39 46 3a  |0.. 1070STA &9F:|
000000f0  4c 44 41 20 23 31 34 3a  4c 44 58 20 23 30 3a 4a  |LDA #14:LDX #0:J|
00000100  53 52 20 26 46 46 46 34  0a 0d 20 31 30 38 30 53  |SR &FFF4.. 1080S|
00000110  45 49 3a 4c 44 41 20 26  32 32 30 3a 53 54 41 20  |EI:LDA &220:STA |
00000120  6f 6c 64 76 65 63 74 6f  72 0a 0d 20 31 30 39 30  |oldvector.. 1090|
00000130  4c 44 41 20 26 32 32 31  3a 53 54 41 20 6f 6c 64  |LDA &221:STA old|
00000140  76 65 63 74 6f 72 2b 31  0a 0d 20 31 31 30 30 4c  |vector+1.. 1100L|
00000150  44 41 20 23 65 76 65 6e  74 20 4d 4f 44 20 32 35  |DA #event MOD 25|
00000160  36 3a 53 54 41 20 26 32  32 30 0a 0d 20 31 31 31  |6:STA &220.. 111|
00000170  30 4c 44 41 20 23 65 76  65 6e 74 20 44 49 56 20  |0LDA #event DIV |
00000180  32 35 36 3a 53 54 41 20  26 32 32 31 0a 0d 20 31  |256:STA &221.. 1|
00000190  31 32 30 43 4c 49 3a 4c  44 41 20 23 30 3a 4c 44  |120CLI:LDA #0:LD|
000001a0  58 20 23 35 3a 4a 4d 50  20 65 76 65 6e 74 0a 0d  |X #5:JMP event..|
000001b0  20 31 31 33 30 2e 65 76  65 6e 74 20 50 48 41 3a  | 1130.event PHA:|
000001c0  43 4d 50 20 23 30 3a 42  4e 45 20 6e 6f 74 65 76  |CMP #0:BNE notev|
000001d0  65 6e 74 0a 0d 20 31 31  34 30 54 58 41 3a 50 48  |ent.. 1140TXA:PH|
000001e0  41 3a 43 4d 50 20 23 35  3a 42 4e 45 20 6e 6f 74  |A:CMP #5:BNE not|
000001f0  62 75 66 66 65 72 0a 0d  20 31 31 35 30 54 59 41  |buffer.. 1150TYA|
00000200  3a 50 48 41 3a 2e 63 68  65 63 6b 6e 6f 74 65 20  |:PHA:.checknote |
00000210  4c 44 58 20 26 39 46 0a  0d 20 31 31 36 30 4c 44  |LDX &9F.. 1160LD|
00000220  41 20 26 39 30 30 2c 58  3a 43 4d 50 20 23 26 46  |A &900,X:CMP #&F|
00000230  46 3a 42 4e 45 20 66 69  6e 64 6c 65 6e 67 74 68  |F:BNE findlength|
00000240  0a 0d 20 31 31 37 30 4c  44 58 20 23 30 3a 53 54  |.. 1170LDX #0:ST|
00000250  58 20 26 39 46 3a 2e 66  69 6e 64 6c 65 6e 67 74  |X &9F:.findlengt|
00000260  68 0a 0d 20 31 31 38 30  4c 44 41 20 26 39 30 30  |h.. 1180LDA &900|
00000270  2c 58 3a 4c 53 52 20 41  3a 42 43 43 20 73 68 6f  |,X:LSR A:BCC sho|
00000280  72 74 0a 0d 20 31 31 39  30 2e 6c 6f 6e 67 20 4c  |rt.. 1190.long L|
00000290  44 41 20 73 70 65 65 64  3a 41 53 4c 20 41 3a 53  |DA speed:ASL A:S|
000002a0  54 41 20 73 6f 75 6e 64  2b 36 0a 0d 20 31 32 30  |TA sound+6.. 120|
000002b0  30 4a 4d 50 20 6d 61 73  6b 5f 70 69 74 63 68 3a  |0JMP mask_pitch:|
000002c0  2e 73 68 6f 72 74 20 4c  44 41 20 73 70 65 65 64  |.short LDA speed|
000002d0  0a 0d 20 31 32 31 30 53  54 41 20 73 6f 75 6e 64  |.. 1210STA sound|
000002e0  2b 36 3a 2e 6d 61 73 6b  5f 70 69 74 63 68 0a 0d  |+6:.mask_pitch..|
000002f0  20 31 32 32 30 4c 44 41  20 26 39 30 30 2c 58 3a  | 1220LDA &900,X:|
00000300  41 4e 44 20 23 26 46 45  3a 53 54 41 20 73 6f 75  |AND #&FE:STA sou|
00000310  6e 64 2b 34 0a 0d 20 31  32 33 30 2e 70 6c 61 79  |nd+4.. 1230.play|
00000320  6e 6f 74 65 3a 4c 44 41  20 23 37 3a 4c 44 58 20  |note:LDA #7:LDX |
00000330  23 73 6f 75 6e 64 20 4d  4f 44 32 35 36 0a 0d 20  |#sound MOD256.. |
00000340  31 32 34 30 4c 44 59 20  23 73 6f 75 6e 64 20 44  |1240LDY #sound D|
00000350  49 56 32 35 36 3a 4a 53  52 20 26 46 46 46 31 0a  |IV256:JSR &FFF1.|
00000360  0d 20 31 32 35 30 2e 6e  65 78 74 6e 6f 74 65 20  |. 1250.nextnote |
00000370  49 4e 43 20 26 39 46 3a  2e 65 6e 64 63 6f 64 65  |INC &9F:.endcode|
00000380  0a 0d 20 31 32 36 30 50  4c 41 3a 54 41 59 3a 2e  |.. 1260PLA:TAY:.|
00000390  6e 6f 74 62 75 66 66 65  72 20 50 4c 41 3a 54 41  |notbuffer PLA:TA|
000003a0  58 0a 0d 20 31 32 37 30  2e 6e 6f 74 65 76 65 6e  |X.. 1270.noteven|
000003b0  74 20 50 4c 41 3a 4a 4d  50 20 28 6f 6c 64 76 65  |t PLA:JMP (oldve|
000003c0  63 74 6f 72 29 0a 0d 20  31 32 38 30 2e 6f 6c 64  |ctor).. 1280.old|
000003d0  76 65 63 74 6f 72 20 4f  50 54 20 46 4e 77 28 30  |vector OPT FNw(0|
000003e0  29 3a 2e 73 70 65 65 64  0a 0d 20 31 32 39 30 4f  |):.speed.. 1290O|
000003f0  50 54 20 46 4e 62 28 33  29 3a 2e 73 6f 75 6e 64  |PT FNb(3):.sound|
00000400  20 4f 50 54 20 46 4e 77  28 31 29 0a 0d 20 31 33  | OPT FNw(1).. 13|
00000410  30 30 4f 50 54 20 46 4e  77 28 2d 38 29 3a 4f 50  |00OPT FNw(-8):OP|
00000420  54 20 46 4e 77 28 30 29  3a 4f 50 54 20 46 4e 77  |T FNw(0):OPT FNw|
00000430  28 34 29 0a 0d 20 31 33  31 30 5d 3a 4e 45 58 54  |(4).. 1310]:NEXT|
00000440  3a 6c 6f 6f 70 3d 30 3a  52 45 50 45 41 54 3a 52  |:loop=0:REPEAT:R|
00000450  45 41 44 20 64 61 74 61  3a 49 46 20 64 61 74 61  |EAD data:IF data|
00000460  3d 31 30 30 30 20 54 48  45 4e 20 31 33 32 30 20  |=1000 THEN 1320 |
00000470  45 4c 53 45 20 3f 28 26  39 30 30 2b 6c 6f 6f 70  |ELSE ?(&900+loop|
00000480  29 3d 64 61 74 61 3a 6c  6f 6f 70 3d 6c 6f 6f 70  |)=data:loop=loop|
00000490  2b 31 3a 55 4e 54 49 4c  20 30 0a 0d 20 31 33 32  |+1:UNTIL 0.. 132|
000004a0  30 43 41 4c 4c 20 69 6e  69 74 3a 45 4e 44 0a 0d  |0CALL init:END..|
000004b0  20 31 33 33 30 44 45 46  46 4e 62 28 5a 25 29 3a  | 1330DEFFNb(Z%):|
000004c0  3f 50 25 3d 5a 25 3a 50  25 3d 50 25 2b 31 3a 3d  |?P%=Z%:P%=P%+1:=|
000004d0  70 61 73 73 0a 0d 20 31  33 34 30 44 45 46 46 4e  |pass.. 1340DEFFN|
000004e0  77 28 5a 25 29 3a 21 50  25 3d 5a 25 3a 50 25 3d  |w(Z%):!P%=Z%:P%=|
000004f0  50 25 2b 32 3a 3d 70 61  73 73 0a 0d 20 31 33 35  |P%+2:=pass.. 135|
00000500  30 52 45 4d 20 2a 2a 2a  20 54 75 6e 65 20 64 61  |0REM *** Tune da|
00000510  74 61 20 2a 2a 2a 0a 0d  20 31 33 36 30 44 41 54  |ta ***.. 1360DAT|
00000520  41 20 31 33 33 2c 31 31  36 2c 31 32 31 2c 31 30  |A 133,116,121,10|
00000530  38 2c 31 31 33 2c 39 36  2c 31 30 31 2c 38 30 2c  |8,113,96,101,80,|
00000540  38 34 2c 37 32 2c 36 35  2c 30 2c 31 31 33 2c 36  |84,72,65,0,113,6|
00000550  34 2c 31 31 33 2c 36 35  2c 31 31 33 2c 31 2c 31  |4,113,65,113,1,1|
00000560  31 33 2c 31 30 39 0a 0d  20 31 33 37 30 44 41 54  |13,109.. 1370DAT|
00000570  41 20 31 30 34 2c 31 31  32 2c 31 32 38 2c 31 30  |A 104,112,128,10|
00000580  34 2c 31 31 32 2c 31 32  38 2c 31 30 34 2c 31 31  |4,112,128,104,11|
00000590  32 2c 31 32 38 2c 31 30  34 2c 31 31 32 2c 31 32  |2,128,104,112,12|
000005a0  39 2c 31 32 30 2c 31 31  32 2c 31 30 34 2c 39 36  |9,120,112,104,96|
000005b0  2c 31 30 30 0a 0d 20 31  33 38 30 44 41 54 41 20  |,100.. 1380DATA |
000005c0  31 32 30 2c 39 36 2c 31  30 30 2c 31 32 30 2c 39  |120,96,100,120,9|
000005d0  36 2c 31 30 30 2c 31 32  30 2c 39 36 2c 31 30 30  |6,100,120,96,100|
000005e0  2c 31 32 31 2c 31 31 32  2c 31 30 30 2c 38 34 2c  |,121,112,100,84,|
000005f0  31 30 35 2c 31 30 30 2c  31 30 35 2c 31 30 30 2c  |105,100,105,100,|
00000600  31 30 35 0a 0d 20 31 33  39 30 44 41 54 41 20 39  |105.. 1390DATA 9|
00000610  33 2c 38 38 2c 39 33 2c  38 38 2c 39 33 2c 38 34  |3,88,93,88,93,84|
00000620  2c 36 30 2c 36 34 2c 38  34 2c 31 30 30 2c 38 30  |,60,64,84,100,80|
00000630  2c 38 34 2c 31 30 30 2c  31 31 32 2c 39 36 2c 31  |,84,100,112,96,1|
00000640  30 30 2c 31 31 32 2c 31  33 33 2c 31 30 31 2c 31  |00,112,133,101,1|
00000650  30 34 0a 0d 20 31 34 30  30 44 41 54 41 20 31 31  |04.. 1400DATA 11|
00000660  32 2c 31 32 38 2c 31 30  34 2c 31 31 32 2c 31 32  |2,128,104,112,12|
00000670  38 2c 31 30 34 2c 31 31  32 2c 31 32 38 2c 31 30  |8,104,112,128,10|
00000680  34 2c 31 31 32 2c 31 32  39 2c 31 32 30 2c 31 31  |4,112,129,120,11|
00000690  32 2c 31 30 34 2c 39 36  2c 31 30 30 2c 31 32 30  |2,104,96,100,120|
000006a0  0a 0d 20 31 34 31 30 44  41 54 41 20 39 36 2c 31  |.. 1410DATA 96,1|
000006b0  30 30 2c 31 32 30 2c 39  36 2c 31 30 30 2c 31 32  |00,120,96,100,12|
000006c0  30 2c 39 36 2c 31 30 30  2c 31 32 31 2c 31 31 32  |0,96,100,121,112|
000006d0  2c 31 30 30 2c 38 34 2c  31 32 30 2c 37 32 2c 38  |,100,84,120,72,8|
000006e0  38 2c 31 32 31 2c 31 31  32 2c 31 30 34 0a 0d 20  |8,121,112,104.. |
000006f0  31 34 32 30 44 41 54 41  20 31 30 30 2c 39 32 2c  |1420DATA 100,92,|
00000700  38 38 2c 39 32 2c 31 32  31 2c 31 31 32 2c 31 30  |88,92,121,112,10|
00000710  34 2c 39 32 2c 31 30 30  2c 36 34 2c 38 34 2c 31  |4,92,100,64,84,1|
00000720  30 31 2c 36 34 2c 39 33  2c 38 35 2c 31 31 33 2c  |01,64,93,85,113,|
00000730  31 30 39 2c 31 30 34 2c  31 31 32 0a 0d 20 31 34  |109,104,112.. 14|
00000740  33 30 44 41 54 41 20 31  32 38 2c 31 30 34 2c 31  |30DATA 128,104,1|
00000750  31 32 2c 31 32 38 2c 31  30 34 2c 31 31 32 2c 31  |12,128,104,112,1|
00000760  32 38 2c 31 30 34 2c 31  31 32 2c 31 32 39 2c 31  |28,104,112,129,1|
00000770  32 30 2c 31 31 32 2c 31  30 34 2c 39 36 2c 31 30  |20,112,104,96,10|
00000780  30 2c 31 32 30 2c 39 36  0a 0d 20 31 34 34 30 44  |0,120,96.. 1440D|
00000790  41 54 41 20 31 30 30 2c  31 32 30 2c 39 36 2c 31  |ATA 100,120,96,1|
000007a0  30 30 2c 31 32 30 2c 39  36 2c 31 30 30 2c 31 32  |00,120,96,100,12|
000007b0  31 2c 31 31 32 2c 31 30  30 2c 38 34 2c 31 30 35  |1,112,100,84,105|
000007c0  2c 31 30 30 2c 31 30 35  2c 31 30 30 2c 31 30 35  |,100,105,100,105|
000007d0  2c 39 33 2c 38 38 0a 0d  20 31 34 35 30 44 41 54  |,93,88.. 1450DAT|
000007e0  41 20 39 33 2c 38 38 2c  39 33 2c 38 34 2c 36 30  |A 93,88,93,84,60|
000007f0  2c 36 34 2c 38 34 2c 31  30 30 2c 38 30 2c 38 34  |,64,84,100,80,84|
00000800  2c 31 30 30 2c 31 31 32  2c 39 36 2c 31 30 30 2c  |,100,112,96,100,|
00000810  31 31 32 2c 31 33 33 2c  31 30 31 2c 31 30 34 2c  |112,133,101,104,|
00000820  31 31 32 0a 0d 20 31 34  36 30 44 41 54 41 20 31  |112.. 1460DATA 1|
00000830  32 38 2c 31 30 34 2c 31  31 32 2c 31 32 38 2c 31  |28,104,112,128,1|
00000840  30 34 2c 31 31 32 2c 31  32 38 2c 31 30 34 2c 31  |04,112,128,104,1|
00000850  31 32 2c 31 32 39 2c 31  32 30 2c 31 31 32 2c 31  |12,129,120,112,1|
00000860  30 34 2c 39 36 2c 31 30  30 2c 31 32 30 2c 39 36  |04,96,100,120,96|
00000870  0a 0d 20 31 34 37 30 44  41 54 41 20 31 30 30 2c  |.. 1470DATA 100,|
00000880  31 32 30 2c 39 36 2c 31  30 30 2c 31 32 30 2c 39  |120,96,100,120,9|
00000890  36 2c 31 30 30 2c 31 32  31 2c 31 31 32 2c 31 30  |6,100,121,112,10|
000008a0  30 2c 38 34 2c 31 32 30  2c 37 32 2c 38 38 2c 31  |0,84,120,72,88,1|
000008b0  32 31 2c 31 31 32 2c 31  30 34 2c 31 30 30 0a 0d  |21,112,104,100..|
000008c0  20 31 34 38 30 44 41 54  41 20 39 32 2c 38 38 2c  | 1480DATA 92,88,|
000008d0  39 32 2c 31 32 31 2c 31  31 32 2c 31 30 34 2c 39  |92,121,112,104,9|
000008e0  32 2c 31 30 30 2c 36 34  2c 38 34 2c 31 30 31 2c  |2,100,64,84,101,|
000008f0  36 34 2c 39 33 2c 38 35  2c 32 35 35 2c 31 30 30  |64,93,85,255,100|
00000900  30 0a 0d 3e 2a 53 50 4f  4f 4c 0a 0d              |0..>*SPOOL..|
0000090c
TEMP.m0
TEMP.m1
TEMP.m2
TEMP.m4
TEMP.m5