Home » Archimedes archive » Games » Holed Out 2 - Extra Courses Vol 1 (1989)(The Fourth Dimension).adf » DRIVER

DRIVER

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 » Games » Holed Out 2 - Extra Courses Vol 1 (1989)(The Fourth Dimension).adf
Filename: DRIVER
Read OK:
File size: 0400 bytes
Load address: 9100
Exec address: 9100
File contents
   10REM >DRIVER
   20*FX200,3
   30ONERROR VDU26:REPORT:PRINT" at line ";ERL:END
   40SYS 26,0,0 TO A%:B%=(A%AND12)
   50CASE B% OF
   60WHEN0:page%=4
   70WHEN4:page%=8
   80WHEN8:page%=16
   90WHEN12:page%=32
  100ENDCASE
  110ON ERROR PROCwrite
  120channel=OPENUP"Cram"
  130FORI%=0TO240:A%=BGET#channel:SYS 6,162,I%,A%:NEXT
  140CLOSE#channel
  150ONERROROFF
  160*DELETE Cram
  170CHAIN"HOLEDOUT2"
  180DEFPROCwrite
  190PROCwriteprotect
  200channel=OPENOUT"Cram"
  210FORI%=0TO240:SYS 6,161,I% TO A%,A%,A%:BPUT#channel,A%:NEXT
  220CLOSE#channel
  230ENDIF
  240OSCLI("CONFIGURE SCREENSIZE "+STR$(240 DIV page%))
  250OSCLI("CONFIGURE SPRITESIZE "+STR$(240 DIV page%))
  260OSCLI("CONFIGURE RMASIZE "+STR$(200 DIVpage%))
  270*CONFIGURE LANGUAGE 4
  280*CONFIGURE FONTSIZE 0
  290*CONFIGURE RamFsSize 0
  300*CONFIGURE DRIVE 0
  310*CONFIGURE BOOT
  320FOR pass%=0 TO 2 STEP 2
  330DIM code% 100:P%=code%
  340[OPT pass%
  350.goc
  360MOV R0,#&3800000
  370LDR R1,[R0]
  380STR R1,[R1,-R1]
  390SWI "XOS_EnterOS"
  400TEQP PC,#&FC000003
  410MOV PC,#0
  420]
  430NEXT pass%
  440CALLgoc
  450ENDPROC
  460DEF PROCwriteprotect
  470LOCAL ERROR
  480ONERROR LOCAL IF ERR=67785VDU26:CLS:PRINTTAB(4,15)"Please ensure disc is NOT write protected and reboot":END
  490*OPT 4 3
  500*OPT 4 2
  510ENDPROC


� >DRIVER
*FX200,3
� �26:�:�" at line ";�:�
(ș 26,0,0 � A%:B%=(A%�12)
2Ȏ B% �
<�0:page%=4
F�4:page%=8
P�8:page%=16
Z�12:page%=32
d�
n� � �write
xchannel=�"Cram"
�+�I%=0�240:A%=�#channel:ș 6,162,I%,A%:�
�
�#channel
�
�*DELETE Cram
��"HOLEDOUT2"
���write
��writeprotect
�channel=�"Cram"
�3�I%=0�240:ș 6,161,I% � A%,A%,A%:�#channel,A%:�
�
�#channel
��
�-�("CONFIGURE SCREENSIZE "+�(240 � page%))
�-�("CONFIGURE SPRITESIZE "+�(240 � page%))
)�("CONFIGURE RMASIZE "+�(200 �page%))
*CONFIGURE LANGUAGE 4
*CONFIGURE FONTSIZE 0
"*CONFIGURE RamFsSize 0
,*CONFIGURE DRIVE 0
6*CONFIGURE BOOT
@� pass%=0 � 2 � 2
J� code% 100:P%=code%
T[OPT pass%
^.goc
hMOV R0,#&3800000
rLDR R1,[R0]
|STR R1,[R1,-R1]
�SWI "XOS_EnterOS"
�TEQP PC,#&FC000003
�
MOV PC,#0
�]
�� pass%
��goc
��
�� �writeprotect
�� �
�W� � � �=67785�26:�:�4,15)"Please ensure disc is NOT write protected and reboot":�
�*OPT 4 3
�*OPT 4 2
��
�
00000000  0d 00 0a 0d f4 20 3e 44  52 49 56 45 52 0d 00 14  |..... >DRIVER...|
00000010  0c 2a 46 58 32 30 30 2c  33 0d 00 1e 1d ee 85 20  |.*FX200,3...... |
00000020  ef 32 36 3a f6 3a f1 22  20 61 74 20 6c 69 6e 65  |.26:.:." at line|
00000030  20 22 3b 9e 3a e0 0d 00  28 1d c8 99 20 32 36 2c  | ";.:...(... 26,|
00000040  30 2c 30 20 b8 20 41 25  3a 42 25 3d 28 41 25 80  |0,0 . A%:B%=(A%.|
00000050  31 32 29 0d 00 32 0b c8  8e 20 42 25 20 ca 0d 00  |12)..2... B% ...|
00000060  3c 0e c9 30 3a 70 61 67  65 25 3d 34 0d 00 46 0e  |<..0:page%=4..F.|
00000070  c9 34 3a 70 61 67 65 25  3d 38 0d 00 50 0f c9 38  |.4:page%=8..P..8|
00000080  3a 70 61 67 65 25 3d 31  36 0d 00 5a 10 c9 31 32  |:page%=16..Z..12|
00000090  3a 70 61 67 65 25 3d 33  32 0d 00 64 05 cb 0d 00  |:page%=32..d....|
000000a0  6e 0e ee 20 85 20 f2 77  72 69 74 65 0d 00 78 13  |n.. . .write..x.|
000000b0  63 68 61 6e 6e 65 6c 3d  ad 22 43 72 61 6d 22 0d  |channel=."Cram".|
000000c0  00 82 2b e3 49 25 3d 30  b8 32 34 30 3a 41 25 3d  |..+.I%=0.240:A%=|
000000d0  9a 23 63 68 61 6e 6e 65  6c 3a c8 99 20 36 2c 31  |.#channel:.. 6,1|
000000e0  36 32 2c 49 25 2c 41 25  3a ed 0d 00 8c 0d d9 23  |62,I%,A%:......#|
000000f0  63 68 61 6e 6e 65 6c 0d  00 96 07 ee 85 87 0d 00  |channel.........|
00000100  a0 10 2a 44 45 4c 45 54  45 20 43 72 61 6d 0d 00  |..*DELETE Cram..|
00000110  aa 10 d7 22 48 4f 4c 45  44 4f 55 54 32 22 0d 00  |..."HOLEDOUT2"..|
00000120  b4 0b dd f2 77 72 69 74  65 0d 00 be 11 f2 77 72  |....write.....wr|
00000130  69 74 65 70 72 6f 74 65  63 74 0d 00 c8 13 63 68  |iteprotect....ch|
00000140  61 6e 6e 65 6c 3d ae 22  43 72 61 6d 22 0d 00 d2  |annel=."Cram"...|
00000150  33 e3 49 25 3d 30 b8 32  34 30 3a c8 99 20 36 2c  |3.I%=0.240:.. 6,|
00000160  31 36 31 2c 49 25 20 b8  20 41 25 2c 41 25 2c 41  |161,I% . A%,A%,A|
00000170  25 3a d5 23 63 68 61 6e  6e 65 6c 2c 41 25 3a ed  |%:.#channel,A%:.|
00000180  0d 00 dc 0d d9 23 63 68  61 6e 6e 65 6c 0d 00 e6  |.....#channel...|
00000190  05 cd 0d 00 f0 2d ff 28  22 43 4f 4e 46 49 47 55  |.....-.("CONFIGU|
000001a0  52 45 20 53 43 52 45 45  4e 53 49 5a 45 20 22 2b  |RE SCREENSIZE "+|
000001b0  c3 28 32 34 30 20 81 20  70 61 67 65 25 29 29 0d  |.(240 . page%)).|
000001c0  00 fa 2d ff 28 22 43 4f  4e 46 49 47 55 52 45 20  |..-.("CONFIGURE |
000001d0  53 50 52 49 54 45 53 49  5a 45 20 22 2b c3 28 32  |SPRITESIZE "+.(2|
000001e0  34 30 20 81 20 70 61 67  65 25 29 29 0d 01 04 29  |40 . page%))...)|
000001f0  ff 28 22 43 4f 4e 46 49  47 55 52 45 20 52 4d 41  |.("CONFIGURE RMA|
00000200  53 49 5a 45 20 22 2b c3  28 32 30 30 20 81 70 61  |SIZE "+.(200 .pa|
00000210  67 65 25 29 29 0d 01 0e  19 2a 43 4f 4e 46 49 47  |ge%))....*CONFIG|
00000220  55 52 45 20 4c 41 4e 47  55 41 47 45 20 34 0d 01  |URE LANGUAGE 4..|
00000230  18 19 2a 43 4f 4e 46 49  47 55 52 45 20 46 4f 4e  |..*CONFIGURE FON|
00000240  54 53 49 5a 45 20 30 0d  01 22 1a 2a 43 4f 4e 46  |TSIZE 0..".*CONF|
00000250  49 47 55 52 45 20 52 61  6d 46 73 53 69 7a 65 20  |IGURE RamFsSize |
00000260  30 0d 01 2c 16 2a 43 4f  4e 46 49 47 55 52 45 20  |0..,.*CONFIGURE |
00000270  44 52 49 56 45 20 30 0d  01 36 13 2a 43 4f 4e 46  |DRIVE 0..6.*CONF|
00000280  49 47 55 52 45 20 42 4f  4f 54 0d 01 40 15 e3 20  |IGURE BOOT..@.. |
00000290  70 61 73 73 25 3d 30 20  b8 20 32 20 88 20 32 0d  |pass%=0 . 2 . 2.|
000002a0  01 4a 18 de 20 63 6f 64  65 25 20 31 30 30 3a 50  |.J.. code% 100:P|
000002b0  25 3d 63 6f 64 65 25 0d  01 54 0e 5b 4f 50 54 20  |%=code%..T.[OPT |
000002c0  70 61 73 73 25 0d 01 5e  08 2e 67 6f 63 0d 01 68  |pass%..^..goc..h|
000002d0  14 4d 4f 56 20 52 30 2c  23 26 33 38 30 30 30 30  |.MOV R0,#&380000|
000002e0  30 0d 01 72 0f 4c 44 52  20 52 31 2c 5b 52 30 5d  |0..r.LDR R1,[R0]|
000002f0  0d 01 7c 13 53 54 52 20  52 31 2c 5b 52 31 2c 2d  |..|.STR R1,[R1,-|
00000300  52 31 5d 0d 01 86 15 53  57 49 20 22 58 4f 53 5f  |R1]....SWI "XOS_|
00000310  45 6e 74 65 72 4f 53 22  0d 01 90 16 54 45 51 50  |EnterOS"....TEQP|
00000320  20 50 43 2c 23 26 46 43  30 30 30 30 30 33 0d 01  | PC,#&FC000003..|
00000330  9a 0d 4d 4f 56 20 50 43  2c 23 30 0d 01 a4 05 5d  |..MOV PC,#0....]|
00000340  0d 01 ae 0b ed 20 70 61  73 73 25 0d 01 b8 08 d6  |..... pass%.....|
00000350  67 6f 63 0d 01 c2 05 e1  0d 01 cc 13 dd 20 f2 77  |goc.......... .w|
00000360  72 69 74 65 70 72 6f 74  65 63 74 0d 01 d6 07 ea  |riteprotect.....|
00000370  20 85 0d 01 e0 57 ee 85  20 ea 20 e7 20 9f 3d 36  | ....W.. . . .=6|
00000380  37 37 38 35 ef 32 36 3a  db 3a f1 8a 34 2c 31 35  |7785.26:.:..4,15|
00000390  29 22 50 6c 65 61 73 65  20 65 6e 73 75 72 65 20  |)"Please ensure |
000003a0  64 69 73 63 20 69 73 20  4e 4f 54 20 77 72 69 74  |disc is NOT writ|
000003b0  65 20 70 72 6f 74 65 63  74 65 64 20 61 6e 64 20  |e protected and |
000003c0  72 65 62 6f 6f 74 22 3a  e0 0d 01 ea 0c 2a 4f 50  |reboot":.....*OP|
000003d0  54 20 34 20 33 0d 01 f4  0c 2a 4f 50 54 20 34 20  |T 4 3....*OPT 4 |
000003e0  32 0d 01 fe 05 e1 0d ff  00 00 00 00 00 00 00 00  |2...............|
000003f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000400