Home » CEEFAX disks » telesoftware1.adl » General/CALC1

General/CALC1

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 » telesoftware1.adl
Filename: General/CALC1
Read OK:
File size: 070B bytes
Load address: 1900
Exec address: 8023
File contents
    2REM"��
    3REM"���   Calculator Listing 1
    4REM"���     �Mike Rawlings
    5REM"���       22-12-1986
    6REM"��
    7REM"��
    8REM"��� For BBCB / B+ / Electron
    9REM"���  MASTER / 2nd PROCESSOR
   10REM"��
   11REM"��
   12REM"���    *TYPE Cal/Inf For
   13REM"���       Full details
   14REM"��
   20*TV255
   30MODE1:HIMEM=HIMEM-122:t=HIMEM+72:ENVELOPE1,3,1,-1,1,1,1,1,60,-10,-5,-2,126,126:*FX212,0
   40*FX213,205
   50@%=&20900:*FX4,1
   60FORo=0TO1:P%=HIMEM:[OPT0:LDA#0:TAY:JSR&FFDA:STA&87:CMP#4:BNEM0:LDA#7:JMPM1:.M0 LDA#10:.M1 STA&8D:LDA#32:.M2 JSR&FFE3:INY:CPY&8D:BNEM2:LDA#124:JSR&FFE3:LDA#8:LDY&8D:INY:.M3 JSR&FFE3:DEY:CPY#0:BNEM3
   70TYA:LDX#(t MOD256):STX&8B:LDX#(t DIV256):STX&8C:LDX#32:STX&8E:LDX#127:STX&8F:LDX#&8B:JSR&FFF1:RTS:]:NEXT
   80*KEY0 25.4
   90*KEY1 .9144
  100*KEY2 1.6093
  110*KEY3 .0929
  120*KEY4 .02832
  130*KEY5 4.546
  140*KEY6 28.35
  150*KEY7 .4536
  160*KEY8 .0703
  170*KEY9 .74531
  180VDU19,1,0,0,0,0,19,2,0,0,0,0,19,3,0,0,0,0
  190VDU23,224,0,24,0,126,0,24,0,0
  200VDU23,225,195,60,195,60,60,195,60,195
  210VDU23,226,7,6,12,12,216,88,48,48
  220VDU23,227,255,0,0,0,0,0,0,0
  230VDU23,228,0,0,63,204,140,12,12,0
  240VDU23,229,1,3,252,48,48,48,48,0
  250VDU23,230,31,63,120,120,120,120,63,31
  260VDU23,231,248,252,30,0,0,30,252,248
  270VDU23,232,15,15,28,28,63,63,112,112
  280VDU23,233,240,240,56,56,252,252,14,14
  290VDU23,234,120,120,120,120,120,120,127,127
  300VDU23,235,0,0,0,0,0,0,254,254
  310VDU23,236,120,120,120,120,120,60,31,15
  320VDU23,237,30,30,30,30,30,60,248,240
  330VDU23,238,127,127,3,3,3,3,3,3
  340VDU23,239,254,254,192,192,192,192,192,192
  350VDU23,240,127,127,120,120,127,127,120,120
  360VDU23,241,248,252,30,30,252,248,60,30
  370VDU23,242,248,252,30,30,30,30,252,248
  380COLOUR129::CLS:VDU5:FORo=0TO1:MOVE160+(1-o)*8,990+(1-o)*8:GCOL0,o*3:VDU230,231,32,232,233,32,234,235,32,230,231,32,236,237,32,234,235,32,232,233,32,238,239,32,230,242,32,240,241:NEXT:VDU4
  390COLOUR2:FORo=3TO23STEP20:PRINTTAB(0,o)STRING$(40,CHR$225):NEXT:COLOUR128:VDU28,0,22,39,4:CLS
  400PAGE=&1300:CHAIN"CALC2"
�"��
 �"���   Calculator Listing 1
�"���     �Mike Rawlings
�"���       22-12-1986
�"��
�"��
"�"��� For BBCB / B+ / Electron
	!�"���  MASTER / 2nd PROCESSOR

�"��
�"��
�"���    *TYPE Cal/Inf For

�"���       Full details
�"��

*TV255
E�1:�=�-122:t=�+72:�1,3,1,-1,1,1,1,1,60,-10,-5,-2,126,126:*FX212,0
(*FX213,205
2@%=&20900:*FX4,1
<��o=0�1:P%=�:[OPT0:LDA#0:TAY:JSR&FFDA:STA&87:CMP#4:BNEM0:LDA#7:JMPM1:.M0 LDA#10:.M1 STA&8D:LDA#32:.M2 JSR&FFE3:INY:CPY&8D:BNEM2:LDA#124:JSR&FFE3:LDA#8:LDY&8D:INY:.M3 JSR&FFE3:DEY:CPY#0:BNEM3
FeTYA:LDX#(t �256):STX&8B:LDX#(t �256):STX&8C:LDX#32:STX&8E:LDX#127:STX&8F:LDX#&8B:JSR&FFF1:RTS:]:�
P*KEY0 25.4
Z*KEY1 .9144
d*KEY2 1.6093
n*KEY3 .0929
x*KEY4 .02832
�*KEY5 4.546
�*KEY6 28.35
�*KEY7 .4536
�*KEY8 .0703
�*KEY9 .74531
�+�19,1,0,0,0,0,19,2,0,0,0,0,19,3,0,0,0,0
��23,224,0,24,0,126,0,24,0,0
�'�23,225,195,60,195,60,60,195,60,195
�"�23,226,7,6,12,12,216,88,48,48
��23,227,255,0,0,0,0,0,0,0
�"�23,228,0,0,63,204,140,12,12,0
�!�23,229,1,3,252,48,48,48,48,0
�'�23,230,31,63,120,120,120,120,63,31
%�23,231,248,252,30,0,0,30,252,248
%�23,232,15,15,28,28,63,63,112,112
'�23,233,240,240,56,56,252,252,14,14
"+�23,234,120,120,120,120,120,120,127,127
,�23,235,0,0,0,0,0,0,254,254
6(�23,236,120,120,120,120,120,60,31,15
@%�23,237,30,30,30,30,30,60,248,240
J�23,238,127,127,3,3,3,3,3,3
T+�23,239,254,254,192,192,192,192,192,192
^+�23,240,127,127,120,120,127,127,120,120
h'�23,241,248,252,30,30,252,248,60,30
r'�23,242,248,252,30,30,30,30,252,248
|��129::�:�5:�o=0�1:�160+(1-o)*8,990+(1-o)*8:�0,o*3:�230,231,32,232,233,32,234,235,32,230,231,32,236,237,32,234,235,32,232,233,32,238,239,32,230,242,32,240,241:�:�4
�8�2:�o=3�23�20:�0,o)�40,�225):�:�128:�28,0,22,39,4:�
��=&1300:�"CALC2"
�
00000000  0d 00 02 08 f4 22 86 9d  0d 00 03 20 f4 22 86 9d  |....."..... ."..|
00000010  84 20 20 20 43 61 6c 63  75 6c 61 74 6f 72 20 4c  |.   Calculator L|
00000020  69 73 74 69 6e 67 20 31  0d 00 04 1c f4 22 86 9d  |isting 1....."..|
00000030  84 20 20 20 20 20 84 4d  69 6b 65 20 52 61 77 6c  |.     .Mike Rawl|
00000040  69 6e 67 73 0d 00 05 1a  f4 22 86 9d 84 20 20 20  |ings....."...   |
00000050  20 20 20 20 32 32 2d 31  32 2d 31 39 38 36 0d 00  |    22-12-1986..|
00000060  06 08 f4 22 86 9d 0d 00  07 08 f4 22 83 9d 0d 00  |..."......."....|
00000070  08 22 f4 22 83 9d 81 20  46 6f 72 20 42 42 43 42  |."."... For BBCB|
00000080  20 2f 20 42 2b 20 2f 20  45 6c 65 63 74 72 6f 6e  | / B+ / Electron|
00000090  0d 00 09 21 f4 22 83 9d  81 20 20 4d 41 53 54 45  |...!."...  MASTE|
000000a0  52 20 2f 20 32 6e 64 20  50 52 4f 43 45 53 53 4f  |R / 2nd PROCESSO|
000000b0  52 0d 00 0a 08 f4 22 83  9d 0d 00 0b 08 f4 22 84  |R.....".......".|
000000c0  9d 0d 00 0c 1e f4 22 84  9d 87 20 20 20 20 2a 54  |......"...    *T|
000000d0  59 50 45 20 43 61 6c 2f  49 6e 66 20 46 6f 72 0d  |YPE Cal/Inf For.|
000000e0  00 0d 1c f4 22 84 9d 87  20 20 20 20 20 20 20 46  |...."...       F|
000000f0  75 6c 6c 20 64 65 74 61  69 6c 73 0d 00 0e 08 f4  |ull details.....|
00000100  22 84 9d 0d 00 14 0a 2a  54 56 32 35 35 0d 00 1e  |"......*TV255...|
00000110  45 eb 31 3a d3 3d 93 2d  31 32 32 3a 74 3d 93 2b  |E.1:.=.-122:t=.+|
00000120  37 32 3a e2 31 2c 33 2c  31 2c 2d 31 2c 31 2c 31  |72:.1,3,1,-1,1,1|
00000130  2c 31 2c 31 2c 36 30 2c  2d 31 30 2c 2d 35 2c 2d  |,1,1,60,-10,-5,-|
00000140  32 2c 31 32 36 2c 31 32  36 3a 2a 46 58 32 31 32  |2,126,126:*FX212|
00000150  2c 30 0d 00 28 0e 2a 46  58 32 31 33 2c 32 30 35  |,0..(.*FX213,205|
00000160  0d 00 32 14 40 25 3d 26  32 30 39 30 30 3a 2a 46  |..2.@%=&20900:*F|
00000170  58 34 2c 31 0d 00 3c c1  e3 6f 3d 30 b8 31 3a 50  |X4,1..<..o=0.1:P|
00000180  25 3d 93 3a 5b 4f 50 54  30 3a 4c 44 41 23 30 3a  |%=.:[OPT0:LDA#0:|
00000190  54 41 59 3a 4a 53 52 26  46 46 44 41 3a 53 54 41  |TAY:JSR&FFDA:STA|
000001a0  26 38 37 3a 43 4d 50 23  34 3a 42 4e 45 4d 30 3a  |&87:CMP#4:BNEM0:|
000001b0  4c 44 41 23 37 3a 4a 4d  50 4d 31 3a 2e 4d 30 20  |LDA#7:JMPM1:.M0 |
000001c0  4c 44 41 23 31 30 3a 2e  4d 31 20 53 54 41 26 38  |LDA#10:.M1 STA&8|
000001d0  44 3a 4c 44 41 23 33 32  3a 2e 4d 32 20 4a 53 52  |D:LDA#32:.M2 JSR|
000001e0  26 46 46 45 33 3a 49 4e  59 3a 43 50 59 26 38 44  |&FFE3:INY:CPY&8D|
000001f0  3a 42 4e 45 4d 32 3a 4c  44 41 23 31 32 34 3a 4a  |:BNEM2:LDA#124:J|
00000200  53 52 26 46 46 45 33 3a  4c 44 41 23 38 3a 4c 44  |SR&FFE3:LDA#8:LD|
00000210  59 26 38 44 3a 49 4e 59  3a 2e 4d 33 20 4a 53 52  |Y&8D:INY:.M3 JSR|
00000220  26 46 46 45 33 3a 44 45  59 3a 43 50 59 23 30 3a  |&FFE3:DEY:CPY#0:|
00000230  42 4e 45 4d 33 0d 00 46  65 54 59 41 3a 4c 44 58  |BNEM3..FeTYA:LDX|
00000240  23 28 74 20 83 32 35 36  29 3a 53 54 58 26 38 42  |#(t .256):STX&8B|
00000250  3a 4c 44 58 23 28 74 20  81 32 35 36 29 3a 53 54  |:LDX#(t .256):ST|
00000260  58 26 38 43 3a 4c 44 58  23 33 32 3a 53 54 58 26  |X&8C:LDX#32:STX&|
00000270  38 45 3a 4c 44 58 23 31  32 37 3a 53 54 58 26 38  |8E:LDX#127:STX&8|
00000280  46 3a 4c 44 58 23 26 38  42 3a 4a 53 52 26 46 46  |F:LDX#&8B:JSR&FF|
00000290  46 31 3a 52 54 53 3a 5d  3a ed 0d 00 50 0e 2a 4b  |F1:RTS:]:...P.*K|
000002a0  45 59 30 20 32 35 2e 34  0d 00 5a 0f 2a 4b 45 59  |EY0 25.4..Z.*KEY|
000002b0  31 20 2e 39 31 34 34 0d  00 64 10 2a 4b 45 59 32  |1 .9144..d.*KEY2|
000002c0  20 31 2e 36 30 39 33 0d  00 6e 0f 2a 4b 45 59 33  | 1.6093..n.*KEY3|
000002d0  20 2e 30 39 32 39 0d 00  78 10 2a 4b 45 59 34 20  | .0929..x.*KEY4 |
000002e0  2e 30 32 38 33 32 0d 00  82 0f 2a 4b 45 59 35 20  |.02832....*KEY5 |
000002f0  34 2e 35 34 36 0d 00 8c  0f 2a 4b 45 59 36 20 32  |4.546....*KEY6 2|
00000300  38 2e 33 35 0d 00 96 0f  2a 4b 45 59 37 20 2e 34  |8.35....*KEY7 .4|
00000310  35 33 36 0d 00 a0 0f 2a  4b 45 59 38 20 2e 30 37  |536....*KEY8 .07|
00000320  30 33 0d 00 aa 10 2a 4b  45 59 39 20 2e 37 34 35  |03....*KEY9 .745|
00000330  33 31 0d 00 b4 2b ef 31  39 2c 31 2c 30 2c 30 2c  |31...+.19,1,0,0,|
00000340  30 2c 30 2c 31 39 2c 32  2c 30 2c 30 2c 30 2c 30  |0,0,19,2,0,0,0,0|
00000350  2c 31 39 2c 33 2c 30 2c  30 2c 30 2c 30 0d 00 be  |,19,3,0,0,0,0...|
00000360  1f ef 32 33 2c 32 32 34  2c 30 2c 32 34 2c 30 2c  |..23,224,0,24,0,|
00000370  31 32 36 2c 30 2c 32 34  2c 30 2c 30 0d 00 c8 27  |126,0,24,0,0...'|
00000380  ef 32 33 2c 32 32 35 2c  31 39 35 2c 36 30 2c 31  |.23,225,195,60,1|
00000390  39 35 2c 36 30 2c 36 30  2c 31 39 35 2c 36 30 2c  |95,60,60,195,60,|
000003a0  31 39 35 0d 00 d2 22 ef  32 33 2c 32 32 36 2c 37  |195...".23,226,7|
000003b0  2c 36 2c 31 32 2c 31 32  2c 32 31 36 2c 38 38 2c  |,6,12,12,216,88,|
000003c0  34 38 2c 34 38 0d 00 dc  1d ef 32 33 2c 32 32 37  |48,48.....23,227|
000003d0  2c 32 35 35 2c 30 2c 30  2c 30 2c 30 2c 30 2c 30  |,255,0,0,0,0,0,0|
000003e0  2c 30 0d 00 e6 22 ef 32  33 2c 32 32 38 2c 30 2c  |,0...".23,228,0,|
000003f0  30 2c 36 33 2c 32 30 34  2c 31 34 30 2c 31 32 2c  |0,63,204,140,12,|
00000400  31 32 2c 30 0d 00 f0 21  ef 32 33 2c 32 32 39 2c  |12,0...!.23,229,|
00000410  31 2c 33 2c 32 35 32 2c  34 38 2c 34 38 2c 34 38  |1,3,252,48,48,48|
00000420  2c 34 38 2c 30 0d 00 fa  27 ef 32 33 2c 32 33 30  |,48,0...'.23,230|
00000430  2c 33 31 2c 36 33 2c 31  32 30 2c 31 32 30 2c 31  |,31,63,120,120,1|
00000440  32 30 2c 31 32 30 2c 36  33 2c 33 31 0d 01 04 25  |20,120,63,31...%|
00000450  ef 32 33 2c 32 33 31 2c  32 34 38 2c 32 35 32 2c  |.23,231,248,252,|
00000460  33 30 2c 30 2c 30 2c 33  30 2c 32 35 32 2c 32 34  |30,0,0,30,252,24|
00000470  38 0d 01 0e 25 ef 32 33  2c 32 33 32 2c 31 35 2c  |8...%.23,232,15,|
00000480  31 35 2c 32 38 2c 32 38  2c 36 33 2c 36 33 2c 31  |15,28,28,63,63,1|
00000490  31 32 2c 31 31 32 0d 01  18 27 ef 32 33 2c 32 33  |12,112...'.23,23|
000004a0  33 2c 32 34 30 2c 32 34  30 2c 35 36 2c 35 36 2c  |3,240,240,56,56,|
000004b0  32 35 32 2c 32 35 32 2c  31 34 2c 31 34 0d 01 22  |252,252,14,14.."|
000004c0  2b ef 32 33 2c 32 33 34  2c 31 32 30 2c 31 32 30  |+.23,234,120,120|
000004d0  2c 31 32 30 2c 31 32 30  2c 31 32 30 2c 31 32 30  |,120,120,120,120|
000004e0  2c 31 32 37 2c 31 32 37  0d 01 2c 1f ef 32 33 2c  |,127,127..,..23,|
000004f0  32 33 35 2c 30 2c 30 2c  30 2c 30 2c 30 2c 30 2c  |235,0,0,0,0,0,0,|
00000500  32 35 34 2c 32 35 34 0d  01 36 28 ef 32 33 2c 32  |254,254..6(.23,2|
00000510  33 36 2c 31 32 30 2c 31  32 30 2c 31 32 30 2c 31  |36,120,120,120,1|
00000520  32 30 2c 31 32 30 2c 36  30 2c 33 31 2c 31 35 0d  |20,120,60,31,15.|
00000530  01 40 25 ef 32 33 2c 32  33 37 2c 33 30 2c 33 30  |.@%.23,237,30,30|
00000540  2c 33 30 2c 33 30 2c 33  30 2c 36 30 2c 32 34 38  |,30,30,30,60,248|
00000550  2c 32 34 30 0d 01 4a 1f  ef 32 33 2c 32 33 38 2c  |,240..J..23,238,|
00000560  31 32 37 2c 31 32 37 2c  33 2c 33 2c 33 2c 33 2c  |127,127,3,3,3,3,|
00000570  33 2c 33 0d 01 54 2b ef  32 33 2c 32 33 39 2c 32  |3,3..T+.23,239,2|
00000580  35 34 2c 32 35 34 2c 31  39 32 2c 31 39 32 2c 31  |54,254,192,192,1|
00000590  39 32 2c 31 39 32 2c 31  39 32 2c 31 39 32 0d 01  |92,192,192,192..|
000005a0  5e 2b ef 32 33 2c 32 34  30 2c 31 32 37 2c 31 32  |^+.23,240,127,12|
000005b0  37 2c 31 32 30 2c 31 32  30 2c 31 32 37 2c 31 32  |7,120,120,127,12|
000005c0  37 2c 31 32 30 2c 31 32  30 0d 01 68 27 ef 32 33  |7,120,120..h'.23|
000005d0  2c 32 34 31 2c 32 34 38  2c 32 35 32 2c 33 30 2c  |,241,248,252,30,|
000005e0  33 30 2c 32 35 32 2c 32  34 38 2c 36 30 2c 33 30  |30,252,248,60,30|
000005f0  0d 01 72 27 ef 32 33 2c  32 34 32 2c 32 34 38 2c  |..r'.23,242,248,|
00000600  32 35 32 2c 33 30 2c 33  30 2c 33 30 2c 33 30 2c  |252,30,30,30,30,|
00000610  32 35 32 2c 32 34 38 0d  01 7c a6 fb 31 32 39 3a  |252,248..|..129:|
00000620  3a db 3a ef 35 3a e3 6f  3d 30 b8 31 3a ec 31 36  |:.:.5:.o=0.1:.16|
00000630  30 2b 28 31 2d 6f 29 2a  38 2c 39 39 30 2b 28 31  |0+(1-o)*8,990+(1|
00000640  2d 6f 29 2a 38 3a e6 30  2c 6f 2a 33 3a ef 32 33  |-o)*8:.0,o*3:.23|
00000650  30 2c 32 33 31 2c 33 32  2c 32 33 32 2c 32 33 33  |0,231,32,232,233|
00000660  2c 33 32 2c 32 33 34 2c  32 33 35 2c 33 32 2c 32  |,32,234,235,32,2|
00000670  33 30 2c 32 33 31 2c 33  32 2c 32 33 36 2c 32 33  |30,231,32,236,23|
00000680  37 2c 33 32 2c 32 33 34  2c 32 33 35 2c 33 32 2c  |7,32,234,235,32,|
00000690  32 33 32 2c 32 33 33 2c  33 32 2c 32 33 38 2c 32  |232,233,32,238,2|
000006a0  33 39 2c 33 32 2c 32 33  30 2c 32 34 32 2c 33 32  |39,32,230,242,32|
000006b0  2c 32 34 30 2c 32 34 31  3a ed 3a ef 34 0d 01 86  |,240,241:.:.4...|
000006c0  38 fb 32 3a e3 6f 3d 33  b8 32 33 88 32 30 3a f1  |8.2:.o=3.23.20:.|
000006d0  8a 30 2c 6f 29 c4 34 30  2c bd 32 32 35 29 3a ed  |.0,o).40,.225):.|
000006e0  3a fb 31 32 38 3a ef 32  38 2c 30 2c 32 32 2c 33  |:.128:.28,0,22,3|
000006f0  39 2c 34 3a db 0d 01 90  14 d0 3d 26 31 33 30 30  |9,4:......=&1300|
00000700  3a d7 22 43 41 4c 43 32  22 0d ff                 |:."CALC2"..|
0000070b
General/CALC1.m0
General/CALC1.m1
General/CALC1.m2
General/CALC1.m4
General/CALC1.m5