Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape19a_acorn_eu_1991_february.wav » R.WCount
R.WCount
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_tape19a_acorn_eu_1991_february.wav |
Filename: | R.WCount |
Read OK: | ✔ |
File size: | 035D bytes |
Load address: | FFFFFFFF |
Exec address: | FFFFFFFF |
Duplicates
There is 1 duplicate copy of this file in the archive:
- AEW website » mu » mu_5_25_discs_Micro_User_08_12_D-MU08_12.ssd » R.WCount
- Personal collection » Acorn tapes » Electron_User » Electron_User_tape19a_acorn_eu_1991_february.wav » R.WCount
File contents
REM Multiple files word count REM by Mark Robinson REM (c) The Micro User REM Feburuary 1991 CLS Z%=0 PRINT "Remove embedded commands? "; P$=GCK$ IF P$="Y" OR P$="y" THEN P$="Y" IF P$="Y" THEN PRINT "Yes" IF P$<>"Y" THEN PRINT "No" PRINT SELECT SEGMENT 9 CURSOR TOP IF EOT THEN GOTOerror REPEAT A$=GLT$ PRINT A$; SELECT TEXT LOAD TEXT A$ IF P$="Y" THEN PROCstrip PRINT "....."; PRINT WORDS Z%=Z%+WORDS SELECT SEGMENT 9 UNTIL EOT SELECT TEXT DELETE TEXT PRINT PRINT "TOTAL WORDCOUNT "; PRINT Z% .end PRINT PRINT "Press any key" P$=GCK$ A$="" P$="" END .error CLS PRINT "Files list not present." GOTOend .strip CURSOR TOP REPEAT CURSOR AT 0 FIND "|G" FKEY 3 FIND "|W" IF EOT=FALSE THEN CURSOR RIGHT FKEY 3 DELETE MARKED UNTIL EOT RECOUNT ENDPROC
00000000 52 45 4d 20 4d 75 6c 74 69 70 6c 65 20 66 69 6c |REM Multiple fil| 00000010 65 73 20 77 6f 72 64 20 63 6f 75 6e 74 0d 52 45 |es word count.RE| 00000020 4d 20 62 79 20 4d 61 72 6b 20 52 6f 62 69 6e 73 |M by Mark Robins| 00000030 6f 6e 0d 52 45 4d 20 28 63 29 20 54 68 65 20 4d |on.REM (c) The M| 00000040 69 63 72 6f 20 55 73 65 72 0d 52 45 4d 20 46 65 |icro User.REM Fe| 00000050 62 75 72 75 61 72 79 20 31 39 39 31 0d 20 43 4c |buruary 1991. CL| 00000060 53 0d 20 5a 25 3d 30 0d 20 50 52 49 4e 54 20 22 |S. Z%=0. PRINT "| 00000070 52 65 6d 6f 76 65 20 65 6d 62 65 64 64 65 64 20 |Remove embedded | 00000080 63 6f 6d 6d 61 6e 64 73 3f 20 22 3b 20 0d 20 50 |commands? "; . P| 00000090 24 3d 47 43 4b 24 0d 20 49 46 20 50 24 3d 22 59 |$=GCK$. IF P$="Y| 000000a0 22 20 4f 52 20 50 24 3d 22 79 22 20 54 48 45 4e |" OR P$="y" THEN| 000000b0 20 50 24 3d 22 59 22 0d 20 49 46 20 50 24 3d 22 | P$="Y". IF P$="| 000000c0 59 22 20 54 48 45 4e 20 50 52 49 4e 54 20 22 59 |Y" THEN PRINT "Y| 000000d0 65 73 22 0d 20 49 46 20 50 24 3c 3e 22 59 22 20 |es". IF P$<>"Y" | 000000e0 54 48 45 4e 20 50 52 49 4e 54 20 22 4e 6f 22 0d |THEN PRINT "No".| 000000f0 20 50 52 49 4e 54 0d 20 53 45 4c 45 43 54 20 53 | PRINT. SELECT S| 00000100 45 47 4d 45 4e 54 20 39 0d 20 43 55 52 53 4f 52 |EGMENT 9. CURSOR| 00000110 20 54 4f 50 0d 20 49 46 20 45 4f 54 20 54 48 45 | TOP. IF EOT THE| 00000120 4e 20 47 4f 54 4f 65 72 72 6f 72 0d 20 20 52 45 |N GOTOerror. RE| 00000130 50 45 41 54 0d 20 20 20 20 20 41 24 3d 47 4c 54 |PEAT. A$=GLT| 00000140 24 0d 20 20 20 20 20 50 52 49 4e 54 20 41 24 3b |$. PRINT A$;| 00000150 0d 20 20 20 20 20 53 45 4c 45 43 54 20 54 45 58 |. SELECT TEX| 00000160 54 0d 20 20 20 20 20 4c 4f 41 44 20 54 45 58 54 |T. LOAD TEXT| 00000170 20 41 24 0d 20 20 20 20 20 49 46 20 50 24 3d 22 | A$. IF P$="| 00000180 59 22 20 54 48 45 4e 20 50 52 4f 43 73 74 72 69 |Y" THEN PROCstri| 00000190 70 0d 20 20 20 20 20 50 52 49 4e 54 20 22 2e 2e |p. PRINT "..| 000001a0 2e 2e 2e 22 3b 0d 20 20 20 20 20 50 52 49 4e 54 |...";. PRINT| 000001b0 20 57 4f 52 44 53 0d 20 20 20 20 20 5a 25 3d 5a | WORDS. Z%=Z| 000001c0 25 2b 57 4f 52 44 53 0d 20 20 20 20 20 53 45 4c |%+WORDS. SEL| 000001d0 45 43 54 20 53 45 47 4d 45 4e 54 20 39 0d 20 20 |ECT SEGMENT 9. | 000001e0 55 4e 54 49 4c 20 45 4f 54 0d 20 53 45 4c 45 43 |UNTIL EOT. SELEC| 000001f0 54 20 54 45 58 54 0d 20 44 45 4c 45 54 45 20 54 |T TEXT. DELETE T| 00000200 45 58 54 0d 20 50 52 49 4e 54 0d 20 50 52 49 4e |EXT. PRINT. PRIN| 00000210 54 20 22 54 4f 54 41 4c 20 57 4f 52 44 43 4f 55 |T "TOTAL WORDCOU| 00000220 4e 54 20 22 3b 0d 20 50 52 49 4e 54 20 5a 25 0d |NT ";. PRINT Z%.| 00000230 2e 65 6e 64 0d 20 50 52 49 4e 54 0d 20 50 52 49 |.end. PRINT. PRI| 00000240 4e 54 20 22 50 72 65 73 73 20 61 6e 79 20 6b 65 |NT "Press any ke| 00000250 79 22 0d 20 50 24 3d 47 43 4b 24 0d 20 41 24 3d |y". P$=GCK$. A$=| 00000260 22 22 0d 20 50 24 3d 22 22 0d 45 4e 44 0d 0d 2e |"". P$="".END...| 00000270 65 72 72 6f 72 0d 20 43 4c 53 0d 20 50 52 49 4e |error. CLS. PRIN| 00000280 54 20 22 46 69 6c 65 73 20 6c 69 73 74 20 6e 6f |T "Files list no| 00000290 74 20 70 72 65 73 65 6e 74 2e 22 0d 20 47 4f 54 |t present.". GOT| 000002a0 4f 65 6e 64 0d 0d 2e 73 74 72 69 70 0d 20 43 55 |Oend...strip. CU| 000002b0 52 53 4f 52 20 54 4f 50 0d 20 20 52 45 50 45 41 |RSOR TOP. REPEA| 000002c0 54 0d 20 20 20 20 20 43 55 52 53 4f 52 20 41 54 |T. CURSOR AT| 000002d0 20 30 0d 20 20 20 20 20 46 49 4e 44 20 22 7c 47 | 0. FIND "|G| 000002e0 22 0d 20 20 20 20 20 46 4b 45 59 20 33 0d 20 20 |". FKEY 3. | 000002f0 20 20 20 46 49 4e 44 20 22 7c 57 22 0d 20 20 20 | FIND "|W". | 00000300 20 20 49 46 20 45 4f 54 3d 46 41 4c 53 45 20 54 | IF EOT=FALSE T| 00000310 48 45 4e 20 43 55 52 53 4f 52 20 52 49 47 48 54 |HEN CURSOR RIGHT| 00000320 0d 20 20 20 20 20 46 4b 45 59 20 33 0d 20 20 20 |. FKEY 3. | 00000330 20 20 44 45 4c 45 54 45 20 4d 41 52 4b 45 44 0d | DELETE MARKED.| 00000340 20 20 55 4e 54 49 4c 20 45 4f 54 0d 20 52 45 43 | UNTIL EOT. REC| 00000350 4f 55 4e 54 0d 45 4e 44 50 52 4f 43 0d |OUNT.ENDPROC.| 0000035d