[cc65] diskcmd.s error

From: <silverdr1wfmh.org.pl>
Date: 2009-07-02 23:18:52
Hello,

I eventually tried to mix and match my old assembler and some C code  
and I receive the following error

ld65: Error: Range error in module `diskcmd.s', line 49

upon linking the c64.lib

The C code is just a test code of:

#include <stdio.h>

int readprefs(void)
{
	FILE *prefsfile;
	unsigned char C;
	
	prefsfile = fopen("test.prefs", "r");
	if(prefsfile)
	{
		while(!feof(prefsfile))
		{
			C = fgetc(prefsfile);
			if(C == 0x0a)
				C = 0x0d;
			fputc(C, stdout);
		}
		fclose(prefsfile);
	}
	else
		fprintf(stdout, "?FILE NOT FOUND  ERROR\n");
}

What might I be doing wrong here?
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jul 2 23:19:00 2009

This archive was generated by hypermail 2.1.8 : 2009-07-02 23:19:03 CEST