[cc65] Unresolved external `tosasra0'

From: Mats Andrén <matan3251student.liu.se>
Date: 2004-09-28 02:22:47
Sorry to spam this list with questions..

When I try to do either "intvar >> 8" and "intvar / 256" I get the
following error from the linker:

 Unresolved external `tosasra0' referenced in:
   tmpsrc/editor_initdata.c.s(62)
 ld65.exe: Error: 1 unresolved external(s) found - cannot create output file
------------------------------------
Linker version:
ld65 V2.10.1 - (C) Copyright 1998-2002 Ullrich von Bassewitz
------------------------------------
..and the libsrc is built from cc65-snapshot-2.10.5.20040918.

The problem occurs in this specific code:

void editor_initdata (void)
{
        char i;
        int address;

        //Init sidtabpointers
        address = (int)player_sidtab;
        for (i=0; i<SIDTABSTEPS; i++)
        {
                player_sidtabpointers_hi[i] = (char)(address / 256);
                player_sidtabpointers_lo[i] = (char)(address & 0x00ff);
                address += SIDTABSTEPSIZE;
        }
        
    return;
}

I'm not really used to code in c, but as far as i understand, this
code should at least compile correctly without unresolved references
to non-existant routines? Division by 2 seems to work though..

I thought maybe I needed to compile the latest snapshot version of
cc65.exe too, but searching for "tosasra0" among the sourcecode
revealed only one hit, in "coptsize.c". This routine really seems to
be non existant? ...or am I wrong?

/Mats

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Sep 28 02:21:43 2004

This archive was generated by hypermail 2.1.8 : 2004-09-28 02:21:52 CEST