Generating Absolute Assembly Using Assembler Build Tool

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.

  1. 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.

  2. Select File > Load Configuration. Browse for the project directory and set it as the current directory for the Assembler .
  3. Select Assembler > Options. The Option Settings dialog box appears.
  4. 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.
  5. Select the ELF/DWARF 2.0 Absolute File option from the list box. Click OK.
  6. Select File > Assemble.

    The Select File to Assemble dialog box appears, as the following image displays.

    Figure 1. Select File to Assemble Dialog Box
    Select File to Assemble Dialog Box
  7. Browse and select the absolute-assembly source-code file main.asm.
  8. 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: