diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2021-09-27 19:34:16 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2021-09-27 19:34:16 +0200 |
commit | c2bc809ca97bdebc8c70dd58a1c282c475a88557 (patch) | |
tree | 2b9ca1e8e1e0afc3b04a26c4cf3c44dc7187ccb8 /ecomp-c | |
parent | f3181636d06af22d4828b4256c2a62d025fccb8a (diff) | |
download | compilertests-c2bc809ca97bdebc8c70dd58a1c282c475a88557.tar.gz compilertests-c2bc809ca97bdebc8c70dd58a1c282c475a88557.tar.bz2 |
cc: added boolean expressions
Diffstat (limited to 'ecomp-c')
-rw-r--r-- | ecomp-c/emul.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ecomp-c/emul.c b/ecomp-c/emul.c index c1d819f..348e54b 100644 --- a/ecomp-c/emul.c +++ b/ecomp-c/emul.c @@ -193,7 +193,7 @@ int main( int argc, char *argv[] ) printf( "Options:\n" ); printf( " -h show help\n" ); printf( " -v verbose output\n" ); - printf( " -d dump code and data read\n" ); + printf( " -d dump code and data read (at start and at the end)\n" ); printf( " -t trace and print single stepts during emulation\n" ); exit( EXIT_SUCCESS ); default: @@ -480,6 +480,12 @@ int main( int argc, char *argv[] ) } } + if( dump ) { + dump_regs( uc ); + dump_stack( uc ); + dump_memory( uc, data_start, data_start + data_size ); + } + if( verbose ) { printf( "Done, executed %d instructions.\n", iteration ); } |