Home » Personal collection » Acorn ADFS disks » Electron » Sideways_ROMS.ADF » s\wRAM/RAMloader
s\wRAM/RAMloader
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 » Sideways_ROMS.ADF |
Filename: | s\wRAM/RAMloader |
Read OK: | ✔ |
File size: | 03C6 bytes |
Load address: | FFFF1D00 |
Exec address: | FFFF8023 |
Duplicates
There is 1 duplicate copy of this file in the archive:
- Personal collection » Acorn ADFS disks » Electron » Sideways_ROMS.ADF » s\wRAM/RAMloader
- Personal collection » Acorn hard disk » zipped_disks » elk03 » sideways/s.wRAM/RAMloader
File contents
10 REM S/W RAM loader 20 MODE6:VDU 28,0,24,39,13 30 HIMEM=&3000 40 code=&B00:FORpass=0 TO 2 STEP 2:P%=code:[OPTpass 50 LDA#0:STA&FCDC:STA&FCDE:LDA&F4:PHA:LDA#15:STA&F4:STA&FE05:LDX#2:SEI:.test TXA:STA&F4:STA&FE05:LDA#0:LDA&8800 60 TAY:INC&8800:CPY&8800:BNEend:DEX:DEX:BPLtest:LDX#&FF:STX&74:RTS 70 .end STX&74:DEC&8800:LDA&75:CLC:ADC&74:STA&F4:STA&FE05:CLI:LDA#&30:STA&71:LDA#&80:STA&73:LDA#0:STA&70:STA&72:TAY:.loop LDA(&70),Y:STA(&72),Y:INY:BNEloop:INC&71:INC&73:LDA&73:CMP#&C0:BNEloop:PLA:SEI:STA&F4:STA&FE05:CLI:RTS:] 80 NEXT 90 INPUT"Filename of ROM image to load",F$ 100 IF F$="E00" OR F$="LISP" THEN GOTO 180 110 INPUT"Which RAM bank (0,1)",?&75 120 OSCLI"LOAD "+F$+" 3000" 130 CALLcode:IF ?&74=&FF THEN PRINT"No sideways RAM!":END 140 ?&FCDD=0:?&FCDF=0 150 *FX 200,2 160 PRINT"File successfully loaded into S/W RAM"'" - now press CTRL/BREAK" 170 GOTO 170 180 ?&75=0:OSCLI"LO. "+F$+"a 3000" 190 CALLcode:IF ?&74=&FF THEN PRINT"No sideways RAM!":END 200 ?&75=1:OSCLI"LO. "+F$+"b 3000" 210 CALLcode 220 IF F$="E00" THEN GOTO 150 ELSE GOTO 140
� S/W RAM loader �6:� 28,0,24,39,13 �=&3000 (/ code=&B00:�pass=0 � 2 � 2:P%=code:[OPTpass 2q LDA#0:STA&FCDC:STA&FCDE:LDA&F4:PHA:LDA#15:STA&F4:STA&FE05:LDX#2:SEI:.test TXA:STA&F4:STA&FE05:LDA#0:LDA&8800 <D TAY:INC&8800:CPY&8800:BNEend:DEX:DEX:BPLtest:LDX#&FF:STX&74:RTS F� .end STX&74:DEC&8800:LDA&75:CLC:ADC&74:STA&F4:STA&FE05:CLI:LDA#&30:STA&71:LDA#&80:STA&73:LDA#0:STA&70:STA&72:TAY:.loop LDA(&70),Y:STA(&72),Y:INY:BNEloop:INC&71:INC&73:LDA&73:CMP#&C0:BNEloop:PLA:SEI:STA&F4:STA&FE05:CLI:RTS:] P � Z( �"Filename of ROM image to load",F$ d$ � F$="E00" � F$="LISP" � � �tt@ n! �"Which RAM bank (0,1)",?&75 x �"LOAD "+F$+" 3000" �- �code:� ?&74=&FF � �"No sideways RAM!":� � ?&FCDD=0:?&FCDF=0 � *FX 200,2 �G �"File successfully loaded into S/W RAM"'" - now press CTRL/BREAK" � � �tj@ � ?&75=0:�"LO. "+F$+"a 3000" �- �code:� ?&74=&FF � �"No sideways RAM!":� � ?&75=1:�"LO. "+F$+"b 3000" � �code �! � F$="E00" � � �tV@ � � �tL@ �
00000000 0d 00 0a 15 20 f4 20 53 2f 57 20 52 41 4d 20 6c |.... . S/W RAM l| 00000010 6f 61 64 65 72 0d 00 14 17 20 eb 36 3a ef 20 32 |oader.... .6:. 2| 00000020 38 2c 30 2c 32 34 2c 33 39 2c 31 33 0d 00 1e 0c |8,0,24,39,13....| 00000030 20 d3 3d 26 33 30 30 30 0d 00 28 2f 20 63 6f 64 | .=&3000..(/ cod| 00000040 65 3d 26 42 30 30 3a e3 70 61 73 73 3d 30 20 b8 |e=&B00:.pass=0 .| 00000050 20 32 20 88 20 32 3a 50 25 3d 63 6f 64 65 3a 5b | 2 . 2:P%=code:[| 00000060 4f 50 54 70 61 73 73 0d 00 32 71 20 4c 44 41 23 |OPTpass..2q LDA#| 00000070 30 3a 53 54 41 26 46 43 44 43 3a 53 54 41 26 46 |0:STA&FCDC:STA&F| 00000080 43 44 45 3a 4c 44 41 26 46 34 3a 50 48 41 3a 4c |CDE:LDA&F4:PHA:L| 00000090 44 41 23 31 35 3a 53 54 41 26 46 34 3a 53 54 41 |DA#15:STA&F4:STA| 000000a0 26 46 45 30 35 3a 4c 44 58 23 32 3a 53 45 49 3a |&FE05:LDX#2:SEI:| 000000b0 2e 74 65 73 74 20 54 58 41 3a 53 54 41 26 46 34 |.test TXA:STA&F4| 000000c0 3a 53 54 41 26 46 45 30 35 3a 4c 44 41 23 30 3a |:STA&FE05:LDA#0:| 000000d0 4c 44 41 26 38 38 30 30 0d 00 3c 44 20 54 41 59 |LDA&8800..<D TAY| 000000e0 3a 49 4e 43 26 38 38 30 30 3a 43 50 59 26 38 38 |:INC&8800:CPY&88| 000000f0 30 30 3a 42 4e 45 65 6e 64 3a 44 45 58 3a 44 45 |00:BNEend:DEX:DE| 00000100 58 3a 42 50 4c 74 65 73 74 3a 4c 44 58 23 26 46 |X:BPLtest:LDX#&F| 00000110 46 3a 53 54 58 26 37 34 3a 52 54 53 0d 00 46 e4 |F:STX&74:RTS..F.| 00000120 20 2e 65 6e 64 20 53 54 58 26 37 34 3a 44 45 43 | .end STX&74:DEC| 00000130 26 38 38 30 30 3a 4c 44 41 26 37 35 3a 43 4c 43 |&8800:LDA&75:CLC| 00000140 3a 41 44 43 26 37 34 3a 53 54 41 26 46 34 3a 53 |:ADC&74:STA&F4:S| 00000150 54 41 26 46 45 30 35 3a 43 4c 49 3a 4c 44 41 23 |TA&FE05:CLI:LDA#| 00000160 26 33 30 3a 53 54 41 26 37 31 3a 4c 44 41 23 26 |&30:STA&71:LDA#&| 00000170 38 30 3a 53 54 41 26 37 33 3a 4c 44 41 23 30 3a |80:STA&73:LDA#0:| 00000180 53 54 41 26 37 30 3a 53 54 41 26 37 32 3a 54 41 |STA&70:STA&72:TA| 00000190 59 3a 2e 6c 6f 6f 70 20 4c 44 41 28 26 37 30 29 |Y:.loop LDA(&70)| 000001a0 2c 59 3a 53 54 41 28 26 37 32 29 2c 59 3a 49 4e |,Y:STA(&72),Y:IN| 000001b0 59 3a 42 4e 45 6c 6f 6f 70 3a 49 4e 43 26 37 31 |Y:BNEloop:INC&71| 000001c0 3a 49 4e 43 26 37 33 3a 4c 44 41 26 37 33 3a 43 |:INC&73:LDA&73:C| 000001d0 4d 50 23 26 43 30 3a 42 4e 45 6c 6f 6f 70 3a 50 |MP#&C0:BNEloop:P| 000001e0 4c 41 3a 53 45 49 3a 53 54 41 26 46 34 3a 53 54 |LA:SEI:STA&F4:ST| 000001f0 41 26 46 45 30 35 3a 43 4c 49 3a 52 54 53 3a 5d |A&FE05:CLI:RTS:]| 00000200 0d 00 50 06 20 ed 0d 00 5a 28 20 e8 22 46 69 6c |..P. ...Z( ."Fil| 00000210 65 6e 61 6d 65 20 6f 66 20 52 4f 4d 20 69 6d 61 |ename of ROM ima| 00000220 67 65 20 74 6f 20 6c 6f 61 64 22 2c 46 24 0d 00 |ge to load",F$..| 00000230 64 24 20 e7 20 46 24 3d 22 45 30 30 22 20 84 20 |d$ . F$="E00" . | 00000240 46 24 3d 22 4c 49 53 50 22 20 8c 20 e5 20 8d 74 |F$="LISP" . . .t| 00000250 74 40 0d 00 6e 21 20 e8 22 57 68 69 63 68 20 52 |t@..n! ."Which R| 00000260 41 4d 20 62 61 6e 6b 20 28 30 2c 31 29 22 2c 3f |AM bank (0,1)",?| 00000270 26 37 35 0d 00 78 18 20 ff 22 4c 4f 41 44 20 22 |&75..x. ."LOAD "| 00000280 2b 46 24 2b 22 20 33 30 30 30 22 0d 00 82 2d 20 |+F$+" 3000"...- | 00000290 d6 63 6f 64 65 3a e7 20 3f 26 37 34 3d 26 46 46 |.code:. ?&74=&FF| 000002a0 20 8c 20 f1 22 4e 6f 20 73 69 64 65 77 61 79 73 | . ."No sideways| 000002b0 20 52 41 4d 21 22 3a e0 0d 00 8c 16 20 3f 26 46 | RAM!":..... ?&F| 000002c0 43 44 44 3d 30 3a 3f 26 46 43 44 46 3d 30 0d 00 |CDD=0:?&FCDF=0..| 000002d0 96 0e 20 2a 46 58 20 32 30 30 2c 32 0d 00 a0 47 |.. *FX 200,2...G| 000002e0 20 f1 22 46 69 6c 65 20 73 75 63 63 65 73 73 66 | ."File successf| 000002f0 75 6c 6c 79 20 6c 6f 61 64 65 64 20 69 6e 74 6f |ully loaded into| 00000300 20 53 2f 57 20 52 41 4d 22 27 22 20 2d 20 6e 6f | S/W RAM"'" - no| 00000310 77 20 70 72 65 73 73 20 43 54 52 4c 2f 42 52 45 |w press CTRL/BRE| 00000320 41 4b 22 0d 00 aa 0b 20 e5 20 8d 74 6a 40 0d 00 |AK".... . .tj@..| 00000330 b4 1f 20 3f 26 37 35 3d 30 3a ff 22 4c 4f 2e 20 |.. ?&75=0:."LO. | 00000340 22 2b 46 24 2b 22 61 20 33 30 30 30 22 0d 00 be |"+F$+"a 3000"...| 00000350 2d 20 d6 63 6f 64 65 3a e7 20 3f 26 37 34 3d 26 |- .code:. ?&74=&| 00000360 46 46 20 8c 20 f1 22 4e 6f 20 73 69 64 65 77 61 |FF . ."No sidewa| 00000370 79 73 20 52 41 4d 21 22 3a e0 0d 00 c8 1f 20 3f |ys RAM!":..... ?| 00000380 26 37 35 3d 31 3a ff 22 4c 4f 2e 20 22 2b 46 24 |&75=1:."LO. "+F$| 00000390 2b 22 62 20 33 30 30 30 22 0d 00 d2 0a 20 d6 63 |+"b 3000".... .c| 000003a0 6f 64 65 0d 00 dc 21 20 e7 20 46 24 3d 22 45 30 |ode...! . F$="E0| 000003b0 30 22 20 8c 20 e5 20 8d 74 56 40 20 8b 20 e5 20 |0" . . .tV@ . . | 000003c0 8d 74 4c 40 0d ff |.tL@..| 000003c6