Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_26.ADF » P/PRTSRC

P/PRTSRC

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 » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_26.ADF
Filename: P/PRTSRC
Read OK:
File size: 02E3 bytes
Load address: FFFF0E00
Exec address: FFFF802B
File contents
   10REM PRT source
   20REM By Richard Dimond, June 1996
   30REM ****************************
   40FOR P=0TO2STEP2
   50P%=&B00
   60[OPT P
   70LDA#0:STA &8A
   80.st LDA#ldnm MOD256:STA BUFF+1
   90LDA#ldnm DIV256:STA BUFF+2
  100LDA#1:STA BUFF+5
  110LDA&8A:STA BUFF+9
  120LDA#8
  130LDX#BUFF MOD256
  140LDY#BUFF DIV256
  150JSR&FFD1
  160LDAldnm
  170TAX:LDA#&20:STAldnm:LDY#1:LDAldnm,Y:CMP#ASC"!":BEQnext:CMP#ASC"+":BNErts:.lp LDAldnm,Y
  180INY:DEX:BNElp:JSRprint
  190.next JSR&FFE7:JSR&FFE7
  200INC&8A:JMPst
  210.rts RTS
  220.print JSR&FFE7:JSR&FFE7
  230JSR&900
  240LDX#ld MOD256
  250LDY#ld DIV256
  260JSR&FFF7
  270JSR&98C
  280RTS
  290.BUFF
  300EQUB0
  310EQUB ldnm MOD256
  312EQUB ldnm DIV256
  314EQUW 0
  320EQUD1
  330EQUD1
  340.ld EQUS"LOAD ":.ldnm EQUS STRING$(10," ")+" 2600"+CHR$&0D
  350]
  360NEXT
  370OSCLI"SAVE PRT B00 "+STR$~P%

� PRT source
"� By Richard Dimond, June 1996
"� ****************************
(
� P=0�2�2
2P%=&B00
<
[OPT P
FLDA#0:STA &8A
P .st LDA#ldnm �256:STA BUFF+1
ZLDA#ldnm �256:STA BUFF+2
dLDA#1:STA BUFF+5
nLDA&8A:STA BUFF+9
x	LDA#8
�LDX#BUFF �256
�LDY#BUFF �256
�JSR&FFD1
�LDAldnm
�VTAX:LDA#&20:STAldnm:LDY#1:LDAldnm,Y:CMP#�"!":BEQnext:CMP#�"+":BNErts:.lp LDAldnm,Y
�INY:DEX:BNElp:JSRprint
�.next JSR&FFE7:JSR&FFE7
�INC&8A:JMPst
�.rts RTS
�.print JSR&FFE7:JSR&FFE7
�JSR&900
�LDX#ld �256
�LDY#ld �256
JSR&FFF7
JSR&98C
RTS
"	.BUFF
,	EQUB0
6EQUB ldnm �256
8EQUB ldnm �256
:
EQUW 0
@	EQUD1
J	EQUD1
T4.ld EQUS"LOAD ":.ldnm EQUS �10," ")+" 2600"+�&0D
^]
h�
r�"SAVE PRT B00 "+�~P%
�
00000000  0d 00 0a 10 f4 20 50 52  54 20 73 6f 75 72 63 65  |..... PRT source|
00000010  0d 00 14 22 f4 20 42 79  20 52 69 63 68 61 72 64  |...". By Richard|
00000020  20 44 69 6d 6f 6e 64 2c  20 4a 75 6e 65 20 31 39  | Dimond, June 19|
00000030  39 36 0d 00 1e 22 f4 20  2a 2a 2a 2a 2a 2a 2a 2a  |96...". ********|
00000040  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
00000050  2a 2a 2a 2a 0d 00 28 0d  e3 20 50 3d 30 b8 32 88  |****..(.. P=0.2.|
00000060  32 0d 00 32 0b 50 25 3d  26 42 30 30 0d 00 3c 0a  |2..2.P%=&B00..<.|
00000070  5b 4f 50 54 20 50 0d 00  46 11 4c 44 41 23 30 3a  |[OPT P..F.LDA#0:|
00000080  53 54 41 20 26 38 41 0d  00 50 20 2e 73 74 20 4c  |STA &8A..P .st L|
00000090  44 41 23 6c 64 6e 6d 20  83 32 35 36 3a 53 54 41  |DA#ldnm .256:STA|
000000a0  20 42 55 46 46 2b 31 0d  00 5a 1c 4c 44 41 23 6c  | BUFF+1..Z.LDA#l|
000000b0  64 6e 6d 20 81 32 35 36  3a 53 54 41 20 42 55 46  |dnm .256:STA BUF|
000000c0  46 2b 32 0d 00 64 14 4c  44 41 23 31 3a 53 54 41  |F+2..d.LDA#1:STA|
000000d0  20 42 55 46 46 2b 35 0d  00 6e 15 4c 44 41 26 38  | BUFF+5..n.LDA&8|
000000e0  41 3a 53 54 41 20 42 55  46 46 2b 39 0d 00 78 09  |A:STA BUFF+9..x.|
000000f0  4c 44 41 23 38 0d 00 82  11 4c 44 58 23 42 55 46  |LDA#8....LDX#BUF|
00000100  46 20 83 32 35 36 0d 00  8c 11 4c 44 59 23 42 55  |F .256....LDY#BU|
00000110  46 46 20 81 32 35 36 0d  00 96 0c 4a 53 52 26 46  |FF .256....JSR&F|
00000120  46 44 31 0d 00 a0 0b 4c  44 41 6c 64 6e 6d 0d 00  |FD1....LDAldnm..|
00000130  aa 56 54 41 58 3a 4c 44  41 23 26 32 30 3a 53 54  |.VTAX:LDA#&20:ST|
00000140  41 6c 64 6e 6d 3a 4c 44  59 23 31 3a 4c 44 41 6c  |Aldnm:LDY#1:LDAl|
00000150  64 6e 6d 2c 59 3a 43 4d  50 23 97 22 21 22 3a 42  |dnm,Y:CMP#."!":B|
00000160  45 51 6e 65 78 74 3a 43  4d 50 23 97 22 2b 22 3a  |EQnext:CMP#."+":|
00000170  42 4e 45 72 74 73 3a 2e  6c 70 20 4c 44 41 6c 64  |BNErts:.lp LDAld|
00000180  6e 6d 2c 59 0d 00 b4 1a  49 4e 59 3a 44 45 58 3a  |nm,Y....INY:DEX:|
00000190  42 4e 45 6c 70 3a 4a 53  52 70 72 69 6e 74 0d 00  |BNElp:JSRprint..|
000001a0  be 1b 2e 6e 65 78 74 20  4a 53 52 26 46 46 45 37  |...next JSR&FFE7|
000001b0  3a 4a 53 52 26 46 46 45  37 0d 00 c8 10 49 4e 43  |:JSR&FFE7....INC|
000001c0  26 38 41 3a 4a 4d 50 73  74 0d 00 d2 0c 2e 72 74  |&8A:JMPst.....rt|
000001d0  73 20 52 54 53 0d 00 dc  1c 2e 70 72 69 6e 74 20  |s RTS.....print |
000001e0  4a 53 52 26 46 46 45 37  3a 4a 53 52 26 46 46 45  |JSR&FFE7:JSR&FFE|
000001f0  37 0d 00 e6 0b 4a 53 52  26 39 30 30 0d 00 f0 0f  |7....JSR&900....|
00000200  4c 44 58 23 6c 64 20 83  32 35 36 0d 00 fa 0f 4c  |LDX#ld .256....L|
00000210  44 59 23 6c 64 20 81 32  35 36 0d 01 04 0c 4a 53  |DY#ld .256....JS|
00000220  52 26 46 46 46 37 0d 01  0e 0b 4a 53 52 26 39 38  |R&FFF7....JSR&98|
00000230  43 0d 01 18 07 52 54 53  0d 01 22 09 2e 42 55 46  |C....RTS.."..BUF|
00000240  46 0d 01 2c 09 45 51 55  42 30 0d 01 36 12 45 51  |F..,.EQUB0..6.EQ|
00000250  55 42 20 6c 64 6e 6d 20  83 32 35 36 0d 01 38 12  |UB ldnm .256..8.|
00000260  45 51 55 42 20 6c 64 6e  6d 20 81 32 35 36 0d 01  |EQUB ldnm .256..|
00000270  3a 0a 45 51 55 57 20 30  0d 01 40 09 45 51 55 44  |:.EQUW 0..@.EQUD|
00000280  31 0d 01 4a 09 45 51 55  44 31 0d 01 54 34 2e 6c  |1..J.EQUD1..T4.l|
00000290  64 20 45 51 55 53 22 4c  4f 41 44 20 22 3a 2e 6c  |d EQUS"LOAD ":.l|
000002a0  64 6e 6d 20 45 51 55 53  20 c4 31 30 2c 22 20 22  |dnm EQUS .10," "|
000002b0  29 2b 22 20 32 36 30 30  22 2b bd 26 30 44 0d 01  |)+" 2600"+.&0D..|
000002c0  5e 05 5d 0d 01 68 05 ed  0d 01 72 19 ff 22 53 41  |^.]..h....r.."SA|
000002d0  56 45 20 50 52 54 20 42  30 30 20 22 2b c3 7e 50  |VE PRT B00 "+.~P|
000002e0  25 0d ff                                          |%..|
000002e3
P/PRTSRC.m0
P/PRTSRC.m1
P/PRTSRC.m2
P/PRTSRC.m4
P/PRTSRC.m5