35 / 44 page

CS5954AM
ADVANCE
INFORMATION
Document #: 38-08025 Rev. **
Page 35 of 44
destination:= -destination
(2’s complement negation)
Flags Affected: Z, O, C, S
Sign-extends a byte in the lower eight bits of [destination] to a 16-bit signed word (integer).
Flags Affected: Z, S
8.20
Miscellaneous Instructions
Sets interrupt enable flag[40]
Flags Affected: I
Clears interrupt enable flag
Flags Affected: I
Set Carry bit.
Flags Affected: C
Clear Carry bit.
Flags Affected: C
8.21
Built-in Macros
For the programmer’s convenience, the CS5954AM 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.
Note:
40. The STI instruction takes effect 1 cycle after it is executed.
CBW
bit:
15
14
13
12
11
10
9876543210
1101111
010
destination
STI
bit:
15
14
13
12
11
10
9
876
543
210
1101111
111
000000
CLI
bit:
15
14
13
12
11
10
9876543210
1101111
111
000001
STC
bit:
15
14
13
12
11
10
98765432
10
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]