/*
**  $VER: modules.e V0.8B
**
**  (C) Copyright 1996-1997 DreamWorld Productions.
**      All Rights Reserved.
**
*/

OPT MODULE
OPT EXPORT
OPT PREPROCESS

MODULE 'gms/dpkernel'
MODULE 'system/register'
MODULE 'files/files'

/*****************************************************************************
** Module Object.
*/

#define MODVERSION  1
#define TAGS_MODULE ((ID_SPCTAGS<<16)|ID_MODULE)

OBJECT module
  head[1]      :ARRAY OF head
  number       :INT              /* Number of the associated module */
  modbase      :LONG             /* Function jump table */
  empsegment   :LONG             /* Segment pointer */
  empty        :LONG             /* */
  emptablesize :LONG             /* Size of the function table */
  version      :LONG             /* Version of the module */
  revision     :LONG             /* Revision of the module */
  table        :PTR TO modheader /* Header */
  name         :LONG             /* Name of the module */
ENDOBJECT

CONST MODA_NUMBER   = $40000000+12,
      MODA_VERSION  = $80000000+30,
      MODA_REVISION = $80000000+34,
      MODA_NAME     = $C0000000+42

/*****************************************************************************
** Module file header.
*/

#define MODULE_HEADER_V1 0x4D4F4401

OBJECT modheader
  version        :LONG
  open           :LONG
  close          :LONG  
  expunge        :LONG
  setprefs       :LONG
  freeprefs      :LONG
  funcList       :LONG  /* Pointer to function list */
  cpunumber      :LONG  /* CPU that this module is compiled for */
  modversion     :LONG  /* Version of this module */
  modrevision    :LONG  /* Revision of this module */
  mindpkversion  :LONG  /* Minimum DPK version required */
  mindpkrevision :LONG  /* Minimum DPK revision required */
  init           :LONG
  modbase        :LONG  /* Generated function base for given CPU */
ENDOBJECT

#define CPU_68000  1
#define CPU_68010  2
#define CPU_68020  3
#define CPU_68030  4
#define CPU_68040  5
#define CPU_68060  6

