	IFND	SYSTEM_MODULES_I
SYSTEM_MODULES_I SET  1

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

	IFND	DPKERNEL_I
	include	'games/dpkernel.i'
	ENDC

******************************************************************************
* Module Control Structure.

MODVERSION  = 1
TAGS_MODULE = ((ID_SPCTAGS<<16)|ID_MODULE)

   STRUCTURE	MD,HEAD_SIZEOF    ;Use standard header.
	WORD	MOD_Number        ;Number of the associated module.
	APTR	MOD_ModBase       ;Function jump table.
	APTR	MOD_empSegment    ;
	WORD	MOD_TableType     ;Type of table to generate.
	WORD	MOD_empty         ;
	LONG	MOD_emp           ;
	LONG	MOD_Version       ;Version of the module.
	LONG	MOD_Revision      ;Revision of the module.
	APTR	MOD_Table         ;Pointer to start of table.
	APTR	MOD_Name          ;Name of the module.
	LABEL	MOD_SIZEOF

MODA_Number    = (TWORD|MOD_Number)
MODA_TableType = (TWORD|MOD_TableType)
MODA_Version   = (TLONG|MOD_Version)
MODA_Revision  = (TLONG|MOD_Revision)

JMP_LVO    =  1  ;Default.
JMP_AMIGAE =  2  ;Amiga E jump table.

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

MODULE_HEADER_V1 = $4D4F4401

    STRUCTURE   MT1,0
	LONG	MT_Version        ;Version/ID header.
	APTR	MT_Init           ;Init()
	APTR	MT_Close          ;Close()
	APTR	MT_Expunge        ;Expunge()
	APTR	MT_SetPrefs       ;SetPrefs()
	APTR	MT_FreePrefs      ;FreePrefs()
	APTR	MT_FuncList       ;Pointer to function list.
	LONG	MT_CPUNumber      ;Type of CPU this module is compiled for.
	LONG	MT_ModVersion     ;Version of this module.
	LONG	MT_ModRevision    ;Revision of this module.
	LONG	MT_MinDPKVersion  ;Minimum DPK version required.
	LONG	MT_MinDPKRevision ;Minimum DPK revision required.
	LONG	MT_Open           ;Open()
	APTR	MT_ModBase        ;Generated function base for given CPU.
	WORD	MT_OpenCount      ;Amount of programs with this module open.

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

FUNC	MACRO
	dc.w	\1
	dc.l	\2
	ENDM

  ENDC	;SYSTEM_MODULES_I
