z88dk forums

z80 Development Kit

You are not logged in.

#1 2017-01-17 20:50:09

stefano
Administrator
Registered: 2007-07-16
Posts: 1580

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

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:

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  wink



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

Offline

 

#2 2017-01-18 22:14:03

alvin
Administrator
Registered: 2007-07-16
Posts: 1932

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

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  wink

It is smile  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

Offline

 

#3 2017-01-22 20:32:11

stefano
Administrator
Registered: 2007-07-16
Posts: 1580

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

>It is smile  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

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson