// addBranchCycles adds a cycle for taking a branch and adds another cycle
// if the branch jumps to a new page
// note 5 and 6 in [3]
addBranchCycles adds a cycle for taking a branch and adds another cycle
if the branch jumps to a new page
note 5 and 6 in [3]
// addBranchCycles adds a cycle for taking a branch and adds another cycle // if the branch jumps to a new page // note 5 and 6 in [ 3 ]
func (cpu *CPU) addBranchCycles(info *stepInfo) {
	cpu.Cycles++
	if pagesDiffer(cpu.PC+2, info.addr) {  
		cpu.Cycles++
	}
}
func ( cpu * CPU ) addBranchCycles ( info * stepInfo ) { cpu . Cycles ++ if pagesDiffer ( cpu . PC + 2 , info . addr ) { cpu . Cycles ++ } }
addBranchCycles adds a cycle for taking a branch and adds another cycle
if the branch jumps to a new page
note 5 and 6 in [3]
addBranchCycles adds a cycle for taking a branch and adds another cycle if the branch jumps to a new page note 5 and 6 in [ 3 ]
// at this moment PC points to jump and addr contains new addr