I am wondering if someone can help me solve this little pickle of z88dk / Windows using +3e File system, I do fully intend to try this on my Debian set up when I get some time, as its a more robust development platform, and I am pretty sure I had file handling working.
So a little info then -
Code: Select all
ZCC Version [ V2.59 (c) 16.4.2010 - D.J.MOrris ]
Win Version [ Win 7 64bit Pro ]
TXT Editor [ ConTEXT ]
Code: Select all
#include <stdio.h>
#include <stdlib.h>
int main( void )
{
FILE *fp;
fp = fopen("e:test.txt","w");
if( fp == NULL )
{
printf("Error Cannot open FILE to Write\n");
}
else
{
printf("Writing text to file\n");
fprintf( fp,"simple text line of data\n");
fprintf( fp,"second line of text data\n");
fclose( fp );
printf("file created\n");
}
return 0;
}
Code: Select all
if(( fp = fopen("e:tst.txt","w") ))
So here is the command line for compilation that I use
Code: Select all
zcc +zxansi -lndos -DPLUS3 -lm -create-app test.c >build.txt
Code: Select all
1 file(s) copied.
1 file(s) copied.
Unrecognised argument: \\
copy C:\PROGRA~2\z88dk\lib\spec_crt0.opt C:\Users\Zetr0\AppData\Local\Temp\s1c4_1.opt
copy C:\Users\Zetr0\AppData\Local\Temp\s1c4_1.opt C:\Users\Zetr0\AppData\Local\Temp\s1c4_1.asm
zcpp -I. -DZ80 -DSMALL_C -DSPECTRUM -D__SPECTRUM__ -DSCCZ80 -DPLUS3 -IC:\PROGRA~2\z88dk\include test.c C:\Users\Zetr0\AppData\Local\Temp\s1c4_.i
sccz80 -\\ C:\Users\Zetr0\AppData\Local\Temp\s1c4_.i
copt C:\PROGRA~2\z88dk\lib\z80rules.2 < C:\Users\Zetr0\AppData\Local\Temp\s1c4_.asm > C:\Users\Zetr0\AppData\Local\Temp\s1c4_.op1
copt C:\PROGRA~2\z88dk\lib\z80rules.1 < C:\Users\Zetr0\AppData\Local\Temp\s1c4_.op1 > C:\Users\Zetr0\AppData\Local\Temp\s1c4_.opt
z80asm -eopt -ns -Mo -IC:\PROGRA~2\z88dk\lib C:\Users\Zetr0\AppData\Local\Temp\s1c4_.opt
z80asm -a -m -Mo -LC:\PROGRA~2\z88dk\lib\clibs -oa.bin -igen_math -indos -izxan_clib -iz80_crt0 C:\Users\Zetr0\AppData\Local\Temp\s1c4_1.opt C:\Users\Zetr0\AppData\Local\Temp\s1c4_.o
appmake +zx -b a.bin -c C:\Users\Zetr0\AppData\Local\Temp\s1c4_1
Code: Select all
Emulator : FUSE version 1.0.0
Environmebt : Spectrum +3
ROM : +3e ( 8bit IDE )
Peripherals : Simple 8 bit IDE
: K-Mouse
MEDIA : 128MB (256mb) Compact Flash Hard Disk File (as Unit 0)
I can write to and read from this space in BASIC, by saving programs and variables within the environemnt, using commands like
Code: Select all
SAVE "e:slave.dat" DATA a()
SAVE "e:splice.bas"
SAVE "e:test.dat" CODE 32768,256
Code: Select all
10: CLEAR 32767
20: LOAD "t:" : LOAD "" code
30: LOAD "e:"
40: RANDOMIZE USR 32768
9998: STOP
9999: LOAD "e:" : CLS : PRINT "Saving Program" : SAVE "e:test.bas" : CLS : PRINT "Program Saved"
So the program prints out on the screen "Writing text to file" followed by a new line with the text "File Created". and exits safely back to BASIC - sadly no output on the disk at all... not a sausage and no error or reason given.
I appreciate any help, advice or even cryptic clues at this point

Thanks for reading.