Assembling Source Code - Axiom MCU 68HC912 User Manual

For motorola 68hc912 mcu’s 68hc912d60/ dg128/ dt128 and mc9s12dp256
Table of Contents

Advertisement

Assembling source code

An example program called "HELLO.ASM" is provided under the \EXAMPLES\912x directory
of the CD and if you installed AxIDE, under that programs \EXAMPLE directory. You must use
the example for the PM Module you have installed on the CMD912x board. The PM Label is
located beside the microcontroller. For example:
\EXAMPLE\HC12D60\HELLO.ASM
\EXAMPLE\HC12D128\HELLO.ASM
\EXAMPLE\HC12D256\HELLO.ASM
You can assemble your source code using command line tools under a DOS prompt by typing:
AS12 HELLO.ASM –LHELLO
Most compilers and assemblers allow many command line options so using a MAKE utility or
batch file is recommended if you use this method. Run AS12 without any arguments to see all
the options, or see the AS12.TXT file on the disk.
The programming utility AxIDE provided with this board contains a simple interface to this
assembler. Use it by selecting "Build" from its menu. This will prompt you for the file to be
assembled. NOTE: You must select your board from the pull down menu first, or it may not
build correctly.
DO NOT use long path names (> 8 characters). The free assembler is an old DOS tool that
does not recognize them.
If there are no errors in your source code, 2 output files will be created:
HELLO.S19
HELLO.LST
The listing file is especially helpful to look at when debugging your program. If your program
has errors, they will be displayed and no output will be generated, otherwise the listing file will
be displayed.
If you prefer a windows integrated programming environment, try the Motorola MCU-EZ tools.
Refer to the MCU-EZ documentation on the disk for more information.
Also, a port for the free GNU C compiler and tools for the HC12 is available on the CD under
\Shareware and also online at www.gnu-m68hc11.org.
a Motorola S-Record file that can be programmed into memory
a common listing file which shows the relationship between source
and output
Example program for the PM12D60
Example program for the PM12D128
Example program for the PM12D256
6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mcu dt128Mcu 68hc912d60Mcu dg128Cmd912x

Table of Contents