# HG changeset patch # User nkeynes # Date 1136213412 0 # Node ID eb7a73c9bcaeb41c05cf28b64bcef41fe1056abc # Parent d09f85b2a58343bdf267ed64a8ba446055d912db AICA IRQ event work in progress --- a/src/aica/aica.c Mon Jan 02 14:49:51 2006 +0000 +++ b/src/aica/aica.c Mon Jan 02 14:50:12 2006 +0000 @@ -1,5 +1,5 @@ /** - * $Id: aica.c,v 1.9 2005-12-26 11:52:56 nkeynes Exp $ + * $Id: aica.c,v 1.10 2006-01-02 14:50:12 nkeynes Exp $ * * This is the core sound system (ie the bit which does the actual work) * @@ -21,6 +21,7 @@ #include "dream.h" #include "mem.h" #include "aica.h" +#include "armcore.h" #define MMIO_IMPL #include "aica.h" @@ -90,6 +91,47 @@ return arm_load_state( f ); } +int aica_event_pending = 0; +int aica_clear_count = 0; + +/* Note: This is probably not necessarily technically correct but it should + * work in the meantime. + */ + +void aica_event( int event ) +{ + if( aica_event_pending == 0 ) + armr.int_pending |= CPSR_F; + aica_event_pending |= (1<