Search
lxdream.org :: lxdream/src/main.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 11:0a82ef380c45
prev9:2784c7660165
next25:fa2d21d57942
author nkeynes
date Sun Dec 11 12:00:09 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Moved arm material under aica/
Hooked arm disasm up
file annotate diff log raw
nkeynes@1
     1
/*
nkeynes@1
     2
 * Initial main.c file generated by Glade. Edit as required.
nkeynes@1
     3
 * Glade will not overwrite this file.
nkeynes@1
     4
 */
nkeynes@1
     5
nkeynes@1
     6
#ifdef HAVE_CONFIG_H
nkeynes@1
     7
#  include <config.h>
nkeynes@1
     8
#endif
nkeynes@1
     9
nkeynes@1
    10
#include <gnome.h>
nkeynes@1
    11
nkeynes@1
    12
#include "interface.h"
nkeynes@1
    13
#include "gui.h"
nkeynes@1
    14
#include "sh4core.h"
nkeynes@9
    15
#include "sh4dasm.h"
nkeynes@11
    16
#include "aica/armdasm.h"
nkeynes@2
    17
#include "mem.h"
nkeynes@1
    18
nkeynes@9
    19
debug_info_t main_debug;
nkeynes@1
    20
nkeynes@11
    21
const cpu_desc_t cpu_descs[4] = { &sh4_cpu_desc, &arm_cpu_desc, &armt_cpu_desc, NULL };
nkeynes@11
    22
nkeynes@1
    23
int
nkeynes@1
    24
main (int argc, char *argv[])
nkeynes@1
    25
{
nkeynes@1
    26
  GtkWidget *debug_win;
nkeynes@1
    27
nkeynes@1
    28
#ifdef ENABLE_NLS
nkeynes@1
    29
  bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
nkeynes@1
    30
  textdomain (PACKAGE);
nkeynes@1
    31
#endif
nkeynes@1
    32
  gnome_init ("dreamon", VERSION, argc, argv);
nkeynes@2
    33
  init_gui();
nkeynes@1
    34
  debug_win = create_debug_win ();
nkeynes@11
    35
  main_debug = init_debug_win(debug_win, cpu_descs);
nkeynes@1
    36
  video_open();
nkeynes@2
    37
  dreamcast_init();
nkeynes@1
    38
  init_mmr_win(); /* Note: must be done after sh4_init */
nkeynes@1
    39
  sh4_reset();
nkeynes@2
    40
  update_gui();
nkeynes@1
    41
  gtk_widget_show (debug_win);
nkeynes@9
    42
  set_disassembly_region( main_debug, 0xA0000000 );
nkeynes@2
    43
  // mem_new_watch( 0x0C204818, 0x0C204830, WATCH_WRITE );
nkeynes@2
    44
  
nkeynes@9
    45
  emit( main_debug, EMIT_INFO, -1, "DreamOn! ready..." );
nkeynes@1
    46
nkeynes@1
    47
  gtk_main ();
nkeynes@1
    48
  return 0;
nkeynes@1
    49
}
nkeynes@1
    50
.