Download Programming Manual (Safety Observation) [type
Transcript
3 START-UP PROCEDURES (g) Logical operation instruction WAND Logical product DAND WOR Logical sum DOR WXOR Exclusive OR DXOR Complement to 2 NEG Symbol Processing Details WAND S1 S2 D DAND WOR S (S1) D (D+1, D) S1 S2 D DOR S D NEG S (S+1, S) → (D+1, D) D (S2) → (D) (D+1, D) D 3 to 4 4 (D+1, D) V (S + 1, S) → (D + 1, D) (S1) Steps 4 (S1) V (S2) → (D) WXOR S1 S2 D DXOR (S2) → (D) V Instruction Symbol V Category 3 to 4 4 (S2) → (D+1, D) 3 to 4 (D)+1 → (D) 2 (h) Rotation instruction Category Instruction Symbol ROR Symbol ROR D Processing Details n Right rotation (16-bit data) Carry flag D b15 b0 Steps 3 Right rotation by n bits Carry flag RCR RCR D D b15 n b0 3 Right rotation by n bits DROR DROR D n Carry flag b15 D+1 b0 b15 D b0 3 Right rotation by n bits Right rotation (32-bit data) DRCR DRCR D n Carry flag b15 D+1 b0 b15 D b0 3 Right rotation by n bits Carry flag ROL ROL D D b15 n b0 3 Left rotation by n bits Left rotation (16-bit data) Carry flag RCL RCL D D b15 n b0 3 Left rotation by n bits Carry flag b15 DROL DROL D D+1 b0 b15 D b0 n Left rotation (32-bit data) 3 Left rotation by n bits Carry flag b15 DRCL DRCL D D+1 b0 b15 D n b0 3 Left rotation by n bits b15 SFR SFR D n n-bit shift of 16-bit data n b0 3 Carry flag 0-0 15 SFL SFL D n n 0 3 Carry flag 0-0 n DSFR DSFR D D n 4 00 1-word shift of n-words data n DSFL DSFL D D n 4 0 0 3 - 25