How created .hfe without image floppy disk (real file direct)

Post Reply
matmaq
Posts: 1
Joined: Thu Dec 07, 2017 8:16 pm

How created .hfe without image floppy disk (real file direct)

Post by matmaq »

I have files that do not need to go to the floppy to then come back as image file and again convert to .hfe and send to usb stick.
I would like a direct way. Generate the files that the machine works and generate .hfe in floppy disk patterns.

Is that possible?

Thank's

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: How created .hfe without image floppy disk (real file direct)

Post by Jeff »

matmaq wrote:
Tue Apr 10, 2018 2:56 pm
I have files that do not need to go to the floppy to then come back as image file and again convert to .hfe and send to usb stick.
I would like a direct way. Generate the files that the machine works and generate .hfe in floppy disk patterns.

Is that possible?

Thank's
I m not sure to understand but i think that the DiskDosBrowser is maybe what you are looking for :

https://hxc2001.com/download/floppy_driv ... rowser.zip

ldkraemer
Posts: 51
Joined: Thu Feb 28, 2013 3:47 am

Re: How created .hfe without image floppy disk (real file direct)

Post by ldkraemer »

Sure, as Jeff has posted DosDiskBrowser.EXE works fine to copy DOS files from some path on your computer
(Linux or Windows) to the Flash Drive IMAGE file. In my case the IMAGES on my Flash Drive are from DOS
Ver 3.3, DOS Ver 6.22, and DOS 7.1. Those IMAGES are named with a .IMG extension on my Flash Drive.

For Linux (Debian 8.x - 32 Bit) I just create a Launcher on my Desktop that includes WINE in the command.
My Launcher has the following stanzas:
NAME: DosDiskBrowser
Comment: HxC Dos Disk Browser
Command: wine DosDiskBrowser.EXE
Working Directory: /home/larry/Downloads/path/to/your/EXE/file

I added a DOS Utility Icon that was furnished with Linux. Make the Launcher executable and the DosDiskBrowser
works exactly like Windows.

But, what if you have a CP/M Floppy IMAGE that is a .TD0, or .IMD file that you want to add your CP/M files to?

I execute DOSBox on Linux, and have a subdirectory with IMD-118 unzipped, along with the .TD0, or .IMD
file of the CP/M IMAGE. Normally, I just copy the .TD0, or .IMD CP/M file there to work on it. When DosBox
executes you will need to mount C to that path (from within DOSBox).

A DOSBox tutorial is located at:

http://forums.debian.net/viewtopic.php?f=16&t=61888


DOSBox prompt.

Code: Select all

mount c ~/IMD-118
Now log in on C:

Code: Select all

c:
dir
Directory of C:\.
KAYSYSTM IMD 194,662 24-08-2017 7:47
KAYSYSTM RAW 204,800 24-08-2017 7:49
KAYSYSTM TD0 120,026 18-05-2013 10:29
KAYSYSTM TXT 2,416 24-08-2017 7:57
4 File(s) 521,904 Bytes.
0 Dir(s) 262,111,744 Bytes free.
Assume your file is the KAYSYSTM.TD0. You will need to create the .IMD, then the .RAW (Sector Dump) of
the .TD0 file. I use the following IMAGEDISK commands:

TD02IMD to create the .IMD file (If there is no .TD0 file, just make the IMDA command your first command.)
IMDA to get information on the Image
IMDU to create the .RAW (Sector Dump)

Code: Select all

td02imd KAYSYSTM.TD0 > KAYSYSTM.TXT          (If no .TD0 file, make your first command imda KAYSYSTM.IMD > KAYSYSTM.TXT) 
imda KAYSYSTM.IMD >> KAYSYSTM.TXT
imdu KAYSYSTM.IMD KAYSYSTM.RAW /B /E /D >> KAYSYSTM.TXT
Now, you have a lot of information on the image in the KAYSYSTM.TXT file and the RAW Image to work with.
Sector Size = 512
Sectors per track = 10
kbps = 250
Single sided
Double Density
Tracks = 40
Skew = 4 (from zero to 1 is 4. 0, 8, 3, 6, 1
total sectors = 400
Kaypro 2 System Disk - SS/DD - 180K

Assuming 1:1 for Binary output
0/0 250 kbps DD 10x512
0 8 3 6 1 9 4 7 2 5
D D D D D D D D D D
1/0 D D DE5 D D D00 D DE5 DE5 D
2/0 D00 D D D D00 D D D D00 D
3/0 D D D D D D D D D D
4/0 D D D D D D D D D D
..
..
..
37/0 D D D D D D D D D D
38/0 D D D D D D D D D D
39/0 D DE5 D D D DE5 D D D D
40 tracks(40/0), 400 sectors (22 Compressed)

The definitions you need for the Kaypro II and 4 are:

INSERT 22DISK KAY1 Kaypro II/2 - SSDD 48 tpi 5.25" - 512 x 10

# KAY1 Kaypro II/2 - SSDD 48 tpi 5.25" - 512 x 10
diskdef kay1
seclen 512
tracks 40
sectrk 10
secbase 0
blocksize 1024
maxdir 64
skew 1
boottrk 1
os 2.2
end

# libdsk data below
[kay1]
description = KAY1 Kaypro II/2 - SSDD 48 tpi 5.25" - 512 x 10
cylinders = 40
heads = 1
secsize = 512
sectors = 10
secbase = 0
datarate = DD


INSERT 22DISK KAY2 Kaypro 2X/4/10 - DSDD 48 tpi 5.25" - 512 x 10

# KAY2 Kaypro 2X/4/10 - DSDD 48 tpi 5.25" - 512 x 10
diskdef kay2
seclen 512
tracks 40
sectrk 20
secbase 0
blocksize 2048
maxdir 64
skew 1
offset 5120
boottrk 0
os 2.2
end

# libdsk data below
[kay2]
description = KAY2 Kaypro 2X/4/10 - DSDD 48 tpi 5.25" - 512 x 10
#sides = extsurface
cylinders = 80
heads = 2
secsize = 512
sectors = 10
secbase = 0
datarate = DD

These definitions will need to be inserted in cpmtools "diskdefs" file, and libdsk ".libdskrc" (if libdsk is used)

With these definitions cpmtools can insert or extract files from the .RAW image.

Code: Select all

cpmls -f kay1 -d KAYSYSTM.RAW
cpmls -f kay1 -T raw,kay1 KAYSYSTM.RAW

Code: Select all

cpmls -f kay1 -D KAYSYSTM.RAW
Name Bytes Recs Attr update create
------------ ------ ------ ---- ----------------- -----------------
ASM .COM 8K 64
CONFIG83.COM 8K 62
CPY .COM 4K 25
CURSOR .COM 1K 5
D .COM 3K 24
DDT .COM 5K 38
DISK4TST.COM 3K 21
DU-87 .COM 8K 59
DUMP .COM 1K 4
ED .COM 7K 52
FILTER .COM 3K 24
INITDISK.COM 5K 37
LOAD .COM 2K 14
MODEM903.COM 16K 127
MOVCPM .COM 10K 76
NEWTR .COM 13K 101
NSWEEP .COM 7K 50
NULU12 .COM 15K 120
PIP .COM 8K 58
PRINT .COM 12K 95
PROBE .COM 17K 131
SETDISK .COM 6K 41
SKEW .COM 2K 12
SOFT .SRC 2K 15
STAT .COM 6K 41
SUBMIT .COM 2K 10
SYS .COM 1K 7
SYSGEN .COM 1K 8
UNERA .COM 1K 8
USQ19 .COM 12K 96
XSUB .COM 1K 6
31 Files occupying 190K, 3K Free.
To extract a file use:

Code: Select all

cpmcp -f kay1 KAYSYSTM.RAW  0:PIP.COM /home/user/path/to/storage/area/
cpmcp -f kay1 KAYSYSTM.RAW  0:PIP.COM .
...................................................................^..DON'T overlook the PERIOD HERE, which means current working directory

You can also insert files.

Code: Select all

cpmcp -f kay1 KAYSYSTM.RAW /home/user/path/to/cpm/file/to/insert/pip.com 0:pip.com
cpmcp -f kay1 KAYSYSTM.RAW /home/user/path/to/cpm/file/to/insert/*.com 1:*.com
A cpmtools TUTORIAL is located at:

http://forums.debian.net/viewtopic.php?f=16&t=112244


Once you have the .RAW the way you want it, just use the HxC Emulator to convert the .RAW file to a .HFE file,
after you set the CP/M parameters correctly for the .RAW CP/M file. This is where the extra information and definitions
come in handy. The IMDA and IMDU commands give pretty well all the information that is required.

Copy the .HFE file to your USB Flash Drive, and make sure you update the flash drive configuration file accordingly.
Also make sure the GOTEK Jumpers reflect what you selected in the configuration file.

If you get stuck or need help, contact me and we will get it figured out.


Larry

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: How created .hfe without image floppy disk (real file direct)

Post by Jeff »

Why use Wine & Dosbox when you can compile and use the HxC software for Linux ?

ldkraemer
Posts: 51
Joined: Thu Feb 28, 2013 3:47 am

Re: How created .hfe without image floppy disk (real file direct)

Post by ldkraemer »

Jeff,
I wasn't aware that was an option. Please tell me where I can locate the source to do just that. That would be easier.

THANKS for all your hard work and for providing the Information and Firmware for the GOTEK's. That is going to
make it nice for the CP/M computers I have.

Larry

Jeff
Site Admin
Posts: 8092
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: How created .hfe without image floppy disk (real file direct)

Post by Jeff »

ldkraemer wrote:
Sat Dec 01, 2018 1:43 am
Jeff,
I wasn't aware that was an option. Please tell me where I can locate the source to do just that. That would be easier.

THANKS for all your hard work and for providing the Information and Firmware for the GOTEK's. That is going to
make it nice for the CP/M computers I have.

Larry
Here it is :
https://sourceforge.net/projects/hxcfloppyemu/

ldkraemer
Posts: 51
Joined: Thu Feb 28, 2013 3:47 am

Re: How created .hfe without image floppy disk (real file direct)

Post by ldkraemer »

Jeff,
THANKS, It built on Debian 8.x - 32 Bit.

Larry

Post Reply