參數(shù)資料
型號(hào): μPD70F3008
廠商: NEC Corp.
英文描述: 16/32 Bit Single Chip Microcontrollers(16/32 位單片微控制器)
中文描述: 16/32位單片機(jī)微控制器(16/32位單片微控制器)
文件頁數(shù): 83/141頁
文件大?。?/td> 374K
代理商: ΜPD70F3008
71
CHAPTER 5 INSTRUCTION
SETF
Set Flag Condition
Instruction format
SETF cccc, reg2
Operation
if conditions are satisfied
then GR [reg2]
00000001H
else GR [reg2]
00000000H
Format
Format IX
Op code
15
0 31
16
rrrrr1111110cccc 0000000000000000
Flag
CY
OV
S
Z
SAT
Instruction
SETF Set Flag Condition
Explanation
The general register reg2 is set to 1 if a condition specified by condition code “cccc” is satisfied;
otherwise, 0 are stored to the register. One of the codes shown in Table 5-9 should be specified
as the condition code “cccc”.
Remark
Here are some examples of using this instruction:
(1) Translation of two or more condition clauses: If A of statement if (A) in C language consists
of two or more condition clauses (a
1
, a
2
, a
3
, and so on), it is usually translated to a sequence
of if (a
1
) then, if (a
2
) then. The object code executes “conditional branch” by checking the
result of evaluation equivalent to a
n
. A pipeline processor takes more time to execute
“condition judgment” + “branch” than to execute an ordinary operation, the result of
evaluating each condition clause if (a
n
) is stored to register Ra. By performing a logical
operation to Ra
n
after all the condition clauses have been evaluated, the delay due to the
pipeline can be prevented.
(2) Double-length operation: To execute a double-length operation such as Add with Carry,
the result of the CY flag can be stored to general register reg2. Therefore, a carry from
the lower bits can be expressed as a numeric value.
相關(guān)PDF資料
PDF描述
μPD70F3008Y 16/32 Bit RISC Microcontrollers(16/32位RISC微控制器)
μPD70F3015GC-17-8ED 32 Bit RISC Microcontrollers(32位RISC微控制器)
μPD70F3015YGC-17-8ED 32 Bit RISC Microcontrollers(32位RISC微控制器)
μPD70F3017GC-17-8ED 32 Bit RISC Microcontrollers(32位RISC微控制器)
μPD70F3017S2-17-YJC 32 Bit RISC Microcontrollers(32位RISC微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PD70F3559 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:32-bit Single-Chip Microcontroller
PD70F3560 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:32-bit Single-Chip Microcontroller
PD70F3561 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:32-bit Single-Chip Microcontroller
PD70F3564 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:32-bit Single-Chip Microcontroller
PD70F40 制造商:SANREX 制造商全稱:SanRex Corporation 功能描述:THRISTOR MODULE