Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storing data in SWCHB #42

Open
sa666666 opened this issue Mar 20, 2017 · 1 comment
Open

Storing data in SWCHB #42

sa666666 opened this issue Mar 20, 2017 · 1 comment

Comments

@sa666666
Copy link

sa666666 commented Mar 20, 2017

SWCHB can actually be used to store a small amount of data, as illustrated in the following:
http://atariage.com/forums/topic/167678-strange-color-problem-with-stella/page-2#entry2075671

This is already emulated in Stella some time ago. In my testing, only MAME emulates this; z26, javatari and Stellerator don't. I think it's actually used in Combat too, so it's not just an idiosyncrasy of the hardware that nobody uses.

You'll know if it works when you see the display cycling through the contents of ZP RAM, starting from $FF and going downward. When not implemented, the ZP RAM address stays at $FF (which makes sense, as the counter used the ROM is stored in SWCHB).

@DirtyHairy
Copy link
Member

DirtyHairy commented Mar 20, 2017

Thank you for bringing this up. Actually, DDRA / DDRB and the O in GPIO are currently unimplemented. I have read about ROMs storing data in SWCHB before, but I forgot where and which ones, and so I have ignored this aspect. The test ROM above should be enough fodder for testing, though 😏

The implementation should include a refactoring that separates RIOT GPIO from the controls (joysticks and switches) --- those are hardwired atm. This is a necessary prerequisite for implementing more esoteric controllers like the Atari keypads. It might even be worthwhile to communicate between the workers on GPIO level rather than on controller level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants