Skip to content

Commit

Permalink
improve bonze Adventure c-chip simulation to prevent crash
Browse files Browse the repository at this point in the history
This will fix some respawn issues which cause the game to crash after dying in the secret area on level 1 and at anytime on level 3
with thanks to demonkatze and MAMEFX
  • Loading branch information
arcadez2003 authored and amadvance committed Jul 21, 2022
1 parent ead41e6 commit 9d41949
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/machine/bonzeadv.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static const struct cchip_mapping level00[] =
{ 0x0a20, 0x0c80, 0x0000, 0x0100, 0x0a68, 0x0018, 0x0070, 0x0058 },
{ 0x0c80, 0x0e00, 0x0000, 0x0100, 0x0c40, 0x0018, 0x0070, 0x0040 },

{ 0x0380, 0x07c0, 0x0100, 0x0200, 0x0038, 0x0418, 0x0070, 0x00a8 },
{ 0x0380, 0x07c0, 0x0100, 0x0200, 0x0438, 0x0018, 0x0070, 0x00a8 },
{ 0xff }
};

Expand Down Expand Up @@ -101,17 +101,16 @@ static const struct cchip_mapping level02[] =
{ 0x06e0, 0x0840, 0x04f4, 0x05f8, 0x0670, 0x0518, 0x0078, 0x0048 },
{ 0x0840, 0x0a10, 0x04f4, 0x05f8, 0x07d8, 0x0518, 0x0070, 0x0060 },
{ 0x0a10, 0x0b80, 0x04f4, 0x05f8, 0x09e8, 0x0500, 0x0080, 0x0080 },
{ 0x0b80, 0x1090, 0x04f4, 0x05f8, 0x0b20, 0x0418, 0x0070, 0x0080 },


{ 0x0230, 0x03a0, 0x040c, 0x04f4, 0x02e8, 0x04b0, 0x0080, 0x0090 },
{ 0x03a0, 0x03b0, 0x040c, 0x04f4, 0x0278, 0x0318, 0x0078, 0x00a8 },
{ 0x0520, 0x08e0, 0x040c, 0x04f4, 0x0608, 0x0318, 0x0080, 0x0058 },
{ 0x08e0, 0x0a00, 0x040c, 0x04f4, 0x0878, 0x0318, 0x0078, 0x0098 },


{ 0x0840, 0x0b80, 0x040c, 0x04f4, 0x0908, 0x0418, 0x0078, 0x0030 },
{ 0x0b80, 0x1090, 0x040c, 0x04f4, 0x0b20, 0x0418, 0x0070, 0x0080 },
{ 0x0230, 0x03b0, 0x02f8, 0x040c, 0x0278, 0x0318, 0x0078, 0x00a8 },
{ 0x03b0, 0x0520, 0x02f8, 0x040c, 0x0390, 0x0318, 0x0070, 0x00b8 },
{ 0x0520, 0x08e0, 0x02f8, 0x040c, 0x0608, 0x0318, 0x0080, 0x0058 },
{ 0x08e0, 0x0a00, 0x02f8, 0x040c, 0x0878, 0x0318, 0x0078, 0x0098 }
{ 0x08e0, 0x0a00, 0x02f8, 0x040c, 0x0878, 0x0318, 0x0078, 0x0098 },
{ 0xff } /* MAMEFX */
};

static const struct cchip_mapping level03[] =
Expand Down

0 comments on commit 9d41949

Please sign in to comment.