Corrected branch cycles timing issue

This fixes the sound timing for the system beep and lemonade stand
This commit is contained in:
Will Angenent 2018-05-14 18:51:11 +01:00
parent 8284073beb
commit 1324460d9d
1 changed files with 1 additions and 1 deletions

View File

@ -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 {