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

How to calculate bootCodeAddress? #2

Open
yoonjustin opened this issue Feb 20, 2023 · 1 comment
Open

How to calculate bootCodeAddress? #2

yoonjustin opened this issue Feb 20, 2023 · 1 comment

Comments

@yoonjustin
Copy link

The spcPlayer start method takes an argument for bootCodeAddress, but the main.cpp file just calls spcPlayer.start() without an argument. How is this supposed to work? Isnt the bootCodeAddress supposed to be calculated?

@Kazhuu
Copy link
Owner

Kazhuu commented Feb 20, 2023

In the file backend/include/SpcPlayer.hpp the function takes a default argument like this

bool start(uint16_t bootCodeAddress=0xFF85);

So the bootCodeAddress is 0xFF85 by default.

Yeah this is confusing. Might be better to just make this a constant instead. I think the point for me was to support dynamically calculating the location of the bootcode, but then never used it. Hope this helps!

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