Search
lxdream.org :: lxdream/src/gui/callbacks.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/callbacks.c
changeset 23:1ec3acd0594d
prev19:9da7a8e38f9d
next26:ad258e3daaa5
author nkeynes
date Fri Dec 23 11:44:55 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Start of "real" time slices, general structure in place now
file annotate diff log raw
1.1 --- a/src/gui/callbacks.c Thu Dec 22 07:38:12 2005 +0000
1.2 +++ b/src/gui/callbacks.c Fri Dec 23 11:44:55 2005 +0000
1.3 @@ -107,29 +107,12 @@
1.4 }
1.5
1.6
1.7 -void run( debug_info_t data, uint32_t target ) {
1.8 - if( ! sh4_isrunning() ) {
1.9 - do {
1.10 - if( target == -1 )
1.11 - sh4_runfor(1000000);
1.12 - else
1.13 - sh4_runto(target, 1000000);
1.14 - update_icount(data);
1.15 - run_timers(1000000);
1.16 - SCIF_clock_tick();
1.17 - while( gtk_events_pending() )
1.18 - gtk_main_iteration();
1.19 - pvr2_next_frame();
1.20 - } while( sh4_isrunning() );
1.21 - update_gui();
1.22 - }
1.23 -}
1.24 void
1.25 on_run_btn_clicked (GtkButton *button,
1.26 gpointer user_data)
1.27 {
1.28 debug_info_t data = get_debug_info(GTK_WIDGET(button));
1.29 - run(data,-1);
1.30 + dreamcast_run();
1.31 }
1.32
1.33
1.34 @@ -142,7 +125,8 @@
1.35 WARN( "No address selected, so can't run to it", NULL );
1.36 else {
1.37 INFO( "Running until %08X...", selected_pc );
1.38 - run( data, selected_pc );
1.39 + sh4_set_breakpoint( selected_pc, BREAK_ONESHOT );
1.40 + dreamcast_run();
1.41 }
1.42 }
1.43
.