[cc65] Using ptr3 gives range error

From: Stefan Wessels <swessels1email.com>
Date: 2010-12-29 07:52:28
Hi,

I am writing some inline assembler and when I compile, I get an "Error: Range error" message on a line that says asm("sta (ptr3),y");

Looking in the generated .s file, I see this:
	.importzp	sp, sreg, regsave, regbank, tmp1, ptr1, ptr2
No ptr3 listed.  If I now manually add ptr3 to the line and then compile using the generated .s file instead of the .c file, then the compilation goes fine.  I couldn't find anything in the manual about getting ptr3, ptr4, etc. imported.  I tried -u ptr3 (or --force-import ptr3) to no avail.  

Is this a bug, am I not able to use these in my code or am I missing a step somewhere?  Using the 20101223 snapshot.

Thank you
Stefan

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Dec 29 07:52:38 2010

This archive was generated by hypermail 2.1.8 : 2010-12-29 07:52:41 CET