© 2000 Ubicom, Inc. All rights reserved. - 4 - www.ubicom.com AN16 SX IrDA Virtual Peripheral Implementation 2. 1 SOURCE CODE ORGANIZATION The source code is so large it has been split among sev-
eral files to make editing easier. These source files are
concatenated  together  to  form  IrDA.src  which  is  pro-
grammed into the SX.
Each separate source file implements a macros for code,
data and register definitions. The file Project.src uses
these    macros    to    form    the    complete    code.    From
Project.src it can be seen how the code is arranged
in the program memory of the SX. This arrangement is
quite important because it ensures that instruction restric-
tions (such as jump tables residing in the lower half of a
page) are met.
The three application demonstrations can be selected by
removing the commenting next to the appropriate macro
in Project.src.
A simple batch file (Asm.bat) is supplied which will con-
catenate the source files together.