diff --git a/bin/win/emulexec.exe b/bin/win/emulexec.exe new file mode 100644 index 0000000..5c9e8d2 --- /dev/null +++ b/bin/win/emulexec.exe Binary files differ diff --git a/emul_inst_exec.c b/emul_inst_exec.c index 6623e98..3cde31b 100644 --- a/emul_inst_exec.c +++ b/emul_inst_exec.c @@ -489,9 +489,12 @@ return exit_code; } -int main(void) { +int main(int argc, char *argv[]) { //emul_std_debug(2); - emul_inst_exec_load("test_asm/test.asm"); + if (argc == 1) { + emul_out_std("[Error] No input file!\n"); + } + emul_inst_exec_load(argv[1]); emul_reg_init(); emul_inst_exec_run(); }