Use the same project,
Model T, that was used for the relocatable assembly project. Modify the main.asm in the Model T\Sources folder as per the Listing: Example Source File - main.asm.
- Start the Assembler by opening the ahc08.exe file in the prog folder in the <CWInstallDir>\MCU folder.
The
Assembler window opens. Close the Tip of the Day dialog box.
- Select File > Load Configuration. Browse for the project directory and set it as the current directory for the Assembler .
- Select Assembler > Options. The Option Settings dialog box appears.
- In the Output dialog box, check the Object File Format checkbox. A list box is displayed in the dialog box below the list of checkboxes.
- Select the ELF/DWARF 2.0 Absolute File option from the list box. Click OK.
- Select File > Assemble.
The Select File to Assemble dialog box appears, as the following image displays.
Figure 1. Select File to Assemble Dialog Box 
- Browse and select the absolute-assembly source-code file main.asm.
- Click Open.
The Assembler now assembles the source code.
Make sure that the
GENPATH configurations are set for the two include files needed for the
main.asm file in this project in case they have not yet been previously set. Messages about the assembly process appears in the assembler main window.
The messages indicate that:
- An assembly source code (main.asm) file, plus derivative.inc and mc9s08ac128.inc files are read as input.
- A debugging (main.dbg) file is generated in the project directory.
- An S-Record File is created, main.sx. This file can be used to program ROM memory.
- An absolute executable file is generated, main.abs.
- The Code Size is 51 bytes.
- An assembly outlet listing file (main.lst) was written to the project directory.