
        ; You'll often see these prefixed with Hdr: for historic reasons.
        ; This is no longer necessary, and in fact omitting them makes it
        ; possible to cross-compile your source code.
        GET     ListOpts
        GET     Macros
        GET     System
        GET     ModHand

        ; Assembler modules are conventionally, but not necessarily,
        ; position-independent code. Area name |!| is guaranteed to appear
        ; first in link order, whatever your other areas are named.
        AREA    |!|, CODE, READONLY, PIC

        ENTRY

        DCD     0 ; Start
        DCD     Init - |!|
        DCD     Final - |!|
        DCD     0; Service call handler
        DCD     Title - |!|
        DCD     Help - |!|
        DCD     0 ; Keyword table
        DCD     0 ; SWI chunk
        DCD     0 ; SWI handler
        DCD     0 ; SWI table
        DCD     0 ; SWI decoder
        DCD     0 ; Messages
        DCD     Flags - |!|

Title   DCB     "Example", 0
Help    DCB     "Example", 9, 9, "0.00 (01 Jan 2000)", 0
        ALIGN
Flags   DCD     ModuleFlag_32bit

Init    ROUT
        Push    "lr"
        SWI     XOS_WriteI+7
        Pull    "pc"

Final   ROUT
        MOV     pc, lr

        END
