Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Conversation

@skx
Copy link
Owner

@skx skx commented Jun 2, 2025

This pull-request, once complete, will update #234 by re-implementing the following CP/M primitives:

  • File Close
  • File Open
  • Read File
  • File Size
  • Make File
  • Write Random Record
  • Read Random Record
  • Rand Record
  • Write File

(Ordered by the expected implementation order - and re-ordered as I go forwards, obviously I want to be able to run the HiSoft C compiler so I'm adding the functions that are missing.)

My hope is that this considered and thoughtful rewrite will resolve the issues plaguing the HiSoft C compiler, however if it does not then I will close the issue regardless and try to pin down a smaller and similar way to reproduce the issues found in that binary.

Until this PR is ready for review it will fail all tests and use, as some/all of the functions have been stubbed out for replacement.

skx added 13 commits June 2, 2025 16:26
This pull-request, once complete, will update #234 by reimplementing
the following CP/M primives:

* File Open
* File Close
* Make File
* Read File
* Write File
* Read Random Record
* Write Random Record

My hope is that this considered and thoughtful rewrite will resolve
the issues plaguing the HiSoft C compiler, however if it does not
then I will close the issue regardless and try to pin down a smaller
and similar way to reproduce the issues found in that binary.

Until this PR is ready for review it will fail all tests and use,
as some/all of the functions have been stubbed out for replacement.
@skx
Copy link
Owner Author

skx commented Jun 2, 2025

Current status:

  • Microsoft basic fails to load:
    • {"time":"2025-06-02T20:14:40.204902137+03:00","level":"ERROR","msg":"updating the sequential offset failed","expected":1,"real":0}
  • HiSOft C fails to run with the same "FMT Error" error.

TLDR; Pointless. Fix the sequential offset, and see if it helps. If not abandon everything.

@skx skx closed this Jun 9, 2025
@skx skx deleted the 234-rework branch June 9, 2025 11:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants