summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--opl/dbopl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/opl/dbopl.c b/opl/dbopl.c
index a4bd6fe5..159cae45 100644
--- a/opl/dbopl.c
+++ b/opl/dbopl.c
@@ -1239,15 +1239,14 @@ void Chip__WriteReg(Chip *self, Bit32u reg, Bit8u val ) {
}
}
-
-static Bit32u Chip__WriteAddr(Chip *self, Bit32u port, Bit8u val ) {
+Bit32u Chip__WriteAddr(Chip *self, Bit32u port, Bit8u val ) {
switch ( port & 3 ) {
case 0:
return val;
case 2:
if ( self->opl3Active || (val == 0x05) )
return 0x100 | val;
- else
+ else
return val;
}
return 0;