Re: [cc65] a question about the write function

From: Jac Ato <jaxatwork11gmail.com>
Date: 2007-02-13 05:13:32
Problem fixed: the latest snapshop for the nes library did it. I had
to go all the way to 2005: "[cc65] Need help getting started with cc65
NES" thread specifically.

Please update the nes.zip from the download section. I really think
that naive people (like me) would download this version first...

anyway thanks for all the help!

JA

On 2/12/07, Jac Ato <jaxatwork1@gmail.com> wrote:
> Hi,
>
> I was able to find a fix for it:
>
> The loader seems to create a wrong .nes file, with two bad addresses.
> Maybe its with my configuration (im using the built-in NES
> configuration file). But doing this fix allows me to pipe the printf
> to my serial port successfully.
>
> First, I need to get the __DESTRUCTOR_TABLE__ address from my map.txt
> file. Once ive got this, i change the data at the addresses: $801F and
> $8023 to reflect the right address. I dont have a clue why ld65 is
> putting in the wrong address, but once this is done, then it runs
> perfectly. Is there anything that I am missing or doing wrong? Why is
> it that the wrong addresses are inserted in the STARTUP code?
>
> $801E:A9 0B     LDA #$..;here is the wrong address
> $8020:85 0A     STA $000A = #$9A
> $8022:A9 8E     LDA #$..;and here too!
> $8024:85 0B     STA $000B = #$8C
>
> If someone knows the right way of doing this, I would really, really appreciate.
>
> The bad thing is that we have deployed some applications successfully
> without ever noticing that there was something wrong (UIP actually
> works smoothly without any patch).
>
> Many thanks!
> JA
>
----------------------------------------------------------------------
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 Feb 13 05:13:39 2007

This archive was generated by hypermail 2.1.8 : 2007-02-13 05:13:43 CET