// JSR - Jump to Subroutine
Jump to Subroutine
// JSR - Jump to Subroutine
func (cpu *CPU) op_jsr(info *stepInfo) {
	cpu.push16(cpu.PC + 2)
	switch info.mode {
	case m_Absolute:
		cpu.PC = info.addr
        default:
                cpu.PC = cpu.cmdRead16(info)
        }
	cpu.stepPC = 0
}
func ( cpu * CPU ) op_jsr ( info * stepInfo ) { cpu . push16 ( cpu . PC + 2 ) switch info . mode { case m_Absolute : cpu . PC = info . addr default : cpu . PC = cpu . cmdRead16 ( info ) } cpu . stepPC = 0 }
Jump to Subroutine
Jump to Subroutine