Hi, I'm reading a lot of web pages but I don't understand if there is an easy way to know if a program with a certain name is present on DTV filesystem.
For 15x1 drives you may use these basic rows that could be "translated" in ASM: 10 OPEN15,8,15,"R0:FILENAME=FILENAME" 20 INPUT#15,E,E$ 30 CLOSE15 40 PRINTE$ E$ returns (FILE NOT FOUND) or (FILE EXIST) but if I change this row for drive #1: 10 OPEN15,1,15,"R0:FILENAME=FILENAME" I get a garbage screen on row 40, at least in VICE (x64dtv 2.3.0)
Do I need to read the directory structure from $010000 like intro programs ? there isn't an easy way ? if not there is a sample code to check ?
Thanks for your suggestion, I've suspected that.... Now I move my program in memory than directly load the file from the FileSystem by using a routine in datassette ram area and check Carry: 0 = No errors, 1 = Error;