Esempio n. 1
0
//////////
//
// Called to load the VVMOSS.DLL stuff, following the startup protocol.
//
//////
	bool ivvm_loadAndInitializeVvmmc(void)
	{
		// Load the DLL
		if (!iLoadVvmmcFunctionsFromDll())
			return(false);

		// Let it initialize itself
		mc_firstCallback((u64)&vvm_debuggerInterfaceCallback);
		mc_bootstrapInitialization((u64)&vvm_debuggerInterfaceCallback);

		// We're good
		return(true);
	}
Esempio n. 2
0
//////////
//
// Called to load the MC.DLL stuff, following the startup protocol.
//
//////
	bool ivasm_loadAndInitializeMc(void)
	{
		// Load the DLL
		if (!iLoadMcFunctionsFromDll())
			return(false);

		// Let it initialize itself
		mc_firstCallback(0);
		mc_bootstrapInitialization();

		// We're good
		return(true);
	}
Esempio n. 3
0
void iLoadDlls(void)
{
    //////////
    // Load VVM functions
    //////
    if (!ivasm_loadAndInitializeVvm())
    {
        // Unable to load, or instantiate the message window for the VVM
        printf("Unable to load VVM.DLL. Terminating with -1.\n");
        exit(-1);
    }


    //////////
    // Load OS-Specific functions
    //////
    if (!ivasm_loadAndInitializeOss())
    {
        // Unable to load, or instantiate the message window for the VVM
        printf("Unable to load OSS.DLL. Terminating with -2.\n");
        exit(-2);
    }


    //////////
    // Load Machine Code-Specific functions
    //////
    if (!ivasm_loadAndInitializeMc())
    {
        // Unable to load
        printf("Unable to load MC.DLL. Terminating with -1.\n");
        exit(-3);
    }


    // Let it initialize itself
    vvm_bootstrapInitialization();
    oss_bootstrapInitialization();
    mc_bootstrapInitialization();


    // Indicate the version we have loaded
    printf(mc_loadResourceAsciiText(IDS_LOADED), vvm_getVersion());
    printf(mc_loadResourceAsciiText(IDS_LOADED), oss_getVersion());
    printf(mc_loadResourceAsciiText(IDS_LOADED), mc_getVersion());
    printf("---\n");
    printf("---\n");
}