Home » Archimedes archive » Micro User » MU 1991-10.adf » Listings » Arc/BrainU

Arc/BrainU

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-10.adf » Listings
Filename: Arc/BrainU
Read OK:
File size: 0324 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM >IIC.BrainU
   20DIM PBK% 3
   30SYS "OS_Byte",151,&60,0
   50MODE 1
   60PRINT"BRAIN SURGEON"
   70PRINT" By Mike Cook"
   80PRINT"Using the User Port"
   90PRINT TAB(0,14)"Score"
  100REPEAT:REPEAT
  110PRINT TAB(0,23)"Put in place all the pieces of Brain"
  120  REPEAT
  130  SYS "OS_Byte",150,&60 TO ,,?PBK%
  140  UNTIL ?PBK%=&80
  150  PRINT TAB(0,23)"Now begin to remove the Brain Tumours"
  160  PRINTTAB(0,17);SPC(39)
  170  PRINTTAB(0,19);SPC(39)
  180 TIME=0
  190 REPEAT UNTIL TIME > 200
  200 SYS "OS_Byte",150,&60 TO ,,?PBK%
  210UNTIL ?PBK%=&80
  220SCORE=0:T%=0
  230REPEAT
  240SYS "OS_Byte",150,&60 TO ,,?PBK%
  250A%=?PBK%:V%=1
  260FOR B%=0 TO 6
  270IF (A% AND V%)<>0 AND (T% AND V%)=0 THEN T%=T% OR V%:SCORE+=1
  280V%=V%*2
  290NEXT
  300PRINT TAB(0,14);"Score ",SCORE
  310UNTIL (A% AND &80)=0 OR (T%=&7F)
  320TM%=TIME
  330IF T%=&7F THEN PRINT TAB(0,17)"Congratulations! Your patient survived. " ELSE:PRINT TAB(0,17)"Sorry - your patient died"
  340PRINTTAB(0,19);"You took ";TM%/100;" Seconds"
  350UNTIL FALSE

� >IIC.BrainU
� PBK% 3
ș "OS_Byte",151,&60,0
2� 1
<�"BRAIN SURGEON"
F�" By Mike Cook"
P�"Using the User Port"
Z� �0,14)"Score"
d�:�
n2� �0,23)"Put in place all the pieces of Brain"
x  �
�$  ș "OS_Byte",150,&60 � ,,?PBK%
�  � ?PBK%=&80
�5  � �0,23)"Now begin to remove the Brain Tumours"
�  �0,17);�(39)
�  �0,19);�(39)
� �=0
� � � � > 200
�# ș "OS_Byte",150,&60 � ,,?PBK%
�� ?PBK%=&80
�SCORE=0:T%=0
��
�"ș "OS_Byte",150,&60 � ,,?PBK%
�A%=?PBK%:V%=1
� B%=0 � 6
6� (A% � V%)<>0 � (T% � V%)=0 � T%=T% � V%:SCORE+=1
V%=V%*2
"�
,� �0,14);"Score ",SCORE
6� (A% � &80)=0 � (T%=&7F)
@	TM%=�
Jg� T%=&7F � � �0,17)"Congratulations! Your patient survived. " �:� �0,17)"Sorry - your patient died"
T*�0,19);"You took ";TM%/100;" Seconds"
^� �
�
00000000  0d 00 0a 11 f4 20 3e 49  49 43 2e 42 72 61 69 6e  |..... >IIC.Brain|
00000010  55 0d 00 14 0c de 20 50  42 4b 25 20 33 0d 00 1e  |U..... PBK% 3...|
00000020  1a c8 99 20 22 4f 53 5f  42 79 74 65 22 2c 31 35  |... "OS_Byte",15|
00000030  31 2c 26 36 30 2c 30 0d  00 32 07 eb 20 31 0d 00  |1,&60,0..2.. 1..|
00000040  3c 14 f1 22 42 52 41 49  4e 20 53 55 52 47 45 4f  |<.."BRAIN SURGEO|
00000050  4e 22 0d 00 46 14 f1 22  20 42 79 20 4d 69 6b 65  |N"..F.." By Mike|
00000060  20 43 6f 6f 6b 22 0d 00  50 1a f1 22 55 73 69 6e  | Cook"..P.."Usin|
00000070  67 20 74 68 65 20 55 73  65 72 20 50 6f 72 74 22  |g the User Port"|
00000080  0d 00 5a 13 f1 20 8a 30  2c 31 34 29 22 53 63 6f  |..Z.. .0,14)"Sco|
00000090  72 65 22 0d 00 64 07 f5  3a f5 0d 00 6e 32 f1 20  |re"..d..:...n2. |
000000a0  8a 30 2c 32 33 29 22 50  75 74 20 69 6e 20 70 6c  |.0,23)"Put in pl|
000000b0  61 63 65 20 61 6c 6c 20  74 68 65 20 70 69 65 63  |ace all the piec|
000000c0  65 73 20 6f 66 20 42 72  61 69 6e 22 0d 00 78 07  |es of Brain"..x.|
000000d0  20 20 f5 0d 00 82 24 20  20 c8 99 20 22 4f 53 5f  |  ....$  .. "OS_|
000000e0  42 79 74 65 22 2c 31 35  30 2c 26 36 30 20 b8 20  |Byte",150,&60 . |
000000f0  2c 2c 3f 50 42 4b 25 0d  00 8c 11 20 20 fd 20 3f  |,,?PBK%....  . ?|
00000100  50 42 4b 25 3d 26 38 30  0d 00 96 35 20 20 f1 20  |PBK%=&80...5  . |
00000110  8a 30 2c 32 33 29 22 4e  6f 77 20 62 65 67 69 6e  |.0,23)"Now begin|
00000120  20 74 6f 20 72 65 6d 6f  76 65 20 74 68 65 20 42  | to remove the B|
00000130  72 61 69 6e 20 54 75 6d  6f 75 72 73 22 0d 00 a0  |rain Tumours"...|
00000140  13 20 20 f1 8a 30 2c 31  37 29 3b 89 28 33 39 29  |.  ..0,17);.(39)|
00000150  0d 00 aa 13 20 20 f1 8a  30 2c 31 39 29 3b 89 28  |....  ..0,19);.(|
00000160  33 39 29 0d 00 b4 08 20  d1 3d 30 0d 00 be 10 20  |39).... .=0.... |
00000170  f5 20 fd 20 91 20 3e 20  32 30 30 0d 00 c8 23 20  |. . . > 200...# |
00000180  c8 99 20 22 4f 53 5f 42  79 74 65 22 2c 31 35 30  |.. "OS_Byte",150|
00000190  2c 26 36 30 20 b8 20 2c  2c 3f 50 42 4b 25 0d 00  |,&60 . ,,?PBK%..|
000001a0  d2 0f fd 20 3f 50 42 4b  25 3d 26 38 30 0d 00 dc  |... ?PBK%=&80...|
000001b0  10 53 43 4f 52 45 3d 30  3a 54 25 3d 30 0d 00 e6  |.SCORE=0:T%=0...|
000001c0  05 f5 0d 00 f0 22 c8 99  20 22 4f 53 5f 42 79 74  |.....".. "OS_Byt|
000001d0  65 22 2c 31 35 30 2c 26  36 30 20 b8 20 2c 2c 3f  |e",150,&60 . ,,?|
000001e0  50 42 4b 25 0d 00 fa 11  41 25 3d 3f 50 42 4b 25  |PBK%....A%=?PBK%|
000001f0  3a 56 25 3d 31 0d 01 04  0e e3 20 42 25 3d 30 20  |:V%=1..... B%=0 |
00000200  b8 20 36 0d 01 0e 36 e7  20 28 41 25 20 80 20 56  |. 6...6. (A% . V|
00000210  25 29 3c 3e 30 20 80 20  28 54 25 20 80 20 56 25  |%)<>0 . (T% . V%|
00000220  29 3d 30 20 8c 20 54 25  3d 54 25 20 84 20 56 25  |)=0 . T%=T% . V%|
00000230  3a 53 43 4f 52 45 2b 3d  31 0d 01 18 0b 56 25 3d  |:SCORE+=1....V%=|
00000240  56 25 2a 32 0d 01 22 05  ed 0d 01 2c 1b f1 20 8a  |V%*2.."....,.. .|
00000250  30 2c 31 34 29 3b 22 53  63 6f 72 65 20 22 2c 53  |0,14);"Score ",S|
00000260  43 4f 52 45 0d 01 36 1d  fd 20 28 41 25 20 80 20  |CORE..6.. (A% . |
00000270  26 38 30 29 3d 30 20 84  20 28 54 25 3d 26 37 46  |&80)=0 . (T%=&7F|
00000280  29 0d 01 40 09 54 4d 25  3d 91 0d 01 4a 67 e7 20  |)..@.TM%=...Jg. |
00000290  54 25 3d 26 37 46 20 8c  20 f1 20 8a 30 2c 31 37  |T%=&7F . . .0,17|
000002a0  29 22 43 6f 6e 67 72 61  74 75 6c 61 74 69 6f 6e  |)"Congratulation|
000002b0  73 21 20 59 6f 75 72 20  70 61 74 69 65 6e 74 20  |s! Your patient |
000002c0  73 75 72 76 69 76 65 64  2e 20 22 20 8b 3a f1 20  |survived. " .:. |
000002d0  8a 30 2c 31 37 29 22 53  6f 72 72 79 20 2d 20 79  |.0,17)"Sorry - y|
000002e0  6f 75 72 20 70 61 74 69  65 6e 74 20 64 69 65 64  |our patient died|
000002f0  22 0d 01 54 2a f1 8a 30  2c 31 39 29 3b 22 59 6f  |"..T*..0,19);"Yo|
00000300  75 20 74 6f 6f 6b 20 22  3b 54 4d 25 2f 31 30 30  |u took ";TM%/100|
00000310  3b 22 20 53 65 63 6f 6e  64 73 22 0d 01 5e 07 fd  |;" Seconds"..^..|
00000320  20 a3 0d ff                                       | ...|
00000324