Home » Archimedes archive » Micro User » MU 1991-01.adf » PD-Stuff » !ModeVars/!RunImage
!ModeVars/!RunImage
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 » Micro User » MU 1991-01.adf » PD-Stuff |
Filename: | !ModeVars/!RunImage |
Read OK: | ✔ |
File size: | 03AC bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM >!RunImage 20REM Printout Mode Variables for each valid mode 30REM by R.I.D.Macfarlane, May 1990 40DIM B% 40: $B%="Mode Variables from ""OS_ReadModeVariable"" "+CHR$0 50ON ERROR PRINT''REPORT$" at line "ERL':END 60SYS "Wimp_Initialise",200,&4B534154,"Mode Vars" 70SYS "Wimp_CommandWindow",B% 80VDU14 90H$="0 1 2 3 4 5 Line Screen 8 9 10 XWin YWin" 100FORM%=0 TO 30 110IF M%MOD11=0 THEN PRINT'SPC10H$' 120M$=STR$M%: IF LENM$=1 THEN M$=" "+M$ 130PRINT"MODE "M$":"; 140FORN%=0 TO 12 150SYS "OS_ReadModeVariable",M%,N% TO ,,R% ;F% 160IF F% AND 2 THEN 170 PRINTSPC4"Mode is invalid": N%=30 180 ELSE 190 P$="": A$=STR$R%: L%=LENA$ 200 CASE N% OF 210 WHEN 0 : S%=2: P$="&": A$=STR$~R%: L%=LENA$ 220 WHEN 4,5 : S%=2 230 WHEN 2,3,8,9,10: S%=3 240 WHEN 1,13 : S%=4 250 WHEN 6,11,12 : S%=5 260 WHEN 7 : S%=6 270 SYS "OS_ConvertFileSize",R%,B%,40 TO C%,D% 280 L%=D%-C%-5 290 A$=LEFT$($B%,L%) 300 ENDCASE 310 PRINTSPC(S%-L%)P$A$; 320ENDIF 330NEXT:PRINT 340NEXT:VDU3,15 350SYS "Wimp_CommandWindow",0 360SYS "Wimp_CloseDown"
� >!RunImage 1� Printout Mode Variables for each valid mode $� by R.I.D.Macfarlane, May 1990 (C� B% 40: $B%="Mode Variables from ""OS_ReadModeVariable"" "+�0 2� � �''�$" at line "�':� <2ș "Wimp_Initialise",200,&4B534154,"Mode Vars" Fș "Wimp_CommandWindow",B% P�14 Z6H$="0 1 2 3 4 5 Line Screen 8 9 10 XWin YWin" d�M%=0 � 30 n� M%�11=0 � �'�10H$' xM$=�M%: � �M$=1 � M$=" "+M$ ��"MODE "M$":"; ��N%=0 � 12 �-ș "OS_ReadModeVariable",M%,N% � ,,R% ;F% �� F% � 2 � �! �4"Mode is invalid": N%=30 � � � P$="": A$=�R%: L%=�A$ � Ȏ N% � �2 � 0 : S%=2: P$="&": A$=�~R%: L%=�A$ � � 4,5 : S%=2 � � 2,3,8,9,10: S%=3 � � 1,13 : S%=4 � � 6,11,12 : S%=5 � 7 : S%=6 0 ș "OS_ConvertFileSize",R%,B%,40 � C%,D% L%=D%-C%-5 " A$=�$B%,L%) , � 6 �(S%-L%)P$A$; @� J�:� T�:�3,15 ^ș "Wimp_CommandWindow",0 hș "Wimp_CloseDown" �
00000000 0d 00 0a 10 f4 20 3e 21 52 75 6e 49 6d 61 67 65 |..... >!RunImage| 00000010 0d 00 14 31 f4 20 50 72 69 6e 74 6f 75 74 20 4d |...1. Printout M| 00000020 6f 64 65 20 56 61 72 69 61 62 6c 65 73 20 66 6f |ode Variables fo| 00000030 72 20 65 61 63 68 20 76 61 6c 69 64 20 6d 6f 64 |r each valid mod| 00000040 65 0d 00 1e 24 f4 20 62 79 20 52 2e 49 2e 44 2e |e...$. by R.I.D.| 00000050 4d 61 63 66 61 72 6c 61 6e 65 2c 20 20 4d 61 79 |Macfarlane, May| 00000060 20 31 39 39 30 0d 00 28 43 de 20 42 25 20 34 30 | 1990..(C. B% 40| 00000070 3a 20 20 24 42 25 3d 22 4d 6f 64 65 20 56 61 72 |: $B%="Mode Var| 00000080 69 61 62 6c 65 73 20 66 72 6f 6d 20 22 22 4f 53 |iables from ""OS| 00000090 5f 52 65 61 64 4d 6f 64 65 56 61 72 69 61 62 6c |_ReadModeVariabl| 000000a0 65 22 22 20 22 2b bd 30 0d 00 32 1c ee 20 85 20 |e"" "+.0..2.. . | 000000b0 f1 27 27 f6 24 22 20 61 74 20 6c 69 6e 65 20 22 |.''.$" at line "| 000000c0 9e 27 3a e0 0d 00 3c 32 c8 99 20 22 57 69 6d 70 |.':...<2.. "Wimp| 000000d0 5f 49 6e 69 74 69 61 6c 69 73 65 22 2c 32 30 30 |_Initialise",200| 000000e0 2c 26 34 42 35 33 34 31 35 34 2c 22 4d 6f 64 65 |,&4B534154,"Mode| 000000f0 20 56 61 72 73 22 0d 00 46 1e c8 99 20 22 57 69 | Vars"..F... "Wi| 00000100 6d 70 5f 43 6f 6d 6d 61 6e 64 57 69 6e 64 6f 77 |mp_CommandWindow| 00000110 22 2c 42 25 0d 00 50 07 ef 31 34 0d 00 5a 36 48 |",B%..P..14..Z6H| 00000120 24 3d 22 30 20 20 20 31 20 20 32 20 20 33 20 34 |$="0 1 2 3 4| 00000130 20 35 20 4c 69 6e 65 20 53 63 72 65 65 6e 20 38 | 5 Line Screen 8| 00000140 20 20 39 20 31 30 20 58 57 69 6e 20 59 57 69 6e | 9 10 XWin YWin| 00000150 22 0d 00 64 0e e3 4d 25 3d 30 20 b8 20 33 30 0d |"..d..M%=0 . 30.| 00000160 00 6e 18 e7 20 4d 25 83 31 31 3d 30 20 8c 20 f1 |.n.. M%.11=0 . .| 00000170 27 89 31 30 48 24 27 0d 00 78 1f 4d 24 3d c3 4d |'.10H$'..x.M$=.M| 00000180 25 3a 20 e7 20 a9 4d 24 3d 31 20 8c 20 4d 24 3d |%: . .M$=1 . M$=| 00000190 22 20 22 2b 4d 24 0d 00 82 12 f1 22 4d 4f 44 45 |" "+M$....."MODE| 000001a0 20 22 4d 24 22 3a 22 3b 0d 00 8c 0e e3 4e 25 3d | "M$":";.....N%=| 000001b0 30 20 b8 20 31 32 0d 00 96 2d c8 99 20 22 4f 53 |0 . 12...-.. "OS| 000001c0 5f 52 65 61 64 4d 6f 64 65 56 61 72 69 61 62 6c |_ReadModeVariabl| 000001d0 65 22 2c 4d 25 2c 4e 25 20 b8 20 2c 2c 52 25 20 |e",M%,N% . ,,R% | 000001e0 3b 46 25 0d 00 a0 0e e7 20 46 25 20 80 20 32 20 |;F%..... F% . 2 | 000001f0 8c 0d 00 aa 21 20 20 f1 89 34 22 4d 6f 64 65 20 |....! ..4"Mode | 00000200 69 73 20 69 6e 76 61 6c 69 64 22 3a 20 4e 25 3d |is invalid": N%=| 00000210 33 30 0d 00 b4 06 20 cc 0d 00 be 1b 20 20 50 24 |30.... ..... P$| 00000220 3d 22 22 3a 20 41 24 3d c3 52 25 3a 20 4c 25 3d |="": A$=.R%: L%=| 00000230 a9 41 24 0d 00 c8 0d 20 20 c8 8e 20 4e 25 20 ca |.A$.... .. N% .| 00000240 0d 00 d2 32 20 20 20 c9 20 30 20 20 20 20 20 20 |...2 . 0 | 00000250 20 20 20 3a 20 53 25 3d 32 3a 20 50 24 3d 22 26 | : S%=2: P$="&| 00000260 22 3a 20 41 24 3d c3 7e 52 25 3a 20 4c 25 3d a9 |": A$=.~R%: L%=.| 00000270 41 24 0d 00 dc 19 20 20 20 c9 20 34 2c 35 20 20 |A$.... . 4,5 | 00000280 20 20 20 20 20 3a 20 53 25 3d 32 0d 00 e6 19 20 | : S%=2.... | 00000290 20 20 c9 20 32 2c 33 2c 38 2c 39 2c 31 30 3a 20 | . 2,3,8,9,10: | 000002a0 53 25 3d 33 0d 00 f0 19 20 20 20 c9 20 31 2c 31 |S%=3.... . 1,1| 000002b0 33 20 20 20 20 20 20 3a 20 53 25 3d 34 0d 00 fa |3 : S%=4...| 000002c0 19 20 20 20 c9 20 36 2c 31 31 2c 31 32 20 20 20 |. . 6,11,12 | 000002d0 3a 20 53 25 3d 35 0d 01 04 19 20 20 20 c9 20 37 |: S%=5.... . 7| 000002e0 20 20 20 20 20 20 20 20 20 3a 20 53 25 3d 36 0d | : S%=6.| 000002f0 01 0e 30 20 20 20 20 c8 99 20 22 4f 53 5f 43 6f |..0 .. "OS_Co| 00000300 6e 76 65 72 74 46 69 6c 65 53 69 7a 65 22 2c 52 |nvertFileSize",R| 00000310 25 2c 42 25 2c 34 30 20 b8 20 43 25 2c 44 25 0d |%,B%,40 . C%,D%.| 00000320 01 18 12 20 20 20 20 4c 25 3d 44 25 2d 43 25 2d |... L%=D%-C%-| 00000330 35 0d 01 22 13 20 20 20 20 41 24 3d c0 24 42 25 |5..". A$=.$B%| 00000340 2c 4c 25 29 0d 01 2c 07 20 20 cb 0d 01 36 14 20 |,L%)..,. ...6. | 00000350 20 f1 89 28 53 25 2d 4c 25 29 50 24 41 24 3b 0d | ..(S%-L%)P$A$;.| 00000360 01 40 05 cd 0d 01 4a 07 ed 3a f1 0d 01 54 0b ed |.@....J..:...T..| 00000370 3a ef 33 2c 31 35 0d 01 5e 1d c8 99 20 22 57 69 |:.3,15..^... "Wi| 00000380 6d 70 5f 43 6f 6d 6d 61 6e 64 57 69 6e 64 6f 77 |mp_CommandWindow| 00000390 22 2c 30 0d 01 68 17 c8 99 20 22 57 69 6d 70 5f |",0..h... "Wimp_| 000003a0 43 6c 6f 73 65 44 6f 77 6e 22 0d ff |CloseDown"..| 000003ac