Jump to content
IGNORED

Help needed with defining segments in cc65


Recommended Posts

Hi!  I am working on MadLibAtari and need help with overlays.  Upon start-up, it loads two stubs into Low RAM, which is what I call the beginning of RAM as used by the OS.  I was wondering why the program was crashing as soon as a function in an overlay was called.  I then added code to print out the load addresses of the two overlays, and they reported the wrong addresses.  I am willing to share the files in question, but what can cause the error?  How do I define the proper load addresses?

Link to comment
Share on other sites

Just guessing, but problems with low memory usually mean it's been written over by something, usually DOS. How low are you loading, and what DOS are you using?

Extended ram is usually better for overlays, but it can limit the hardware types that can be used. Under the OS is also a decent option, but a lot of programs could conflict.

Edited by danwinslow
Link to comment
Share on other sites

I fixed the problem.  I was using the tape buffer and some DUP.SYS code as targets for overlays.  The problem was, for some reason, that the load functions were getting the wrong address.  I had to supply the actual constants.  I apparently can't rely on using the names of the constants.  Now it works.  :)

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...