D 2 ; in
address is
ter
operands,
nated by
not the operand address.
BRANCH
BCT
2
(X
2
,B
2
)
, 46 '
A one is subtracted from the first oper
and, and the result is
first-operand location. The first
binary integers, with overflow ignored.
When the result is zero, normal instruc
tion sequencing proceeds with
result is not zero, the instruction
address in the current
by the branch address.
In the RX format, the second-operand
address is used as the branch address.
In the RR format, bits 8-31 of general
register
address; however, when the
zero, the operation is
branching. The branch address
Condition Code: The code remains
unchanged.
1. An example of the use of the BRANCH
Appendix A.
2. The first operand and result can be
considered as either signed or
unsigned binary integers since the
result of
the
3. An initial count of one results in
zero, and no branching takes place;
4.
an initial count of zero results in
-1 and causes branching to be
executed;
results
to be executed; and so on. In a
loop, branching takes place each
until the result
Note that, because of the number
range, an
31
31
Counting
branching when the
RR format contains zero.
BRANCH
BXH Rt,R3,D2(B2) [RS]
'86'
BRANCH
o 8 12 16
An increment
and, and the sum is compared with a
compare value. The result of the
comparison determines whether branching
occurs. Subsequently, the sum
at
second-operand address is used as a
branch address. The R3 field designates
the compare value.
For BRANCH
is high, the instruction address in the
current
address. When the sum is low or equal,
normal instruction sequencing proceeds
with the updated instruction address.
For BRANCH
the sum is low or equal, the instruction
address in the current
by the branch address. When the sum is
high, normal instruction sequencing
proceeds with the updated instruction
address.
When the R3 field is even, it designates
a pair of registers; the contents of the
even and odd registers of the pair are
used as the increment and the compare
value, respectively. When the R3 field
is odd, it designates a single register,
Chapter 7. General Instructions 7-11