TIP: Click on subject to list as thread! ANSI
echo: cbm
to: HARRY POTTER
from: ANDREAS KOHLBACH
date: 2017-01-22 17:17:00
subject: Re: 31,syntax error,00,00

On Sat, 21 Jan 2017 15:36:18 -0800 (PST), Harry Potter wrote:
>
> Hi!  I am working on a special program for the C64 using cc65 and the
> 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,
unsigned char ftype)
> {
>  sprintf (fi, qfilename, s, (char)filetypes[ftype][0],
mode==CBM_READ?'r':'w');
>  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.
--
Andreas
You know you are a redneck if
you've ever climbed a water tower with a bucket of paint to defend your
sister's honor.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.