initial cpu structure :thonk:
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
#include "matar.hh"
|
||||
#include "emulator.hh"
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
std::cout << "Hello" << std::endl;
|
||||
if (run() > 0) {
|
||||
std::cerr << "Crashed" << std::endl;
|
||||
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;
|
||||
}
|
||||
|
||||
|
@@ -10,6 +10,6 @@ executable(
|
||||
meson.project_name(),
|
||||
target_sources,
|
||||
link_with: target_deps,
|
||||
include_directories: includes,
|
||||
install : true
|
||||
include_directories: inc,
|
||||
install : true,
|
||||
)
|
Reference in New Issue
Block a user