mirror of
https://github.com/mauiaaron/apple2.git
synced 2026-04-22 08:16:56 +00:00
Add but disable CPU trace on Android
This commit is contained in:
@@ -173,6 +173,15 @@ void Java_org_deadc0de_apple2ix_Apple2Activity_nativeOnCreate(JNIEnv *env, jclas
|
||||
|
||||
joydriver_setClampBeyondRadius(true);
|
||||
|
||||
//#define DO_CPU65_TRACING 1
|
||||
#if DO_CPU65_TRACING
|
||||
# warning !!!!!!!!!! this will quickly eat up disk space !!!!!!!!!!
|
||||
char *trfile = NULL;
|
||||
asprintf(&trfile, "%s/%s", data_dir, "cpu_trace.txt");
|
||||
cpu65_trace_begin(trfile);
|
||||
ASPRINTF_FREE(trfile);
|
||||
#endif
|
||||
|
||||
#if !TESTING
|
||||
cpu_pause();
|
||||
emulator_start();
|
||||
@@ -215,6 +224,10 @@ void Java_org_deadc0de_apple2ix_Apple2Activity_nativeEmulationPause(JNIEnv *env,
|
||||
return;
|
||||
}
|
||||
|
||||
#if DO_CPU65_TRACING
|
||||
cpu65_trace_checkpoint();
|
||||
#endif
|
||||
|
||||
disk6_flush(0);
|
||||
disk6_flush(1);
|
||||
|
||||
@@ -277,6 +290,10 @@ void Java_org_deadc0de_apple2ix_Apple2Activity_nativeOnQuit(JNIEnv *env, jclass
|
||||
disk6_eject(0);
|
||||
disk6_eject(1);
|
||||
|
||||
#if DO_CPU65_TRACING
|
||||
cpu65_trace_end();
|
||||
#endif
|
||||
|
||||
cpu_resume();
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user