Jump to content
IGNORED

cc65 & 130 XE


Recommended Posts

Afternoon All,

 

I wrote a test program in C (using cc65) to mess around with the extended memory features on the 130. As soon as I set a bank the whole machine locks up (I'm using emulation under Atari800MacX).

 

I suspect it has something to do with the memory map being passed to ld65. Does anyone have a good cfg file? I've tried creating one but I quickly get it all effed up.

 

Assuming this is a cfg file issue -- would people be able to run the binary on non-130 machines? I would assume that there would be an empty 16k block from 0x4000 - 0x7fff on 65 XEs and XLs. This empty block could manually be accessed via pointers/asm for data, etc.

 

Thank you.

 

D.

Link to comment
Share on other sites

I believe that to get some help here, you would need to attach your source code and the .cfg, so others can take a look or try a different emulator.

One thing worth checking is the value you set for PORTB. You might be accidentally disabling OS ROM, for example.

Link to comment
Share on other sites

There is a 130XE extended memory driver included in cc65. Did you explore that? Look in include/em.h. Just looked, but there doesn't seem to be much more documentation about it.

 

If you want to control extended memory directly, make sure that you don't allocate memory in the range $4000..$7FFF in your linker cfg file. There are some examples in http://cc65.github.io/doc/atari.html#ss11.4 .

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