EasyManuals Logo

Texas Instruments TMS320C28x User Manual

Texas Instruments TMS320C28x
695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #528 background imageLoading...
Page #528 background image
XB pma,COND
6-371
Example
; Branch to subroutines in SwitchTable selected by Switch value.
; This example only works for code located in upper 64K of
; program space:
SwitchTable: ; Switch address table:
.word Switch0 ; Switch0 address
.word Switch1 ; Switch1 address
.
.
MOVL XAR2,#SwitchTable ; XAR2 = pointer to SwitchTable
MOVZ AR0,@Switch ; AR0 = Switch index
MOV AL,*+XAR2[AR0] ; AL = SwitchTable[Switch]
XB *AL ; Indirect branch using AL
SwitchReturn:
.
Switch0: ; Subroutine 0:
.
.
XB SwitchReturn,UNC ; Return: branch
Switch1: ; Subroutine 1:
.
.
XB SwitchReturn,UNC ; Return: branch

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS320C28x and is the answer not in the manual?

Texas Instruments TMS320C28x Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320C28x
CategoryProcessor
LanguageEnglish

Related product manuals