
TC1796
System Units (Vol. 1 of 2)
Peripheral Control Processor (PCP)
User’s Manual
11-42
V2.0, 2007-07
PCP, V2.0
11.7.3
Arithmetic and Logical Instructions
Arithmetic instructions that are fully register-based execute conditionally depending on
the specified Condition Code A (see
). All other arithmetic instructions such
as PRAM (.PI), indirect (.I), and FPI (.F and .IF) execute unconditionally.
Note: If a conditional instruction’s condition code is false, the operation will be treated as
a “No Operation”. Register values will not be changed and the flags will not be
updated.
Logical instructions that are fully register-based execute conditionally as determined by
the specified Condition Code A. All other logical instructions, such as PRAM (.PI),
indirect (.I), and FPI (.F and .IF) execute unconditionally.
Table 11-5
Arithmetic Instructions
Add
ADD
Add register to register (conditionally)
ADD.I
Add immediate value to register
ADD.F
Add content of FPI Bus address location to register
(byte, half-word or word)
ADD.PI
Add content of PRAM address location to register
Subtract
SUB
Subtract register from register (conditionally)
SUB.I
Subtract immediate value from register
SUB.F
Subtract content of FPI Bus address location from register
(byte, half-word or word)
SUB.PI
Subtract content of PRAM address location from register
Compare
COMP
Compare register to register (conditionally)
COMP.I
Compare immediate value to register
COMP.F
Compare content of FPI Bus address location to register
(byte, half-word or word)
COMP.PI Compare content of PRAM address location to register
Negate
NEG
Negate register (2’s complement, conditionally)