@ Structure of a MOS Program
:Structure
^Structure of a MOS Program

 A mos program include several units
 Uses MOS_ASM,MOS_BAS ....
      ....., MOS_SWAP;
 But MOS_SWAP must be the last, and MOS_SWAP can't be used in a unit.

 The main program is :

 Begin
  INIT_ASM;
  INIT_SCREEN;
  INIT_MOUSE;

  Oldexit:=ExitProc;        {For runtimes errors}
  SetJump(MyAddr);
  ExitProc:=@ENTRY_INT24;

  Directvideo:=False;       {If you want}

  MAIN;

  DONE_MOUSE;
  DONE_SCREEN;
  DONE_ASM;
 End. 

:Working
^Mos running program.

 The heart of MOS is a Repeat  Until boucle.
 When you are making a boucle, you must call ~Main_Task~

:Units explain
^The MOS units explanation.

 MOS_XMS.PAS     XMS memory
 MOS_BAS.PAS     Basic MOS routines
 MOS_BLK.PAS     Screen Blankers
 MOS_BMP.PAS     BMP and MGF images
 MOS_COL.PAS     Colors and palette requesters
 MOS_CRT.PAS     CRT TP7 unit replacement
 MOS_DEB.PAS     Debugging informations
 MOS_DIR.PAS     File requesters
 MOS_EZR.PAS     Dialog requesters
 MOS_FLI.PAS     FLI animations
 MOS_GAD.PAS     Miscellaneous gadgets
 MOS_GFX.PAS     Miscellaneous video routines
 MOS_GPH.PAS     GRAPH TP7 unit replacement
 MOS_INI.PAS     Initialisations files management
 MOS_IPX.PAS     IPX / SPX Network routines
 MOS_KBD.PAS     Keyboard routines
 MOS_LFN.PAS     Long filenames (Windows) management
 MOS_LIS.PAS     Polymorphic lists routines
 MOS_MAT.PAS     Mathmatics functions
 MOS_MEN.PAS     Menus management
 MOS_MSE.PAS     Mouse routines
 MOS_PRO.PAS     MOS Protection (Anti-cracking)
 MOS_REQ.PAS     Miscellaneous requesters
 MOS_STR.PAS     Strings routines
 MOS_SWAP.PAS    External execution programs
 MOS_SYS.PAS     System parameters requesters
 MOS_TOO.PAS     Miscellaneous graphic tools (lines, boxes...)
 MOS_TSK.PAS     Tasks and MOS background management
 MOS_VAR.PAS     Variables definition
 MOS_VESA.PAS    VESA routines
 MOS_WAV.PAS     WAV sounds management
 MOS_WIN.PAS     Windows management
 MOS_ASM.PAS     Assembler routines (Low level tools)
 MOS_OCG.PAS     Onglets and Combo box gadgets routines
 MOS_DSK.PAS     Disks and files management

:Suffix files

 The MOS suffix files explanation.
 ----------------------------------

    .LOC         Localisation langue file
    .HIS         History file
    .PAL         Palette (8 bits)
    .PAT         Pattern images format
    .MRE         MOS Ressource Editor datas file
    .INI         MOS Initialisation file
    .CFG         Personnal application configuration file
    .LST         Install Shield datas file
    .CMD         MOS Source Converter datas file
    .LMP         MOS demonstration datas file
    .MGF         MOS Graphic Format (Altered BMP)
    .LIS         List datas file (Temporary stored on disk)
    .FTM         File Type Manager (File analysis)

 Miscellaneous suffix files explanation.
 ----------------------------------------

    .CHR         Font file
    .BMP         BitMap Windows native format images
    .PAS         Turbo Pascal sources
    .TPU         Turbo Pascal units
