You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure what was the actual intent behind this. Was it so address may be "reused" each iteration? (so hoping that it starts at 0 and keeps the value of the previous iteration cycle, i.e. like if address was defined above the loop and set to 0, this appears to be what compilers output anyways?). Or was it actually meant to always start at 0 for each iteration cycle? (so a simple = 0 would give the intended behavior).
The text was updated successfully, but these errors were encountered:
CasualPokePlayer
changed the title
Uninitialized use of local variable
Uninitialized use of local variable in bsmemory.cpp
Mar 22, 2023
Searching the web for "LH28F800SUT" I found a datasheet that confirmed that 0x99 0xd0 was the sequence to request the "Upload Device Information" operation. However, the datasheet doesn't describe what it does, nor does fullsnes or this SNESdev thread where nocash and Near are talking about BS-X datapacks.
I assume Near figured it out based on actually tinkering with a data pack and figuring out what it was doing.
Well, there are quite a few guesses and unknowns mentioned in the comments, so I think it's safe to conclude that it's not a mature or fully debugged piece of code.
Does any games break if you move the uint8 declaration outside the loop?
bsnes/bsnes/sfc/slot/bsmemory/bsmemory.cpp
Lines 319 to 329 in 5cefce5
Not sure what was the actual intent behind this. Was it so
address
may be "reused" each iteration? (so hoping that it starts at 0 and keeps the value of the previous iteration cycle, i.e. like if address was defined above the loop and set to 0, this appears to be what compilers output anyways?). Or was it actually meant to always start at 0 for each iteration cycle? (so a simple = 0 would give the intended behavior).The text was updated successfully, but these errors were encountered: