Search
lxdream.org :: lxdream/src/dreamcast.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/dreamcast.c
changeset 11:0a82ef380c45
prev2:42349f6ea216
next15:5194dd0fdb60
author nkeynes
date Mon Dec 12 10:37:41 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Use cpu-specific is_valid_page function
file annotate diff log raw
1.1 --- a/src/dreamcast.c Sat Aug 21 06:15:49 2004 +0000
1.2 +++ b/src/dreamcast.c Mon Dec 12 10:37:41 2005 +0000
1.3 @@ -1,6 +1,6 @@
1.4 #include "dream.h"
1.5 #include "mem.h"
1.6 -#include "aica.h"
1.7 +#include "aica/aica.h"
1.8 #include "asic.h"
1.9 #include "ide.h"
1.10 #include "dreamcast.h"
1.11 @@ -9,18 +9,19 @@
1.12 void dreamcast_init( void )
1.13 {
1.14 mem_init();
1.15 + mem_create_ram_region( 0x0C000000, 16 MB, MEM_REGION_MAIN );
1.16 + mem_create_ram_region( 0x05000000, 8 MB, MEM_REGION_VIDEO );
1.17 + mem_create_ram_region( 0x00800000, 2 MB, MEM_REGION_AUDIO );
1.18 + mem_create_ram_region( 0x00703000, 8 KB, MEM_REGION_AUDIO_SCRATCH ); /*???*/
1.19 + mem_load_rom( "dcboot.rom", 0x00000000, 0x00200000, 0x89f2b1a1 );
1.20 + mem_load_rom( "dcflash.rom",0x00200000, 0x00020000, 0x357c3568 );
1.21 +
1.22 sh4_init();
1.23 asic_init();
1.24 pvr2_init();
1.25 aica_init();
1.26 ide_reset();
1.27
1.28 - mem_create_ram_region( 0x0C000000, 16 MB, MEM_REGION_MAIN );
1.29 - mem_create_ram_region( 0x05000000, 8 MB, MEM_REGION_VIDEO );
1.30 - mem_create_ram_region( 0x00800000, 2 MB, MEM_REGION_AUDIO );
1.31 - mem_create_ram_region( 0x00703000, 8 KB, MEM_REGION_AUDIO_SCRATCH ); /*???*/
1.32 - mem_load_rom( "dcboot.rom", 0x00000000, 0x00200000, 0x89f2b1a1 );
1.33 - mem_load_rom( "dcflash.rom",0x00200000, 0x00020000, 0x357c3568 );
1.34 }
1.35
1.36 void dreamcast_reset( void )
.