Search
lxdream.org :: lxdream/src/dreamcast.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/dreamcast.c
changeset 146:f91fa34ab219
prev144:7f0714e89aaa
next167:71c0cc416a64
author nkeynes
date Sat May 20 02:38:58 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Add repeating memory mode
Load flash as ram rather than rom
file annotate diff log raw
1.1 --- a/src/dreamcast.c Mon May 15 08:28:52 2006 +0000
1.2 +++ b/src/dreamcast.c Sat May 20 02:38:58 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: dreamcast.c,v 1.15 2006-05-15 08:28:48 nkeynes Exp $
1.6 + * $Id: dreamcast.c,v 1.16 2006-05-20 02:38:58 nkeynes Exp $
1.7 * Central switchboard for the system. This pulls all the individual modules
1.8 * together into some kind of coherent structure. This is also where you'd
1.9 * add Naomi support, if I ever get a board to play with...
1.10 @@ -62,12 +62,14 @@
1.11 dreamcast_register_module( &mem_module );
1.12
1.13 /* Setup standard memory map */
1.14 - mem_create_ram_region( 0x0C000000, 16 MB, MEM_REGION_MAIN );
1.15 + mem_create_repeating_ram_region( 0x0C000000, 16 MB, MEM_REGION_MAIN, 0x01000000, 0x0F000000 );
1.16 mem_create_ram_region( 0x00800000, 2 MB, MEM_REGION_AUDIO );
1.17 mem_create_ram_region( 0x00703000, 8 KB, MEM_REGION_AUDIO_SCRATCH );
1.18 mem_create_ram_region( 0x05000000, 8 MB, MEM_REGION_VIDEO );
1.19 mem_load_rom( "dcboot.rom", 0x00000000, 0x00200000, 0x89f2b1a1 );
1.20 - mem_load_rom( "dcflash.rom",0x00200000, 0x00020000, 0x357c3568 );
1.21 + mem_create_ram_region( 0x00200000, 0x00020000, MEM_REGION_FLASH );
1.22 + mem_load_block( "../bios/dcflash.rom", 0x00200000, 0x00020000 );
1.23 + // mem_load_rom( "dcflash.rom",0x00200000, 0x00020000, 0x357c3568 );
1.24
1.25 /* Load in the rest of the core modules */
1.26 dreamcast_register_module( &sh4_module );
.