Download AMCA User Manual

Transcript
AMCA User Manual
specific needs.
Expressions
Expressions are used in the operand field of the source line and may contain constants, symbols, or any
combination of constants and symbols separated by arithmetic operators.
Identifier
A function or variable name.
Initialized Data
Data which is defined with an initial value. In C, int myVar=5; defines a variable which will reside in an
initialized data section.
Listing Directives
Listing Directives are those directives that control the AMCA listing file format. They allow the specification
of base-numbering system, reserved memory access and other listing control.
Listing File
A listing file is an ASCII text file that shows the machine code generated for each assembly instruction,
AMCA directive, or macro encountered in a source file.
Local Label
A local label is one that is defined with the LOCAL directive. These labels are particular to a given instance
of the macro’s instantiation. In other words, the symbols and labels that are declared as local are purged
from the symbol table when the ENDM macro is encountered.
Macro
A macro is a collection of assembler instructions that are included in the assembly code when the macro
name is encountered in the source code. Macros must be defined before they are used; forward references
to macros are not allowed. All statements following the MACRO directive are part of the macro definition.
Labels used within the macro must be local to the macro so the macro can be called repetitively.
Macro Directives
These directives control the execution and data allocation within macro body definitions.
Mnemonics
These are instructions that are translated directly into machine code. These are used to perform arithmetic
and logical operations on data residing in program or data memory of a micro-controller. They also have
the ability to move data in and out of registers and memory as well as change the flow of program
execution. Also referred to as Opcodes.
AMCA
ALPHA Microelectronics Corporation’s MCU assembler.
Nesting Depth
65
Rev 2.2
2004/2/12