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