Home » CEEFAX disks » telesoftware12.adl » 13-01-89/RHBOOT

13-01-89/RHBOOT

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 » CEEFAX disks » telesoftware12.adl
Filename: 13-01-89/RHBOOT
Read OK:
File size: 0582 bytes
Load address: FFFF1900
Exec address: FFFF8023
File contents
   10REM> RHBOOT
   20REM use to create an RH light pen !BOOT file
   30DIM mcode &100
   40firstbyte=&2F00
   50drb=&FE40
   60ddrb=&FE42
   70pcr=&FE4C
   80ifr=&FE4D
   90ier=&FE4E
  100oswrch=&FFEE
  110FOR pass=4 TO 6 STEP 2
  120O%=mcode
  130P%=firstbyte
  140[OPT pass
  150EQUW &FF0D
  160.start
  170LDA drb
  180AND #&20 \ %00100000
  190BEQ return
  200SEI
  210LDA #&08 \ %00001000
  220STA ifr
  230STA ier
  240LDA pcr
  250AND #&7F \ %01111111
  260ORA #&60 \ %01100000
  270STA pcr
  280LDA ddrb
  290AND #&CF \ %11001111
  300STA ddrb
  310LDA ddrb
  320ORA #&30 \ %00110000
  330STA ddrb
  340LDX #&06
  350.delay1
  360DEX
  370BNE delay1
  380LDA ddrb
  390AND #&EF \ %11101111
  400STA ddrb
  410LDX #&64
  420.delay2
  430DEX
  440BNE delay2
  450LDY #&08
  460LDA #&93 \ %10010011
  470.mainloop
  480ASL A
  490PHA
  500LDA ddrb
  510BCS carryset
  520ORA #&20 \ %00100000
  530BNE notzero
  540.carryset
  550AND #&DF \ %11011111
  560.notzero
  570STA ddrb
  580LDA ddrb
  590ORA #&10 \ %00010000
  600STA ddrb
  610AND #&EF \ %11101111
  620STA ddrb
  630LDX #&32
  640.delay3
  650DEX
  660BNE delay3
  670PLA
  680DEY
  690BNE mainloop
  700CLI
  710LDA drb
  720AND #&20 \ %00100000
  730BNE return
  740LDX #&00
  750.print
  760LDA message,X
  770BEQ return
  780JSR oswrch
  790INX
  800BNE print
  810.return
  820RTS
  830.message
  840EQUS "Press <BREAK> to initialise light pen"
  850EQUD &000A0A0D
  860.lastbyte
  870]
  880NEXT
  890*OPT1,2
  900OSCLI("SAVE $.!BOOT "+STR$~(mcode)+"+"+STR$~(lastbyte-firstbyte)+" "+STR$~(&FFFF0000 OR start)+" "+STR$~(&FFFF0000 OR firstbyte))
  910*OPT0,0
  920*OPT4,2


�> RHBOOT
.� use to create an RH light pen !BOOT file
� mcode &100
(firstbyte=&2F00
2
drb=&FE40
<ddrb=&FE42
F
pcr=&FE4C
P
ifr=&FE4D
Z
ier=&FE4E
doswrch=&FFEE
n� pass=4 � 6 � 2
xO%=mcode
�P%=firstbyte
�
[OPT pass
�EQUW &FF0D
�
.start
�LDA drb
�� #&20 \ %00100000
�BEQ return
�SEI
�LDA #&08 \ %00001000
�STA ifr
�STA ier
�LDA pcr
�� #&7F \ %01111111
�A #&60 \ %01100000
STA pcr
LDA ddrb
"� #&CF \ %11001111
,STA ddrb
6LDA ddrb
@�A #&30 \ %00110000
JSTA ddrb
TLDX #&06
^.delay1
hDEX
rBNE delay1
|LDA ddrb
�� #&EF \ %11101111
�STA ddrb
�LDX #&64
�.delay2
�DEX
�BNE delay2
�LDY #&08
�LDA #&93 \ %10010011
�
.mainloop
�	ASL A
�PHA
�LDA ddrb
�BCS carryset
�A #&20 \ %00100000
BNE notzero

.carryset
&� #&DF \ %11011111
0.notzero
:STA ddrb
DLDA ddrb
N�A #&10 \ %00010000
XSTA ddrb
b� #&EF \ %11101111
lSTA ddrb
vLDX #&32
�.delay3
�DEX
�BNE delay3
�PLA
�DEY
�BNE mainloop
�CLI
�LDA drb
�� #&20 \ %00100000
�BNE return
�LDX #&00
�
.print
�LDA message,X
BEQ return
JSR oswrch
INX
 
BNE print
*.return
4RTS
>.message
H0EQUS "Press <BREAK> to initialise light pen"
REQUD &000A0A0D
\
.lastbyte
f]
p�
z*OPT1,2
�s�("SAVE $.!BOOT "+�~(mcode)+"+"+�~(lastbyte-firstbyte)+" "+�~(&FFFF0000 � start)+" "+�~(&FFFF0000 � firstbyte))
�*OPT0,0
�*OPT4,2
�
00000000  0d 00 0a 0d f4 3e 20 52  48 42 4f 4f 54 0d 00 14  |.....> RHBOOT...|
00000010  2e f4 20 75 73 65 20 74  6f 20 63 72 65 61 74 65  |.. use to create|
00000020  20 61 6e 20 52 48 20 6c  69 67 68 74 20 70 65 6e  | an RH light pen|
00000030  20 21 42 4f 4f 54 20 66  69 6c 65 0d 00 1e 10 de  | !BOOT file.....|
00000040  20 6d 63 6f 64 65 20 26  31 30 30 0d 00 28 13 66  | mcode &100..(.f|
00000050  69 72 73 74 62 79 74 65  3d 26 32 46 30 30 0d 00  |irstbyte=&2F00..|
00000060  32 0d 64 72 62 3d 26 46  45 34 30 0d 00 3c 0e 64  |2.drb=&FE40..<.d|
00000070  64 72 62 3d 26 46 45 34  32 0d 00 46 0d 70 63 72  |drb=&FE42..F.pcr|
00000080  3d 26 46 45 34 43 0d 00  50 0d 69 66 72 3d 26 46  |=&FE4C..P.ifr=&F|
00000090  45 34 44 0d 00 5a 0d 69  65 72 3d 26 46 45 34 45  |E4D..Z.ier=&FE4E|
000000a0  0d 00 64 10 6f 73 77 72  63 68 3d 26 46 46 45 45  |..d.oswrch=&FFEE|
000000b0  0d 00 6e 14 e3 20 70 61  73 73 3d 34 20 b8 20 36  |..n.. pass=4 . 6|
000000c0  20 88 20 32 0d 00 78 0c  4f 25 3d 6d 63 6f 64 65  | . 2..x.O%=mcode|
000000d0  0d 00 82 10 50 25 3d 66  69 72 73 74 62 79 74 65  |....P%=firstbyte|
000000e0  0d 00 8c 0d 5b 4f 50 54  20 70 61 73 73 0d 00 96  |....[OPT pass...|
000000f0  0e 45 51 55 57 20 26 46  46 30 44 0d 00 a0 0a 2e  |.EQUW &FF0D.....|
00000100  73 74 61 72 74 0d 00 aa  0b 4c 44 41 20 64 72 62  |start....LDA drb|
00000110  0d 00 b4 16 80 20 23 26  32 30 20 5c 20 25 30 30  |..... #&20 \ %00|
00000120  31 30 30 30 30 30 0d 00  be 0e 42 45 51 20 72 65  |100000....BEQ re|
00000130  74 75 72 6e 0d 00 c8 07  53 45 49 0d 00 d2 18 4c  |turn....SEI....L|
00000140  44 41 20 23 26 30 38 20  5c 20 25 30 30 30 30 31  |DA #&08 \ %00001|
00000150  30 30 30 0d 00 dc 0b 53  54 41 20 69 66 72 0d 00  |000....STA ifr..|
00000160  e6 0b 53 54 41 20 69 65  72 0d 00 f0 0b 4c 44 41  |..STA ier....LDA|
00000170  20 70 63 72 0d 00 fa 16  80 20 23 26 37 46 20 5c  | pcr..... #&7F \|
00000180  20 25 30 31 31 31 31 31  31 31 0d 01 04 17 84 41  | %01111111.....A|
00000190  20 23 26 36 30 20 5c 20  25 30 31 31 30 30 30 30  | #&60 \ %0110000|
000001a0  30 0d 01 0e 0b 53 54 41  20 70 63 72 0d 01 18 0c  |0....STA pcr....|
000001b0  4c 44 41 20 64 64 72 62  0d 01 22 16 80 20 23 26  |LDA ddrb..".. #&|
000001c0  43 46 20 5c 20 25 31 31  30 30 31 31 31 31 0d 01  |CF \ %11001111..|
000001d0  2c 0c 53 54 41 20 64 64  72 62 0d 01 36 0c 4c 44  |,.STA ddrb..6.LD|
000001e0  41 20 64 64 72 62 0d 01  40 17 84 41 20 23 26 33  |A ddrb..@..A #&3|
000001f0  30 20 5c 20 25 30 30 31  31 30 30 30 30 0d 01 4a  |0 \ %00110000..J|
00000200  0c 53 54 41 20 64 64 72  62 0d 01 54 0c 4c 44 58  |.STA ddrb..T.LDX|
00000210  20 23 26 30 36 0d 01 5e  0b 2e 64 65 6c 61 79 31  | #&06..^..delay1|
00000220  0d 01 68 07 44 45 58 0d  01 72 0e 42 4e 45 20 64  |..h.DEX..r.BNE d|
00000230  65 6c 61 79 31 0d 01 7c  0c 4c 44 41 20 64 64 72  |elay1..|.LDA ddr|
00000240  62 0d 01 86 16 80 20 23  26 45 46 20 5c 20 25 31  |b..... #&EF \ %1|
00000250  31 31 30 31 31 31 31 0d  01 90 0c 53 54 41 20 64  |1101111....STA d|
00000260  64 72 62 0d 01 9a 0c 4c  44 58 20 23 26 36 34 0d  |drb....LDX #&64.|
00000270  01 a4 0b 2e 64 65 6c 61  79 32 0d 01 ae 07 44 45  |....delay2....DE|
00000280  58 0d 01 b8 0e 42 4e 45  20 64 65 6c 61 79 32 0d  |X....BNE delay2.|
00000290  01 c2 0c 4c 44 59 20 23  26 30 38 0d 01 cc 18 4c  |...LDY #&08....L|
000002a0  44 41 20 23 26 39 33 20  5c 20 25 31 30 30 31 30  |DA #&93 \ %10010|
000002b0  30 31 31 0d 01 d6 0d 2e  6d 61 69 6e 6c 6f 6f 70  |011.....mainloop|
000002c0  0d 01 e0 09 41 53 4c 20  41 0d 01 ea 07 50 48 41  |....ASL A....PHA|
000002d0  0d 01 f4 0c 4c 44 41 20  64 64 72 62 0d 01 fe 10  |....LDA ddrb....|
000002e0  42 43 53 20 63 61 72 72  79 73 65 74 0d 02 08 17  |BCS carryset....|
000002f0  84 41 20 23 26 32 30 20  5c 20 25 30 30 31 30 30  |.A #&20 \ %00100|
00000300  30 30 30 0d 02 12 0f 42  4e 45 20 6e 6f 74 7a 65  |000....BNE notze|
00000310  72 6f 0d 02 1c 0d 2e 63  61 72 72 79 73 65 74 0d  |ro.....carryset.|
00000320  02 26 16 80 20 23 26 44  46 20 5c 20 25 31 31 30  |.&.. #&DF \ %110|
00000330  31 31 31 31 31 0d 02 30  0c 2e 6e 6f 74 7a 65 72  |11111..0..notzer|
00000340  6f 0d 02 3a 0c 53 54 41  20 64 64 72 62 0d 02 44  |o..:.STA ddrb..D|
00000350  0c 4c 44 41 20 64 64 72  62 0d 02 4e 17 84 41 20  |.LDA ddrb..N..A |
00000360  23 26 31 30 20 5c 20 25  30 30 30 31 30 30 30 30  |#&10 \ %00010000|
00000370  0d 02 58 0c 53 54 41 20  64 64 72 62 0d 02 62 16  |..X.STA ddrb..b.|
00000380  80 20 23 26 45 46 20 5c  20 25 31 31 31 30 31 31  |. #&EF \ %111011|
00000390  31 31 0d 02 6c 0c 53 54  41 20 64 64 72 62 0d 02  |11..l.STA ddrb..|
000003a0  76 0c 4c 44 58 20 23 26  33 32 0d 02 80 0b 2e 64  |v.LDX #&32.....d|
000003b0  65 6c 61 79 33 0d 02 8a  07 44 45 58 0d 02 94 0e  |elay3....DEX....|
000003c0  42 4e 45 20 64 65 6c 61  79 33 0d 02 9e 07 50 4c  |BNE delay3....PL|
000003d0  41 0d 02 a8 07 44 45 59  0d 02 b2 10 42 4e 45 20  |A....DEY....BNE |
000003e0  6d 61 69 6e 6c 6f 6f 70  0d 02 bc 07 43 4c 49 0d  |mainloop....CLI.|
000003f0  02 c6 0b 4c 44 41 20 64  72 62 0d 02 d0 16 80 20  |...LDA drb..... |
00000400  23 26 32 30 20 5c 20 25  30 30 31 30 30 30 30 30  |#&20 \ %00100000|
00000410  0d 02 da 0e 42 4e 45 20  72 65 74 75 72 6e 0d 02  |....BNE return..|
00000420  e4 0c 4c 44 58 20 23 26  30 30 0d 02 ee 0a 2e 70  |..LDX #&00.....p|
00000430  72 69 6e 74 0d 02 f8 11  4c 44 41 20 6d 65 73 73  |rint....LDA mess|
00000440  61 67 65 2c 58 0d 03 02  0e 42 45 51 20 72 65 74  |age,X....BEQ ret|
00000450  75 72 6e 0d 03 0c 0e 4a  53 52 20 6f 73 77 72 63  |urn....JSR oswrc|
00000460  68 0d 03 16 07 49 4e 58  0d 03 20 0d 42 4e 45 20  |h....INX.. .BNE |
00000470  70 72 69 6e 74 0d 03 2a  0b 2e 72 65 74 75 72 6e  |print..*..return|
00000480  0d 03 34 07 52 54 53 0d  03 3e 0c 2e 6d 65 73 73  |..4.RTS..>..mess|
00000490  61 67 65 0d 03 48 30 45  51 55 53 20 22 50 72 65  |age..H0EQUS "Pre|
000004a0  73 73 20 3c 42 52 45 41  4b 3e 20 74 6f 20 69 6e  |ss <BREAK> to in|
000004b0  69 74 69 61 6c 69 73 65  20 6c 69 67 68 74 20 70  |itialise light p|
000004c0  65 6e 22 0d 03 52 12 45  51 55 44 20 26 30 30 30  |en"..R.EQUD &000|
000004d0  41 30 41 30 44 0d 03 5c  0d 2e 6c 61 73 74 62 79  |A0A0D..\..lastby|
000004e0  74 65 0d 03 66 05 5d 0d  03 70 05 ed 0d 03 7a 0b  |te..f.]..p....z.|
000004f0  2a 4f 50 54 31 2c 32 0d  03 84 73 ff 28 22 53 41  |*OPT1,2...s.("SA|
00000500  56 45 20 24 2e 21 42 4f  4f 54 20 22 2b c3 7e 28  |VE $.!BOOT "+.~(|
00000510  6d 63 6f 64 65 29 2b 22  2b 22 2b c3 7e 28 6c 61  |mcode)+"+"+.~(la|
00000520  73 74 62 79 74 65 2d 66  69 72 73 74 62 79 74 65  |stbyte-firstbyte|
00000530  29 2b 22 20 22 2b c3 7e  28 26 46 46 46 46 30 30  |)+" "+.~(&FFFF00|
00000540  30 30 20 84 20 73 74 61  72 74 29 2b 22 20 22 2b  |00 . start)+" "+|
00000550  c3 7e 28 26 46 46 46 46  30 30 30 30 20 84 20 66  |.~(&FFFF0000 . f|
00000560  69 72 73 74 62 79 74 65  29 29 0d 03 8e 0b 2a 4f  |irstbyte))....*O|
00000570  50 54 30 2c 30 0d 03 98  0b 2a 4f 50 54 34 2c 32  |PT0,0....*OPT4,2|
00000580  0d ff                                             |..|
00000582
13-01-89/RHBOOT.m0
13-01-89/RHBOOT.m1
13-01-89/RHBOOT.m2
13-01-89/RHBOOT.m4
13-01-89/RHBOOT.m5