Skip to content
feilipuPublic
forked from RC2014Z80/RC2014

About

CP/M-IDE for RC2014 repository - 8085 and Z80 CPU - FAT File System CP/M

Resources

Stars

2 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

161 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CP/M - IDE

There are several implementations of CP/M available for the RC2014. Each implementation has its own focus, and the same is true here. For larger RC2014 Zed based systems with 512kB RAM RomWBW is the right solution. For your smaller RC2014 Pro based systems with 64kB RAM read on.

For further technical reading, a longer description of CP/M-IDE is here. This description is slightly outdated, but it covers the basics.

What it is

CP/M-IDE runs CP/M 2.2 on a Z80 or an 8085, from a 32 kB ROM, with a normal FAT16 or FAT32 disk. A drive letter is a directory on that one volume. A: through P: are sixteen directories, and further sets of those directories can live in other folders. The console is a serial terminal.

RC2014 CP/M-IDE with IDE Module and ACIA Module
RC2014-8085 CP/M-IDE with DOM in an IDE Module and ACIA Module

Each HEX file in this directory is one complete ROM for one combination of CPU, serial module, and disk module. The board runs that image. It does not load a driver from the card. There is no 8085 SIO ROM.

CPU, serial module, and disk module in the seven ROMs

A program sees an ordinary CP/M 2.2 machine. The transient program area runs from $0100 up to the word at 0006h, which is $F206. How the ROM and the RAM fit together is in How CP/M-IDE fits.

v2.6, still published, mounts up to four 8 MB container files. The cpm command names those files. The first file named is drive A:, and each further file is the next drive, through D:. Each file has to be one contiguous run of clusters. The four files do not have to form one contiguous unit. That procedure is in CP/M-IDE v2.6.

Hardware

The usual machine is an RC2014 Pro: Z80, 64 kB RAM, a pageable 32 kB ROM, a serial module, and either the Compact Flash Module or the IDE Hard Drive Module. The 8085 CPU Module replaces the Z80 and the clock, and uses the ACIA or the UART. A Compact Flash card of 1 GB or greater holds many sets of drives. A card sold as 128 GB, about 119 GiB, is the largest that is guaranteed to fit whole. The interface names 2^28 sectors, which is 128 GiB or 137.4 GB; a larger card needs a partition ending at or below that limit. Hardware has the three cases and the recovery step. An SD card in an SD-to-CF adapter uses the same Compact Flash interface.

Serial is 115200 baud, 8 data bits, no parity, 2 stop bits. The USB adapter has to drive /RTS on pin 6.

The modules, the jumper pictures, the ports, and the buffer sizes are in Hardware.

Get started

Burn the HEX that matches that list into a 32 kB or 64 kB ROM. Format the card FAT32, or FAT16 if it is small. Make a directory called A and put the first programs there before CP/M starts.

mkdir A, cd A, xget the starter programs, then cpm .

xget is XMODEM-128 checksum (sz --xmodem). The CCP already knows DIR, ERA, TYPE, SAVE, REN, USER, and EXIT. Leave a root CPMIDE.CFG out until A: has those files. A root file that names A: starts CP/M at power-on and skips the shell.

The shell commands, the config file, and the other ways to choose the drives are in Getting started.

Further reading

Getting started Burn the ROM, prepare the card, the shell, and the first cpm.
Hardware Modules, jumpers, serial, and the disk interface.
How CP/M-IDE fits The memory map, paging, and the TPA.
Building The seven ROM command lines, a .COM, and CF versus PATA.
CP/M-IDE v2.6 Container files, frag, and mkdrv.
The CP/M 2.2 BDOS What each call returns.
Mini-FAT The sector and directory layer.
Modifications to the CCP and BDOS EXIT, the A: fallback, and the origins.
CPM-IDE-MSX The design record for this disk BDOS.

Example programs are in CPM Drives. Host tools for the old images are in cpmtools/readme_cpmtools.md.

The same notes are on the wiki.

Licence

The repository licence is LICENSE.txt. It is the MIT licence for this tree, and the Bryan Sparks grant for the Digital Research CP/M 2.2 Console Command Processor and Basic Input/Output System. Each product BIOS is derived from that CP/M BIOS.

"Let this paragraph represent a right to use, distribute, modify, enhance, and otherwise make available in a nonexclusive manner CP/M and its derivatives. This right comes from the company, DRDOS, Inc.'s purchase of Digital Research, the company and all assets, dating back to the mid-1990's. DRDOS, Inc. and I, Bryan Sparks, President of DRDOS, Inc. as its representative, is the owner of CP/M and the successor in interest of Digital Research assets." Reference

About

CP/M-IDE for RC2014 repository - 8085 and Z80 CPU - FAT File System CP/M

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages