damosan Posted March 19, 2017 Share Posted March 19, 2017 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. Quote Link to comment Share on other sites More sharing options...
baktra Posted March 20, 2017 Share Posted March 20, 2017 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. Quote Link to comment Share on other sites More sharing options...
sanny Posted March 20, 2017 Share Posted March 20, 2017 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 . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.