summaryrefslogtreecommitdiff
path: root/ecomp-c/emul.c
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-c/emul.c')
-rw-r--r--ecomp-c/emul.c8
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 );
}