Re: [cc65] Odd problems creating a new target.

From: L. Adamson <>
Date: 2012-06-24 03:59:57
On Sat, Jun 23, 2012 at 5:48 PM, Ullrich von Bassewitz <>wrote:

> On Sat, Jun 23, 2012 at 05:34:37PM -0400, L. Adamson wrote:
> >     I'm fairly certain that the problem is somewhere in my
> >    code, or something I'm not doing that I should be, rather than some
> kind
> >    of incompatibility.
> My suggestion is to lookup the symbol "sp" in the map file. It should
> reside
> somewhere in the zero page. The word value at this zero page address is the
> stack pointer for the C stack. Set a breakpoint at _main in your emulator
> and
> check that the address space, sp points to is correct and writable.

Yay!  I got it working!

I'm almost afraid to share what the problem was.  It was really, really
silly. >_>  Suffice to say, putting the C stack in a 64k high memory map
doesn't work too well on an emulator that defaults to 8k.  In my defense,
I'd have expected the emulator to at least complain if missing memory were
accessed, even if the program continued to run...  <_<

Thank you all again for your assistance.  I hope nobody went haring off on
too-circuitous a wild goose chase on my behalf!

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Jun 24 04:00:18 2012

This archive was generated by hypermail 2.1.8 : 2012-06-24 04:00:23 CEST