// TCS - Transfer C accumulator to Stack pointer
Transfer C accumulator to Stack pointer
// TCS - Transfer C accumulator to Stack pointer
func (cpu *CPU) op_tcs(info *stepInfo) {
	var src uint16
	if cpu.M == 1 {
		src = (uint16(cpu.RAh) << 8) | uint16(cpu.RAl)
	} else {
		src = cpu.RA
	}
	if cpu.E == 1 {
		cpu.SP = 0x0100 | (src & 0x00ff)
	} else {
		cpu.SP = src
	}
}
func ( cpu * CPU ) op_tcs ( info * stepInfo ) { var src uint16 if cpu . M == 1 { src = ( uint16 ( cpu . RAh ) << 8 ) | uint16 ( cpu . RAl ) } else { src = cpu . RA } if cpu . E == 1 { cpu . SP = 0x0100 | ( src & 0x00ff ) } else { cpu . SP = src } }
Transfer C accumulator to Stack pointer
Transfer C accumulator to Stack pointer