20 lines
384 B
C++
20 lines
384 B
C++
#include "emulator.hh"
|
|
#include <iostream>
|
|
|
|
int
|
|
main(int argc, const char* argv[]) {
|
|
if (argc != 2) {
|
|
std::cerr << "Usage: " << argv[0] << " <file>" << std::endl;
|
|
return 1;
|
|
}
|
|
|
|
try {
|
|
emulator::run(argv[1]);
|
|
} catch (const std::exception& e) {
|
|
std::cerr << "Exception: " << e.what() << std::endl;
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|