Maxim Integrated MAX31782 User Manual
Page 209

MaximIntegrated 20-26
MAX31782 User’s Guide
Revision 0; 8/11
SR/SRA/SRA2/SRA4
ShiftAccumulatorRight/ShiftAccumulatorRightArithmetically
One,Two,orFourTimes
Description:
Shifts the active accumulator right once for the SR, SRA instructions and 2 or 4 times, respectively,
for the SRA2, SRA4 instructions . The SR instruction shifts a 0 into the accumulator msb while the
SRA, SRA2, and SRA4 instruc- tions effectively shift a copy of the current msb into the accumulator,
thereby preserving any sign orientation . For each shift iteration, the accumulator lsb is shifted into
the Carry (C) flag .
StatusFlags:
C, S (changes for SR only), Z
SROperation:
15
Active Accumulator (Acc)
0 Carry Flag
0
Acc .15
← 0;
Acc .[14:0]
← Acc .[15:1];
C
← Acc .0
Encoding:
15
0
1000
1010
1010
1010
Example(s):
; Acc = A345h, C=1, S=1, Z=0
SR
; Acc = 51A2h, C=1, S=0, Z=0
SR
; Acc = 28D1h, C=0, S=0, Z=0
SRAOperation:
15
Active Accumulator (Acc)
0 Carry Flag
Acc .[14:0]
← Acc .[15:1]
Acc .15
← Acc .15
C
← Acc .0
Encoding:
15
0
1000
1010
1111
1010
Example(s):
; Acc = 0003h, C=0, Z=0
SRA
; Acc = 0001h, C=1, Z=0
SRA
; Acc = 0000h, C=1, Z=1
- DS80C390 (58 pages)
- DS5001FP (26 pages)
- MAX1416 (14 pages)
- MAX5865 (18 pages)
- DS33Z41 (167 pages)
- MAX1202 (7 pages)
- USBTO232 (31 pages)
- HFAN-09.5.0: Pattern Creator/Converter Software (8 pages)
- MAX-IDE MAXQ Microcontrollers (11 pages)
- MAX6876 Power-Supply Tracker/Sequencer (6 pages)
- MAX6877 Power-Supply Tracker/Sequencer (3 pages)
- 78Q8430 ARM9(920T) Linux Driver Diagnostic Guide (19 pages)
- 78Q8430 Software Driver (54 pages)
- 78Q8430 ST 5100/OS-20 with NexGen TCP/IP Stack (28 pages)
- 6612_OMU_S2_URT_V1_13 (56 pages)
- 6612_OMU_S2+2_URT_V1_14 (58 pages)
- 71M6511 Power Meter IC Family Software (137 pages)
- 71M65xx ADM51 ICE Safety Notice (2 pages)
- 71M6511 2-Layer Demo Board (2 pages)
- 71M6511 4-Layer Demo Board (2 pages)
- 78Q8430 Linux Driver ARM Platform (22 pages)
- 71M6513 Demo Board (2 pages)
- 71M6521DE Energy Meter IC Family Software (138 pages)
- 71M6521 Demo Board (2 pages)
- 71M6531 Demo Board (2 pages)
- 71M6531 Energy Meter IC Family Software (116 pages)
- 71M6533 Demo Board (2 pages)
- 71M6534H Demo Board (2 pages)
- 71M6515H Demo Board (2 pages)
- 73S1209F Evaluation Board (2 pages)
- 73S12xxF (38 pages)
- 73S12xxF Software (93 pages)
- 73S1210F Evaluation Board Lite (2 pages)
- 73S1210F Evaluation Board (2 pages)
- 73S1210F Multi-SAM Evaluation Board Lite (2 pages)
- 73S12xxF USB-CCID Linux DFU Host Application (8 pages)
- 73S1215F Device Firmware Upgrade Host Driver/Application (10 pages)
- 73S12xxF USB-CCID Host GUI (22 pages)
- 73S1215F Windows XP 32 USB CCID and DFU Drivers (15 pages)
- 73S1215F CCID USB Linux Driver (16 pages)
- 73S1215F Evaluation Board (2 pages)
- 73S1215F Evaluation Board Lite (2 pages)
- 73S1217F Evaluation Board (2 pages)
- 73S1217F Evaluation Board Lite (2 pages)
- MAXQ Family (216 pages)