revision 642:c7383f21f122
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 642:c7383f21f122 |
parent | 641:afb9a42c61c6 |
child | 643:653b0a70f173 |
author | nkeynes |
date | Tue Feb 26 01:06:59 2008 +0000 (16 years ago) |
Quick hack to get s3mplay working again - not likely to be remotely correct
src/aica/aica.c | view | annotate | diff | log | ||
src/aica/armcore.c | view | annotate | diff | log |
1.1 --- a/src/aica/aica.c Mon Feb 25 23:40:10 2008 +00001.2 +++ b/src/aica/aica.c Tue Feb 26 01:06:59 2008 +00001.3 @@ -82,7 +82,7 @@1.4 aica_state.nanosecs_done = 0;1.5 aica_state.event_pending = 0;1.6 aica_state.clear_count = 0;1.7 - aica_event(2); /* Pre-deliver a timer interrupt */1.8 +// aica_event(2); /* Pre-deliver a timer interrupt */1.9 }1.11 void aica_start( void )
2.1 --- a/src/aica/armcore.c Mon Feb 25 23:40:10 2008 +00002.2 +++ b/src/aica/armcore.c Tue Feb 26 01:06:59 2008 +00002.3 @@ -113,15 +113,13 @@2.4 }2.6 k = MMIO_READ( AICA2, AICA_TCR );2.7 - if( k & 0x40 ) {2.8 - uint8_t val = MMIO_READ( AICA2, AICA_TIMER );2.9 - val++;2.10 - if( val == 0 ) {2.11 - aica_event( AICA_EVENT_TIMER );2.12 - MMIO_WRITE( AICA2, AICA_TCR, k & ~0x40 );2.13 - }2.14 - MMIO_WRITE( AICA2, AICA_TIMER, val );2.15 + uint8_t val = MMIO_READ( AICA2, AICA_TIMER );2.16 + val++;2.17 + if( val == 0 ) {2.18 + aica_event( AICA_EVENT_TIMER );2.19 + // MMIO_WRITE( AICA2, AICA_TCR, k & ~0x40 );2.20 }2.21 + MMIO_WRITE( AICA2, AICA_TIMER, val );2.22 if( !dreamcast_is_running() )2.23 break;2.24 }
.