summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Scott Stone <tafoid@users.noreply.github.com>2009-08-29 23:17:17 +0000
committer Scott Stone <tafoid@users.noreply.github.com>2009-08-29 23:17:17 +0000
commita86f8758fca1f4a59e8608c9a1e2a9ab49b45f1c (patch)
treed9d6ad098172e578aa29e09478916e31acb50e71
parentf0ba9131ebdd6e7adefd73c5324b806ccd4c1c8a (diff)
Simulation corrections made in machine/kaneko16.c which allow brapboysj to be played to the end. [David Haywood]
-rw-r--r--src/mame/machine/kaneko16.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mame/machine/kaneko16.c b/src/mame/machine/kaneko16.c
index 96476215c95..cbd86660bf6 100644
--- a/src/mame/machine/kaneko16.c
+++ b/src/mame/machine/kaneko16.c
@@ -1430,11 +1430,14 @@ void calc3_mcu_run(running_machine *machine)
#if CALC3_VERBOSE_OUTPUT
printf("writing back address %08x to %08x %08x\n", calc3_writeaddress_current, commandaddr,write);
#endif
- kaneko16_mcu_ram[(write>>1)+0] =data_header[1];// (calc3_writeaddress_current>>16)&0xffff;
- kaneko16_mcu_ram[(write>>1)+1] =data_header[0];// (calc3_writeaddress_current&0xffff);
+
+ //memory_write_byte(space,write+0x200001, data_header[0]); // maybe not.. check first boss brapboysj
+ memory_write_byte(space,write+0x200001, data_header[1]);
+
write=commandaddr+(char)commandunk;
- kaneko16_mcu_ram[(write>>1)+0] = (calc3_writeaddress_current>>16)&0xffff;
- kaneko16_mcu_ram[(write>>1)+1] = (calc3_writeaddress_current&0xffff);
+ memory_write_word(space,write+0x200000, (calc3_writeaddress_current>>16)&0xffff);
+ memory_write_word(space,write+0x200002, (calc3_writeaddress_current&0xffff));
+
calc3_writeaddress_current += ((length+3)&(~1));
}