On Wed, Dec 29, 2010 at 8:52 AM, Stefan Wessels <swessels@email.com> wrote: > 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. #pragma zpsym might do the trick: http://www.cc65.org/doc/cc65.html#toc7.14 -thefox ---------------------------------------------------------------------- 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 10:20:16 2010
This archive was generated by hypermail 2.1.8 : 2010-12-29 10:20:19 CET