ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
25
3.
ImageCraft Assembler
This chapter details the information needed to use the ImageCraft Assembler. For information on
command line usage of the ImageCraft Assembler, see the C Language Compiler User Guide (sec-
tion 9.4 ImageCraft Assembler Arguments). For information on generating source code in PSoC
Designer, see the PSoC Designer IDE Guide.
Assembly language is a low-level language. This means its structure is not like a human language.
By comparison, ‘C’ is a high-level language with structures close to those used by human lan-
guages. Even though assembly is a low-level language, it is an abstraction created to make pro-
gramming hardware easier for humans. Therefore, this abstraction must be eliminated before an
input, in a form native to the microcontroller, can be generated. An assembler is used to convert the
abstractions used in assembly language to machine code that the microcontroller can operate on
directly.
3.1
Source File Format
Assembly language source files for the ImageCraft Assembler have five basic components as listed
in
. Each line of the source file may hold a single label, mnemonic, comment, or directive.
Multiple operands or expressions may be used on a single source file line. The maximum length for
a line is 2,048 characters (including spaces) and the maximum word length is 256 characters. A
word is a string of characters surrounded by spaces.
Table 3-1. Five Basic Components of an Assembly Source File
Component
Description
Label
Symbolic name followed by a colon (
:
).
Mnemonic
Character string representing an M8C instruction.
Operand
Arguments to M8C instructions.
Comment
May follow operands or expressions and starts in any column if first non-space character is
either a C++-style comment (
//
) or semi-colon (
;
).
Directive
A command, interpreted by the Assembler, to control the generation of machine code.
Avoid use of the following characters in path and file names (they are problematic): \ / : * ? " < > | &
+ , ; = [ ] % $ ` '.
Summary of Contents for PSoC DESIGNER ImageCraft M8C
Page 6: ...6 ImageCraft Assembly Language Guide Document 001 44475 Rev B Contents Feedback ...
Page 10: ...10 ImageCraft Assembly Language Guide Document 001 44475 Rev B Introduction Feedback ...
Page 24: ...24 ImageCraft Assembly Language Guide Document 001 44475 Rev B M8C Microprocessor Feedback ...
Page 95: ...ImageCraft Assembly Language Guide Document 001 44475 Rev B 95 Assembler Directives Feedback ...
Page 96: ...96 ImageCraft Assembly Language Guide Document 001 44475 Rev B Assembler Directives Feedback ...
Page 104: ...104 ImageCraft Assembly Language Guide Document 001 44475 Rev B Feedback ...
Page 108: ...108 ImageCraft Assembly Language Guide Document 001 44475 Rev B Index Feedback ...