]> git.defcon.no Git - z80cpm/blob - kermit.txt
An experiment in reading files on CP/M
[z80cpm] / kermit.txt
1 To transfer files to and from my Grant Searle based
2 CPM computer, I started using DOWNLOAD.COM and Grants
3 windows application for creating compatible "packages".
4 But, this was tedious, and very error-prone. So I looked
5 for a better solution, and found one that works for me at
6 http://oldcomputer.info/others/z80sbc/index.htm
7
8 Using the C-Kermit package linked there, along with
9 standard ckermit on Linux, I have a much more reliable
10 and convenient way of getting data to and from the CP/M machine.
11
12 I use the second serial port of the CP/M machine's SIO/2
13 attached to a USB serial adapter on the Linux host.
14
15 A typical session, involves typing up the assembly code,
16 then using the crasm assembler to produce an Intel HEX file.
17 The Hex file gets transferred to the CP/M system "raw":
18
19 On the CP/M side I start Recieving of file using:
20 D> KERMIT
21 Kermit-80 v4.11 configured for Generic CP/M-80 with Generic (Dumb) CRT Terminal type selected
22
23 For help, type ? at any point in a command
24 Kermit-80 0D:>SET PORT PTR
25 Kermit-80 0D:>R
26
27
28 On the Linux side I set up the Sending using:
29 jonlan@JL-X260:~/Code/z80cpm$ kermit
30 C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, for Linux+SSL+KRB5 (64-bit)
31 Copyright (C) 1985, 2011,
32 Trustees of Columbia University in the City of New York.
33 Type ? or HELP for help.
34 (/home/jonlan/Code/z80cpm/) C-Kermit>
35 (/home/jonlan/Code/z80cpm/) C-Kermit>set modem type none
36 (/home/jonlan/Code/z80cpm/) C-Kermit>set line /dev/ttyUSB1
37 (/home/jonlan/Code/z80cpm/) C-Kermit>set carrier-watch off
38 (/home/jonlan/Code/z80cpm/) C-Kermit>set speed 115200
39 (/home/jonlan/Code/z80cpm/) C-Kermit>set flow rts/cts
40 (/home/jonlan/Code/z80cpm/) C-Kermit>s file.hex
41
42
43 Finally, back on the CPM host, the HEX file is converted to a
44 loadable COM file using the CP/M 2.2 LOAD.COM utility:
45
46 D>A:LOAD FILE
47
48
49 Cut-and-paste friendly settings for C-Kermit:
50 CP/M side
51
52 set port ptr
53
54 Linux side
55
56
57 set modem type none
58 set line /dev/ttyUSB1
59 set carrier-watch off
60 set speed 115200
61 set flow rts/cts