📄 vm.cpp
字号:
// ConsoleDebug.cpp : Defines the entry point for the console application.
//
#include "StdAfx.h"
#include "../Common/GlobalVariableDef.h"
#include "../Common/PreInclude.h"
#include "../Common/CometVM.h"
int main(int argc, char* argv[])
{
CCometVM vm;
if (argc < 2)
{
cout << "Usage : cometvm objFile" << endl;
return 0;
}
if (STATUS_OK != vm.InitVM())
{
cout << "Comet Initialize Failed!" << endl;
exit(-1);
}
if (STATUS_OK != vm.LoadExeFile(argv[1]))
{
cout << "Load Executable File failed! " << endl;
exit(-1);
}
if (STATUS_OK != vm.Run())
{
cout << "Running Program Failed!" << endl;
vm.ExitVM();
exit (-1);
}
vm.ExitVM();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -