In this setup a CF board is added to backplane with SC108 and KIORC. The CF board is Karlab's 10e which has the added 100ohm/100pF filter on CF read line that operates reliably with many different brands of CF disks. See the
design modification here on Aug 9, 2021.
CPM software support for the CF card is a bit complex; since this is a new I/O device, the existing CF images for either 68B50 or SIO2 won't work, so it needs to be built up from scratch. There are several steps involved in getting new CP/M installed in a new CF disk:
1. Format the new CF disk
2. Transfer new BIOS/BDOS/CCP in the system track of the CF disk
3. Install a file transferring program in the new CF disk
4. Transfer CP/M distribution files to the new CF disk
The process is like a wedding, something old, new, burrowed, and blue... It can be done either with Grant Seale's ROM software or Steve Cousin's SCMonitor, or even with my own K80 monitor software, but let's stick with the Grant Seale's original and the best known approach using his ROM monitor that was patched with KIORC addresses.
Step 1, Format is done with
Grant's FORM64.HEX as described in his site. i.e., load FORM64.HEX with his ROM monitor and type G5000, and it is done.
Step 2, CPM BIOS for KIO can be borrowed from
Ladislau's GitHub. It is the file "KIO_PutSys_CF64_CPM_DA00H.hex". It has more TPA space than the original RC2014 CPM such that CCP starts from $DA00. Just follow the instruction and load the hex file with Grant's ROM monitor and type "G8000" to install new CP/M for KIO in CF's system tracks
Step 3 is transferring
DOWNLOAD.COM into the new CF, but I really really don't like
DOWNLOAD.COM. It is (here comes the "something blue" part of the wedding analogy) SLOW, lots of hoops to jump through, so on... Fortunately there is
XMODEM.HEX from foxhollow.ca that can transfer
XMODEM.COM instead of
DOWNLOAD.COM, but there is a catch: the new CPM BIOS of step 2 does not implement the file relocation routine in location $FFE8, so GFFE8 command just hangs. That problem can be fixed with a new file relocation routine:
ld hl,4100h ;source
ld de,100h ;destination
ld bc,8f00h ;copy 36K data
ldir
jp 0f000h ;jump to BIOS boot routine.To make a long story short, just append this two lines to XMODEM.HEX:
:10FFE000FFFFFFFFFFFFFFFF2100411100010100A4
:10FFF0008FEDB0C300F0FFFFFFFFFFFFFFFFFFFF2Cload the patched XMODEM.HEX then type "GFFE8" which copies XMODEM image from $4100 to $100 and starts CP/M. At CP/M prompt type "save 17
xmodem.com". Voila, we have
xmodem.com installed in the new CF disk!
Step 4 is using XMODEM to transfer files, but XMODEM does not have batch file transferring capability so each file need to be done individually. This is where arj.exe and
unarj.com come to rescue for Windows users; arj.exe compresses multiple files into one file, XMODEM it across, then
unajr.com decompresses back to multiple files.
This all may sound complicated, but with a TeraTerm script file the whole process of format CF disk, putsys CP/M, install XMODEM, and transfer CP/M distribution files can be done in about a minute. Watch this video of CP/M file creation on a new CF disk.
Step 1 (format CF disk) at 00:07 mark
Step 2 (putsys CPM) at 00:16 mark
Step 3 (
XMODEM.COM created) at 00:23 mark
Step 4a (xmodem transfer of
unarj.com and cpm22.arj completed) at 00:42
Step 4b (extraction of CPM 2.2 distribution files completed) at 01:05
The video is playing back at normal speed but Z80 clock was 20MHz. It takes 1 minute and 40 seconds to run the same script with 7.37MHz clock.
Bill