New driver available now!
The file support includes the redirection capabilities in the command line (>, >>, <), multiple files and dynamic buffer allocation.
malloc() is required, -DAMALLOC is supported but it relies on the system variables and hasn't been tested outsude the TRSDOS/NEWDOS environments.
The driver is kept as small and simple as possible, which probably reduces the performances but in case of simple sequential transfers.
The filespec syntax is the original TRSDOS one: FILENAME/EXT.PASSWORD:n ... where n=drive number. Everything is optional but the filename. In many cases the programs will run without changes, e.g. ADVA.SAV is accepted, and will create a file named ADVA, protected with 'SAV' as password.
LDOS and directory browsing function are not supportec but could be added in the future.
TRSDOS/NEWDOS fcntl support on the TRS-80
Checking different OS versions, I found it working correctly on most of the existing OS versions, including LDOS DOSPLUS, .
The only problems I've seen so far are with TRSDOS 1.3, which seems to be unstable also with pure console applications without disk libraries linked in.
This means that the LDOS specific funtions described in the docs do not exclude the traditional ones, which is good news
The only problems I've seen so far are with TRSDOS 1.3, which seems to be unstable also with pure console applications without disk libraries linked in.
This means that the LDOS specific funtions described in the docs do not exclude the traditional ones, which is good news
I'm looking at the ldos/miosys c resource pages:
http://www.tim-mann.org/misosys.html
I'm thinking to extract the fputc implementation and have a console control code coherent with the dos environment.
I was also able to build the C example "dct.ccc", it works only on ldos but it is a good example on how to port from miosys c and to compare the resulting binaries.
http://www.tim-mann.org/misosys.html
I'm thinking to extract the fputc implementation and have a console control code coherent with the dos environment.
I was also able to build the C example "dct.ccc", it works only on ldos but it is a good example on how to port from miosys c and to compare the resulting binaries.
https://github.com/z88dk/z88dk/issues/1208
.. porting ancient code
.. porting ancient code
interesting discovery: the trs80 native MioSys C was already able to support redirection :
https://ia801709.us.archive.org/BookRea ... 7&rotate=0
https://ia801709.us.archive.org/BookRea ... 7&rotate=0