Home » Archimedes archive » Acorn User » AU 1998-08.adf » Regulars » StarInfo/Vibe/ANYMODE

StarInfo/Vibe/ANYMODE

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 » Archimedes archive » Acorn User » AU 1998-08.adf » Regulars
Filename: StarInfo/Vibe/ANYMODE
Read OK:
File size: 0250 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM > ANYMODE
   20
   30MODE31
   40
   50SYS"OS_ReadModeVariable",-1,11 TO,,PX%
   60SYS"OS_ReadModeVariable",-1,12 TO,,PY%
   70SYS"OS_ReadModeVariable",-1,4 TO,,SX%:SX%=2^SX%
   80SYS"OS_ReadModeVariable",-1,5 TO,,SY%:SY%=2^SY%
   90XMAX%=PX%*SX%:YMAX%=PY%*SY%
  100
  110XH%=XMAX%/2:YH%=YMAX%/2
  120FORN%=0TOXH%STEP16:K%=N%/4
  130CIRCLE N%,K%,K%
  140CIRCLE XMAX%-N%,K%,K%
  150CIRCLE N%,YMAX%-K%,K%
  160CIRCLE XMAX%-N%,YMAX%-K%,K%
  170NEXT
  180FORN%=0TOYH%STEP16:K%=N%/4
  190CIRCLE K%,N%,K%
  200CIRCLE K%,YMAX%-N%,K%
  210CIRCLE XMAX%-K%,N%,K%
  220CIRCLE XMAX%-K%,YMAX%-N%,K%
  230NEXT
  240VDU5
  250MOVE XH%-40*SX%,YH%:PRINT"X max:"STR$(XMAX%)
  260MOVE XH%-40*SX%,YH%-8*SY%:PRINT"Y max:"STR$(YMAX%)
  270VDU4

� > ANYMODE

�31
(
2(ș"OS_ReadModeVariable",-1,11 �,,PX%
<(ș"OS_ReadModeVariable",-1,12 �,,PY%
F1ș"OS_ReadModeVariable",-1,4 �,,SX%:SX%=2^SX%
P1ș"OS_ReadModeVariable",-1,5 �,,SY%:SY%=2^SY%
ZXMAX%=PX%*SX%:YMAX%=PY%*SY%
d
nXH%=XMAX%/2:YH%=YMAX%/2
x�N%=0�XH%�16:K%=N%/4
�ȏ N%,K%,K%
�ȏ XMAX%-N%,K%,K%
�ȏ N%,YMAX%-K%,K%
�ȏ XMAX%-N%,YMAX%-K%,K%
��
��N%=0�YH%�16:K%=N%/4
�ȏ K%,N%,K%
�ȏ K%,YMAX%-N%,K%
�ȏ XMAX%-K%,N%,K%
�ȏ XMAX%-K%,YMAX%-N%,K%
��
��5
�&� XH%-40*SX%,YH%:�"X max:"�(XMAX%)
,� XH%-40*SX%,YH%-8*SY%:�"Y max:"�(YMAX%)
�4
�
00000000  0d 00 0a 0f f4 20 3e 20  41 4e 59 4d 4f 44 45 0d  |..... > ANYMODE.|
00000010  00 14 04 0d 00 1e 07 eb  33 31 0d 00 28 04 0d 00  |........31..(...|
00000020  32 28 c8 99 22 4f 53 5f  52 65 61 64 4d 6f 64 65  |2(.."OS_ReadMode|
00000030  56 61 72 69 61 62 6c 65  22 2c 2d 31 2c 31 31 20  |Variable",-1,11 |
00000040  b8 2c 2c 50 58 25 0d 00  3c 28 c8 99 22 4f 53 5f  |.,,PX%..<(.."OS_|
00000050  52 65 61 64 4d 6f 64 65  56 61 72 69 61 62 6c 65  |ReadModeVariable|
00000060  22 2c 2d 31 2c 31 32 20  b8 2c 2c 50 59 25 0d 00  |",-1,12 .,,PY%..|
00000070  46 31 c8 99 22 4f 53 5f  52 65 61 64 4d 6f 64 65  |F1.."OS_ReadMode|
00000080  56 61 72 69 61 62 6c 65  22 2c 2d 31 2c 34 20 b8  |Variable",-1,4 .|
00000090  2c 2c 53 58 25 3a 53 58  25 3d 32 5e 53 58 25 0d  |,,SX%:SX%=2^SX%.|
000000a0  00 50 31 c8 99 22 4f 53  5f 52 65 61 64 4d 6f 64  |.P1.."OS_ReadMod|
000000b0  65 56 61 72 69 61 62 6c  65 22 2c 2d 31 2c 35 20  |eVariable",-1,5 |
000000c0  b8 2c 2c 53 59 25 3a 53  59 25 3d 32 5e 53 59 25  |.,,SY%:SY%=2^SY%|
000000d0  0d 00 5a 1f 58 4d 41 58  25 3d 50 58 25 2a 53 58  |..Z.XMAX%=PX%*SX|
000000e0  25 3a 59 4d 41 58 25 3d  50 59 25 2a 53 59 25 0d  |%:YMAX%=PY%*SY%.|
000000f0  00 64 04 0d 00 6e 1b 58  48 25 3d 58 4d 41 58 25  |.d...n.XH%=XMAX%|
00000100  2f 32 3a 59 48 25 3d 59  4d 41 58 25 2f 32 0d 00  |/2:YH%=YMAX%/2..|
00000110  78 18 e3 4e 25 3d 30 b8  58 48 25 88 31 36 3a 4b  |x..N%=0.XH%.16:K|
00000120  25 3d 4e 25 2f 34 0d 00  82 0f c8 8f 20 4e 25 2c  |%=N%/4...... N%,|
00000130  4b 25 2c 4b 25 0d 00 8c  15 c8 8f 20 58 4d 41 58  |K%,K%...... XMAX|
00000140  25 2d 4e 25 2c 4b 25 2c  4b 25 0d 00 96 15 c8 8f  |%-N%,K%,K%......|
00000150  20 4e 25 2c 59 4d 41 58  25 2d 4b 25 2c 4b 25 0d  | N%,YMAX%-K%,K%.|
00000160  00 a0 1b c8 8f 20 58 4d  41 58 25 2d 4e 25 2c 59  |..... XMAX%-N%,Y|
00000170  4d 41 58 25 2d 4b 25 2c  4b 25 0d 00 aa 05 ed 0d  |MAX%-K%,K%......|
00000180  00 b4 18 e3 4e 25 3d 30  b8 59 48 25 88 31 36 3a  |....N%=0.YH%.16:|
00000190  4b 25 3d 4e 25 2f 34 0d  00 be 0f c8 8f 20 4b 25  |K%=N%/4...... K%|
000001a0  2c 4e 25 2c 4b 25 0d 00  c8 15 c8 8f 20 4b 25 2c  |,N%,K%...... K%,|
000001b0  59 4d 41 58 25 2d 4e 25  2c 4b 25 0d 00 d2 15 c8  |YMAX%-N%,K%.....|
000001c0  8f 20 58 4d 41 58 25 2d  4b 25 2c 4e 25 2c 4b 25  |. XMAX%-K%,N%,K%|
000001d0  0d 00 dc 1b c8 8f 20 58  4d 41 58 25 2d 4b 25 2c  |...... XMAX%-K%,|
000001e0  59 4d 41 58 25 2d 4e 25  2c 4b 25 0d 00 e6 05 ed  |YMAX%-N%,K%.....|
000001f0  0d 00 f0 06 ef 35 0d 00  fa 26 ec 20 58 48 25 2d  |.....5...&. XH%-|
00000200  34 30 2a 53 58 25 2c 59  48 25 3a f1 22 58 20 6d  |40*SX%,YH%:."X m|
00000210  61 78 3a 22 c3 28 58 4d  41 58 25 29 0d 01 04 2c  |ax:".(XMAX%)...,|
00000220  ec 20 58 48 25 2d 34 30  2a 53 58 25 2c 59 48 25  |. XH%-40*SX%,YH%|
00000230  2d 38 2a 53 59 25 3a f1  22 59 20 6d 61 78 3a 22  |-8*SY%:."Y max:"|
00000240  c3 28 59 4d 41 58 25 29  0d 01 0e 06 ef 34 0d ff  |.(YMAX%).....4..|
00000250