Ah, now this is why I needed a cup of tea. I don't think it's going to be possible this way.
A CP/M filename can be represented by 64 values for each slot, giving 12*64=768, erm..., thingies.
Using base-40 encoding, a 10-character filename gives us 10*40=400 thingies.
We can't fit 768 thingies into 400 thingies.
I think I'd probably go for either sidecar files with the full filename in them, or a per-directory metadata file with the full filename in it. We still have the problem of ensuring unique host filenames, eg how to store "FILENAME.SCR" and "FILENAME.SCN". You might have to go all Windows and have host filenames "FILENAM01!" and "FILENAM02!" with "FILENAM01?" holding the string "FILENAME.SCR" and "FILENAME02?" holding the name "FILENAME.SCN".
A CP/M filename can be represented by 64 values for each slot, giving 12*64=768, erm..., thingies.
Using base-40 encoding, a 10-character filename gives us 10*40=400 thingies.
We can't fit 768 thingies into 400 thingies.
I think I'd probably go for either sidecar files with the full filename in them, or a per-directory metadata file with the full filename in it. We still have the problem of ensuring unique host filenames, eg how to store "FILENAME.SCR" and "FILENAME.SCN". You might have to go all Windows and have host filenames "FILENAM01!" and "FILENAM02!" with "FILENAM01?" holding the string "FILENAME.SCR" and "FILENAME02?" holding the name "FILENAME.SCN".
Statistics: Posted by jgharston — Mon Aug 26, 2024 8:15 pm