參數(shù)資料
型號(hào): μPD703008
廠商: NEC Corp.
英文描述: 16/32 Bit RISC Microcontrollers(16/32位RISC微控制器)
中文描述: 16/32位RISC微控制器(16/32位的RISC微控制器)
文件頁數(shù): 78/141頁
文件大?。?/td> 374K
代理商: ΜPD703008
CHAPTER 5 INSTRUCTION
66
SAR
Shift Arithmetic Right
Instruction format
(1) SAR reg1, reg2
(2) SAR imm5, reg2
Operation
(1) GR [reg2]
GR [reg2] arithmetically shift right by GR [reg1]
(2) GR [reg2]
GR [reg2] arithmetically shift right by zero-extend
Format
(1) Format IX
(2) Format II
Op code
15
0 31
16
(1)
rrrrr111111RRRRR 0000000010100000
15
0
(2)
rrrrr010101iiiii
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) SAR Shift Arithmetic Right by Register
(2) SAR Shift Arithmetic Right by Immediate (5-bit)
Explanation
(1) Arithmetically 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 (after the
shift, the MSB prior to shift execution is copied and set as the new MSB value), and 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) Arithmetically 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 (after the shift, the MSB prior to shift execution is copied and set as the new MSB
value), and 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描述
μ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微控制器)
μPD70F3015YGC-17-8ED 32 Bit RISC Microcontrollers(32位RISC微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PD7035 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:FOR OPTICAL COMMUNICATION
PD7087 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:InGaAs PIN PHOTO DIODES
PD7088 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:InGaAs PIN PHOTO DIODES
PD708C7 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:InGaAs PIN PHOTO DIODES
PD708C8 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:InGaAs PIN PHOTO DIODES