Post by Steve NickolasI just got a weird idea: would it be difficult to either port the 48K
Pascal runtime to use the ProDOS API and filesystem, or rewrite it to run
under ProDOS?
-uso.
Without doing a boatload of "under the hood" digging to refresh 20+ year
old brain-cells, I'd bet that it wouldn't be difficult at all - It'd be
a full-blown visit to hell!
The only similarity between the Pascal and ProDOS disk access is that
they both use a "two disk sectors make a logical block" scheme. Worse,
to make "Pascal block 1", it might be "cram Track 1, Sector 3 and Track
1, Sector 5 together", while "ProDOS block 1" is "cram Track 1, Sector 7
and Track 1, sector 8 together" (Note that I'm certain I'm wrong on the
exact sector pairs - Just pulling them out of thin air for illustration)
In other words, the Pascal system and ProDOS are basically about as
compatible as water and motor oil - without a major dose of "soap", they
don't mix worth a damn.
Years ago, I wrote some special-purpose ProDOS assembly code to import a
handful of sectors of data from a Pascal disk to ProDOS - It was a
disaster. Took weeks of research, followed by days of coding, and when
it was done, it would only cope with turning that specific group of
sectors into a ProDOS binary file. Even then, I had to massage it before
I could use it. Trying to go the other direction was COMPLETELY outside
my ability at the time - I could write to a Pascal disk from ProDOS, but
it was an even money bet as to whether the disk would read under Pascal
afterwards.
--
Security provided by Mssrs Smith and/or Wesson. Brought to you by the letter Q