spc-player
spc-player copied to clipboard
How to calculate bootCodeAddress?
trafficstars
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?
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!