// DEX - Decrement X Register
Decrement X Register
// DEX - Decrement X Register
func (cpu *CPU) op_dex(info *stepInfo) {
	if cpu.X == 1 {
		cpu.RXl--
		cpu.setZN8(cpu.RXl)
	} else {
		cpu.RX--
		cpu.setZN16(cpu.RX)
	}
}
func ( cpu * CPU ) op_dex ( info * stepInfo ) { if cpu . X == 1 { cpu . RXl -- cpu . setZN8 ( cpu . RXl ) } else { cpu . RX -- cpu . setZN16 ( cpu . RX ) } }
Decrement X Register
Decrement X Register