65 / 85 page

SL11R
Document #: 38-08006 Rev. **
Page 65 of 85
Sign-extends a byte in the lower eight bits of [destination] to a 16-bit signed word (integer).
Flags Affected: Z, S
7.20
Miscellaneous Instructions
Sets interrupt enable flag
Flags Affected: I
Note: The STI instruction takes effect 1 cycle after it is executed.
Clears interrupt enable flag
Flags Affected: I
Set Carry bit.
Flags Affected: C
Clear Carry bit.
Flags Affected: C
7.21
Built-in Macros
For the programmer’s convenience, the SL11R QT assembler implements several built-in macros. The table below shows the
macros, and the mnemonics for the code that the assembler will generate for these macros.
CBW
bit:
15
14
13
12
11
10
9876543210
1101111
010
destination
STI
bit:
15
14
13
12
11
10
9876543210
1101111
111
000000
CLI
bit:
15
14
13
12
11
10
9876543210
1101111
111
000001
STC
bit:
15
14
13
12
11
10
9876543210
1101111
111
000010
CLC
bit:
15
14
13
12
11
10
9876543210
1101111
111
000011
Macro
Assembler will Generate
INC X
ADDI X, 1
DEC X
SUBI X, 1
PUSH X
MOV [R15], X
POP X
MOV X, [R15]