Init S to 0xFD on reset.

This commit is contained in:
Christian Speckner 2017-02-21 22:21:53 +01:00
parent 6846aadadf
commit b173da05a0
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ void M6502::reset()
// Set registers to random or default values
const string& cpurandom = mySettings.getString("cpurandom");
SP = BSPF::containsIgnoreCase(cpurandom, "S") ?
mySystem->randGenerator().next() : 0xff;
mySystem->randGenerator().next() : 0xfd;
A = BSPF::containsIgnoreCase(cpurandom, "A") ?
mySystem->randGenerator().next() : 0x00;
X = BSPF::containsIgnoreCase(cpurandom, "X") ?