Commit 241d226b authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Enable raw disassembly mode

parent 97102deb
......@@ -471,15 +471,19 @@ int main(int argc, char** argv)
{
if (argc < 2)
{
printf("Usage: %s <file.bin>\n", argv[0]);
printf("Usage: %s <file.bin> <mode>\n", argv[0]);
return 0;
}
const char *mode = argc > 2 ? argv[2] : "mbs";
std::vector<uint8_t> file;
if (ReadFile(&file, argv[1]))
{
//PrintFile(&file);
PrintBlocks(0, file.data(), file.size());
if (strncmp(mode, "t6xx", strlen(mode)) == 0)
DisassembleMidgard(file.data(), file.size());
else
PrintBlocks(0, file.data(), file.size());
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment