![Infineon Technologies TC1784 Скачать руководство пользователя страница 770](http://html.mh-extra.com/html/infineon-technologies/tc1784/tc1784_user-manual_2055446770.webp)
TC1784
Peripheral Control Processor (PCP)
User´s Manual
10-105
V1.1, 2011-05
PCP, V2.09
10.18.10 COMP, 32-bit Compare
This section describes the COMP instructions of the PCP.
COMP
Syntax
COMP Rb, Ra, cc_A
Description
If the condition CONDCA is true, then subtract the contents
of register Ra from the contents of register Rb; set the flags
in register R7 according to the result of the subtraction;
discard the subtraction result. If CONDCA is false, no
operation is performed.
Operation
if (CONDCA = True) then R7_FLAGS = Flags(R[b] - R[a])
Flags
N, Z, V, C
COMP.I
Syntax
COMP.I Ra, #imm6
Description
Subtract the immediate value imm6 from the contents of
register Ra; set the flags in register R7 according to the result
of the subtraction; discard the subtraction result.
Operation
R7_FLAGS = Flags(R[a] - zero_ext(imm6))
Flags
N, Z, V, C
COMP.F
Syntax
COMP.F Rb, [Ra], Size
Description
Subtract the contents of the address location specified by the
contents of register Ra from the contents of register Rb; set
the flags in register R7 according to the result of the
subtraction; discard the subtraction result.
Operation
R7_FLAGS = Flags(R[b] - zero_ext(FPI[R[a]]))
Flags
N, Z, V, C
COMP.PI
Syntax
COMP.PI Ra, [#offset6]
Description
Subtract 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, from the
contents of register Ra; set the flags in register R7 according
to the result of the subtraction; discard the subtraction result.
Operation
R7_FLAGS = Flags(R[a] - PRAM[(DPTR<<6) +
zero_ext(#offset6)])
Flags
N, Z, V, C
Содержание TC1784
Страница 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Страница 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Страница 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...