Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199609.adf » Regulars » MikeC/IICRam
MikeC/IICRam
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 » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199609.adf » Regulars |
Filename: | MikeC/IICRam |
Read OK: | ✔ |
File size: | 01D5 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM> IICRam 20CLS 30PRINT "Read the RAM Contents of device at &A8" 40PRINT "By Mike Cook" 50DIM PBK% 5, PBS% 4 60?PBS%=&0 :REM Address to write to 70PBS%?1=&68 :REM Value to write 80SYS "IIC_Control",&A8,PBS%,2 90 100REM Delay to allow write to take place 110T=TIME+1 120REPEAT UNTIL TIME>T 130 140REM Read in the first 4 locations 150REM Set up the read point 160?PBS%=&0 170SYS "IIC_Control",&A8,PBS%,1 180REM Read the locations 190SYS "IIC_Control",&A9,PBK%,4 200PRINT ~PBK%?0,~PBK%?1,~PBK%?2,~PBK%?3
�> IICRam � .� "Read the RAM Contents of device at &A8" (� "By Mike Cook" 2� PBK% 5, PBS% 4 <#?PBS%=&0 :� Address to write to F PBS%?1=&68 :� Value to write Pș "IIC_Control",&A8,PBS%,2 Z d(� Delay to allow write to take place n T=�+1 x� � �>T � �#� Read in the first 4 locations �� Set up the read point �?PBS%=&0 �ș "IIC_Control",&A8,PBS%,1 �� Read the locations �ș "IIC_Control",&A9,PBK%,4 �%� ~PBK%?0,~PBK%?1,~PBK%?2,~PBK%?3 �
00000000 0d 00 0a 0d f4 3e 20 49 49 43 52 61 6d 0d 00 14 |.....> IICRam...| 00000010 05 db 0d 00 1e 2e f1 20 22 52 65 61 64 20 74 68 |....... "Read th| 00000020 65 20 52 41 4d 20 43 6f 6e 74 65 6e 74 73 20 6f |e RAM Contents o| 00000030 66 20 64 65 76 69 63 65 20 61 74 20 26 41 38 22 |f device at &A8"| 00000040 0d 00 28 14 f1 20 22 42 79 20 4d 69 6b 65 20 43 |..(.. "By Mike C| 00000050 6f 6f 6b 22 0d 00 32 14 de 20 50 42 4b 25 20 35 |ook"..2.. PBK% 5| 00000060 2c 20 50 42 53 25 20 34 0d 00 3c 23 3f 50 42 53 |, PBS% 4..<#?PBS| 00000070 25 3d 26 30 20 3a f4 20 41 64 64 72 65 73 73 20 |%=&0 :. Address | 00000080 74 6f 20 77 72 69 74 65 20 74 6f 0d 00 46 20 50 |to write to..F P| 00000090 42 53 25 3f 31 3d 26 36 38 20 3a f4 20 56 61 6c |BS%?1=&68 :. Val| 000000a0 75 65 20 74 6f 20 77 72 69 74 65 0d 00 50 1f c8 |ue to write..P..| 000000b0 99 20 22 49 49 43 5f 43 6f 6e 74 72 6f 6c 22 2c |. "IIC_Control",| 000000c0 26 41 38 2c 50 42 53 25 2c 32 0d 00 5a 04 0d 00 |&A8,PBS%,2..Z...| 000000d0 64 28 f4 20 44 65 6c 61 79 20 74 6f 20 61 6c 6c |d(. Delay to all| 000000e0 6f 77 20 77 72 69 74 65 20 74 6f 20 74 61 6b 65 |ow write to take| 000000f0 20 70 6c 61 63 65 0d 00 6e 09 54 3d 91 2b 31 0d | place..n.T=.+1.| 00000100 00 78 0b f5 20 fd 20 91 3e 54 0d 00 82 04 0d 00 |.x.. . .>T......| 00000110 8c 23 f4 20 52 65 61 64 20 69 6e 20 74 68 65 20 |.#. Read in the | 00000120 66 69 72 73 74 20 34 20 6c 6f 63 61 74 69 6f 6e |first 4 location| 00000130 73 0d 00 96 1b f4 20 53 65 74 20 75 70 20 74 68 |s..... Set up th| 00000140 65 20 72 65 61 64 20 70 6f 69 6e 74 0d 00 a0 0c |e read point....| 00000150 3f 50 42 53 25 3d 26 30 0d 00 aa 1f c8 99 20 22 |?PBS%=&0...... "| 00000160 49 49 43 5f 43 6f 6e 74 72 6f 6c 22 2c 26 41 38 |IIC_Control",&A8| 00000170 2c 50 42 53 25 2c 31 0d 00 b4 18 f4 20 52 65 61 |,PBS%,1..... Rea| 00000180 64 20 74 68 65 20 6c 6f 63 61 74 69 6f 6e 73 0d |d the locations.| 00000190 00 be 1f c8 99 20 22 49 49 43 5f 43 6f 6e 74 72 |..... "IIC_Contr| 000001a0 6f 6c 22 2c 26 41 39 2c 50 42 4b 25 2c 34 0d 00 |ol",&A9,PBK%,4..| 000001b0 c8 25 f1 20 7e 50 42 4b 25 3f 30 2c 7e 50 42 4b |.%. ~PBK%?0,~PBK| 000001c0 25 3f 31 2c 7e 50 42 4b 25 3f 32 2c 7e 50 42 4b |%?1,~PBK%?2,~PBK| 000001d0 25 3f 33 0d ff |%?3..| 000001d5