That diskdef does not seem to match the disk image. The directory entries in the image are for a DPB that has the total number of blocks being <= 256 (one byte block numbers), but the diskdef computes out to 2048 blocks total (two byte block numbers).This results in cpmtools thinking the first block of CPM.SYS is 0x1110 which would correctly be beyond the end of the disk. I'd have to see more of the disk image to tell what the diskdef needs to be.
I'm still getting errors with the following:
Libdsk 1.5.15
cpmtools Version 2.23-snapshot (latest Snapshot)
diskdef yaze512
# BSH 4 BLM 15 EXM 1 DSM 255 DRM 1023 AL0 0FFH AL1 0FFH OFS 0
seclen 128
tracks 4096
sectrk 8
blocksize 2048
maxdir 1024
skew 1
offset 128
boottrk 0
os 3
end
...Directory is at 0x080 = 128 Decimal
00000080 00 43 50 4D 33 20 20 20 20 53 59 53 01 00 00 80 .CPM3 SYS.... 00000090 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F ................
...
Larry
The differences are:
BISO3.YDSK
00000020 80 00 04 0F 01 FF 00 FF 03 FF FF 00 00 00 00 04 ................ 00000030 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Z80ASM.YDSK
00000020 80 00 04 0F 00 FF 01 FF 03 FF FF 00 00 00 00 04 ................ 00000030 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Larry
...
so, the DPBs differ. Here's a program I threw together to read the DPB from the .ydsk header and create a cpmtools diskdef from it. Provided I did not screw up, that should work on your image too. http://sebhc.durgadas.com/getydskdef.c
It works for me on z80asm.ydsk (using my enhanced cpmtools to embed the diskdef on the commandline, e.g. cpmls -d -f "$(getydskdef z80asm.ydsk)" z80asm.ydsk).
I'm still getting errors with the following:
Libdsk 1.5.15
cpmtools Version 2.23-snapshot (latest Snapshot)
diskdef yaze512
# BSH 4 BLM 15 EXM 1 DSM 255 DRM 1023 AL0 0FFH AL1 0FFH OFS 0
seclen 128
tracks 4096
sectrk 8
blocksize 2048
maxdir 1024
skew 1
offset 128
boottrk 0
os 3
end
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 60:34:05 |
Calls: | 6,654 |
Calls today: | 6 |
Files: | 12,200 |
Messages: | 5,331,394 |