And src, And src -6, Maxq family user’s guide – Maxim Integrated MAXQ Family User Manual
Page 183

18-6
MAXQ Family User’s Guide
MAXQ20
Example(s):
; Acc = 2345h for each example
ADDC A[3]
; A[3] = DCBAh, C=1
;
→ Acc = 0000h, C=1, Z=1, S=0, OV=0
ADDC @DP[0]-- ; @DP[0] = 00EEh, C=1
;
→ Acc = 2434h, C=0, Z=0, S=0, OV=0
Special Notes:
The active accumulator (Acc) is not allowed as the src for these operations.
AND src
Logical AND
Description:
Performs a logical-AND between the active accumulator (Acc) and the specified src data. For the complete list of
src specifiers, reference the MOVE instruction. The MAXQ20 may use the PFX[n] register to supply the high byte of
data for 8-bit sources.
Status Flags:
S, Z
Operation:
Acc
← Acc AND src
Encoding:
15
0
MAXQ10
Example(s):
; Acc = 45h for each example
AND A[3]
; A[3]=0Fh
;
→ Acc = 05h, S=0, Z=0
AND #33h
;
→ Acc = 01h, S=0, Z=0
MAXQ20
Example(s):
; Acc = 2345h for each example
AND A[3]
; A[3]=0F0Fh
;
→ Acc = 0305h, S=0, Z=0
AND #33h
;
→ Acc = 0001h
AND #2233h
; generates object code below
; MOVE PFX[0], #22h (smart-prefixing)
; AND #33h
;
→ Acc = 2201h
MOVE PFX[0], #0Fh
AND M0[8]
; M0[8]=0Fh (assume M0[8] is an 8-bit register)
;
→ Acc = 0305h
Special Notes:
The active accumulator (Acc) is not allowed as the src for this operation.
f001
1010
ssss
ssss
Maxim Integrated