Search
lxdream.org :: lxdream/src/sh4/scif.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/scif.c
changeset 929:fd8cb0c82f5f
prev828:b42865f00fb5
next975:007bf7eb944f
author nkeynes
date Sat Dec 20 03:01:40 2008 +0000 (12 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change First pass experiment using cached decoding.
file annotate diff log raw
1.1 --- a/src/sh4/scif.c Mon Aug 25 09:15:42 2008 +0000
1.2 +++ b/src/sh4/scif.c Sat Dec 20 03:01:40 2008 +0000
1.3 @@ -455,8 +455,9 @@
1.4 }
1.5 }
1.6
1.7 -int32_t mmio_region_SCIF_read( uint32_t reg )
1.8 +MMIO_REGION_READ_FN( SCIF, reg )
1.9 {
1.10 + reg &= 0xFFF;
1.11 switch( reg ) {
1.12 case SCFRDR2: /* Receive data */
1.13 return SCIF_recvq_dequeue(FALSE);
1.14 @@ -465,9 +466,10 @@
1.15 }
1.16 }
1.17
1.18 -void mmio_region_SCIF_write( uint32_t reg, uint32_t val )
1.19 +MMIO_REGION_WRITE_FN( SCIF, reg, val )
1.20 {
1.21 uint32_t tmp;
1.22 + reg &= 0xFFF;
1.23 switch( reg ) {
1.24 case SCSMR2: /* Serial mode register */
1.25 /* Bit 6 => 0 = 8-bit, 1 = 7-bit
.