first commit

Version 3.x.x
This commit is contained in:
VNGhostMans
2023-05-14 20:21:09 +07:00
parent a3037a8db3
commit 5ec92ee05e
1166 changed files with 1036539 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#include <iostream>
#include "disasm.h"
int main(int argc, char **argv)
{
int rc;
bool x64;
std::cout << "x86 Disassembly Generator (C) 2012\n";
if (argc < 2) {
std::cerr << "Usage: " << argv[0] << " <output_file_name> [x64]\n";
return 1;
}
if (argc >= 3) {
x64 = (0 == _strnicmp(argv[2], "x64", 3));
} else {
x64 = false;
}
rc = GenerateInstructions(argv[1], x64);
if (rc == GEN_INSN_OKAY)
std::cout << "Finished\n";
else
std::cerr << "ERROR Failed with error " << rc << "\n";
return rc;
}