/*!
    \file  Loader.h
    \brief Loader

    Copyright (c) 200 HigePon
    WITHOUT ANY WARRANTY

    \author  HigePon
    \version $Revision: 1.2 $
    \date   create:2004/06/16 update:$Date: 2004/06/16 15:23:24 $
*/
#ifndef _MONA_LOADER_
#define _MONA_LOADER_

#include "global.h"
#include "string.h"
#include "global.h"
#include "io.h"
#include "syscalls.h"

/*----------------------------------------------------------------------
    Loader
----------------------------------------------------------------------*/
class Loader
{
public:
    static byte* ReadFile(const char* name, dword* size);
    static int Load(byte* image, dword size, dword entrypoint, const char* name, bool isUser, CommandOption* list);
    static int Load(const char* path, const char* name, bool isUser, CommandOption* list);

public:
    enum
    {
        ORG            = 0xA0000000,
        MAX_IMAGE_SIZE = (4096 * 150)
    };

};

#endif
