Example of Assembly File (Test2.asm)

The following listing shows another assembly code file module for this project.

Listing: Separating Code into Modules-Test2.asm

        XDEF  entry
        INCLUDE "Test1.inc"

CodeSec: SECTION

entry:   RSP

         LDA   #$7

          JSR   AddSource

         BRA   entry

The application's *.prm file should list both object files building the application. When a section is present in the different object files, the object file sections are concatenated into a single absolute file section. The different object file sections are concatenated in the order the object files are specified in the *.prm file.