upd17107 Renesas Electronics Corporation., upd17107 Datasheet - Page 29

no-image

upd17107

Manufacturer Part Number
upd17107
Description
4 Bit Single-chip Microcontroller
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD17107
Manufacturer:
NEC
Quantity:
20 000
Part Number:
upd17107CX-605
Manufacturer:
NEC
Quantity:
20 000
Part Number:
upd17107GS-788
Manufacturer:
NEC
Quantity:
556
Part Number:
upd17107L
Manufacturer:
NEC
Quantity:
20 000
5.5.2 FALSE (0) Bit Evaluation
in the four bits of data memory m are FALSE (0). When all bits specified by n are FALSE (0), this instruction causes
the next instruction to be skipped.
5.6 COMPARISON EVALUATIONS
equal to," "greater than or equal to," or "less than" another.
values are not equal. The SKGE instruction is used to determine if one value is greater than or equal to another and
the SKLT instruction is used to determine if one value is less than another.
immediate data. In order to compare values in the general register and data memory, a subtraction instruction is
performed according to the values in the CMP and Z flags in the program status word (PSWORD). For more
information concerning comparison of the general register and data memory, see Section 5.3.
evaluations do not affect the CY and Z flags at all.
evaluations.
The FALSE (0) bit evaluation instruction (SKF m, #n) is used to determine whether or not the bits specified by n
Example MOV M1, #1001B
As shown in Table 5-7, there are comparison evaluation instructions for determining if one value is "equal to," "not
The SKE instruction is used to determine if two values are equal. The SKNE instruction is used to determine two
The SKE, SKNE, SKGE, and SKLT instructions perform comparisons between a value in data memory and
Comparison evaluations are not affected by the BCD or CMP flags in the program status word (PSWORD). The
Sections 5.6.1 to 5.6.4 explain the "equal," "not equal," "greater than or equal," and "less than" comparison
SKF
BR
BR
SKF
BR
BR
In this example, bits b
bits are FALSE (0), the program branches to B. In step number
M1 are evaluated. Since b
M1, #0110B ;
A
B
M1, #1110B ;
C
D
·
·
·
Table 5-7 Comparison Evaluation Instructions
2
2
1
and b
Comparison
evaluation
3
of data memory M1 is TRUE (1), the program branches to C.
1
of data memory M1 are evaluated in step number
Equal
SKE m, #n4
Not equal
SKNE m, #n4
Greater than or equal
SKGE m, #n4
Less than
SKLT m, #n4
2
, bits b
3
, b
2
, and b
PD17107(A1)
1
1
. Because both
of data memory
29

Related parts for upd17107