TC1796
System Units (Vol. 1 of 2)
Peripheral Control Processor (PCP)
User’s Manual
11-82
V2.0, 2007-07
PCP, V2.0
11.11.7
AND, 32-Bit Logical AND
This section describes the AND instructions of the PCP.
AND
Syntax
AND Rb, Ra, cc_A
Description
If the condition CONDCA is true, then perform a bit-wise
logical AND of the contents of register Ra and the contents of
register Rb; place the result in Rb. If CONDCA is false, no
operation is performed.
Operation
if (CONDCA = True) then R[b] = R[b] AND R[a] else NOP
Flags
N, Z
AND.F
Syntax
AND.F Rb, [Ra], Size
Description
Perform a bit-wise logical AND of the contents of the address
location, specified by the contents of register Ra, and the
contents of register Rb; place the result in Rb.
Operation
R[b] = R[b] AND zero_ext(FPI[R[a]])
Flags
N, Z
AND.PI
Syntax
AND.PI Ra, [#offset6]
Description
Perform a bit-wise logical AND of the contents of the PRAM
location specified by the addition of contents of the PRAM
Data Pointer, shifted left by six bits, and the zero-extended
6-bit value offset6, and the contents of register Ra; place the
result in Ra.
Operation
R[a] = R[a] AND PRAM[(DPTR<<6) + zero_ext(#offset6)]
Flags
N, Z