Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_18.ADF » S/M/PREVIEWER/BasPrev
S/M/PREVIEWER/BasPrev
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_User_Group » EUG_18.ADF |
Filename: | S/M/PREVIEWER/BasPrev |
Read OK: | ✔ |
File size: | 011C bytes |
Load address: | FFFF1D00 |
Exec address: | FFFF8023 |
Duplicates
There is 1 duplicate copy of this file in the archive:
- AEW website » eug » eug_5_25_discs_Eug-19_D-EUG19.dsd » U.BasPrev
- Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_18.ADF » S/M/PREVIEWER/BasPrev
File contents
10MODE 0 15*DIR $.PREVIEWER.C 16*CAT 20INPUT'"Filename:"fname$ 30ch%=OPENIN(fname$) 40CLS 50X%=BGET#ch%+256*BGET#ch% 60X%=X%/16 70Y%=BGET#ch%+256*BGET#ch% 80Y%=Y%/4 90A%=&3000 100FOR L%=0 TO X%-1 110S%=A% 120FOR M%=0 TO Y%-1 130?S%=BGET#ch% 140IF S% MOD 8=7 S%=S%+633 ELSE S%=S%+1 150NEXT 160A%=A%+8 170NEXT 180CLOSE #ch%
� 0 *DIR $.PREVIEWER.C *CAT �'"Filename:"fname$ ch%=�(fname$) (� 2X%=�#ch%+256*�#ch% <X%=X%/16 FY%=�#ch%+256*�#ch% PY%=Y%/4 ZA%=&3000 d� L%=0 � X%-1 n S%=A% x� M%=0 � Y%-1 � ?S%=�#ch% �"� S% � 8=7 S%=S%+633 � S%=S%+1 �� �A%=A%+8 �� � � #ch% �
00000000 0d 00 0a 07 eb 20 30 0d 00 0f 16 2a 44 49 52 20 |..... 0....*DIR | 00000010 24 2e 50 52 45 56 49 45 57 45 52 2e 43 0d 00 10 |$.PREVIEWER.C...| 00000020 08 2a 43 41 54 0d 00 14 17 e8 27 22 46 69 6c 65 |.*CAT.....'"File| 00000030 6e 61 6d 65 3a 22 66 6e 61 6d 65 24 0d 00 1e 11 |name:"fname$....| 00000040 63 68 25 3d 8e 28 66 6e 61 6d 65 24 29 0d 00 28 |ch%=.(fname$)..(| 00000050 05 db 0d 00 32 16 58 25 3d 9a 23 63 68 25 2b 32 |....2.X%=.#ch%+2| 00000060 35 36 2a 9a 23 63 68 25 0d 00 3c 0c 58 25 3d 58 |56*.#ch%..<.X%=X| 00000070 25 2f 31 36 0d 00 46 16 59 25 3d 9a 23 63 68 25 |%/16..F.Y%=.#ch%| 00000080 2b 32 35 36 2a 9a 23 63 68 25 0d 00 50 0b 59 25 |+256*.#ch%..P.Y%| 00000090 3d 59 25 2f 34 0d 00 5a 0c 41 25 3d 26 33 30 30 |=Y%/4..Z.A%=&300| 000000a0 30 0d 00 64 11 e3 20 4c 25 3d 30 20 b8 20 58 25 |0..d.. L%=0 . X%| 000000b0 2d 31 0d 00 6e 09 53 25 3d 41 25 0d 00 78 11 e3 |-1..n.S%=A%..x..| 000000c0 20 4d 25 3d 30 20 b8 20 59 25 2d 31 0d 00 82 0d | M%=0 . Y%-1....| 000000d0 3f 53 25 3d 9a 23 63 68 25 0d 00 8c 22 e7 20 53 |?S%=.#ch%...". S| 000000e0 25 20 83 20 38 3d 37 20 53 25 3d 53 25 2b 36 33 |% . 8=7 S%=S%+63| 000000f0 33 20 8b 20 53 25 3d 53 25 2b 31 0d 00 96 05 ed |3 . S%=S%+1.....| 00000100 0d 00 a0 0b 41 25 3d 41 25 2b 38 0d 00 aa 05 ed |....A%=A%+8.....| 00000110 0d 00 b4 0a d9 20 23 63 68 25 0d ff |..... #ch%..| 0000011c