Re: [cc65] diskcmd.s error

From: <silverdr1wfmh.org.pl>
Date: 2009-07-03 19:01:27
On 2009-07-02, at 23:59, silverdr@wfmh.org.pl wrote:
>>>
>>> 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: [...]

Hm, when I make it a standalone program, i. e. I replace the name of  
the function with main() then it links correctly. It just doesn't want  
to link with my setup as a subroutine.

Might I be missing something obvious in my linker config?

MEMORY
{
	RAM: start = $07FF, size = $C801, file = %O, define = yes;
}

SEGMENTS
{
	BASICSTUB:	load = RAM, type = ro;
	CODE:		load = RAM, type = ro;
	RODATA:		load = RAM, type = ro;
	DATA:		load = RAM, type = rw;
}

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Jul 3 19:01:36 2009

This archive was generated by hypermail 2.1.8 : 2009-07-03 19:01:38 CEST