Jump to content
IGNORED

cc65 linker error compiling memory lib.


Recommended Posts

 

 

13 hours ago, Harry Potter said:

I have another problem: how do I define the __RESERVED_MEMORY__ macro on the ld65 command-line?  I mean, how do I know what to assign to it?

I know you solved your problem, but this is an examlpe of one I use

 

cl65 -t atari -Oi -T -Wl "-D__RESERVED_MEMORY__=0x3000" --static-locals -l temp.lst -o temp.xex temp.c 

Link to comment
Share on other sites

52 minutes ago, Harry Potter said:

How do I know what to assign to __RESERVED_MEMORY__?

It seems to depend on what you're doing as I believe cc65 uses the upper regions of memory, so if

you want to change graphics modes, the call to _graphics can potentially overwrite some code/data

and obviously crash your program.

 

For example, I have a program that uses a standard _graphics(0) call, but I also need space for a _graphics(3)

so I reserved 1K for the extra screen mode as after creating, I switch back and forth without calling the graphics modes

again

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...