Maxim Integrated MAX31782 User Manual

Page 213

Advertising
background image



MaximIntegrated  20-30

MAX31782 User’s Guide

Revision 0; 8/11

XORsrc

LogicalXOR

Description:

Performs a logical-XOR between the active accumulator (Acc or A[AP]) and the specified src data .
For the complete list of src specifiers, reference the MOVE instruction . Because the source is lim-
ited to 8 bits, the PFX[n] register is used to supply the high-byte of data for 16 bit sources .

StatusFlags:

S, Z

Operation:

Acc

← Acc XOR src

Encoding:

15

0

f011

1010

ssss

ssss

Example(s):

; Acc = 2345h

XOR A[2]

; A[2]=0F0Fh; Acc

← 2C4Ah

SpecialNotes:

The active accumulator (Acc) is not allowed as the src for this operation .

XORAcc.<b>

LogicalXORCarryFlagwithAccumulatorBit

Description:

Performs a logical-XOR between the Carry (C) status flag and a specified bit of the active accumu-
lator (Acc .<b>) and returns the result to the Carry .

StatusFlags:

C

Operation:

C

← C XOR Acc .<b>

Encoding:

15

0

1011

1010

bbbb

1010

Example(s):

; Acc = 2345h, C=1 at start

XOR Acc .1

; Acc .1=0

→ C=1

XOR Acc .2

; Acc .2=1

→ C=0

Advertising