summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Pierpaolo Prazzoli <pierpaol@mamedev.org>2008-01-03 11:30:13 +0000
committer Pierpaolo Prazzoli <pierpaol@mamedev.org>2008-01-03 11:30:13 +0000
commita893708c3dda8bdfb21eb818c45dfcc4ef91ad19 (patch)
tree725b3e574f3b3c3a1bfa23fe1214ffdcff9d93e1 /src
parentb3fb53626459554998b46881bb8a3900db91980e (diff)
Fixed onna34ro mcu simulation properly
Diffstat (limited to 'src')
-rw-r--r--src/mame/machine/flstory.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/machine/flstory.c b/src/mame/machine/flstory.c
index 3adfd2c9bf3..84da3a61aaa 100644
--- a/src/mame/machine/flstory.c
+++ b/src/mame/machine/flstory.c
@@ -153,13 +153,16 @@ WRITE8_HANDLER( onna34ro_mcu_w )
from_mcu = 0x6a;
break;
case 0x40:
- from_mcu = onna34ro_workram[score_adr]; /* score l*/
+ if(score_adr >= 0xe000 && score_adr < 0xe800)
+ from_mcu = onna34ro_workram[score_adr - 0xe000]; /* score l*/
break;
case 0x41:
- from_mcu = onna34ro_workram[score_adr+1]; /* score m*/
+ if(score_adr >= 0xe000 && score_adr < 0xe800)
+ from_mcu = onna34ro_workram[(score_adr+1) - 0xe000]; /* score m*/
break;
case 0x42:
- from_mcu = onna34ro_workram[score_adr+2] & 0x0f; /* score h*/
+ if(score_adr >= 0xe000 && score_adr < 0xe800)
+ from_mcu = onna34ro_workram[(score_adr+2) - 0xe000] & 0x0f; /* score h*/
break;
default:
from_mcu = 0x80;