// TXS - Transfer X to Stack Pointer
Transfer X to Stack Pointer
// TXS - Transfer X to Stack Pointer
func (cpu *CPU) op_txs(info *stepInfo) {
	var src uint16
	if cpu.X == 1 {
		src = uint16(cpu.RXl)
	} else {
		src = cpu.RX
	}
	if cpu.E == 1 {
		cpu.SP = 0x0100 | (src & 0x00ff)
	} else {
		cpu.SP = src
	}
}
func ( cpu * CPU ) op_txs ( info * stepInfo ) { var src uint16 if cpu . X == 1 { src = uint16 ( cpu . RXl ) } else { src = cpu . RX } if cpu . E == 1 { cpu . SP = 0x0100 | ( src & 0x00ff ) } else { cpu . SP = src } }
Transfer X to Stack Pointer
Transfer X to Stack Pointer