
SL11R
Document #: 38-08006 Rev. **
Page 60 of 85
is then used as the byte/word bit, set to “0” to select word or “1” to select byte addressing. In this example, a byte-wide operand
is selected at the memory location pointed to by register R10:
Note:
For register R15, byte-wide operands are prohibited. If bit 3 is set high, the instruction is decoded differently, as explained at the
top of this section.
7.14
Indirect Addressing with Auto Increment
Indirect Addressing with Auto Increment works identically to Indirect Addressing, except that at the end of the read or write cycle,
the register is incremented by 1 or 2 (depending whether it is a byte-wide or word-wide access.)
This mode is prohibited for register R15. If bits 0..2 are all high, the instruction is decoded differently, as explained at the top of
this section.
7.15
Indirect Addressing with Offset
In Indirect Addressing with Offset, the instruction word is followed by a 16-bit word that is added to the contents of the address
register to form the address for the operand. The offset is an unsigned 16-bit word, and will “wrap” to low memory addresses if
the register and offset add up to a value greater than the size of the processor’s address space.
7.16
Stack Pointer (R15) Special Handling
Register R15 is designated as the Stack Pointer, and has these special behaviors:
• If addressed in indirect mode, the register pre-decrements on a write instruction, and post-increments on a read instruction,
emulating Push and Pop instructions.
• Byte-wide reads or writes are prohibited in indirect mode.
• If R15 is addressed in Indirect with Index mode, it does not auto-increment or auto-decrement.
SL11R - CPU Instruction Set
The instruction set can be roughly divided into three classes of instructions:
• Dual Operand Instructions (Instructions with two operands, a source and a destination)
• Program Control Instructions (Jump, Call and Return)
• Single Operand Instructions (Instructions with only one operand: a destination)
7.17
Dual Operand Instructions
Instructions with source and destination, for ALL dual operand instructions, byte values are zero extended by default.
destination:= source
Flags Affected: none
destination:= destination + source
Flags Affected: Z, C, O, S
Bits
54321
0
Memory operand
01101
0
MOV
bit:
15
14
13
12
11
10
9876543210
0000
source
Destination
ADD
bit:
15
14
13
12
11
10
9876543210
0001
source
Destination