Home » Archimedes archive » Acorn User » AU 1997-02 B.adf » Regulars » RTR/TEST

RTR/TEST

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 » Archimedes archive » Acorn User » AU 1997-02 B.adf » Regulars
Filename: RTR/TEST
Read OK:
File size: 0233 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM Initilise Serial Port 9600 Baud 8 data 1 Stop no Parity
   20SYS"OS_SerialOp",0,&96,&FF00
   30SYS"OS_SerialOp",1,0
   40SYS"OS_SerialOp",5,7
   50SYS"OS_SerialOp",6,7
   60SYS"OS_Byte",2,2
   70
   80REM Empty anything in the buffer
   90REPEAT
  100SYS"OS_SerialOp",4 TO ,B% ;C%
  110C%=C% AND &2
  120UNTIL C%<>0
  130PRINT"Serial I/O Board III"
  140PRINT"Mode 0 test"
  150PRINT"By Mike Cook"
  160
  170REPEAT
  180PRINT
  190INPUT"Byte to send (decimal)",S%;
  200SYS"OS_SerialOp",3,S%
  210A%=TIME+2
  220REPEAT
  230SYS"OS_SerialOp",4,256 TO ,B% ;C%
  240C%=C% AND &2
  250UNTIL C%=0 OR TIME>A%
  260IF B%=256 THEN PRINT"Nothing recieved" ELSE PRINT" Recieved (hex)";~B%
  270UNTIL FALSE

=� Initilise Serial Port 9600 Baud 8 data 1 Stop no Parity
ș"OS_SerialOp",0,&96,&FF00
ș"OS_SerialOp",1,0
(ș"OS_SerialOp",5,7
2ș"OS_SerialOp",6,7
<ș"OS_Byte",2,2
F
P"� Empty anything in the buffer
Z�
dș"OS_SerialOp",4 � ,B% ;C%
nC%=C% � &2
x� C%<>0
��"Serial I/O Board III"
��"Mode 0 test"
��"By Mike Cook"
�
��
��
�!�"Byte to send (decimal)",S%;
�ș"OS_SerialOp",3,S%
�
A%=�+2
��
�#ș"OS_SerialOp",4,256 � ,B% ;C%
�C%=C% � &2
�� C%=0 � �>A%
;� B%=256 � �"Nothing recieved" � �" Recieved (hex)";~B%
� �
�
00000000  0d 00 0a 3d f4 20 49 6e  69 74 69 6c 69 73 65 20  |...=. Initilise |
00000010  53 65 72 69 61 6c 20 50  6f 72 74 20 39 36 30 30  |Serial Port 9600|
00000020  20 42 61 75 64 20 38 20  64 61 74 61 20 31 20 53  | Baud 8 data 1 S|
00000030  74 6f 70 20 6e 6f 20 50  61 72 69 74 79 0d 00 14  |top no Parity...|
00000040  1f c8 99 22 4f 53 5f 53  65 72 69 61 6c 4f 70 22  |..."OS_SerialOp"|
00000050  2c 30 2c 26 39 36 2c 26  46 46 30 30 0d 00 1e 17  |,0,&96,&FF00....|
00000060  c8 99 22 4f 53 5f 53 65  72 69 61 6c 4f 70 22 2c  |.."OS_SerialOp",|
00000070  31 2c 30 0d 00 28 17 c8  99 22 4f 53 5f 53 65 72  |1,0..(..."OS_Ser|
00000080  69 61 6c 4f 70 22 2c 35  2c 37 0d 00 32 17 c8 99  |ialOp",5,7..2...|
00000090  22 4f 53 5f 53 65 72 69  61 6c 4f 70 22 2c 36 2c  |"OS_SerialOp",6,|
000000a0  37 0d 00 3c 13 c8 99 22  4f 53 5f 42 79 74 65 22  |7..<..."OS_Byte"|
000000b0  2c 32 2c 32 0d 00 46 04  0d 00 50 22 f4 20 45 6d  |,2,2..F...P". Em|
000000c0  70 74 79 20 61 6e 79 74  68 69 6e 67 20 69 6e 20  |pty anything in |
000000d0  74 68 65 20 62 75 66 66  65 72 0d 00 5a 05 f5 0d  |the buffer..Z...|
000000e0  00 64 1f c8 99 22 4f 53  5f 53 65 72 69 61 6c 4f  |.d..."OS_SerialO|
000000f0  70 22 2c 34 20 b8 20 2c  42 25 20 3b 43 25 0d 00  |p",4 . ,B% ;C%..|
00000100  6e 0e 43 25 3d 43 25 20  80 20 26 32 0d 00 78 0b  |n.C%=C% . &2..x.|
00000110  fd 20 43 25 3c 3e 30 0d  00 82 1b f1 22 53 65 72  |. C%<>0....."Ser|
00000120  69 61 6c 20 49 2f 4f 20  42 6f 61 72 64 20 49 49  |ial I/O Board II|
00000130  49 22 0d 00 8c 12 f1 22  4d 6f 64 65 20 30 20 74  |I"....."Mode 0 t|
00000140  65 73 74 22 0d 00 96 13  f1 22 42 79 20 4d 69 6b  |est"....."By Mik|
00000150  65 20 43 6f 6f 6b 22 0d  00 a0 04 0d 00 aa 05 f5  |e Cook".........|
00000160  0d 00 b4 05 f1 0d 00 be  21 e8 22 42 79 74 65 20  |........!."Byte |
00000170  74 6f 20 73 65 6e 64 20  28 64 65 63 69 6d 61 6c  |to send (decimal|
00000180  29 22 2c 53 25 3b 0d 00  c8 18 c8 99 22 4f 53 5f  |)",S%;......"OS_|
00000190  53 65 72 69 61 6c 4f 70  22 2c 33 2c 53 25 0d 00  |SerialOp",3,S%..|
000001a0  d2 0a 41 25 3d 91 2b 32  0d 00 dc 05 f5 0d 00 e6  |..A%=.+2........|
000001b0  23 c8 99 22 4f 53 5f 53  65 72 69 61 6c 4f 70 22  |#.."OS_SerialOp"|
000001c0  2c 34 2c 32 35 36 20 b8  20 2c 42 25 20 3b 43 25  |,4,256 . ,B% ;C%|
000001d0  0d 00 f0 0e 43 25 3d 43  25 20 80 20 26 32 0d 00  |....C%=C% . &2..|
000001e0  fa 11 fd 20 43 25 3d 30  20 84 20 91 3e 41 25 0d  |... C%=0 . .>A%.|
000001f0  01 04 3b e7 20 42 25 3d  32 35 36 20 8c 20 f1 22  |..;. B%=256 . ."|
00000200  4e 6f 74 68 69 6e 67 20  72 65 63 69 65 76 65 64  |Nothing recieved|
00000210  22 20 8b 20 f1 22 20 52  65 63 69 65 76 65 64 20  |" . ." Recieved |
00000220  28 68 65 78 29 22 3b 7e  42 25 0d 01 0e 07 fd 20  |(hex)";~B%..... |
00000230  a3 0d ff                                          |...|
00000233