Hi! I am working on a special program for the C64 using cc65 and theunsigned char ftype)
WinVice 3.0 x64 emulator, and, sometimes, when I try to read some
files, I get the error message above from the drive. When the program
reads the file, the emulated drive head moves to track 18, then 17,
and then, the error is given. What could be causing the error? The erroneous code is as follows:
---------------------------
extern char* filetypes[];
static char qfilename[]="0:%s,%c,%c";
static char fi[32];
static unsigned char __fastcall__ openfile (char* s, unsigned char mode,
{mode==CBM_READ?'r':'w');
.sprintf (fi, qfilename, s, (char)filetypes[ftype][0],
.gotoxy (0, 0); cputs (fi); putchar ('-'); cgetc();
.return cbm_open (filenum, 8, 4, fi);
}
------------------------
That looks like C source code to me, not an error message.
Anyway, I seem to recall that some copy protection mechanisms were using a modified track 18 (different number of sectors than it's supposed to
have). May that causes it.
files, I get the error message above from the drive. When the program
reads the file, the emulated drive head moves to track 18, then 17,
and then, the error is given. What could be causing the error? The
erroneous code is as follows:
That looks like C source code to me, not an error message.
On 2017 Jan 22 17:17:20, you wrote to Harry Potter:
files, I get the error message above from the drive. When the program
reads the file, the emulated drive head moves to track 18, then 17,
and then, the error is given. What could be causing the error? The
erroneous code is as follows:
[trim]
That looks like C source code to me, not an error message.
well, it does say "erroneous code" and not "message" ;)
programfiles, I get the error message above from the drive. When the
reads the file, the emulated drive head moves to track 18, then 17,
and then, the error is given. What could be causing the error? The
erroneous code is as follows:
[trim]
That looks like C source code to me, not an error message.
well, it does say "erroneous code" and not "message" ;)
You're right. I think I only read until "the error message", which I didn't see (is in the subject, which I ignored), and my eyes then jumped down to "it", which was the C code instead. Sorry.
Somebody e-mailed me to not use special characters in filenames in myprograms. It didn't work. :( What else could be causing the error message?
BTW, when I access the file, WinVice x64's window indicates that the driveswitches to Track 18 then 17 before the error message.
When I autoboot the problem disk image, one test file worked fine, and theother was untested. What could cause the problem?
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495940:07:54 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 286,974 |