// CPX - Compare X Register
Compare X Register
// CPX - Compare X Register
func (cpu *CPU) op_cpx(info *stepInfo) {
	if cpu.X == 1 {
		value := cpu.cmdRead(info)
		cpu.compare8(cpu.RXl, value)
	} else {
		value := cpu.cmdRead16(info)
		cpu.compare16(cpu.RX, value)
	}
}
func ( cpu * CPU ) op_cpx ( info * stepInfo ) { if cpu . X == 1 { value := cpu . cmdRead ( info ) cpu . compare8 ( cpu . RXl , value ) } else { value := cpu . cmdRead16 ( info ) cpu . compare16 ( cpu . RX , value ) } }
Compare X Register
Compare X Register