Changes

Jump to: navigation, search

HDCPM

3,970 bytes added, 22 April
 
HDCPM is a Hard Disk boot loader for [[CP/M]] Plus, developed by d_kef<br />
HDCPM is compatible and can be used together with the [[Dobbertin Harddisc]].<br />
HDCPM has been developed with [[WinApe]] Z80 Assembler and was tested with [[WinApe]], [[CPCemu]], [http://www.roudoudou.com/ACE-DL/ ACE-DL] an Amstrad Plus 464 upgraded to 6128 an Amstrad CPC 6128 and an Amstrad CPC 464 with [https://www.cpcwiki.eu/index.php/Universal_512K_and_1MByte_RAM_Expansions Universal 512K RAM Expansion].<br />
Although every effort has been made to ensure that HDCPM works properly, there is a chance of hard disk data corruption in case of a stray bug in the code. So make a backup of your hard disk before installing and trying out the ROM. I'll not be held responsible for any data loss or damage to your hard disk.<br />
* HDCPM.BIN the executable binary file
* HDMGR.COM Hard Disk Manager utility
* MOUNT.COM Hard Disk mount utility
* RTC.COM RTC synchronization utility
* MAKEIMG.BAS CP/M image file creation utility
* Read the boot sector of the 1st hard disk and learn about the DPB, presence and size of the .EMS file, the startup drive, the drive letters and the CP/M console colour scheme.
* Read the .EMS file from the reserved track and store it in RAM just as the normal CP/M Plus boot loader does.
* Move the top of TPA and transfer the hard disk driver, RTC driver (in case of |HDCPMT) and initialize the XDPH, DPB, ALV of the mounted hard disks to the memory area just below the normal BDOS base address. The newly inserted code will be handled by CP/M as if it was were a normal RSX.
* Patch the floppy disk drive routines in case a FDC's not been found.
* Patch the SCB in order to change the startup/default drive.
end
<br />
HDCPM is not FAT aware. It utilizes code to search in the root directory of a FAT formatted medium in order to find the CP/M image files. Then it finds the LBA of the first sector of each file and passes it to the CP/M hard disk driver. The CP/M hard disk driver doesn't know anything about FAT or image files. It accesses the image file as if it was were a real hard disk. It works on the sector level with LBA addressing so it expects the 'hard disk' to be a continuous block of sectors.<br />
A CP/M image file can easily become fragmented during its creation, especially if the hard disk is nearly full. I advice you to create/copy your CP/M image files to your FAT formatted hard disk/partition while it is still empty. [https://www.cpcwiki.eu/index.php/Albireo Albireo] incorporates a file management IC that performs FAT file system operations and handles fragmented files properly. In such case fragmented image files is not a problem. HDCPM will never fragment a CP/M image file.<br />
{|
==CP/M Plus disk/partitions==
You can also create one or more partitions in order to format them to [http://www.seasip.info/Cpm/format31.html CP/M-80] and use them exclusively for CP/M. In such case you must make sure that the size of the partition is big enough to accommodate your file system.<br />
HDCPM examines the hard disk's MBR upon start and finds the partition information. Then it finds the LBA of the first sector of each partition and passes it to the CP/M hard disk driver. The CP/M hard disk driver doesn't know anything about partitions. It accesses the partition as if it was were a real hard disk.<br />
HDCPM can't be used to partition your hard disk. In order to create partitions you must connect the hard disk to a modern computer and use its partitioning utility.<br />
Use the command |HDDEF to find the exact length of the file system/partition. When you have created the partition use the HDMGR.COM utility in order to format it.<br />
You can synchronize the date and time of CP/M Plus with the RTC by running ''RTC -G'' manually or via your PROFILE.SUB.<br />
You can also set your RTC to the current CP/M date and time by running ''RTC -S'' (not for M4 board)<br />
You can see the detected RTC interface type by running ''RTC -I''<br />Currently RTC.COM works with the RTC found in Symbiface II, Symbiface III and , M4 board (read only)and [[Nova]].<br />
DATE.COM, DIR.COM and SHOW.COM commands, patched for Year 2000 compatibility can be downloaded from the [http://www.cpm.z80.de/binary.html CP/M source archive - Digital Research Binary files section] .<br />
 
==The MOUNT.COM utility==
You can use the MOUNT.COM utility in order to list the mounted CP/M disks, list the available CP/M disks in your mass storage medium and mount a new disk in one of the four available mount points.<br />
You can get a list of the already mounted CP/M disks by running ''MOUNT'' without any parameters.<br />
You can get a list of the available CP/M disk images or partitions by running ''MOUNT -L''<br />
You can mount one of the available CP/M disk images or partitions by running ''MOUNT <mount point>,<hard disk>'' where <mount point> is a number from 1 to 4 indicating the HDCPM disk number and <hard disk> is a two digit number from 00 to 99 for CPMDSK00.IMG to CPMDSK99.IMG respectively, or P1 to P4 for partition 1 to partition 4 respectively.<br />
==Error messages==
HDCPM.DOC: various additions and corrections.<br />
|| [[Media:hdcpm110.dsk|hdcpm110.dsk]]
|-
| v1.11 April 2024 || HDCPM.ROM, HDCPM.BIN: CP/M (virtual) disks are now treated as removable.<br />
HDCPM.ROM, HDCPM.BIN, HDMGR.COM: code optimization.<br />
HDCPM.ROM, HDCPM.BIN: (bug fix) uIDE driver was corrupted.<br />
HDMGR.COM: (bug fix) CP/M disk image information could skip an image file.<br />
MOUNT.COM: added utility to list and mount CP/M (virtual) disks.<br />
HDCPM.DOC: various additions and corrections.<br />
|| [[Media:hdcpm111.dsk|hdcpm111.dsk]]
|}
==Other downloads==
*[[Media:CPMDSK01&02.zip|CP/M disk images]] - CPMDSK01.IMG is bootable and contains all the files of the 3 CP/M Plus system disks and year 2000 compliant binaries downloaded from the [http://www.cpm.z80.de/binary.html Digital Research Binary Files]. CPMDSK02.IMG is empty and can also be used as a template.<br />
*[[Media:Z3Plus.part1.rar|ZPM3+ZCCP disk image part 1]] , [[Media:Z3Plus.part2.rar|ZPM3+ZCCP disk image part 2]] - The Amstrad BDOS and CCP have been replaced with their counterparts [https://github.com/wwarthen/CPU280/tree/master/ZPM3/zpm3.txt ZPM3] and [https://github.com/wwarthen/CPU280/tree/master/ZCCP/zccp.txt ZCCP] written by Simeon Cranand Randy Winchester respectively. It is [https://www.cpcwiki.eu/index.php/Z-System Z-system, Z3Plus] compatible and contains the Z3Plus system files, all the files of the 3 CP/M Plus system disks, year 2000 compliant binaries and also contains some useful tools, help files and manuals.<br />*[[Media:CPMDSK04.zip|EMS Files]] - CPMDSK04.IMG contains a collection of HDCPM compatible EMS files (see table below) and the latest HDMGR.COM{| class="wikitable"|-! EMS file !! BDOS !! CCP !! BIOS !! Extras !! Description|-| C10CPM3.EMS || Digital Research || Digital Research || Amstrad v1.0 || - || Original Amstrad CP/M Plus for CPC|-| C11CPM3.EMS || Digital Research || Digital Research || Amstrad v1.1 || - || Original Amstrad CP/M Plus for CPC|-| C10ZPM3.EMS || ZPM3 by Simeon Cran || Digital Research || Amstrad v1.0 || - || The BDOS has been replaced by ZPM3 written in Z80 assembly|-| C11ZPM3.EMS || ZPM3 by Simeon Cran || Digital Research || Amstrad v1.1 || - || The BDOS has been replaced by ZPM3 written in Z80 assembly|-| CPM3SEMI.EMS || Digital Research || Digital Research || Amstrad v1.0 || Dk'tronics RAM drive || Patched with Dk'tronics memory expansion driver|-| ZPM3SEMI.EMS || ZPM3 by Simeon Cran || Digital Research || Amstrad v1.0 || Dk'tronics RAM drive || Patched with Dk'tronics memory expansion driver and ZPM3|-| C10ZCPR3.EMS || ZPM3 by Simeon Cran || ZCCP by Randy Winchester || Amstrad v1.0 || - || The BDOS has been replaced by ZPM3 and the CCP has been replaced by ZCCP, both written in Z80 assembly. Z-system/Z3Plus compatible. <b>Strartup and default drive must be drive A: (use HDMGR.COM to change) </b>|-| ZCPR3SEM.EMS || ZPM3 by Simeon Cran || ZCCP by Randy Winchester || Amstrad v1.0 || Dk'tronics RAM drive || The BDOS has been replaced by ZPM3 and the CCP has been replaced by ZCCP, both written in Z80 assembly. Z-system/Z3Plus compatible. Patched with Dk'tronics memory expansion driver. <b>Strartup and default drive must be drive A: (use HDMGR.COM to change)</b>|-| D10CPM3.EMS || Digital Research || Digital Research || Amstrad v1.0 || Dobbertin RAM Drive || Patched with Dobbertin memory expansion driver|-| D11CPM3.EMS || Digital Research || Digital Research || Amstrad v1.1 || Dobbertin RAM Drive || Patched with Dobbertin memory expansion driver|-| DX10CPM3.EMS || Digital Research || Digital Research || Amstrad v1.0 || Dobbertin RAM Drive, Vortex format drive B: || Patched with Dobbertin memory expansion driver. Supports Vortex formatted, 80 track, double side floppies, in drive B:|-| DX11CPM3.EMS || Digital Research || Digital Research || Amstrad v1.1 || Dobbertin RAM Drive, Vortex format drive B: || Patched with Dobbertin memory expansion driver. Supports Vortex formatted, 80 track, double side floppies, in drive B:|-|}
==Videos==
181
edits