#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;
int main(int argc, char* argv[])
{
string masm, link, filename;
if(argc == 1)
{
cout << "This is an Auxiliary program for Masm, which is aiming to help you build an asm project in no time." << endl
<< "Please type the source file: ";
cin >> filename;
}
else
filename = argv[1];
for(unsigned int i = 0; i < 4; i++)
filename.erase(filename.size()-1);
masm = "masm.exe " + filename + ".asm";
link = "link.exe " + filename + ".obj";
cout << "Building&Linking......";
system("@echo off");
system(masm.c_str());
system(link.c_str());
system("@echo on");
return 0;
}
#include <cstdlib>
#include <string>
using namespace std;
int main(int argc, char* argv[])
{
string masm, link, filename;
if(argc == 1)
{
cout << "This is an Auxiliary program for Masm, which is aiming to help you build an asm project in no time." << endl
<< "Please type the source file: ";
cin >> filename;
}
else
filename = argv[1];
for(unsigned int i = 0; i < 4; i++)
filename.erase(filename.size()-1);
masm = "masm.exe " + filename + ".asm";
link = "link.exe " + filename + ".obj";
cout << "Building&Linking......";
system("@echo off");
system(masm.c_str());
system(link.c_str());
system("@echo on");
return 0;
}
