pcbway

XORWF

Exclusive OR W with f

Exclusive OR the W register with register ‘f’. If ‘d’ is ‘0’, the result is placed in the W register. If ‘d’ is ‘1’, the result is placed back in register ‘f’.

[the_ad id=”3059″]

Syntax:

[ label ] XORWF f,d

Operation:

(W) .XOR. (f) → (destination)

Operands:

  • f is from 0 to 127
  • d is either 0 or 1

Status Affected: None

Example:

XORWF REG,0

Before instruction:

REG = 0x01
W = 0x04

After instruction:

REG = 0x01
W = 0x05
[the_ad id=”3059″]

Example:

XORWF REG,1

Before instruction:

REG = 0x01
W = 0x04

After instruction:

REG = 0x05
W = 0x04