'******************************************************************************
'* 
'* STANDARD EMULATION LIBRARY (EmuLib.*)
'*
'* Note: - automatically included in all scripts (except StdLib.*)
'*       - most of functional currently implemented internally due speed
'*         reasons, but this module can be used to extend generic emulation
'*         functionality (i.e. platform-independent) 
'*
'******************************************************************************

? "[INIT] EmuLib intialization"

'Use internal implementation (see below)
public use internal "EmuLib"

//////////////////////////// EMULATION OBJECTS ////////////////////////////////

'Object implementations
public const MEMORY_BUFFER      as string = "Emu\Lib\membuffr"
public const PIXEL_DECODER      as string = "Emu\Lib\pixdecod"
public const PARAM_LIST         as string = "Emu\Lib\parmlist"
public const FIFO_STREAM        as string =  QUEUE_STREAM

////////////////////////// EMULATION DEFINITIONS //////////////////////////////

'Paths
public const BIOS_SPCX86_PATH	as string = "Bios\SPC_X86\"
public const BIOS_CGAX86_PATH	as string = BIOS_SPCX86_PATH+"Cga\"
public const BIOS_VGAX86_PATH	as string = BIOS_SPCX86_PATH+"Vga\"

'Constants
public const memReadOnly=1  'read-only memory mode (ROM)
public const memWriteOnly=2 'write-only memory mode
public const memReadWrite=3 'read-write memory mode (RAM)

'List of aliases of device modules (path-independed way to locate them)
public use module "emuDevs"

'List of virtual key codes (universal for any host platform)
public use module "emuKeys"

'Emulation tools 
public use module "emuTools"

'List of aliases of console scripts (path-independed way to locate them)
public use module "emuCons"

////////////////////////// EMULIB IMPLEMENTATION //////////////////////////////

//TODO