Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_30.ADF » P/LOADER
P/LOADER
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_30.ADF |
Filename: | P/LOADER |
Read OK: | ✔ |
File size: | 05CE bytes |
Load address: | FFFF0E00 |
Exec address: | FFFF802B |
Duplicates
There are 2 duplicate copies of this file in the archive:
- AEW website » eug » eug_3_5_discs_Eug-29_A-EUG29.adf » U/SNAPLD
- AEW website » eug » eug_5_25_discs_Eug-29_D-EUG29.dsd » U.SNAPLD
- Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_30.ADF » P/LOADER
File contents
10REM Simple loader program 20REM (C)1996 SPROW 30MODE4:PRINT"Searching" 40DIMwriteable% 128 50IFINKEY(-256)=253 THENPROCmaster:END 60IFINKEY(-256)=255 THENPROCbbcorelk:END 70IFINKEY(-256)=1 THENPROCbbcorelk:END 80: 90DEFPROCmaster 100FORS%=7TO4 STEP-1 110IFFNoccupied(S%)=FALSE THENOSCLI"SRLOAD SNAPIT 8000 "+STR$(S%):OSCLI"INSERT "+STR$(S%):PRINT:PRINT"Press CTRL-BREAK to initialise":ENDPROC 120NEXT 130PRINT:PRINT"No free sideways ram banks":ENDPROC 140: 150DEFPROCbbcorelk 160FORS%=15TO0 STEP-1 170IFFNanyswram(S%)=1 ANDFNoccupied(S%)=FALSE THENOSCLI"LOAD R.SNAPIT 8000":PRINT:PRINT"Press BREAK to intialise":ENDPROC 180NEXT 190PRINT:PRINT"No free sideways ram banks":ENDPROC 200: 210DEFFNanyswram(socket) 220FORX=0TO2STEP2 230P%=writeable% 240IFINKEY(-256)=1 THENGOTO420 250IFINKEY(-256)=255 THENGOTO270 260: 270[OPTX:SEI:LDA&F4:PHA:LDA#socket:STA&F4:STA&FE30:CLI:\Set ROM reg to socket# 280LDA&8000:PHA:CLC:ADC#1:STAcopy 290.writeto 300STA&8000:LDA&8000:CMPcopy 310BEQtrue 320.false 330PLA:PLA:STA&F4:STA&FE30:LDA#0:RTS 340.true 350PLA:STA&8000:PLA:STA&F4:STA&FE30:LDA#1:RTS 360.copy 370EQUB0 380] 390NEXT 400=USRwriteable% AND&FF 410: 420[OPTX:SEI:LDA&F4:PHA:LDA#12:STA&FE05:LDA#socket:STA&F4:STA&FE05:CLI:\Dummy move takes out BASIC then set ROM reg to socket# 430LDA&8000:PHA:CLC:ADC#1:STAcopy 440.writeto 450STA&8000:LDA&8000:CMPcopy 460BEQtrue 470.false 480PLA:PLA:STA&F4:STA&FE05:LDA#0:RTS 490.true 500PLA:STA&8000:PLA:STA&F4:STA&FE05:LDA#1:RTS 510.copy 520EQUB0 530] 540NEXT 550=USRwriteable% AND&FF 560: 570DEFFNoccupied(socket) 580A%=170:X%=0:Y%=255:R%=USR&FFF4:REM Read pointer to start of ROM info table 590X%=(R% AND &FF00)DIV&100 600Y%=(R% AND &FF0000)DIV&10000 610=?((256*Y%)+X%+socket)
� Simple loader program � (C)1996 SPROW �4:�"Searching" (�writeable% 128 2�(-256)=253 ��master:� <�(-256)=255 ��bbcorelk:� F�(-256)=1 ��bbcorelk:� P: Z��master d�S%=7�4 �-1 ni�occupied(S%)=� ��"SRLOAD SNAPIT 8000 "+�(S%):�"INSERT "+�(S%):�:�"Press CTRL-BREAK to initialise":� x� �%�:�"No free sideways ram banks":� �: ���bbcorelk ��S%=15�0 �-1 �\�anyswram(S%)=1 ��occupied(S%)=� ��"LOAD R.SNAPIT 8000":�:�"Press BREAK to intialise":� �� �%�:�"No free sideways ram banks":� �: �ݤanyswram(socket) ��X=0�2�2 �P%=writeable% ��(-256)=1 ��tdA ��(-256)=255 ��TNA : O[OPTX:SEI:LDA&F4:PHA:LDA#socket:STA&F4:STA&FE30:CLI:\Set ROM reg to socket# "LDA&8000:PHA:CLC:ADC#1:STAcopy ".writeto ,STA&8000:LDA&8000:CMPcopy 6BEQtrue @ .false J%PLA:PLA:STA&F4:STA&FE30:LDA#0:RTS T .true ^.PLA:STA&8000:PLA:STA&F4:STA&FE30:LDA#1:RTS h .copy r EQUB0 |] �� �=�writeable% �&FF �: �[OPTX:SEI:LDA&F4:PHA:LDA#12:STA&FE05:LDA#socket:STA&F4:STA&FE05:CLI:\Dummy move takes out BASIC then set ROM reg to socket# �"LDA&8000:PHA:CLC:ADC#1:STAcopy �.writeto �STA&8000:LDA&8000:CMPcopy �BEQtrue � .false �%PLA:PLA:STA&F4:STA&FE05:LDA#0:RTS � .true �.PLA:STA&8000:PLA:STA&F4:STA&FE05:LDA#1:RTS � .copy EQUB0 ] � &=�writeable% �&FF 0: :ݤoccupied(socket) DJA%=170:X%=0:Y%=255:R%=�&FFF4:� Read pointer to start of ROM info table NX%=(R% � &FF00)�&100 XY%=(R% � &FF0000)�&10000 b=?((256*Y%)+X%+socket) �
00000000 0d 00 0a 1b f4 20 53 69 6d 70 6c 65 20 6c 6f 61 |..... Simple loa| 00000010 64 65 72 20 70 72 6f 67 72 61 6d 0d 00 14 13 f4 |der program.....| 00000020 20 28 43 29 31 39 39 36 20 53 50 52 4f 57 0d 00 | (C)1996 SPROW..| 00000030 1e 13 eb 34 3a f1 22 53 65 61 72 63 68 69 6e 67 |...4:."Searching| 00000040 22 0d 00 28 13 de 77 72 69 74 65 61 62 6c 65 25 |"..(..writeable%| 00000050 20 31 32 38 0d 00 32 1b e7 a6 28 2d 32 35 36 29 | 128..2...(-256)| 00000060 3d 32 35 33 20 8c f2 6d 61 73 74 65 72 3a e0 0d |=253 ..master:..| 00000070 00 3c 1d e7 a6 28 2d 32 35 36 29 3d 32 35 35 20 |.<...(-256)=255 | 00000080 8c f2 62 62 63 6f 72 65 6c 6b 3a e0 0d 00 46 1b |..bbcorelk:...F.| 00000090 e7 a6 28 2d 32 35 36 29 3d 31 20 8c f2 62 62 63 |..(-256)=1 ..bbc| 000000a0 6f 72 65 6c 6b 3a e0 0d 00 50 05 3a 0d 00 5a 0c |orelk:...P.:..Z.| 000000b0 dd f2 6d 61 73 74 65 72 0d 00 64 0f e3 53 25 3d |..master..d..S%=| 000000c0 37 b8 34 20 88 2d 31 0d 00 6e 69 e7 a4 6f 63 63 |7.4 .-1..ni..occ| 000000d0 75 70 69 65 64 28 53 25 29 3d a3 20 8c ff 22 53 |upied(S%)=. .."S| 000000e0 52 4c 4f 41 44 20 53 4e 41 50 49 54 20 38 30 30 |RLOAD SNAPIT 800| 000000f0 30 20 22 2b c3 28 53 25 29 3a ff 22 49 4e 53 45 |0 "+.(S%):."INSE| 00000100 52 54 20 22 2b c3 28 53 25 29 3a f1 3a f1 22 50 |RT "+.(S%):.:."P| 00000110 72 65 73 73 20 43 54 52 4c 2d 42 52 45 41 4b 20 |ress CTRL-BREAK | 00000120 74 6f 20 69 6e 69 74 69 61 6c 69 73 65 22 3a e1 |to initialise":.| 00000130 0d 00 78 05 ed 0d 00 82 25 f1 3a f1 22 4e 6f 20 |..x.....%.:."No | 00000140 66 72 65 65 20 73 69 64 65 77 61 79 73 20 72 61 |free sideways ra| 00000150 6d 20 62 61 6e 6b 73 22 3a e1 0d 00 8c 05 3a 0d |m banks":.....:.| 00000160 00 96 0e dd f2 62 62 63 6f 72 65 6c 6b 0d 00 a0 |.....bbcorelk...| 00000170 10 e3 53 25 3d 31 35 b8 30 20 88 2d 31 0d 00 aa |..S%=15.0 .-1...| 00000180 5c e7 a4 61 6e 79 73 77 72 61 6d 28 53 25 29 3d |\..anyswram(S%)=| 00000190 31 20 80 a4 6f 63 63 75 70 69 65 64 28 53 25 29 |1 ..occupied(S%)| 000001a0 3d a3 20 8c ff 22 4c 4f 41 44 20 52 2e 53 4e 41 |=. .."LOAD R.SNA| 000001b0 50 49 54 20 38 30 30 30 22 3a f1 3a f1 22 50 72 |PIT 8000":.:."Pr| 000001c0 65 73 73 20 42 52 45 41 4b 20 74 6f 20 69 6e 74 |ess BREAK to int| 000001d0 69 61 6c 69 73 65 22 3a e1 0d 00 b4 05 ed 0d 00 |ialise":........| 000001e0 be 25 f1 3a f1 22 4e 6f 20 66 72 65 65 20 73 69 |.%.:."No free si| 000001f0 64 65 77 61 79 73 20 72 61 6d 20 62 61 6e 6b 73 |deways ram banks| 00000200 22 3a e1 0d 00 c8 05 3a 0d 00 d2 16 dd a4 61 6e |":.....:......an| 00000210 79 73 77 72 61 6d 28 73 6f 63 6b 65 74 29 0d 00 |yswram(socket)..| 00000220 dc 0c e3 58 3d 30 b8 32 88 32 0d 00 e6 11 50 25 |...X=0.2.2....P%| 00000230 3d 77 72 69 74 65 61 62 6c 65 25 0d 00 f0 15 e7 |=writeable%.....| 00000240 a6 28 2d 32 35 36 29 3d 31 20 8c e5 8d 74 64 41 |.(-256)=1 ...tdA| 00000250 0d 00 fa 17 e7 a6 28 2d 32 35 36 29 3d 32 35 35 |......(-256)=255| 00000260 20 8c e5 8d 54 4e 41 0d 01 04 05 3a 0d 01 0e 4f | ...TNA....:...O| 00000270 5b 4f 50 54 58 3a 53 45 49 3a 4c 44 41 26 46 34 |[OPTX:SEI:LDA&F4| 00000280 3a 50 48 41 3a 4c 44 41 23 73 6f 63 6b 65 74 3a |:PHA:LDA#socket:| 00000290 53 54 41 26 46 34 3a 53 54 41 26 46 45 33 30 3a |STA&F4:STA&FE30:| 000002a0 43 4c 49 3a 5c 53 65 74 20 52 4f 4d 20 72 65 67 |CLI:\Set ROM reg| 000002b0 20 74 6f 20 73 6f 63 6b 65 74 23 0d 01 18 22 4c | to socket#..."L| 000002c0 44 41 26 38 30 30 30 3a 50 48 41 3a 43 4c 43 3a |DA&8000:PHA:CLC:| 000002d0 41 44 43 23 31 3a 53 54 41 63 6f 70 79 0d 01 22 |ADC#1:STAcopy.."| 000002e0 0c 2e 77 72 69 74 65 74 6f 0d 01 2c 1d 53 54 41 |..writeto..,.STA| 000002f0 26 38 30 30 30 3a 4c 44 41 26 38 30 30 30 3a 43 |&8000:LDA&8000:C| 00000300 4d 50 63 6f 70 79 0d 01 36 0b 42 45 51 74 72 75 |MPcopy..6.BEQtru| 00000310 65 0d 01 40 0a 2e 66 61 6c 73 65 0d 01 4a 25 50 |e..@..false..J%P| 00000320 4c 41 3a 50 4c 41 3a 53 54 41 26 46 34 3a 53 54 |LA:PLA:STA&F4:ST| 00000330 41 26 46 45 33 30 3a 4c 44 41 23 30 3a 52 54 53 |A&FE30:LDA#0:RTS| 00000340 0d 01 54 09 2e 74 72 75 65 0d 01 5e 2e 50 4c 41 |..T..true..^.PLA| 00000350 3a 53 54 41 26 38 30 30 30 3a 50 4c 41 3a 53 54 |:STA&8000:PLA:ST| 00000360 41 26 46 34 3a 53 54 41 26 46 45 33 30 3a 4c 44 |A&F4:STA&FE30:LD| 00000370 41 23 31 3a 52 54 53 0d 01 68 09 2e 63 6f 70 79 |A#1:RTS..h..copy| 00000380 0d 01 72 09 45 51 55 42 30 0d 01 7c 05 5d 0d 01 |..r.EQUB0..|.]..| 00000390 86 05 ed 0d 01 90 15 3d ba 77 72 69 74 65 61 62 |.......=.writeab| 000003a0 6c 65 25 20 80 26 46 46 0d 01 9a 05 3a 0d 01 a4 |le% .&FF....:...| 000003b0 7f 5b 4f 50 54 58 3a 53 45 49 3a 4c 44 41 26 46 |.[OPTX:SEI:LDA&F| 000003c0 34 3a 50 48 41 3a 4c 44 41 23 31 32 3a 53 54 41 |4:PHA:LDA#12:STA| 000003d0 26 46 45 30 35 3a 4c 44 41 23 73 6f 63 6b 65 74 |&FE05:LDA#socket| 000003e0 3a 53 54 41 26 46 34 3a 53 54 41 26 46 45 30 35 |:STA&F4:STA&FE05| 000003f0 3a 43 4c 49 3a 5c 44 75 6d 6d 79 20 6d 6f 76 65 |:CLI:\Dummy move| 00000400 20 74 61 6b 65 73 20 6f 75 74 20 42 41 53 49 43 | takes out BASIC| 00000410 20 74 68 65 6e 20 73 65 74 20 52 4f 4d 20 72 65 | then set ROM re| 00000420 67 20 74 6f 20 73 6f 63 6b 65 74 23 0d 01 ae 22 |g to socket#..."| 00000430 4c 44 41 26 38 30 30 30 3a 50 48 41 3a 43 4c 43 |LDA&8000:PHA:CLC| 00000440 3a 41 44 43 23 31 3a 53 54 41 63 6f 70 79 0d 01 |:ADC#1:STAcopy..| 00000450 b8 0c 2e 77 72 69 74 65 74 6f 0d 01 c2 1d 53 54 |...writeto....ST| 00000460 41 26 38 30 30 30 3a 4c 44 41 26 38 30 30 30 3a |A&8000:LDA&8000:| 00000470 43 4d 50 63 6f 70 79 0d 01 cc 0b 42 45 51 74 72 |CMPcopy....BEQtr| 00000480 75 65 0d 01 d6 0a 2e 66 61 6c 73 65 0d 01 e0 25 |ue.....false...%| 00000490 50 4c 41 3a 50 4c 41 3a 53 54 41 26 46 34 3a 53 |PLA:PLA:STA&F4:S| 000004a0 54 41 26 46 45 30 35 3a 4c 44 41 23 30 3a 52 54 |TA&FE05:LDA#0:RT| 000004b0 53 0d 01 ea 09 2e 74 72 75 65 0d 01 f4 2e 50 4c |S.....true....PL| 000004c0 41 3a 53 54 41 26 38 30 30 30 3a 50 4c 41 3a 53 |A:STA&8000:PLA:S| 000004d0 54 41 26 46 34 3a 53 54 41 26 46 45 30 35 3a 4c |TA&F4:STA&FE05:L| 000004e0 44 41 23 31 3a 52 54 53 0d 01 fe 09 2e 63 6f 70 |DA#1:RTS.....cop| 000004f0 79 0d 02 08 09 45 51 55 42 30 0d 02 12 05 5d 0d |y....EQUB0....].| 00000500 02 1c 05 ed 0d 02 26 15 3d ba 77 72 69 74 65 61 |......&.=.writea| 00000510 62 6c 65 25 20 80 26 46 46 0d 02 30 05 3a 0d 02 |ble% .&FF..0.:..| 00000520 3a 16 dd a4 6f 63 63 75 70 69 65 64 28 73 6f 63 |:...occupied(soc| 00000530 6b 65 74 29 0d 02 44 4a 41 25 3d 31 37 30 3a 58 |ket)..DJA%=170:X| 00000540 25 3d 30 3a 59 25 3d 32 35 35 3a 52 25 3d ba 26 |%=0:Y%=255:R%=.&| 00000550 46 46 46 34 3a f4 20 52 65 61 64 20 70 6f 69 6e |FFF4:. Read poin| 00000560 74 65 72 20 74 6f 20 73 74 61 72 74 20 6f 66 20 |ter to start of | 00000570 52 4f 4d 20 69 6e 66 6f 20 74 61 62 6c 65 0d 02 |ROM info table..| 00000580 4e 18 58 25 3d 28 52 25 20 80 20 26 46 46 30 30 |N.X%=(R% . &FF00| 00000590 29 81 26 31 30 30 0d 02 58 1c 59 25 3d 28 52 25 |).&100..X.Y%=(R%| 000005a0 20 80 20 26 46 46 30 30 30 30 29 81 26 31 30 30 | . &FF0000).&100| 000005b0 30 30 0d 02 62 1a 3d 3f 28 28 32 35 36 2a 59 25 |00..b.=?((256*Y%| 000005c0 29 2b 58 25 2b 73 6f 63 6b 65 74 29 0d ff |)+X%+socket)..| 000005ce