Tokugawa Corporate Forums
http://fullmotionvideo.free.fr/phpBB3/

Editing of virtual CP/M disks
http://fullmotionvideo.free.fr/phpBB3/viewtopic.php?f=2&t=1722
Page 1 of 1

Author:  Starscream the 2nd [ July 2nd, 2017, 2:45 pm ]
Post subject:  Editing of virtual CP/M disks

I recently got interested in CP/M and trying to insert files from Windows for use with emulators. For some systems it's relatively easy, e.g. for CPC you can just use WinApe and use the inbuilt Diskeditor to copy.
But I'm interested to work with various CPM disks for Japanese computers and other more obscure ones.
I was looking around and found this:
https://virtuallyfun.superglobalmegacor ... -disk-fun/

Ok, so I got CPMTools, the Imagedisk related tools (Imd118.zip) I already had. The conversion to RAW can also be done with SAMdisk.
http://simonowen.com/samdisk/

My test case was the SMC-70 CPM 2.2 disk that's around.

Here's a diskdef
diskdef smc
seclen 256
tracks 70
sectrk 16
blocksize 2048
maxdir 128
skewtab 0,3,6,9,12,15,2,5,8,11,14,1,4,7,10,13
boottrk 2
os 2.2
end

This lets me view it, copy files etc.

Unfortunately, I can't get any IMDs created with Bin2imd based on the RAWS to work with emulators (Takeda's or MAME).
I was reading this:
https://winworldpc.com/winboards/viewtopic.php?t=6931

The SMC disk ends up with a different size compared to the original despite no changes. I can't tell to what extent this matters.
I just tried a disk for the Kaypro 2, which works in MAME. After RAW conversion and back to IMD, it hangs in MAME when trying to DIR it now. I found that the original has a size of 202.296 bytes, the converted image is 202.255 Bytes.
Has anyone had success with this, or any clue what's going on?

Edit: it turns out the the reconversion to IMD isn't necessary, it's possible to just use the RAW (.dsk) images with emulators after editing with CPMtools. E.g. I just inserted Mbasic.com into the SMC-70 disk. It works with the SMC-777 emulators.
However, the disk isn't recognized by the MZ-2500 Personal CPM anymore, you can dir the original SMC-70 IMD with it.
So then, it's mostly about finding the right diskdefs now.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/