Reading/Writing files in CP/M

Everything about programming, including VDP and Sound programming.
Post Reply
under4mhz
Posts: 30
Joined: 11 Apr 2021 05:12
Location: Brisbane, Australia
Contact:

Reading/Writing files in CP/M

Post by under4mhz »

Does anyone have some code on reading and writing files under CP/M?

I found a fairly descriptive manual: Section 5 CP/M 2 System Interface, but ever since stackoverflow was created, I haven't the patience to reverse engineer manuals anymore.

Actually, that might be a good stackoverflow question and I can get some more dopamine, er, points.
Support me on Patreon: https://www.patreon.com/Under4Mhz
Bill B
Posts: 593
Joined: 26 Jan 2014 16:31

Re: Reading/Writing files in CP/M

Post by Bill B »

Does the attached help?
Attachments
z80disc.zip
(7.04 KiB) Downloaded 132 times
under4mhz
Posts: 30
Joined: 11 Apr 2021 05:12
Location: Brisbane, Australia
Contact:

Re: Reading/Writing files in CP/M

Post by under4mhz »

That gives me a good overview of how cpm works.

From that I was able to find https://github.com/tstih/libcpm3-z80, which seems to implemented an open/close C interface which is what I was hoping for.
Support me on Patreon: https://www.patreon.com/Under4Mhz
Post Reply