Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 9:2784c7660165
prev2:42349f6ea216
next11:0a82ef380c45
author nkeynes
date Thu Dec 08 13:38:00 2005 +0000 (17 years ago)
permissions -rw-r--r--
last change Generalise the core debug window to allow multiple instances.
Add cpu description structure to define different cpus for use by the
debug window, in preparation for ARM implementation
file annotate diff log raw
1.1 --- a/src/main.c Sat Aug 21 06:15:49 2004 +0000
1.2 +++ b/src/main.c Thu Dec 08 13:38:00 2005 +0000
1.3 @@ -12,8 +12,10 @@
1.4 #include "interface.h"
1.5 #include "gui.h"
1.6 #include "sh4core.h"
1.7 +#include "sh4dasm.h"
1.8 #include "mem.h"
1.9
1.10 +debug_info_t main_debug;
1.11
1.12 int
1.13 main (int argc, char *argv[])
1.14 @@ -27,17 +29,17 @@
1.15 gnome_init ("dreamon", VERSION, argc, argv);
1.16 init_gui();
1.17 debug_win = create_debug_win ();
1.18 - init_debug_win(debug_win);
1.19 + main_debug = init_debug_win(debug_win, &sh4_cpu_desc);
1.20 video_open();
1.21 dreamcast_init();
1.22 init_mmr_win(); /* Note: must be done after sh4_init */
1.23 sh4_reset();
1.24 update_gui();
1.25 gtk_widget_show (debug_win);
1.26 - set_disassembly_region( 0xA0000000 );
1.27 + set_disassembly_region( main_debug, 0xA0000000 );
1.28 // mem_new_watch( 0x0C204818, 0x0C204830, WATCH_WRITE );
1.29
1.30 - emit( EMIT_INFO, -1, "DreamOn! ready..." );
1.31 + emit( main_debug, EMIT_INFO, -1, "DreamOn! ready..." );
1.32
1.33 gtk_main ();
1.34 return 0;
.