Search
lxdream.org :: lxdream/src/dreamcast.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/dreamcast.c
changeset 11:0a82ef380c45
prev2:42349f6ea216
next15:5194dd0fdb60
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
view annotate diff log raw
     1 #include "dream.h"
     2 #include "mem.h"
     3 #include "aica/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     mem_create_ram_region( 0x0C000000, 16 MB, MEM_REGION_MAIN );
    13     mem_create_ram_region( 0x05000000, 8 MB, MEM_REGION_VIDEO );
    14     mem_create_ram_region( 0x00800000, 2 MB, MEM_REGION_AUDIO );
    15     mem_create_ram_region( 0x00703000, 8 KB, MEM_REGION_AUDIO_SCRATCH ); /*???*/
    16     mem_load_rom( "dcboot.rom", 0x00000000, 0x00200000, 0x89f2b1a1 );
    17     mem_load_rom( "dcflash.rom",0x00200000, 0x00020000, 0x357c3568 );
    19     sh4_init();
    20     asic_init();
    21     pvr2_init();
    22     aica_init();
    23     ide_reset();
    25 }
    27 void dreamcast_reset( void )
    28 {
    29     sh4_reset();
    30     mem_reset();
    31 //    pvr2_reset();
    32     aica_reset();
    33 }
    35 void dreamcast_stop( void )
    36 {
    37     sh4_stop();
    38 }
.