I made it work, almost.
But it only _just_ works. The MOS character set is and yes, I know that hyphen is problematic on Masters. This allows a CP/M character set of 42 symbols which is smaller than the strictly allowed 51, most of which consist of characters that nobody ever uses.
Code:
$ g++ filename.cc -lfmt && ./a.out "dump com"approximately 7.173683211104686e+17 possible CP/M filenames with 42 symbolsapproximately 8.392993658683402e+17 possible MOS filenames with 62 symbolsencoded CP/M string is 0x11186691cadae2fencoded MOS filename is 'LUL-?HQ$)F'encoded MOS string is 0x11186691cadae2fdecoded CP/M filename is 'DUMP COM'
Code:
ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\$^&()_=+[]{};',/<>`~-*#?
Statistics: Posted by hjalfi — Mon Aug 26, 2024 9:14 pm