Search
lxdream.org :: lxdream/src/dreamcast.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/dreamcast.c
changeset 2:42349f6ea216
next11:0a82ef380c45
author nkeynes
date Sat Aug 21 06:15:49 2004 +0000 (16 years ago)
permissions -rw-r--r--
last change Commit changes into cvs
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/dreamcast.c Sat Aug 21 06:15:49 2004 +0000
1.3 @@ -0,0 +1,37 @@
1.4 +#include "dream.h"
1.5 +#include "mem.h"
1.6 +#include "aica.h"
1.7 +#include "asic.h"
1.8 +#include "ide.h"
1.9 +#include "dreamcast.h"
1.10 +/* Central switchboard for the system */
1.11 +
1.12 +void dreamcast_init( void )
1.13 +{
1.14 + mem_init();
1.15 + sh4_init();
1.16 + asic_init();
1.17 + pvr2_init();
1.18 + aica_init();
1.19 + ide_reset();
1.20 +
1.21 + mem_create_ram_region( 0x0C000000, 16 MB, MEM_REGION_MAIN );
1.22 + mem_create_ram_region( 0x05000000, 8 MB, MEM_REGION_VIDEO );
1.23 + mem_create_ram_region( 0x00800000, 2 MB, MEM_REGION_AUDIO );
1.24 + mem_create_ram_region( 0x00703000, 8 KB, MEM_REGION_AUDIO_SCRATCH ); /*???*/
1.25 + mem_load_rom( "dcboot.rom", 0x00000000, 0x00200000, 0x89f2b1a1 );
1.26 + mem_load_rom( "dcflash.rom",0x00200000, 0x00020000, 0x357c3568 );
1.27 +}
1.28 +
1.29 +void dreamcast_reset( void )
1.30 +{
1.31 + sh4_reset();
1.32 + mem_reset();
1.33 +// pvr2_reset();
1.34 + aica_reset();
1.35 +}
1.36 +
1.37 +void dreamcast_stop( void )
1.38 +{
1.39 + sh4_stop();
1.40 +}
.