[cc65] Setting aside Character Set ram

Date view Thread view Subject view

From: Brian Bagnall (bbagnall_at_mts.net)
Date: 2002-10-18 21:51:09


Hi Ullrich,

I'm going to set aside some memory for a character set and have a few
questions about altering the linker config file.

First, do I alter c64.cfg in the doc directory? (seems strange that it's
stored here)

Second, you mentioned the program is stored from $801 to $D000 but the
c64.cfg file says $7FF to C801. Which is right?

Third, do you recommend setting aside memory at the start or end of this
block?

Thanks,

- Brian

----- Original Message -----
From: "Ullrich von Bassewitz" <uz_at_musoftware.de>
To: <cc65_at_musoftware.de>
Sent: Tuesday, October 15, 2002 12:14 AM
Subject: Re: [cc65] Creating Sprites with VIC


>
> On Mon, Oct 14, 2002 at 08:09:50PM -0500, Brian Bagnall wrote:
> > This just pokes them in, but does VIC provide a cleaner way to do this
> > without all the poking?
>
> As Blackjack told you, you can replace at least the loop by using memcpy:
>
>         memcpy ((void*) 832, N, sizeof (N));
>
> The mousedemo program from the samples does also use a sprite on the C64.
Just
> have a look at it.
>
> > I think it's a bit dangerous poking data in manually
> > because you never know if the compiler has allocated that memory space
to
> > something else already.
>
> You may want to have a look at the linker config file that determines the
> memory setup. If you aren't using a config file, the standard one comes
into
> effect, which means that your program starts at $801 and ends at $D000 on
the
> C64. The compiler/linker will not access memory outside this range. If you
> want to change this (for example because you need a hires screen
somewhere),
> you will have to use a custom linker configuration.
>
> Regards
>
>
>         Uz
>
>
> --
> Ullrich von Bassewitz                                  uz_at_musoftware.de
> ----------------------------------------------------------------------
> To unsubscribe from the list send mail to majordomo_at_musoftware.de with
> the string "unsubscribe cc65" in the body(!) of the mail.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-10-18 21:52:03 CEST