// XBA - eXchange B and A accumulator
eXchange B and A accumulator
// XBA - eXchange B and A accumulator
func (cpu *CPU) op_xba(info *stepInfo) {
	if cpu.M == 1 {
		cpu.RAh, cpu.RAl = cpu.RAl, cpu.RAh
		cpu.setZN8(cpu.RAl)
	} else {
		newl := cpu.RA >> 8
		newh := cpu.RA << 8
		cpu.RA = newh | newl
		cpu.setZN8(byte(newl))
	}
}
func ( cpu * CPU ) op_xba ( info * stepInfo ) { if cpu . M == 1 { cpu . RAh , cpu . RAl = cpu . RAl , cpu . RAh cpu . setZN8 ( cpu . RAl ) } else { newl := cpu . RA >> 8 newh := cpu . RA << 8 cpu . RA = newh | newl cpu . setZN8 ( byte ( newl ) ) } }
eXchange B and A accumulator
eXchange B and A accumulator