Motorola DSP56000 Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Procesory Motorola DSP56000. Motorola DSP56000 User`s manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 354
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów

Podsumowanie treści

Strona 1 - ASSEMBLER REFERENCE MANUAL

MOTOROLA DIGITAL SIGNAL PROCESSINGDEVELOPMENT SOFTWAREMOTOROLA DSPASSEMBLER REFERENCE MANUALMotorola, IncorporatedSemiconductor Products SectorDSP Div

Strona 2

Table of Contentsvi DSP ASSEMBLER REFERENCE MANUAL MOTOROLAChapter 7STRUCTURED CONTROL STATEMENTS7.1 INTRODUCTION . . . . . . . . . . . . . . . . . .

Strona 3

Assembler Significant Characters And DirectivesAssembler Directives6-14 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAquotes (") then DEFINE symbols wil

Strona 4

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-15@Function DelimiterAll Assembler built-

Strona 5 - PREFACE

Assembler Significant Characters And DirectivesAssembler Directives6-16 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA*Location Counter SubstitutionWhen used

Strona 6

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-17++String Concatenation OperatorAny two

Strona 7 - TABLE OF CONTENTS

Assembler Significant Characters And DirectivesAssembler Directives6-18 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA[ ]Substring Delimiter[<string>,&

Strona 8

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-19<<I/O Short Addressing Mode Force

Strona 9

Assembler Significant Characters And DirectivesAssembler Directives6-20 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA<Short Addressing Mode Force Operato

Strona 10

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-21>Long Addressing Mode Force Operator

Strona 11

Assembler Significant Characters And DirectivesAssembler Directives6-22 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA#Immediate Addressing ModeThe pound sig

Strona 12

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-23#<Immediate Short Addressing Mode Fo

Strona 13

Table of ContentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL viiAppendix CASSEMBLER MESSAGESC.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . .

Strona 14

Assembler Significant Characters And DirectivesAssembler Directives6-24 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA#>Immediate Long Addressing Mode For

Strona 15 - LIST OF FIGURES

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-25BADDRSet Buffer AddressBADDR <M | R&

Strona 16

Assembler Significant Characters And DirectivesAssembler Directives6-26 DSP ASSEMBLER REFERENCE MANUAL MOTOROLABSBBlock Storage Bit-Reverse[<label&

Strona 17 - MOTOROLA DSP ASSEMBLER

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-27BSCBlock Storage of Constant[<label&

Strona 18

Assembler Significant Characters And DirectivesAssembler Directives6-28 DSP ASSEMBLER REFERENCE MANUAL MOTOROLABSMBlock Storage Modulo[<label>]

Strona 19

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-29BUFFERStart Buffer BUFFER <M | R>

Strona 20

Assembler Significant Characters And DirectivesAssembler Directives6-30 DSP ASSEMBLER REFERENCE MANUAL MOTOROLACOBJComment Object FileCOBJ <string&

Strona 21

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-31COMMENTStart Comment LinesCOMMENT <

Strona 22

Assembler Significant Characters And DirectivesAssembler Directives6-32 DSP ASSEMBLER REFERENCE MANUAL MOTOROLADCDefine Constant[<label>] DC

Strona 23

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-33DCBDefine Constant Byte[<label>]

Strona 24

Table of Contentsviii DSP ASSEMBLER REFERENCE MANUAL MOTOROLAE.3.4.6.4 End of Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 25

Assembler Significant Characters And DirectivesAssembler Directives6-34 DSP ASSEMBLER REFERENCE MANUAL MOTOROLADEFINEDefine Substitution StringDEFINE

Strona 26

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-35DSDefine Storage[<label>] DS

Strona 27

Assembler Significant Characters And DirectivesAssembler Directives6-36 DSP ASSEMBLER REFERENCE MANUAL MOTOROLADSMDefine Modulo Storage[<label>]

Strona 28

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-37DSRDefine Reverse Carry Storage[<lab

Strona 29 - Chapter 2

Assembler Significant Characters And DirectivesAssembler Directives6-38 DSP ASSEMBLER REFERENCE MANUAL MOTOROLADUPDuplicate Sequence of Source Lines[&

Strona 30

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-39Note that the linesDUP COUNT ;ASR BY CO

Strona 31

Assembler Significant Characters And DirectivesAssembler Directives6-40 DSP ASSEMBLER REFERENCE MANUAL MOTOROLADUPADuplicate Sequence With Arguments[&

Strona 32

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-41Note that the linesDUPA VALUE,12,32,34E

Strona 33

Assembler Significant Characters And DirectivesAssembler Directives6-42 DSP ASSEMBLER REFERENCE MANUAL MOTOROLADUPCDuplicate Sequence With Characters[

Strona 34

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-43DUPFDuplicate Sequence In Loop[<labe

Strona 35 - EXPRESSIONS

Table of ContentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL ixF.2.1.5 Move Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 36

Assembler Significant Characters And DirectivesAssembler Directives6-44 DSP ASSEMBLER REFERENCE MANUAL MOTOROLANote that the linesDUPF NUM,0,7ENDMwill

Strona 37

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-45ENDEnd of Source ProgramEND [<expr

Strona 38

Assembler Significant Characters And DirectivesAssembler Directives6-46 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAENDBUFEnd BufferENDBUFThe ENDBUF direct

Strona 39

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-47ENDIFEnd of Conditional AssemblyENDIFTh

Strona 40

Assembler Significant Characters And DirectivesAssembler Directives6-48 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAENDMEnd of Macro DefinitionENDMEvery MA

Strona 41

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-49ENDSECEnd SectionENDSECEvery SECTION di

Strona 42

Assembler Significant Characters And DirectivesAssembler Directives6-50 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAEQUEquate Symbol to a Value<label>

Strona 43

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-51EXITMExit MacroEXITMThe EXITM directive

Strona 44

Assembler Significant Characters And DirectivesAssembler Directives6-52 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAFAILProgrammer Generated ErrorFAIL [{&l

Strona 45

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-53FORCESet Operand Forcing ModeFORCE {SHO

Strona 46

Table of Contentsx DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.6.1.1 Arithmetic Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 47

Assembler Significant Characters And DirectivesAssembler Directives6-54 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAGLOBALGlobal Section Symbol Declaration

Strona 48

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-55GSETSet Global Symbol to a Value<lab

Strona 49

Assembler Significant Characters And DirectivesAssembler Directives6-56 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAHIMEMSet High Memory BoundsHIMEM <me

Strona 50

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-57IDENTObject Code Identification Record[

Strona 51

Assembler Significant Characters And DirectivesAssembler Directives6-58 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAIFConditional Assembly DirectiveIF <

Strona 52

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-59INCLUDEInclude Secondary FileINCLUDE &l

Strona 53

Assembler Significant Characters And DirectivesAssembler Directives6-60 DSP ASSEMBLER REFERENCE MANUAL MOTOROLALISTList the AssemblyLISTPrint the list

Strona 54

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-61LOCALLocal Section Symbol DeclarationLO

Strona 55 - SOFTWARE PROJECT MANAGEMENT

Assembler Significant Characters And DirectivesAssembler Directives6-62 DSP ASSEMBLER REFERENCE MANUAL MOTOROLALOMEMSet Low Memory BoundsLOMEM <mem

Strona 56

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-63LSTCOLSet Listing Field WidthsLSTCOL [

Strona 57

List of FiguresMOTOROLA DSP ASSEMBLER REFERENCE MANUAL xiLIST OF FIGURESD-1 Assembler Listing Format . . . . . . . . . . . . . . . . . . . . . . . .

Strona 58

Assembler Significant Characters And DirectivesAssembler Directives6-64 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAMACLIBMacro LibraryMACLIB <pathname&

Strona 59

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-65MACROMacro Definition<label> MACR

Strona 60

Assembler Significant Characters And DirectivesAssembler Directives6-66 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAMODEChange Relocation ModeMODE <ABS[

Strona 61

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-67MSGProgrammer Generated MessageMSG [{

Strona 62

Assembler Significant Characters And DirectivesAssembler Directives6-68 DSP ASSEMBLER REFERENCE MANUAL MOTOROLANOLISTStop Assembly ListingNOLISTDo not

Strona 63

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-69OPTAssembler OptionsOPT <option>[

Strona 64

Assembler Significant Characters And DirectivesAssembler Directives6-70 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAReporting OptionsThese options control

Strona 65

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-71Symbol OptionsThese options deal with t

Strona 66

Assembler Significant Characters And DirectivesAssembler Directives6-72 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAFollowing are descriptions of the indiv

Strona 67

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-73EM (DSP56800 only) Used when it is nece

Strona 68

List of Figuresxii DSP ASSEMBLER REFERENCE MANUAL MOTOROLAE-23 Function Symbol Auxiliary Entry . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 69

Assembler Significant Characters And DirectivesAssembler Directives6-74 DSP ASSEMBLER REFERENCE MANUAL MOTOROLALOC Include local labels in the symbol

Strona 70

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-75NOEM (DSP56800 only) (default, reset) D

Strona 71

Assembler Significant Characters And DirectivesAssembler Directives6-76 DSP ASSEMBLER REFERENCE MANUAL MOTOROLANOSI (DSP56000 only) (default, reset) I

Strona 72

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-77upper 16 bits are considered rather tha

Strona 73

Assembler Significant Characters And DirectivesAssembler Directives6-78 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAXR Causes XDEFed symbols to be recogniz

Strona 74

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-79ORGInitialize Memory Space and Location

Strona 75

Assembler Significant Characters And DirectivesAssembler Directives6-80 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA<lms>Which memory space (X, Y, L,

Strona 76

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-81location counter expression. This expre

Strona 77 - Chapter 5

Assembler Significant Characters And DirectivesAssembler Directives6-82 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAORG P(5):,Y:$8000Indicates code will b

Strona 78

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-83PAGETop of Page/Size PagePAGE [<ex

Strona 79

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL 1-1Chapter 1MOTOROLA DSP ASSEMBLER1.1 INTRODUCTIONThe Motorola DSP Assemblers are programs that process asse

Strona 80

Assembler Significant Characters And DirectivesAssembler Directives6-84 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAThe following relationships must be mai

Strona 81

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-85PMACROPurge Macro DefinitionPMACRO <

Strona 82

Assembler Significant Characters And DirectivesAssembler Directives6-86 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAPRCTLSend Control String to PrinterPRCT

Strona 83

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-87RADIXChange Input Radix for ConstantsRA

Strona 84

Assembler Significant Characters And DirectivesAssembler Directives6-88 DSP ASSEMBLER REFERENCE MANUAL MOTOROLARDIRECTRemove Directive or Mnemonic fro

Strona 85

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-89SCSJMPSet Structured Control Statement

Strona 86 - Conditional Assembly

Assembler Significant Characters And DirectivesAssembler Directives6-90 DSP ASSEMBLER REFERENCE MANUAL MOTOROLASCSREGReassign Structured Control State

Strona 87 - Chapter 6

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-91SECTIONStart SectionSECTION <symbol&

Strona 88

Assembler Significant Characters And DirectivesAssembler Directives6-92 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAThe division of a program into sections

Strona 89

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-93a section may be made absolute either i

Strona 90

Motorola DSP AssemblerRunning The Assembler1-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAple, for the Motorola DSP56000 processor the name of the Assembl

Strona 91

Assembler Significant Characters And DirectivesAssembler Directives6-94 DSP ASSEMBLER REFERENCE MANUAL MOTOROLASETSet Symbol to a Value<label> S

Strona 92

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-95STITLEInitialize Program Sub-TitleSTITL

Strona 93

Assembler Significant Characters And DirectivesAssembler Directives6-96 DSP ASSEMBLER REFERENCE MANUAL MOTOROLASYMOBJWrite Symbol Information to Objec

Strona 94

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-97TABSSet Listing Tab StopsTABS <tabst

Strona 95

Assembler Significant Characters And DirectivesAssembler Directives6-98 DSP ASSEMBLER REFERENCE MANUAL MOTOROLATITLEInitialize Program TitleTITLE [<

Strona 96

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-99UNDEFUndefine DEFINE SymbolUNDEF [<s

Strona 97

Assembler Significant Characters And DirectivesAssembler Directives6-100 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAWARNProgrammer Generated WarningWARN [

Strona 98

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-101XDEFExternal Section Symbol Definition

Strona 99

Assembler Significant Characters And DirectivesAssembler Directives6-102 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAXREFExternal Section Symbol ReferenceX

Strona 100

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL 7-1Chapter 7STRUCTURED CONTROL STATEMENTS7.1 INTRODUCTIONAn assembly language provides an instruction set fo

Strona 101

Motorola DSP AssemblerAssembler OptionsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 1-31.5 ASSEMBLER OPTIONS-AIndicates that the Assembler should run in

Strona 102

Structured Control StatementsSyntax7-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA7.3 SYNTAXThe formats for the .BREAK, .CONTINUE, .FOR, .IF, .LOOP, .RE

Strona 103

Structured Control StatementsSyntaxMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 7-3FUNCTION:The .BREAK statement causes an immediate exit from the innermos

Strona 104

Structured Control StatementsSyntax7-4 DSP ASSEMBLER REFERENCE MANUAL MOTOROLANOTES:If a .CONTINUE is encountered with no loop statement active, a war

Strona 105

Structured Control StatementsSyntaxMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 7-5NOTES:<op1> must be a writable register or memory location. It is

Strona 106

Structured Control StatementsSyntax7-6 DSP ASSEMBLER REFERENCE MANUAL MOTOROLANOTES:In the case of nested .IF-THEN-.ELSE statements, each .ELSE refers

Strona 107

Structured Control StatementsSyntaxMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 7-77.3.6 .REPEAT StatementSYNTAX:.REPEAT<stmtlist>.UNTIL <expre

Strona 108

Structured Control StatementsSimple And Compound Expressions7-8 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAThe DO keyword is optional.EXAMPLE:.WHILE x:(r1

Strona 109

Structured Control StatementsSimple And Compound ExpressionsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 7-9When processed by the Assembler, the expression

Strona 110

Structured Control StatementsStatement Formatting7-10 DSP ASSEMBLER REFERENCE MANUAL MOTOROLANote that values in the <reg1> and <reg2> dat

Strona 111

Structured Control StatementsEffects On The Programmer’s EnvironmentMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 7-11there must be white space (blank, tab)

Strona 112

Specification and information herein are subject to change without notice. Motorola re-serves the right to make changes without further notice to any

Strona 113

Motorola DSP AssemblerAssembler Options1-4 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA-D<symbol> <string> sequence can be repeated as often as

Strona 114

Structured Control StatementsEffects On The Programmer’s Environment7-12 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA(underscore) labels are interspersed a

Strona 115

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL A-1Appendix AASCII CHARACTER CODESDecimalHex ASCII DecimalHex ASCII0 00 NUL 64 40 @1 01 SOH 65 41 A2 02 STX 66

Strona 116

ASCII Character CodesA-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLADecimalHex ASCII DecimalHex ASCII29 1D GS 93 5D ]30 1E RS 94 5E ^31 1F US 95 5F _32 20

Strona 117

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL B-1Appendix BDIRECTIVE SUMMARYAssembler directives can be grouped by function into seven types:1. Assembly co

Strona 118

Directive SummarySymbol DefinitionB-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAB.2 SYMBOL DEFINITIONThe directives used to control symbol definition a

Strona 119

Directive SummaryObject File ControlMOTOROLA DSP ASSEMBLER REFERENCE MANUAL B-3B.5 OBJECT FILE CONTROLThe directives used for control of the object

Strona 121

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-1Appendix CASSEMBLER MESSAGESC.1 INTRODUCTIONAssembler messages are grouped into four categories:Command L

Strona 122

Assembler MessagesCommand Line ErrorsC-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAC.2 COMMAND LINE ERRORSCannot open command fileCannot open listing f

Strona 123

Assembler MessagesCommand Line ErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-3Invalid syntax for command line -E optionThere must be whitespace betw

Strona 124

Motorola DSP AssemblerAssembler OptionsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 1-5-GSend source file line number information to the object file. This

Strona 125

Assembler MessagesWarningsC-4 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAC.3 WARNINGSAbsolute address involves incompatible memory spacesThe memory spac

Strona 126

Assembler MessagesWarningsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-5Assembler produces this warning and generates a NOP prior to the offending in-str

Strona 127

Assembler MessagesWarningsC-6 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAspace attributes of X, Y, L, P(rogram), E(MI), or N(one); only N is fully compati

Strona 128

Assembler MessagesWarningsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-7Invalid interrupt vector address - using SWI addressCurrently only the SWI addres

Strona 129

Assembler MessagesWarningsC-8 DSP ASSEMBLER REFERENCE MANUAL MOTOROLALoad reserved address space violationThe load location counter has incremented in

Strona 130

Assembler MessagesWarningsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-9No control registers accessed - using MOVE encodingA MOVEC-type instruction was g

Strona 131

Assembler MessagesWarningsC-10 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAPC-relative address too large to use short - long substitutedThe PC-relative off

Strona 132

Assembler MessagesWarningsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-11Runtime origin involves incompatible memory spacesThe memory space attribute is

Strona 133

Assembler MessagesWarningsC-12 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAStorage block size not a power of 2The expression in a DSR directive did not eva

Strona 134

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-13C.4 ERRORSAbsolute address contains forward reference - force short or I/O short

Strona 135

Motorola DSP AssemblerAssembler Options1-6 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAonly once. If the file named in the -L option already exists, it wil

Strona 136

Assembler MessagesErrorsC-14 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAAssembler directive or mnemonic not foundAn argument to the RDIRECT directive was

Strona 137

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-15CONST option must be used before any labelThis option, which prevents EQU symbols

Strona 138

Assembler MessagesErrorsC-16 DSP ASSEMBLER REFERENCE MANUAL MOTOROLADisplacement too large to use shortThe displacement value being forced short is to

Strona 139

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-17End of structure or union without matching definitionA source-level debug end-of-s

Strona 140

Assembler MessagesErrorsC-18 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAExpression cannot have a negative valueSome directives do not allow negative expre

Strona 141

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-19Extra characters beyond expressionThe expression evaluator found extra characters

Strona 142

Assembler MessagesErrorsC-20 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAForcing not specifiedThe type of forcing operand was not given in a FORCE directiv

Strona 143

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-21Illegal directive inside .DEF-.ENDEF declarationIllegal directive outside .DEF-.EN

Strona 144

Assembler MessagesErrorsC-22 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAIllegal move field source specifiedThe source operand in a data memory move is inv

Strona 145

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-23Immediate operand requiredThe ANDI and ORI instructions must have an immediate val

Strona 146

Motorola DSP AssemblerAssembler OptionsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 1-7below. Note that if this option is not used the Assembler runs with

Strona 147

Assembler MessagesErrorsC-24 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAInstruction does not allow data movement specifiedThe desired operation may only b

Strona 148

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-25Invalid modeThe mode specified in a MODE directive was not either RELATIVE or ABSO

Strona 149

Assembler MessagesErrorsC-26 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAInvalid section nameSection names cannot be local symbols, e.g. they cannot begin

Strona 150

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-27Conversely, if the data register of the X data field is from the set D4-D7, the da

Strona 151

Assembler MessagesErrorsC-28 DSP ASSEMBLER REFERENCE MANUAL MOTOROLALOC option must be used before any local labelThe LOC option must appear before an

Strona 152

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-29Memory space must be P or NONEAn END directive was encountered while the runtime m

Strona 153

Assembler MessagesErrorsC-30 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAMissing memory space specifierOne of the operands of an instruction was expected t

Strona 154

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-31Missing symbol valueNo symbol value was given as an argument to the .VAL directive

Strona 155

Assembler MessagesErrorsC-32 DSP ASSEMBLER REFERENCE MANUAL MOTOROLANot enough fields specified for instructionThere were no operands specified for a

Strona 156

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-33Only post-increment by offset addressing allowed with LMS moveThe initial data mov

Strona 157

Motorola DSP AssemblerAssembler Options1-8 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA-VThis option causes the Assembler to report assembly progress (begi

Strona 158

Assembler MessagesErrorsC-34 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAoccurs without any other errors this may represent an internal error which shouldb

Strona 159

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-35Redefinition would overflow lineA substitution string declared using the DEFINE di

Strona 160

Assembler MessagesErrorsC-36 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAReserved name used for symbol nameOne of the DSP register names has been used as a

Strona 161

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-37Short displacement too largeThe flagged operand value is greater than the maximum

Strona 162

Assembler MessagesErrorsC-38 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAin the DSM or DSR directive and the runtime location counter value exceed avail-ab

Strona 163

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-39Symbol cannot be set to new valueThe label has been defined previously other than

Strona 164

Assembler MessagesErrorsC-40 DSP ASSEMBLER REFERENCE MANUAL MOTOROLASyntax error - expected ':'In an ORG directive the colon separating the

Strona 165

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-41Syntax error - invalid statement terminatorThere were extra or invalid characters

Strona 166

Assembler MessagesErrorsC-42 DSP ASSEMBLER REFERENCE MANUAL MOTOROLATwo dummy arguments are the sameTwo dummy arguments in a macro definition (MACRO d

Strona 167

Assembler MessagesErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-43Unrecognized secondary mnemonicA symbol in the Assembler secondary opcode field wa

Strona 168

Motorola DSP AssemblerAssembler ProcessingMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 1-91.6 ASSEMBLER PROCESSINGThe Motorola DSP Assembler is a two-pa

Strona 169

Assembler MessagesFatal ErrorsC-44 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAC.5 FATAL ERRORSAttempt to store external reference data in absolute modeA

Strona 170

Assembler MessagesFatal ErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-45Cannot write file header to object fileCannot write line number entries to o

Strona 171

Assembler MessagesFatal ErrorsC-46 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAError in mnemonic tableThe indicator passed to the instruction processing lo

Strona 172

Assembler MessagesFatal ErrorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL C-47Invalid tag storage classThe saved tag storage class has been corrupted. Thi

Strona 173

Assembler MessagesFatal ErrorsC-48 DSP ASSEMBLER REFERENCE MANUAL MOTOROLASection stack mode errorThe Assembler expected to restore a nested section b

Strona 174

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL D-1Appendix DASSEMBLER LISTING FILE FORMATD.1 INTRODUCTIONThe Assembler always produces a source listing fil

Strona 175

Assembler Listing File FormatListing File CommentaryD-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAlines) have been shifted right to make room for line nu

Strona 176

Assembler Listing File FormatCross-reference FormatMOTOROLA DSP ASSEMBLER REFERENCE MANUAL D-3gram they would be shown here, as well as define symbols

Strona 177

Assembler Listing File FormatMemory Utilization Report FormatD-4 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAblock in the X memory report is of type CODE b

Strona 178

Assembler Listing File FormatAssembler Listing FormatMOTOROLA DSP ASSEMBLER REFERENCE MANUAL D-5

Strona 179

Motorola DSP AssemblerAssembler Support For Digital Signal Processing1-10 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAruntime memory space and runtime addr

Strona 180

Assembler Listing File FormatAssembler Listing FormatD-6 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA

Strona 181

Assembler Listing File FormatAssembler Listing FormatMOTOROLA DSP ASSEMBLER REFERENCE MANUAL D-7

Strona 182

Assembler Listing File FormatAssembler Listing FormatD-8 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA

Strona 183

Assembler Listing File FormatAssembler Listing FormatMOTOROLA DSP ASSEMBLER REFERENCE MANUAL D-9

Strona 184

Assembler Listing File FormatAssembler Listing FormatD-10 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA

Strona 185

Assembler Listing File FormatAssembler Listing FormatMOTOROLA DSP ASSEMBLER REFERENCE MANUAL D-11

Strona 186

Assembler Listing File FormatAssembler Listing FormatD-12 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA

Strona 187

Assembler Listing File FormatAssembler Listing FormatMOTOROLA DSP ASSEMBLER REFERENCE MANUAL D-13

Strona 188

Assembler Listing File FormatAssembler Listing FormatD-14 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA

Strona 189 - STRUCTURED CONTROL STATEMENTS

Assembler Listing File FormatAssembler Listing FormatMOTOROLA DSP ASSEMBLER REFERENCE MANUAL D-15

Strona 190

Motorola DSP AssemblerAssembler Support For Digital Signal ProcessingMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 1-11useful for initializing data values i

Strona 191

Assembler Listing File FormatAssembler Listing FormatD-16 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA

Strona 192

Assembler Listing File FormatAssembler Listing FormatMOTOROLA DSP ASSEMBLER REFERENCE MANUAL D-17

Strona 193

Assembler Listing File FormatAssembler Listing FormatD-18 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA

Strona 194

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-1Appendix EMOTOROLA DSP OBJECT FILE FORMAT (COFF)E.1 INTRODUCTIONThe Motorola DSP Assembler and Linker pro

Strona 195

Motorola DSP Object File Format (COFF)Object File StructureE-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAThe general layout of the object file is illustr

Strona 196

Motorola DSP Object File Format (COFF)Object File ComponentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-3E.3 OBJECT FILE COMPONENTSFollowing are detai

Strona 197

Motorola DSP Object File Format (COFF)Object File ComponentsE-4 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAThe flags field is a set of bit flags which con

Strona 198

Motorola DSP Object File Format (COFF)Object File ComponentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-5buffer and overlay counts give counts for each

Strona 199

Motorola DSP Object File Format (COFF)Object File ComponentsE-6 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAThe program entry field represents the address

Strona 200

Motorola DSP Object File Format (COFF)Object File ComponentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-7object file has been created. Programs manipul

Strona 202

Motorola DSP Object File Format (COFF)Object File ComponentsE-8 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAfrom the start of the logical section (implicit

Strona 203 - DIRECTIVE SUMMARY

Motorola DSP Object File Format (COFF)Object File ComponentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-9Figure E-7 Section Header FlagsText sections ar

Strona 204

Motorola DSP Object File Format (COFF)Object File ComponentsE-10 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAFigure E-8 Relocation Entry FormatThe address

Strona 205

Motorola DSP Object File Format (COFF)Object File ComponentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-11an index into the symbol table for the entry c

Strona 206

Motorola DSP Object File Format (COFF)Object File ComponentsE-12 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAFigure E-11 COFF Symbol Table OrderingThe entr

Strona 207 - ASSEMBLER MESSAGES

Motorola DSP Object File Format (COFF)Object File ComponentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-13Figure E-12 Symbol Table Entry FormatE.3.4.1

Strona 208

Motorola DSP Object File Format (COFF)Object File ComponentsE-14 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAE.3.4.3 Section NumberThe section number maps

Strona 209

Motorola DSP Object File Format (COFF)Object File ComponentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-15Figure E-13 Fundamental TypesBits 4 through 15

Strona 210

Motorola DSP Object File Format (COFF)Object File ComponentsE-16 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAFigure E-14 Derived TypesAs an example of enco

Strona 211

Motorola DSP Object File Format (COFF)Object File ComponentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-17Figure E-15 Storage ClassesMnemonic Value Type

Strona 212

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL 2-1Chapter 2WRITING ASSEMBLY LANGUAGE PROGRAMS2.1 INPUT FILE FORMATPrograms written in assembly language con

Strona 213

Motorola DSP Object File Format (COFF)Object File ComponentsE-18 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAFigure E-15 Storage Classes (continued)The val

Strona 214

Motorola DSP Object File Format (COFF)Object File ComponentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-19Figure E-16 Storage Class and ValueStorage Cla

Strona 215

Motorola DSP Object File Format (COFF)Object File ComponentsE-20 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAFigure E-16 Storage Class and Value (continued

Strona 216

Motorola DSP Object File Format (COFF)Object File ComponentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-21E.3.4.6.1 FilenamesThe auxiliary table entry

Strona 217

Motorola DSP Object File Format (COFF)Object File ComponentsE-22 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAFigure E-19 Relocatable Section Auxiliary Entr

Strona 218

Motorola DSP Object File Format (COFF)Object File ComponentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-23other auxiliary entry is generated for the buf

Strona 219

Motorola DSP Object File Format (COFF)Object File ComponentsE-24 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAFigure E-22 End of Structure Auxiliary EntryE.

Strona 220

Motorola DSP Object File Format (COFF)Object File ComponentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-25E.3.4.6.6 ArraysThe format for C language arr

Strona 221

Motorola DSP Object File Format (COFF)Object File ComponentsE-26 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAE.3.4.6.8 Beginning of Blocks and FunctionsTh

Strona 222

Motorola DSP Object File Format (COFF)Differences In DSP Object Format And Standard COFFMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-27Figure E-27 Struct

Strona 223

MOTOROLA DSP ASSEMBLERWRITING ASSEMBLY LANGUAGE PROGRAMSEXPRESSIONSSOFTWARE PROJECT MANAGEMENTMACROS AND CONDITIONAL ASSEMBLYASSEMBLER CHARACTERS AND

Strona 224

Writing Assembly Language ProgramsStrings2-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA2.3 STRINGSOne or more ASCII characters enclosed by single quote

Strona 225

Motorola DSP Object File Format (COFF)Differences In DSP Object Format And Standard COFFE-28 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAE.4.1 Multiple M

Strona 226

Motorola DSP Object File Format (COFF)Differences In DSP Object Format And Standard COFFMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-29Figure E-29 Memory

Strona 227

Motorola DSP Object File Format (COFF)Differences In DSP Object Format And Standard COFFE-30 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAThe Motorola DSP v

Strona 228

Motorola DSP Object File Format (COFF)Object File Data Expression FormatMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-31cards the reference symbol. When t

Strona 229

Motorola DSP Object File Format (COFF)Object File Data Expression FormatE-32 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAand parentheses. Expressions may c

Strona 230

Motorola DSP Object File Format (COFF)Object File Data Expression FormatMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-33E.5.2.1 User Expression - { ... }

Strona 231

Motorola DSP Object File Format (COFF)Object File Data Expression FormatE-34 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA -7 - 7-bit signed short immedia

Strona 232

Motorola DSP Object File Format (COFF)Object File Data Expression FormatMOTOROLA DSP ASSEMBLER REFERENCE MANUAL E-35E.5.2.7 BFxxx Instruction Mask Fu

Strona 234

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-1Appendix FDEVICE-DEPENDENT INFORMATIONF.1 INTRODUCTIONThe Motorola DSP Assemblers are quite similar in te

Strona 235

Writing Assembly Language ProgramsSource Statement FormatMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 2-3Assembler; the comment field is ignored. For exam

Strona 236

Device-dependent InformationDSP56000 InformationF-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.2 DSP56000 INFORMATIONThe Motorola DSP56000 refers to a

Strona 237

Device-dependent InformationDSP56000 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-3F.2.1.1 Arithmetic InstructionsThe DSP56000 instructions

Strona 238

Device-dependent InformationDSP56000 InformationF-4 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.2.1.2 Logical InstructionsThe DSP56000 instructions use

Strona 239

Device-dependent InformationDSP56000 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-5F.2.1.6 Program Control InstructionsThe DSP56000 instruct

Strona 240

Device-dependent InformationDSP56000 InformationF-6 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.2.2 Register Names and UsageThe following DSP56000 regi

Strona 241

Device-dependent InformationDSP56000 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-7F.2.3 Condition Code MnemonicsFollowing are the DSP56000

Strona 242

Device-dependent InformationDSP96000 InformationF-8 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.3 DSP96000 INFORMATIONThe Motorola DSP96000 refers to a

Strona 243

Device-dependent InformationDSP96000 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-9FGETMAN — Extract mantissa*FINT — Extract integer*FLOAT — C

Strona 244

Device-dependent InformationDSP96000 InformationF-10 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.3.1.2 Logical InstructionsThe DSP96000 instructions us

Strona 245

Device-dependent InformationDSP96000 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-11F.3.1.5 Move InstructionsThe DSP96000 instructions used

Strona 246

Writing Assembly Language ProgramsSource Statement Format2-4 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAthe terminating address of a DO loop). Note that

Strona 247

Device-dependent InformationDSP96000 InformationF-12 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.3.1.6 Program Control InstructionsThe DSP96000 instruc

Strona 248

Device-dependent InformationDSP96000 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-13WAIT — Wait for interrupt (low power standby)F.3.2 Regis

Strona 249

Device-dependent InformationDSP96000 InformationF-14 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.3.3 Condition Code MnemonicsFollowing are the DSP96000

Strona 250

Device-dependent InformationDSP56100 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-15F.4 DSP56100 INFORMATIONThe Motorola DSP56100 refers to

Strona 251

Device-dependent InformationDSP56100 InformationF-16 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAINC24 — Increment 24 MS bits of accumulator*MAC — Signed m

Strona 252

Device-dependent InformationDSP56100 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-17F.4.1.3 Bit Manipulation InstructionsThe DSP56100 instru

Strona 253

Device-dependent InformationDSP56100 InformationF-18 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.4.1.6 Program Control InstructionsThe DSP56100 instruc

Strona 254

Device-dependent InformationDSP56100 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-19The following DSP56100 registers are used by the Assembler

Strona 255 - ASSEMBLER LISTING FILE FORMAT

Device-dependent InformationDSP56300 InformationF-20 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.5 DSP56300 INFORMATIONThe Motorola DSP56300 refers to

Strona 256

Device-dependent InformationDSP56300 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-21F.5.1.1 Arithmetic InstructionsThe DSP56300 instructions

Strona 257

Writing Assembly Language ProgramsSource Statement FormatMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 2-52.4.3 Operand FieldThe interpretation of the ope

Strona 258

Device-dependent InformationDSP56300 InformationF-22 DSP ASSEMBLER REFERENCE MANUAL MOTOROLATcc — Transfer conditionallyTFR — Transfer data ALU regist

Strona 259 - Assembler Listing Format

Device-dependent InformationDSP56300 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-23F.5.1.4 Loop InstructionsThe DSP56300 instructions used

Strona 260

Device-dependent InformationDSP56300 InformationF-24 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.5.1.6 Program Control InstructionsThe DSP56300 instruc

Strona 261

Device-dependent InformationDSP56300 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-25F.5.2 Register Names and UsageThe following DSP56300 reg

Strona 262

Device-dependent InformationDSP56300 InformationF-26 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.5.3 Condition Code MnemonicsFollowing are the DSP56300

Strona 263

Device-dependent InformationDSP56800 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-27F.6 DSP56800 INFORMATIONThe Motorola DSP56800 refers to

Strona 264

Device-dependent InformationDSP56800 InformationF-28 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.6.1.1 Arithmetic InstructionsThe DSP56800 instructions

Strona 265

Device-dependent InformationDSP56800 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-29F.6.1.2 Logical InstructionsThe DSP56800 instructions us

Strona 266

Device-dependent InformationDSP56800 InformationF-30 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.6.1.5 Move InstructionsThe DSP56800 instructions used

Strona 267

Device-dependent InformationDSP56800 InformationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL F-31F.6.2 Macro InstructionsThe DSP56800 Macros are defined

Strona 268

Writing Assembly Language ProgramsAssembler Output2-6 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA2.4.7 Comment FieldComments are not considered signific

Strona 269

Device-dependent InformationDSP56800 InformationF-32 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAF.6.3 Register Names and UsageThe following DSP56800 reg

Strona 270

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL G-1Appendix GHOST-DEPENDENT INFORMATIONG.1 INTRODUCTIONThe Motorola DSP development software runs on several

Strona 271

Host-dependent InformationDOS/386 EnvironmentG-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAG.2.2 InstallationThe Assembler is installed from the distri

Strona 272

Host-dependent InformationSunOS/SOLARIS ENVIRONMENTMOTOROLA DSP ASSEMBLER REFERENCE MANUAL G-3In this example no object file is created and all errors

Strona 273 - Appendix E

Host-dependent InformationHP 700 EnvironmentG-4 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAAs an example, if the Assembler executable was located in a dir

Strona 274

Host-dependent InformationHP 700 EnvironmentMOTOROLA DSP ASSEMBLER REFERENCE MANUAL G-5Assembler source code imported from other environments may need

Strona 276

INDEXMOTOROLA DSP ASSEMBLER REFERENCE MANUAL I-1Symbols! ... 3-4- ...

Strona 277

I-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAIndexBuffer ... 1-10address ...

Strona 278

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL I-3IndexEND ... 6-2, 6-45, B-1ENDBUF ... 6-3, 6-46, B-2ENDIF ...

Strona 279

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL 3-1Chapter 3 EXPRESSIONS3.1 INTRODUCTIONAn expression represents a value which is used as an operand in an A

Strona 280

I-4 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAIndexobject file ...E-31operand comparison ... 7-9operator

Strona 281

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL I-5IndexListing file ...1-5, 2-6, 6-73commentary ... D-1cro

Strona 282

I-6 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAIndexCK ...6-71, 6-72CL ...6-70, 6-72CM .

Strona 283

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL I-7IndexRSV ...6-71, 6-76S ...6-70, 6-76SBM

Strona 285

ExpressionsExpression Memory Space Attribute3-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLApressions that involve two or more operands and operators other

Strona 286

ExpressionsInternal Expression RepresentationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 3-3Expressions used for immediate addressing can have any memory

Strona 287

ExpressionsOperators3-4 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA.6 (floating point)2.7e2 (floating point)A constant may be written without a leading ra

Strona 288

ExpressionsOperatorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 3-5The unary plus operator returns the value of its operand.The unary minus operator retur

Strona 289

MOTOROLA DSP ASSEMBLERWRITING ASSEMBLY LANGUAGE PROGRAMSEXPRESSIONSSOFTWARE PROJECT MANAGEMENTMACROS AND CONDITIONAL ASSEMBLYASSEMBLER CHARACTERS AND

Strona 290

ExpressionsOperators3-6 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAThe shift left operator causes the left operand to be shifted to the left (and zero-fil

Strona 291

ExpressionsOperator PrecedenceMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 3-73.6.6 Logical operatorsLogical AND (&&)Logical OR (||)The logical A

Strona 292

ExpressionsFunctions3-8 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAand the opening parenthesis, and there must be no spaces between comma-separatedargumen

Strona 293

ExpressionsFunctionsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 3-93.8.2 Conversion FunctionsThe conversion functions provide conversion between integer

Strona 294

ExpressionsFunctions3-10 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA3.8.5 Assembler Mode FunctionsMiscellaneous functions having to do with Assembler op

Strona 295

ExpressionsFunctionsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 3-11@ASN(<expression>)Returns the arc sine of <expression> as a floating point

Strona 296

ExpressionsFunctions3-12 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA@CHK()Returns the current instruction/data checksum value as an integer. Useful in co

Strona 297

ExpressionsFunctionsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 3-13@CVF(<expression>)Converts the result of <expression> to a floating point

Strona 298

ExpressionsFunctions3-14 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA@FLD(<base>,<value>,<width>[,<start>])Shift and mask <value

Strona 299

ExpressionsFunctionsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 3-15@LCV({L | R}[,{L | H | <expression>}])If L is specified as the first argument, r

Strona 300

PREFACE MOTOROLA DSP ASSEMBLER REFERENCE MANUAL iNotationThe notational conventions used in this manual are:DIRECTIVEAll assembler mnemonics and direc

Strona 301

ExpressionsFunctions3-16 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA@LNG(<expr1>,<expr2>)Concatenates the single word <expr1> and <ex

Strona 302

ExpressionsFunctionsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 3-17@MAX(<expr1>[,...,<exprN>])Returns the greatest of <expr1>,...,<e

Strona 303

ExpressionsFunctions3-18 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA<start> argument is specified it must be a positive integer and cannot exceed th

Strona 304

ExpressionsFunctionsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 3-19@SCP(<str1>,<str2>)Returns an integer 1 (memory space attribute N) if the

Strona 305

ExpressionsFunctions3-20 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA@TAN(<expression>)Returns the tangent of <expression> as a floating point

Strona 306

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL 4-1Chapter 4SOFTWARE PROJECT MANAGEMENT4.1 INTRODUCTIONThe Motorola DSP Assemblers provide several directive

Strona 307

Software Project ManagementSections And Data Hiding4-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA4.3 SECTIONS AND DATA HIDINGSymbols within a section a

Strona 308

Software Project ManagementSections And Data HidingMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 4-3XDEFed symbols by default are recognized only in other s

Strona 309 - DEPENDENT INFORMATION

Software Project ManagementSections And Data Hiding4-4 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA4.3.2 Sections and MacrosThe division of a program int

Strona 310

Software Project ManagementSections And RelocationMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 4-54.4 SECTIONS AND RELOCATIONWhen the Assembler operates

Strona 311

ii DSP ASSEMBLER REFERENCE MANUAL MOTOROLAPreface< >The element names are printed in lower case and contained in angle brackets.Some common elem

Strona 312

Software Project ManagementAddress Assignment4-6 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAspersed among relocatable blocks. The MODE directive has no e

Strona 313

Software Project ManagementAddress AssignmentMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 4-7crement of the location counter. There are many kinds of E mem

Strona 314

Software Project ManagementAddress Assignment4-8 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAor alternatively: ORG <rms>[<rmp>][(<rce

Strona 315

Software Project ManagementAddress AssignmentMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 4-9<llc>Which load counter, H, L, or default (if neither H

Strona 316

Software Project ManagementAddress Assignment4-10 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAis in relative mode and the load counter expression is relati

Strona 317

Software Project ManagementAddress AssignmentMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 4-11ORG XL:,E8:Sets the runtime memory space to X. Selects the

Strona 318

Software Project ManagementAddress Assignment4-12 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAThe ORG statement sets the origin to hexadecimal 100 in X mem

Strona 319

Software Project ManagementExample 1: Multi-programmer EnvironmentMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 4-134.6 EXAMPLE 1: MULTI-PROGRAMMER ENVIRO

Strona 320

Software Project ManagementExample 1: Multi-programmer Environment4-14 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA4.6.1 Absolute Mode ImplementationTo a

Strona 321

Software Project ManagementExample 1: Multi-programmer EnvironmentMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 4-15to set the current memory space to P(rog

Strona 322

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL iiiTABLE OF CONTENTSPREFACETABLE OF CONTENTSLIST OF FIGURESChapter 1MOTOROLA DSP ASSEMBLER1.1 INTRODUCTION . .

Strona 323

Software Project ManagementExample 2: Overlays4-16 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAformation on relocation and linking. One other Assembler dir

Strona 324

Software Project ManagementExample 2: OverlaysMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 4-174.7.1 Absolute Mode ImplementationIn order to avoid bindin

Strona 325

Software Project ManagementExample 2: Overlays4-18 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAmodule was intended to run starting at OVLBASE in P memory,

Strona 326

Software Project ManagementExample 2: OverlaysMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 4-19Note that the ORG to P space does not specify an absolute ad

Strona 327

Software Project ManagementExample 3: Bootstrap Overlay4-20 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA4.8 EXAMPLE 3: BOOTSTRAP OVERLAYMany Motorola DSP

Strona 328

Software Project ManagementExample 3: Bootstrap OverlayMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 4-214.8.1 Absolute Mode ImplementationIn order to avo

Strona 329

Software Project ManagementExample 3: Bootstrap Overlay4-22 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAsimilar command is used to assemble the SECT2 modul

Strona 330

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL 5-1Chapter 5MACRO OPERATIONS AND CONDITIONAL ASSEMBLY5.1 MACRO OPERATIONSProgramming applications frequently

Strona 331

Macro Operations And Conditional AssemblyMacro Libraries5-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAThe effect of a macro call is to produce in-line co

Strona 332

Macro Operations And Conditional AssemblyMacro DefinitionMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 5-3The required label is the symbol by which the macr

Strona 333

Table of Contentsiv DSP ASSEMBLER REFERENCE MANUAL MOTOROLA3.2 ABSOLUTE AND RELATIVE EXPRESSIONS . . . . . . . . . . . . . . . . . . . . . .3-13.3 E

Strona 334

Macro Operations And Conditional AssemblyMacro Calls5-4 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAWhen specifying a local label within the body of a macr

Strona 335

Macro Operations And Conditional AssemblyDummy Argument OperatorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 5-5argument can be declared null when calling

Strona 336

Macro Operations And Conditional AssemblyDummy Argument Operators5-6 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA5.5.2 Return value operator - ?Another m

Strona 337

Macro Operations And Conditional AssemblyDummy Argument OperatorsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 5-75.5.3 Return hex value operator - %The p

Strona 338

Macro Operations And Conditional AssemblyDummy Argument Operators5-8 DSP ASSEMBLER REFERENCE MANUAL MOTOROLADouble quotes also make possible DEFINE di

Strona 339

Macro Operations And Conditional AssemblyDUP, DUPA, DUPC, DUPF DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 5-9macro label called _LOCAL and atte

Strona 340

Macro Operations And Conditional AssemblyConditional Assembly5-10 DSP ASSEMBLER REFERENCE MANUAL MOTOROLAthe statements between the IF and ELSE direct

Strona 341 - HOST-DEPENDENT INFORMATION

MOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-1Chapter 6ASSEMBLER SIGNIFICANT CHARACTERS AND DIRECTIVES6.1 INTRODUCTIONThis chapter describes the direct

Strona 342

Assembler Significant Characters And DirectivesAssembler Directives6-2 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA#< - Immediate short addressing mode

Strona 343

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-36.3.2 Symbol DefinitionThe directives

Strona 344

Table of ContentsMOTOROLA DSP ASSEMBLER REFERENCE MANUAL v4.6.2 Relative Mode Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 345

Assembler Significant Characters And DirectivesAssembler Directives6-4 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA6.3.5 Object File ControlThe directive

Strona 346

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-5Individual descriptions of each of the A

Strona 347

Assembler Significant Characters And DirectivesAssembler Directives6-6 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA;Comment Delimiter CharacterAny number o

Strona 348

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-7;; Unreported Comment Delimiter Characte

Strona 349

Assembler Significant Characters And DirectivesAssembler Directives6-8 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA\Line Continuation Character orMacro Arg

Strona 350

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-9The concatenation operator (\) indicates

Strona 351

Assembler Significant Characters And DirectivesAssembler Directives6-10 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA?Return Value of Symbol CharacterThe ?&

Strona 352

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-11%Return Hex Value of Symbol CharacterTh

Strona 353

Assembler Significant Characters And DirectivesAssembler Directives6-12 DSP ASSEMBLER REFERENCE MANUAL MOTOROLA^Macro Local Label OverrideThe circumfl

Strona 354

Assembler Significant Characters And DirectivesAssembler DirectivesMOTOROLA DSP ASSEMBLER REFERENCE MANUAL 6-13"Macro String Delimiter orQuoted S

Komentarze do niniejszej Instrukcji

Brak uwag