Home » Personal collection » Acorn ADFS disks » Electron » Utilities_1.ADF » GRAPHICS/VDUDES

GRAPHICS/VDUDES

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 » Utilities_1.ADF
Filename: GRAPHICS/VDUDES
Read OK:
File size: 03C4 bytes
Load address: FFFF0E00
Exec address: FFFF8023
Duplicates

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

File contents
   20 *FX 4,1
   30 DIM N(8,8)
   40 DIM P(8)
   50 MODE 4
   51VDU 23,1,0,0,0,0,0,0,0,0
   60 VDU 23,244,127,127,127,127,0,0,127,127
   70 FOR X =100 TO 900 STEP 100
   80 MOVE X,100:DRAW X,900 
   90 MOVE 100,X:DRAW 900,X  
  100 NEXT
  110 Y=8:X=1:Z=7
  120 GCOL 0,Z
  130 A$=GET$
  140 A=ASC(A$)
  150 IF A=136 THEN X=X-1
  160 IF A=137 THEN X=X+1
  170 IF A=138 THEN Y=Y-1
  180 IF A=139 THEN Y=Y+1
  190 IF X=9 THEN X=1
  200 IF X=0 THEN X=8
  210 IF Y=9 THEN Y=1
  220 IF Y=0 THEN Y=8
  230 IF A<>32 THEN GOTO 130
  240 MOVE X*100,Y*100  
  250 DRAW X*100,(Y+1)*100  
  260 PLOT 85,(X+1)*100,Y*100   
  270 PLOT 85,(X+1)*100,(Y+1)*100
  280 IF Z=0 THEN N(X,Y)=0 ELSE N(X,Y)=1
  290 IF Z=0 THEN GCOL 0,7:MOVE X*100,Y*100:DRAW X*100,(Y+1)*100:DRAW (X+1)*100,(Y+1)*100:DRAW (X+1)*100,Y*100:DRAW X*100,Y*100
  300 S$="VDU 23,244,"
  310 FOR R=8 TO 1 STEP -1
  320 SUM=0
  330 FOR S=1 TO 8   
  340 SUM=SUM+N(S,R)*2^(8-S)
  350 NEXT
  360 S$=S$+STR$(SUM)
  370 P(9-R)=SUM
  380 IF R<>1 THEN S$=S$+","
  390 NEXT
  400 PRINT TAB(0,1);S$;"                                         "
  410 VDU23,224,P(1),P(2),P(3),P(4),P(5),P(6),P(7),P(8)
  420 PRINT TAB(35,12),CHR$(224) 
  430 IF Z=7 THEN Z=0 ELSE Z=7 
  440 GOTO 120
 *FX 4,1

 � N(8,8)
( � P(8)
2 � 4
3� 23,1,0,0,0,0,0,0,0,0
<) � 23,244,127,127,127,127,0,0,127,127
F � X =100 � 900 � 100
P � X,100:� X,900 
Z � 100,X:� 900,X  
d �
n Y=8:X=1:Z=7
x
 � 0,Z
�	 A$=�
� A=�(A$)
� � A=136 � X=X-1
� � A=137 � X=X+1
� � A=138 � Y=Y-1
� � A=139 � Y=Y+1
� � X=9 � X=1
� � X=0 � X=8
� � Y=9 � Y=1
� � Y=0 � Y=8
� � A<>32 � � �tB@
� � X*100,Y*100  
� � X*100,(Y+1)*100  
 � 85,(X+1)*100,Y*100   
 � 85,(X+1)*100,(Y+1)*100
  � Z=0 � N(X,Y)=0 � N(X,Y)=1
"h � Z=0 � � 0,7:� X*100,Y*100:� X*100,(Y+1)*100:� (X+1)*100,(Y+1)*100:� (X+1)*100,Y*100:� X*100,Y*100
, S$="VDU 23,244,"
6 � R=8 � 1 � -1
@
 SUM=0
J � S=1 � 8   
T SUM=SUM+N(S,R)*2^(8-S)
^ �
h S$=S$+�(SUM)
r P(9-R)=SUM
| � R<>1 � S$=S$+","
� �
�; � �0,1);S$;"                                         "
�4 �23,224,P(1),P(2),P(3),P(4),P(5),P(6),P(7),P(8)
� � �35,12),�(224) 
� � Z=7 � Z=0 � Z=7 
� � �Dx@
�
00000000  0d 00 14 0c 20 2a 46 58  20 34 2c 31 0d 00 1e 0d  |.... *FX 4,1....|
00000010  20 de 20 4e 28 38 2c 38  29 0d 00 28 0b 20 de 20  | . N(8,8)..(. . |
00000020  50 28 38 29 0d 00 32 08  20 eb 20 34 0d 00 33 1a  |P(8)..2. . 4..3.|
00000030  ef 20 32 33 2c 31 2c 30  2c 30 2c 30 2c 30 2c 30  |. 23,1,0,0,0,0,0|
00000040  2c 30 2c 30 2c 30 0d 00  3c 29 20 ef 20 32 33 2c  |,0,0,0..<) . 23,|
00000050  32 34 34 2c 31 32 37 2c  31 32 37 2c 31 32 37 2c  |244,127,127,127,|
00000060  31 32 37 2c 30 2c 30 2c  31 32 37 2c 31 32 37 0d  |127,0,0,127,127.|
00000070  00 46 19 20 e3 20 58 20  3d 31 30 30 20 b8 20 39  |.F. . X =100 . 9|
00000080  30 30 20 88 20 31 30 30  0d 00 50 15 20 ec 20 58  |00 . 100..P. . X|
00000090  2c 31 30 30 3a df 20 58  2c 39 30 30 20 0d 00 5a  |,100:. X,900 ..Z|
000000a0  16 20 ec 20 31 30 30 2c  58 3a df 20 39 30 30 2c  |. . 100,X:. 900,|
000000b0  58 20 20 0d 00 64 06 20  ed 0d 00 6e 10 20 59 3d  |X  ..d. ...n. Y=|
000000c0  38 3a 58 3d 31 3a 5a 3d  37 0d 00 78 0a 20 e6 20  |8:X=1:Z=7..x. . |
000000d0  30 2c 5a 0d 00 82 09 20  41 24 3d be 0d 00 8c 0c  |0,Z.... A$=.....|
000000e0  20 41 3d 97 28 41 24 29  0d 00 96 14 20 e7 20 41  | A=.(A$).... . A|
000000f0  3d 31 33 36 20 8c 20 58  3d 58 2d 31 0d 00 a0 14  |=136 . X=X-1....|
00000100  20 e7 20 41 3d 31 33 37  20 8c 20 58 3d 58 2b 31  | . A=137 . X=X+1|
00000110  0d 00 aa 14 20 e7 20 41  3d 31 33 38 20 8c 20 59  |.... . A=138 . Y|
00000120  3d 59 2d 31 0d 00 b4 14  20 e7 20 41 3d 31 33 39  |=Y-1.... . A=139|
00000130  20 8c 20 59 3d 59 2b 31  0d 00 be 10 20 e7 20 58  | . Y=Y+1.... . X|
00000140  3d 39 20 8c 20 58 3d 31  0d 00 c8 10 20 e7 20 58  |=9 . X=1.... . X|
00000150  3d 30 20 8c 20 58 3d 38  0d 00 d2 10 20 e7 20 59  |=0 . X=8.... . Y|
00000160  3d 39 20 8c 20 59 3d 31  0d 00 dc 10 20 e7 20 59  |=9 . Y=1.... . Y|
00000170  3d 30 20 8c 20 59 3d 38  0d 00 e6 15 20 e7 20 41  |=0 . Y=8.... . A|
00000180  3c 3e 33 32 20 8c 20 e5  20 8d 74 42 40 0d 00 f0  |<>32 . . .tB@...|
00000190  14 20 ec 20 58 2a 31 30  30 2c 59 2a 31 30 30 20  |. . X*100,Y*100 |
000001a0  20 0d 00 fa 18 20 df 20  58 2a 31 30 30 2c 28 59  | .... . X*100,(Y|
000001b0  2b 31 29 2a 31 30 30 20  20 0d 01 04 1c 20 f0 20  |+1)*100  .... . |
000001c0  38 35 2c 28 58 2b 31 29  2a 31 30 30 2c 59 2a 31  |85,(X+1)*100,Y*1|
000001d0  30 30 20 20 20 0d 01 0e  1d 20 f0 20 38 35 2c 28  |00   .... . 85,(|
000001e0  58 2b 31 29 2a 31 30 30  2c 28 59 2b 31 29 2a 31  |X+1)*100,(Y+1)*1|
000001f0  30 30 0d 01 18 20 20 e7  20 5a 3d 30 20 8c 20 4e  |00...  . Z=0 . N|
00000200  28 58 2c 59 29 3d 30 20  8b 20 4e 28 58 2c 59 29  |(X,Y)=0 . N(X,Y)|
00000210  3d 31 0d 01 22 68 20 e7  20 5a 3d 30 20 8c 20 e6  |=1.."h . Z=0 . .|
00000220  20 30 2c 37 3a ec 20 58  2a 31 30 30 2c 59 2a 31  | 0,7:. X*100,Y*1|
00000230  30 30 3a df 20 58 2a 31  30 30 2c 28 59 2b 31 29  |00:. X*100,(Y+1)|
00000240  2a 31 30 30 3a df 20 28  58 2b 31 29 2a 31 30 30  |*100:. (X+1)*100|
00000250  2c 28 59 2b 31 29 2a 31  30 30 3a df 20 28 58 2b  |,(Y+1)*100:. (X+|
00000260  31 29 2a 31 30 30 2c 59  2a 31 30 30 3a df 20 58  |1)*100,Y*100:. X|
00000270  2a 31 30 30 2c 59 2a 31  30 30 0d 01 2c 15 20 53  |*100,Y*100..,. S|
00000280  24 3d 22 56 44 55 20 32  33 2c 32 34 34 2c 22 0d  |$="VDU 23,244,".|
00000290  01 36 13 20 e3 20 52 3d  38 20 b8 20 31 20 88 20  |.6. . R=8 . 1 . |
000002a0  2d 31 0d 01 40 0a 20 53  55 4d 3d 30 0d 01 4a 11  |-1..@. SUM=0..J.|
000002b0  20 e3 20 53 3d 31 20 b8  20 38 20 20 20 0d 01 54  | . S=1 . 8   ..T|
000002c0  1b 20 53 55 4d 3d 53 55  4d 2b 4e 28 53 2c 52 29  |. SUM=SUM+N(S,R)|
000002d0  2a 32 5e 28 38 2d 53 29  0d 01 5e 06 20 ed 0d 01  |*2^(8-S)..^. ...|
000002e0  68 11 20 53 24 3d 53 24  2b c3 28 53 55 4d 29 0d  |h. S$=S$+.(SUM).|
000002f0  01 72 0f 20 50 28 39 2d  52 29 3d 53 55 4d 0d 01  |.r. P(9-R)=SUM..|
00000300  7c 17 20 e7 20 52 3c 3e  31 20 8c 20 53 24 3d 53  ||. . R<>1 . S$=S|
00000310  24 2b 22 2c 22 0d 01 86  06 20 ed 0d 01 90 3b 20  |$+",".... ....; |
00000320  f1 20 8a 30 2c 31 29 3b  53 24 3b 22 20 20 20 20  |. .0,1);S$;"    |
00000330  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000350  20 20 20 20 20 22 0d 01  9a 34 20 ef 32 33 2c 32  |     "...4 .23,2|
00000360  32 34 2c 50 28 31 29 2c  50 28 32 29 2c 50 28 33  |24,P(1),P(2),P(3|
00000370  29 2c 50 28 34 29 2c 50  28 35 29 2c 50 28 36 29  |),P(4),P(5),P(6)|
00000380  2c 50 28 37 29 2c 50 28  38 29 0d 01 a4 16 20 f1  |,P(7),P(8).... .|
00000390  20 8a 33 35 2c 31 32 29  2c bd 28 32 32 34 29 20  | .35,12),.(224) |
000003a0  0d 01 ae 17 20 e7 20 5a  3d 37 20 8c 20 5a 3d 30  |.... . Z=7 . Z=0|
000003b0  20 8b 20 5a 3d 37 20 0d  01 b8 0b 20 e5 20 8d 44  | . Z=7 .... . .D|
000003c0  78 40 0d ff                                       |x@..|
000003c4
GRAPHICS/VDUDES.m0
GRAPHICS/VDUDES.m1
GRAPHICS/VDUDES.m2
GRAPHICS/VDUDES.m4
GRAPHICS/VDUDES.m5