Search
lxdream.org :: lxdream/src/dreamcast.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/dreamcast.c
changeset 2:42349f6ea216
next11:0a82ef380c45
author nkeynes
date Thu Dec 08 13:38:00 2005 +0000 (18 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
view annotate diff log raw
     1 #include "dream.h"
     2 #include "mem.h"
     3 #include "aica.h"
     4 #include "asic.h"
     5 #include "ide.h"
     6 #include "dreamcast.h"
     7 /* Central switchboard for the system */
     9 void dreamcast_init( void )
    10 {
    11     mem_init();
    12     sh4_init();
    13     asic_init();
    14     pvr2_init();
    15     aica_init();
    16     ide_reset();
    18     mem_create_ram_region( 0x0C000000, 16 MB, MEM_REGION_MAIN );
    19     mem_create_ram_region( 0x05000000, 8 MB, MEM_REGION_VIDEO );
    20     mem_create_ram_region( 0x00800000, 2 MB, MEM_REGION_AUDIO );
    21     mem_create_ram_region( 0x00703000, 8 KB, MEM_REGION_AUDIO_SCRATCH ); /*???*/
    22     mem_load_rom( "dcboot.rom", 0x00000000, 0x00200000, 0x89f2b1a1 );
    23     mem_load_rom( "dcflash.rom",0x00200000, 0x00020000, 0x357c3568 );
    24 }
    26 void dreamcast_reset( void )
    27 {
    28     sh4_reset();
    29     mem_reset();
    30 //    pvr2_reset();
    31     aica_reset();
    32 }
    34 void dreamcast_stop( void )
    35 {
    36     sh4_stop();
    37 }
.