Hi, I'm writing a CP/M program using newlib and would like to read/write files.
I understand that fopen isn't currently implemented in newlib, (I tried it and get "symbol 'asm_target_open_p1' not defined"), what's the best way to open read/write files in CP/M with newlib? Am I better off reverting to the classic lib?
Thanks!
Ed
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
[Z88dk-users] File IO in CP/M using newlib
Yes unfortunately disk io through stdio is not going to work in newlib. I'm hoping to complete disk io this summer. From within newlib the only way you are going to be able to do disk io is to call the cpm bdos directly from assembler.Hi, I'm writing a CP/M program using newlib and would like to read/write files.
I understand that fopen isn't currently implemented in newlib, (I tried it and get "symbol 'asm_target_open_p1' not defined"), what's the best way to open read/write files in CP/M with newlib? Am I better off reverting to the classic lib?
Classic lib will do file io if you need it.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot