Corrected branch cycles timing issue
This fixes the sound timing for the system beep and lemonade stand
This commit is contained in:
parent
8284073beb
commit
1324460d9d
|
@ -137,7 +137,7 @@ func branch(instructionName string, doBranch bool) {
|
|||
os.Exit(0)
|
||||
}
|
||||
|
||||
samePage := (State.PC & 0xff00) != (relativeAddress & 0xff00)
|
||||
samePage := (State.PC & 0xff00) == (relativeAddress & 0xff00)
|
||||
if samePage {
|
||||
system.FrameCycles += 1
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue