Almost all the information of earlier chapters pertains to ColdFire target processors. The few differences are:
- Comments
-
Assembly Language Syntax explains these common ways to specify comments:
- Hexadecimal Notation
- For ColdFire processors, the preferred hexadecimal notation is
$, as in
$deadbeef. This contrasts with Chapter 2, which explains that the preferred notation for most processors is
0x.
- Sections
- As
Using Directives explains, not all target architectures support the small-data assembler directives
.sbss,
.sbss2,
.sdat,
.sdata0, or
.sdata2. For the ColdFire architecture, the linker can be more restrictive than the assembler. You may need to experiment to find out which of these directives are supported by both your assembler and linker.
- As with most assemblers, the ColdFire assembler generates ELF, not COFF, object files.
- Automatic Debugging
- For automatic generation of debugging information, your linker may require that instructions be in the
.text section.
- A processor selection option is added to the assembler settings. This selection defines the processor context, its instruction set, co-processors and system registers available to 'movec'.