• Malfeasant@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    7 days ago

    an x86 assembly programmer

    Ftfy. not all CPUs have an xor register with itself instruction.

    • Q*Bert Reynolds@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 days ago

      There are a lot more architectures than just x86 that are capable of XORing a register with itself (ie. ARM and RISC-V), and if you took OP to mean the accumulation register specifically, pretty much all CPUs going back as far as I can think have had that functionality.