Support for stdio on esxdos in ZX Next target?
Posted: Mon Jul 24, 2017 1:33 pm
I saw that you have submitted a skeleton of the ZX Next target in the z88dk newlib. That's great
What are your plans for implementing fread() etc in stdio.h on top of esxdos?
Just for fun, I did a quick-and-dirty test shot of implementing fopen() and fread() using esxdos myself using Mike Dailly's Z80 esxdos routines in SNasm syntax. I got it to compile with z88dk and I think fopen() worked but fread() did not. My biggest problem when doing things like this is how to debug the code. I really miss being able to do source code debugging at the C level... Is there a debug version of the Spectrum printf() that prints on a dedicated debug console or to a file when running in an emulator? What is your debugging tips and tricks when debugging combined C and assembly code? I don't plan to pursue this little experiment, I'm just curious.
Regards,
Stefan
What are your plans for implementing fread() etc in stdio.h on top of esxdos?
Just for fun, I did a quick-and-dirty test shot of implementing fopen() and fread() using esxdos myself using Mike Dailly's Z80 esxdos routines in SNasm syntax. I got it to compile with z88dk and I think fopen() worked but fread() did not. My biggest problem when doing things like this is how to debug the code. I really miss being able to do source code debugging at the C level... Is there a debug version of the Spectrum printf() that prints on a dedicated debug console or to a file when running in an emulator? What is your debugging tips and tricks when debugging combined C and assembly code? I don't plan to pursue this little experiment, I'm just curious.
Regards,
Stefan