[z88dk-dev] Classic fcntl lib for CP/M

Bridge to the z88dk-developers mailing list
Post Reply
stefano
Well known member
Posts: 1534
Joined: Mon Jul 16, 2007 7:39 pm

[z88dk-dev] Classic fcntl lib for CP/M

Post by stefano »

I'm slowly proceeding cleaning and fixing the classic library.
I now discovered that while adapting fcntl to new targets (and attempting to make it closer to the standards) I slightly broke the CP/M variant. I should be ok now, the result still impresses me:

Code: Select all

Z80 C>SUBMIT AUTOEXEC.Z80
Z80 C>ddir *.COM
-- Directory of volume #2 --
ADV_A.COM      ........17792
DDIR.COM       .........7168
ENIGMA.COM     .........6528
FIB.COM        .........5376
MM.COM         ........10112
OTHELLO.COM    ........13184
RPN.COM        .........6272
SORT.COM       ........13568
SORTER.COM     .........5632
TAIL.COM       .........6400
TIC.COM        .........7296
WC.COM         .........7808
Total bytes: 107136.

Z80 C>ddir >b

Z80 C>ddir >>b

Z80 C>sort <b

(...)
TIC.COM        .........7296
TIC.COM        .........7296
Total bytes: 216448.
Total bytes: 216448.
WC             .........7808
WC             .........7808
WC.COM         .........7808
WC.COM         .........7808
ZCC_OPT.DEF    ..........512
ZCC_OPT.DEF    ..........512
ZCC_PROJ.LST   ..........128
ZCC_PROJ.LST   ..........128
Cool, isn't it ?
I'll now try to fix the OSCA variant, which with the z88dk APIs can run fully compatibly the same programs on its FAT16 native OS ;)



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post by alvin »

Cool, isn't it ?
I'll now try to fix the OSCA variant, which with the z88dk APIs can run fully compatibly the same programs on its FAT16 native OS ;)
It is :) But there will be more exposure if this is raised as an issue on github so that you can explain that z88dk is parsing the command line and redirecting i/o.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
stefano
Well known member
Posts: 1534
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

>It is :) But there will be more exposure if this is raised as an issue on github so that you can explain that z88dk is parsing the command line and redirecting i/o.


Thanks for the hint, I'm slowly learning.. but this was already in the classic lib. I now fixed the bugs introduced with the lib rearrangement (OSCA is still broken).
The cp/m version is still buggy and fails when used in many real environments.. it was always look this but I never found the problem (perhaps a wrong ptr or a memory leak)



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Post Reply