// TSX - Transfer Stack Pointer to X
Transfer Stack Pointer to X
// TSX - Transfer Stack Pointer to X
func (cpu *CPU) op_tsx(info *stepInfo) {
	if cpu.X == 1 {
		cpu.RXl = byte(cpu.SP & 0x00ff)
		cpu.setZN8(cpu.RXl)
	} else {
		cpu.RX  = cpu.SP
		cpu.setZN16(cpu.RX)
	}
}
func ( cpu * CPU ) op_tsx ( info * stepInfo ) { if cpu . X == 1 { cpu . RXl = byte ( cpu . SP & 0x00ff ) cpu . setZN8 ( cpu . RXl ) } else { cpu . RX = cpu . SP cpu . setZN16 ( cpu . RX ) } }
Transfer Stack Pointer to X
Transfer Stack Pointer to X