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

ROM space isn't read-only #68

Open
stevesims opened this issue Nov 15, 2024 · 0 comments
Open

ROM space isn't read-only #68

stevesims opened this issue Nov 15, 2024 · 0 comments

Comments

@stevesims
Copy link
Contributor

Interesting gotcha...

In some of the tests that I've written I had used static strings to test out some functions that needed to have write access to those strings (this was to temporarily terminate a filepath, excluding it's leafname). in the emulator these tests worked fine, but on real hardware they don't. it makes sense that the tests failed on real hardware, as the attempt to temporarily terminate the filepath should have failed. My tests were easily fixed by copying those strings into the heap before use.

From my observations it therefore seems that the emulator is allowing memory writes to the ROM memory space

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

1 participant