// TYA - Transfer Y to Accumulator
Transfer Y to Accumulator
// TYA - Transfer Y to Accumulator
func (cpu *CPU) op_tya(info *stepInfo) {
	var src uint16
	if cpu.X == 1 {
		src = uint16(cpu.RYl)
	} else {
		src = cpu.RY
	}
	if cpu.M == 1 {
		cpu.RAl = byte(src)
		cpu.setZN8(cpu.RAl)
	} else {
		cpu.RA = uint16(src)
		cpu.setZN16(cpu.RA)
	}
}
func ( cpu * CPU ) op_tya ( info * stepInfo ) { var src uint16 if cpu . X == 1 { src = uint16 ( cpu . RYl ) } else { src = cpu . RY } if cpu . M == 1 { cpu . RAl = byte ( src ) cpu . setZN8 ( cpu . RAl ) } else { cpu . RA = uint16 ( src ) cpu . setZN16 ( cpu . RA ) } }
Transfer Y to Accumulator
Transfer Y to Accumulator