64 / 85 page

SL11R
Document #: 38-08006 Rev. **
Page 64 of 85
destination:= destination << count
Flags Affected: Z, C, S
Note: The C flag is set with last bit shifted out of MSB.
Works identically to the SHR instruction, except that the LSB of destination is rotated into the MSB, as opposed to SHR, which
discards that bit
Flags Affected: Z, C, S
Works identically to the SHL instruction, except that the MSB of destination is rotated into the LSB, as opposed to SHL, which
discards that bit
Flags Affected: Z, C, S
destination:= destination + n
Flags Affected: Z, S
destination:= destination - n
Flags Affected: Z, S
destination:= ~destination
(bitwise 1’s complement negation)
Flags Affected: Z, S
destination:= -destination
(2’s complement negation)
Flags Affected: Z, O, C, S
SHL
bit:
15
14
13
12
11
10
9876543210
1101001
count-1
destination
ROR
bit:
15
14
13
12
11
10
9876543210
1101010
count-1
destination
ROL
bit:
15
14
13
12
11
10
9876543210
1101011
count-1
destination
ADDI
bit:
15
14
13
12
11
10
9
876543210
1101100
n-1
destination
SUBI
bit:
15
14
13
12
11
10
9876543210
1101101
n-1
destination
NOT
bit:
15
14
13
12
11
10
9876543210
1101111
000
destination
NEG
bit:
15
14
13
12
11
10
9876543210
1101111
001
destination