SBRK #8bit
6-319
SBRK #8bit
Subtract From Current Auxiliary Register
SYNTAX OPTIONS
OPCODE
OBJMODE
RPT
CYC
SBRK,#8bit
1111 1101 CCCC CCCC
X
−
1
Operands
#8bit
8-bit constant immediate value
Description
Subtract the 8-bit unsigned constant from the XARn register pointed to by
ARP:
XAR(ARP) = XAR(ARP) − 0:8bit;
Flags and
Modes
ARP
The 3-bit ARP points to the current valid auxiliary register, XAR0 to XAR7.
This pointer determines which auxiliary register is modified by the operation.
Repeat
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once
Example
.word 0xEEEE
.word 0x0000
TableA: .word 0x1111
.word 0x2222
.word 0x3333
.word 0x4444
FuncA:
MOVL XAR1,#TableA
MOVZ AR2,*XAR1
SBRK #2
MOVZ AR3,*XAR1
; Initialize XAR1 pointer
; Load AR2 with the 16−bit value
; pointed to by XAR1 (0x1111)
; Set ARP = 1
; Decrement XAR1 by 2
; Load AR3 with the 16−bit value
; pointed to by XAR1 (0xEEEE)
Содержание TMS320C28x
Страница 30: ...1 12...
Страница 80: ...This page intentionally left blank 2 50 This page intentionally left blank...
Страница 269: ...IN loc16 PA 6 112 MOV AL 0 AL 0 UOUT IORegC AL IOspace IORegC AL 10...
Страница 308: ...MAXCUL P loc32 6 151 Saturate MOVL Var64 2 ACC Store result into Var64 MOVL Var64 P...
Страница 509: ...SUBL ACC P PM 6 352 SUBL ACC P PM ACC S B 11 M X 4 MOVH Y ACC 5 Store Q15 result into Y...
Страница 585: ...This page intentionally left blank 7 32 This page intentionally left blank...