diff options
author | andreasnaive <andreasnaive@gmail.com> | 2015-08-01 18:03:18 +0200 |
---|---|---|
committer | andreasnaive <andreasnaive@gmail.com> | 2015-08-01 18:03:18 +0200 |
commit | 73568bd58fb0b13e49645d88a16b195bdbf3839f (patch) | |
tree | 31c4416dc942e61a86aa8ac824a9ada748154ff1 | |
parent | e5628609f49e23552bee00d7a98a4ca0aa0a4fb6 (diff) |
ooops (nw)
-rw-r--r-- | src/mame/drivers/namcos10.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mame/drivers/namcos10.c b/src/mame/drivers/namcos10.c index adbc50d5029..1cc4dce83f7 100644 --- a/src/mame/drivers/namcos10.c +++ b/src/mame/drivers/namcos10.c @@ -554,8 +554,10 @@ DRIVER_INIT_MEMBER(namcos10_state,knpuzzle) DRIVER_INIT_MEMBER(namcos10_state,startrgn) { + int regSize = machine().root_device().memregion("user2")->bytes(); decrypt_bios(machine(), "user2", 0x008400, 0x028000, 0x6, 0x5, 0x4, 0x7, 0x1, 0x3, 0x0, 0x2, 0xc, 0xd, 0xe, 0xf, 0x8, 0xb, 0xa, 0x9); decrypt_bios(machine(), "user2", 0x0b4000, 0xfdc000, 0x6, 0x5, 0x4, 0x7, 0x1, 0x3, 0x0, 0x2, 0xc, 0xd, 0xe, 0xf, 0x8, 0xb, 0xa, 0x9); + decrypt_bios(machine(), "user2", 0x1000000, regSize, 0x6, 0x7, 0x4, 0x5, 0x0, 0x1, 0x3, 0x2, 0xd, 0xc, 0xf, 0xe, 0x8, 0x9, 0xb, 0xa); memn_driver_init(); } @@ -596,8 +598,10 @@ DRIVER_INIT_MEMBER(namcos10_state,nflclsfb) DRIVER_INIT_MEMBER(namcos10_state,konotako) { + int regSize = machine().root_device().memregion("user2")->bytes(); decrypt_bios(machine(), "user2", 0x008400, 0x028000, 0x6, 0x7, 0x4, 0x5, 0x0, 0x1, 0x3, 0x2, 0xd, 0xc, 0xf, 0xe, 0x8, 0x9, 0xb, 0xa); decrypt_bios(machine(), "user2", 0x0b4000, 0xfdc000, 0x6, 0x7, 0x4, 0x5, 0x0, 0x1, 0x3, 0x2, 0xd, 0xc, 0xf, 0xe, 0x8, 0x9, 0xb, 0xa); + decrypt_bios(machine(), "user2", 0x1000000, regSize, 0x6, 0x7, 0x4, 0x5, 0x0, 0x1, 0x3, 0x2, 0xd, 0xc, 0xf, 0xe, 0x8, 0x9, 0xb, 0xa); memn_driver_init(); } |