Search
lxdream.org :: lxdream :: r71:fcde57dbf968
lxdream 0.9.1
released Jun 29
Download Now
changeset71:fcde57dbf968
parent70:a5a5cef16deb
child72:ceb5985fa8d8
authornkeynes
dateTue Jan 10 13:59:35 2006 +0000 (14 years ago)
Add AICA-only configuration
src/dreamcast.c
1.1 --- a/src/dreamcast.c Tue Jan 10 13:59:19 2006 +0000
1.2 +++ b/src/dreamcast.c Tue Jan 10 13:59:35 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: dreamcast.c,v 1.12 2005-12-26 03:54:52 nkeynes Exp $
1.6 + * $Id: dreamcast.c,v 1.13 2006-01-10 13:59:35 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 @@ -83,6 +83,19 @@
1.11 maple_attach_device( controller2, 1, 0 );
1.12 }
1.13
1.14 +/**
1.15 + * Constructs a system configuration for the AICA in standalone mode,
1.16 + * ie sound chip only.
1.17 + */
1.18 +void dreamcast_configure_aica_only( )
1.19 +{
1.20 + dreamcast_register_module( &mem_module );
1.21 + mem_create_ram_region( 0x00800000, 2 MB, MEM_REGION_AUDIO );
1.22 + mem_create_ram_region( 0x00703000, 8 KB, MEM_REGION_AUDIO_SCRATCH );
1.23 + dreamcast_register_module( &aica_module );
1.24 + dreamcast_state = STATE_STOPPED;
1.25 +}
1.26 +
1.27 void dreamcast_register_module( dreamcast_module_t module )
1.28 {
1.29 modules[num_modules++] = module;
.