Search
lxdream.org :: lxdream/src/aica/armcore.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/aica/armcore.c
changeset 642:c7383f21f122
prev586:2a3ba82cf243
next736:a02d1475ccfd
author nkeynes
date Tue Feb 26 01:06:59 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Quick hack to get s3mplay working again - not likely to be remotely correct
file annotate diff log raw
1.1 --- a/src/aica/armcore.c Tue Jan 15 20:50:23 2008 +0000
1.2 +++ b/src/aica/armcore.c Tue Feb 26 01:06:59 2008 +0000
1.3 @@ -113,15 +113,13 @@
1.4 }
1.5
1.6 k = MMIO_READ( AICA2, AICA_TCR );
1.7 - if( k & 0x40 ) {
1.8 - uint8_t val = MMIO_READ( AICA2, AICA_TIMER );
1.9 - val++;
1.10 - if( val == 0 ) {
1.11 - aica_event( AICA_EVENT_TIMER );
1.12 - MMIO_WRITE( AICA2, AICA_TCR, k & ~0x40 );
1.13 - }
1.14 - MMIO_WRITE( AICA2, AICA_TIMER, val );
1.15 + uint8_t val = MMIO_READ( AICA2, AICA_TIMER );
1.16 + val++;
1.17 + if( val == 0 ) {
1.18 + aica_event( AICA_EVENT_TIMER );
1.19 + // MMIO_WRITE( AICA2, AICA_TCR, k & ~0x40 );
1.20 }
1.21 + MMIO_WRITE( AICA2, AICA_TIMER, val );
1.22 if( !dreamcast_is_running() )
1.23 break;
1.24 }
.