Search
lxdream.org :: lxdream/src/dreamcast.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/dreamcast.c
changeset 71:fcde57dbf968
prev35:21a4be098304
next89:939afb9f0f98
author nkeynes
date Mon Jan 16 11:22:41 2006 +0000 (18 years ago)
permissions -rw-r--r--
last change Remove debug lines
file annotate diff log raw
1.1 --- a/src/dreamcast.c Mon Dec 26 03:54:55 2005 +0000
1.2 +++ b/src/dreamcast.c Mon Jan 16 11:22:41 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;
.