Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
XOR Instruction
 ◄Summary► ◄Key► ◄Example►                    ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
 001100dw    mod,reg,r/m      disp (0, 1, or 2)
─────────────────┬─────────────────────────┬────────────────────────────────
 XOR  reg,reg    │ xor    cx,bx            │ 88/86 3
                 │ xor    ah,al            │   286 2
                 │                         │   386 2
                 │                         │   486 1
─────────────────┼─────────────────────────┼────────────────────────────────
 XOR  mem,reg    │ xor    [bp+10],cx       │ 88/86 16+EA (W88=24+EA)
                 │ xor    masked,bx        │   286 7
                 │                         │   386 6
                 │                         │   486 3
─────────────────┼─────────────────────────┼────────────────────────────────
 XOR  reg,mem    │ xor    cx,flags         │ 88/86 9+EA (W88=13+EA)
                 │ xor    bl,bitarray[di]  │   286 7
                 │                         │   386 7
                 │                         │   486 2
─────────────────┴─────────────────────────┴────────────────────────────────
 
 100000sw    mod,110,r/m      disp (0, 1, or 2)     data (1 or 2)
─────────────────┬─────────────────────────┬────────────────────────────────
 XOR  reg,immed  │ xor    bx,10h           │ 88/86 4
                 │ xor    bl,1             │   286 3
                 │                         │   386 2
                 │                         │   486 1
─────────────────┼─────────────────────────┼────────────────────────────────
 XOR  mem,immed  │ xor    Boolean,1        │ 88/86 17+EA (W88=25+EA)
                 │ xor    switches[bx],101b│   286 7
                 │                         │   386 7
                 │                         │   486 3
─────────────────┴─────────────────────────┴────────────────────────────────
 
 0011010w    data (1 or 2)
─────────────────┬─────────────────────────┬────────────────────────────────
 XOR  accum,immed│ xor    ax,01010101b     │ 88/86 4
                 │                         │   286 3
                 │                         │   386 2
                 │                         │   486 1
─────────────────┴─────────────────────────┴────────────────────────────────
                                    -♦-