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

AMMETER

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: AMMETER
Read OK:
File size: 0148 bytes
Load address: FFFF1D00
Exec address: FFFF8023
Duplicates

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

File contents
    1 REM AMMETER WITH RESISTANCE R. (E.G. 0.5 Ohm RESISTANCE WIRE
    3 PROCsetup
    5 CLS
   10 PRINT TAB(5,12) FNcalc
   20 GOTO10
 1000 PROCsetup
 1010 A=0:B%=0
 1015 B%=B%+1
 1018 A=A+(FNcalc-A)/B%
 1020 IF B% MOD100=0 THEN PRINT B%,A:GOTO1010
 1030 GOTO 1015
 1040 DEF FNcalc
 1050 adv=ADVAL(CH):v=adv/65536*1.8
 1060 =v/R
 2000 DEFPROCsetup
 2010 R=0.5
 2020 CH=1:REM ADVAL CHANNEL
 2030 @%=&2040A
 2040 ENDPROC
? � AMMETER WITH RESISTANCE R. (E.G. 0.5 Ohm RESISTANCE WIRE
 �setup
 �

 � �5,12) �calc

 �TJ@
� �setup
�
 A=0:B%=0
� B%=B%+1
� A=A+(�calc-A)/B%
� � B% �100=0 � � B%,A:�drC
 � �dwC
 � �calc
 adv=�(CH):v=adv/65536*1.8
$	 =v/R
� ��setup
�
 R=0.5
� CH=1:� ADVAL CHANNEL
� @%=&2040A
� �
�
00000000  0d 00 01 3f 20 f4 20 41  4d 4d 45 54 45 52 20 57  |...? . AMMETER W|
00000010  49 54 48 20 52 45 53 49  53 54 41 4e 43 45 20 52  |ITH RESISTANCE R|
00000020  2e 20 28 45 2e 47 2e 20  30 2e 35 20 4f 68 6d 20  |. (E.G. 0.5 Ohm |
00000030  52 45 53 49 53 54 41 4e  43 45 20 57 49 52 45 0d  |RESISTANCE WIRE.|
00000040  00 03 0b 20 f2 73 65 74  75 70 0d 00 05 06 20 db  |... .setup.... .|
00000050  0d 00 0a 13 20 f1 20 8a  35 2c 31 32 29 20 a4 63  |.... . .5,12) .c|
00000060  61 6c 63 0d 00 14 0a 20  e5 8d 54 4a 40 0d 03 e8  |alc.... ..TJ@...|
00000070  0b 20 f2 73 65 74 75 70  0d 03 f2 0d 20 41 3d 30  |. .setup.... A=0|
00000080  3a 42 25 3d 30 0d 03 f7  0c 20 42 25 3d 42 25 2b  |:B%=0.... B%=B%+|
00000090  31 0d 03 fa 15 20 41 3d  41 2b 28 a4 63 61 6c 63  |1.... A=A+(.calc|
000000a0  2d 41 29 2f 42 25 0d 03  fc 1f 20 e7 20 42 25 20  |-A)/B%.... . B% |
000000b0  83 31 30 30 3d 30 20 8c  20 f1 20 42 25 2c 41 3a  |.100=0 . . B%,A:|
000000c0  e5 8d 64 72 43 0d 04 06  0b 20 e5 20 8d 64 77 43  |..drC.... . .dwC|
000000d0  0d 04 10 0c 20 dd 20 a4  63 61 6c 63 0d 04 1a 1e  |.... . .calc....|
000000e0  20 61 64 76 3d 96 28 43  48 29 3a 76 3d 61 64 76  | adv=.(CH):v=adv|
000000f0  2f 36 35 35 33 36 2a 31  2e 38 0d 04 24 09 20 3d  |/65536*1.8..$. =|
00000100  76 2f 52 0d 07 d0 0c 20  dd f2 73 65 74 75 70 0d  |v/R.... ..setup.|
00000110  07 da 0a 20 52 3d 30 2e  35 0d 07 e4 19 20 43 48  |... R=0.5.... CH|
00000120  3d 31 3a f4 20 41 44 56  41 4c 20 43 48 41 4e 4e  |=1:. ADVAL CHANN|
00000130  45 4c 0d 07 ee 0e 20 40  25 3d 26 32 30 34 30 41  |EL.... @%=&2040A|
00000140  0d 07 f8 06 20 e1 0d ff                           |.... ...|
00000148
AMMETER.m0
AMMETER.m1
AMMETER.m2
AMMETER.m4
AMMETER.m5