參數(shù)資料
型號: μPD70F3003
廠商: NEC Corp.
英文描述: 16/32 Bit Single Chip Microcontrollers(16/32 位單片微控制器)
中文描述: 16/32位單片機微控制器(16/32位單片微控制器)
文件頁數(shù): 87/141頁
文件大?。?/td> 374K
代理商: ΜPD70F3003
75
CHAPTER 5 INSTRUCTION
SHR
Shift Logical Right
Instruction format
(1) SHR reg1, reg2
(2) SHR imm5, reg2
Operation
(1) GR [reg2]
GR [reg2] logically shift right by GR [reg1]
(2) GR [reg2]
GR [reg2] logically shift right by zero-extend (imm5)
Format
(1) Format IX
(2) Format II
Op code
15
0 31
16
(1)
rrrrr111111RRRRR 0000000010000000
15
0
(2)
rrrrr010100iiiii
Flag
CY
1 if the bit shifted out last is 1; otherwise, 0.
However, if the number of shifts is 0,the result is 0.
0
1 if the result of an operation is negative; otherwise, 0.
1 if the result of an operation is 0; otherwise, 0.
OV
S
Z
SAT
Instruction
(1) SHR Shift Logical Right by Register
(2) SHR Shift Logical Right by Immediate (5-bit)
Explanation
(1) Logically shifts the word data of general register reg2 to the right by ‘n’ positions where
‘n’ is a value from 0 to +31, specified by the lower 5 bits of general register reg1 (0 is shifted
to the MSB side). This instruction then writes the result to general register reg2. If the
number of shifts is 0, general register reg2 retains the same value prior to instruction
execution. The data of general register reg1 is not affected.
(2) Logically shifts the word data of general register reg2 to the right by ‘n’ positions, where
‘n’ is a value from 0 to +31, specified by the 5-bit immediate data, zero-extended to word
length (0 is shifted to the MSB side). This instruction then writes the result to general
register reg2. If the number of shifts is 0, general register reg2 retains the same value prior
to instruction execution.
相關(guān)PDF資料
PDF描述
μPD703008 16/32 Bit RISC Microcontrollers(16/32位RISC微控制器)
μPD703008Y 16/32 Bit Single Chip Microcontrollers(16/32 位單片微控制器)
μPD70F3008 16/32 Bit Single Chip Microcontrollers(16/32 位單片微控制器)
μPD70F3008Y 16/32 Bit RISC Microcontrollers(16/32位RISC微控制器)
μPD70F3015GC-17-8ED 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