spc-player icon indicating copy to clipboard operation
spc-player copied to clipboard

How to calculate bootCodeAddress?

Open yoonjustin opened this issue 2 years ago • 1 comments
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?

yoonjustin avatar Feb 20 '23 01:02 yoonjustin

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!

Kazhuu avatar Feb 20 '23 07:02 Kazhuu