#include <stdio.h> #include "emul_inst_exec.h" #include "emul_opt.h" #include "emul_repl.h" void event_fa(char *arg) { exitcode_t code; emul_inst_exec_init(); emul_inst_exec_load(arg); code = emul_inst_exec_run(); if (code == Failed) { printf("Abend exit\n"); } emul_inst_exec_end(); } int main(int argc, char *argv[]) { char c; emul_opt_event_fa(event_fa); if ( emul_opt(argc, argv) == 0 ) { printf("interrupt start? Y/n :"); c = fgetc(stdin); if ( c == 'n' || c == 'N' ) return 0; else { emul_repl_start(); emul_repl_end(); } } return 0; }