summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/snesb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/snesb.cpp')
-rw-r--r--src/mame/drivers/snesb.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/mame/drivers/snesb.cpp b/src/mame/drivers/snesb.cpp
index 91e82023b62..acdd7226776 100644
--- a/src/mame/drivers/snesb.cpp
+++ b/src/mame/drivers/snesb.cpp
@@ -155,9 +155,9 @@ public:
snesb_state(const machine_config &mconfig, device_type type, const char *tag)
: snes_state(mconfig, type, tag) { }
- std::unique_ptr<INT8[]> m_shared_ram;
- UINT8 m_cnt;
- std::unique_ptr<INT8[]> m_shared_ram2;
+ std::unique_ptr<int8_t[]> m_shared_ram;
+ uint8_t m_cnt;
+ std::unique_ptr<int8_t[]> m_shared_ram2;
DECLARE_READ8_MEMBER(sharedram_r);
DECLARE_WRITE8_MEMBER(sharedram_w);
DECLARE_READ8_MEMBER(sb2b_75bd37_r);
@@ -736,15 +736,15 @@ MACHINE_CONFIG_END
DRIVER_INIT_MEMBER(snesb_state,kinstb)
{
- INT32 i;
- UINT8 *rom = memregion("user3")->base();
+ int32_t i;
+ uint8_t *rom = memregion("user3")->base();
for (i = 0; i < 0x400000; i++)
{
rom[i] = BITSWAP8(rom[i], 5, 0, 6, 1, 7, 4, 3, 2);
}
- m_shared_ram = std::make_unique<INT8[]>(0x100);
+ m_shared_ram = std::make_unique<int8_t[]>(0x100);
m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0x781000, 0x7810ff, read8_delegate(FUNC(snesb_state::sharedram_r),this), write8_delegate(FUNC(snesb_state::sharedram_w),this));
/* extra inputs */
@@ -762,8 +762,8 @@ DRIVER_INIT_MEMBER(snesb_state,mk3snes)
DRIVER_INIT_MEMBER(snesb_state,ffight2b)
{
- INT32 i;
- UINT8 *rom = memregion("user3")->base();
+ int32_t i;
+ uint8_t *rom = memregion("user3")->base();
for(i = 0; i < 0x200000; i++)
{
@@ -805,8 +805,8 @@ DRIVER_INIT_MEMBER(snesb_state,ffight2b)
DRIVER_INIT_MEMBER(snesb_state,iron)
{
- INT32 i;
- UINT8 *rom = memregion("user3")->base();
+ int32_t i;
+ uint8_t *rom = memregion("user3")->base();
for (i = 0; i < 0x140000; i++)
{
@@ -830,8 +830,8 @@ DRIVER_INIT_MEMBER(snesb_state,iron)
DRIVER_INIT_MEMBER(snesb_state,denseib)
{
- UINT8 *rom = memregion("user3")->base();
- INT32 i;
+ uint8_t *rom = memregion("user3")->base();
+ int32_t i;
for (i = 0; i < 0x200000; i++)
{
@@ -859,9 +859,9 @@ DRIVER_INIT_MEMBER(snesb_state,denseib)
DRIVER_INIT_CALL(snes_hirom);
}
-static const UINT8 data_substitution0[] = {0x88,0x02,0x2a,0x08,0x28,0xaa,0x8a,0x0a,0xa2,0x00,0x80,0xa0,0x22,0xa8,0x82,0x20,};
-static const UINT8 data_substitution1[] = {0x44,0x01,0x51,0x40,0x50,0x55,0x45,0x41,0x15,0x00,0x04,0x14,0x11,0x54,0x05,0x10,};
-static const UINT8 address_substitution_low[] =
+static const uint8_t data_substitution0[] = {0x88,0x02,0x2a,0x08,0x28,0xaa,0x8a,0x0a,0xa2,0x00,0x80,0xa0,0x22,0xa8,0x82,0x20,};
+static const uint8_t data_substitution1[] = {0x44,0x01,0x51,0x40,0x50,0x55,0x45,0x41,0x15,0x00,0x04,0x14,0x11,0x54,0x05,0x10,};
+static const uint8_t address_substitution_low[] =
{
0x32,0x35,0x3a,0x28,0x2a,0x0c,0x36,0x38,0x29,0x39,0x04,0x2c,0x21,0x23,0x3d,0x2d,
0x3c,0x02,0x17,0x31,0x00,0x2e,0x0a,0x2f,0x25,0x26,0x27,0x30,0x33,0x01,0x18,0x19,
@@ -869,7 +869,7 @@ static const UINT8 address_substitution_low[] =
0x08,0x3b,0x09,0x14,0x15,0x1d,0x0b,0x0f,0x1e,0x1f,0x2b,0x1a,0x03,0x20,0x3f,0x3e,
};
-static const UINT8 address_substitution_high[] =
+static const uint8_t address_substitution_high[] =
{
0x1b,0x15,0x08,0x1f,0x06,0x02,0x13,0x0a,0x1d,0x04,0x0e,0x00,0x17,0x0c,0x11,0x19,
0x16,0x0d,0x1c,0x07,0x10,0x03,0x1a,0x0b,0x12,0x05,0x0f,0x18,0x1e,0x01,0x14,0x09,
@@ -879,8 +879,8 @@ static const UINT8 address_substitution_high[] =
DRIVER_INIT_MEMBER(snesb_state,sblast2b)
{
int i, cipherText, plainText, newAddress;
- UINT8 *src = memregion("user7")->base();
- UINT8 *dst = memregion("user3")->base();
+ uint8_t *src = memregion("user7")->base();
+ uint8_t *dst = memregion("user3")->base();
for (i =0; i < 0x80000 * 3; i++)
{
@@ -929,28 +929,28 @@ DRIVER_INIT_MEMBER(snesb_state,sblast2b)
DRIVER_INIT_MEMBER(snesb_state,endless)
{
int i;
- UINT8 *src = memregion("user7")->base();
- UINT8 *dst = memregion("user3")->base();
+ uint8_t *src = memregion("user7")->base();
+ uint8_t *dst = memregion("user3")->base();
- static const UINT8 address_tab_high[0x40] = {
+ static const uint8_t address_tab_high[0x40] = {
0x3b, 0x1d, 0x35, 0x15, 0x39, 0x19, 0x34, 0x13, 0x32, 0x1f, 0x37, 0x17, 0x3d, 0x11, 0x3a, 0x1a,
0x14, 0x3e, 0x18, 0x36, 0x1e, 0x31, 0x10, 0x3c, 0x1b, 0x3f, 0x16, 0x30, 0x12, 0x38, 0x1c, 0x33,
0x2b, 0x0d, 0x25, 0x05, 0x29, 0x09, 0x24, 0x03, 0x22, 0x0f, 0x27, 0x07, 0x2d, 0x01, 0x2a, 0x0a,
0x04, 0x2e, 0x08, 0x26, 0x0e, 0x21, 0x00, 0x2c, 0x0b, 0x2f, 0x06, 0x20, 0x02, 0x28, 0x0c, 0x23
};
- static const UINT8 address_tab_low[0x40] = {
+ static const uint8_t address_tab_low[0x40] = {
0x14, 0x1d, 0x11, 0x3c, 0x0a, 0x29, 0x2d, 0x2e, 0x30, 0x32, 0x16, 0x36, 0x05, 0x25, 0x26, 0x37,
0x20, 0x21, 0x27, 0x28, 0x33, 0x34, 0x23, 0x12, 0x1e, 0x1f, 0x3b, 0x24, 0x2c, 0x35, 0x38, 0x39,
0x3d, 0x0c, 0x2a, 0x0d, 0x22, 0x18, 0x19, 0x1a, 0x03, 0x08, 0x04, 0x3a, 0x0b, 0x0f, 0x15, 0x17,
0x1b, 0x13, 0x00, 0x1c, 0x2b, 0x01, 0x06, 0x2f, 0x07, 0x09, 0x02, 0x31, 0x10, 0x0e, 0x3f, 0x3e
};
- static const UINT8 data_high[16] = {
+ static const uint8_t data_high[16] = {
0x88, 0x38, 0x10, 0x98, 0x90, 0x00, 0x08, 0x18, 0x20, 0xb8, 0xa8, 0xa0, 0x30, 0x80, 0x28, 0xb0
};
- static const UINT8 data_low[16] = {
+ static const uint8_t data_low[16] = {
0x41, 0x46, 0x02, 0x43, 0x03, 0x00, 0x40, 0x42, 0x04, 0x47, 0x45, 0x05, 0x06, 0x01, 0x44, 0x07
};
@@ -987,8 +987,8 @@ DRIVER_INIT_MEMBER(snesb_state,endless)
/* work around missing content */
m_maincpu->space(AS_PROGRAM).install_read_handler(0x800b, 0x800c, read8_delegate(FUNC(snesb_state::endless_800b_r),this));
- m_shared_ram = std::make_unique<INT8[]>(0x22);
- m_shared_ram2 = std::make_unique<INT8[]>(0x22);
+ m_shared_ram = std::make_unique<int8_t[]>(0x22);
+ m_shared_ram2 = std::make_unique<int8_t[]>(0x22);
m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0x781000, 0x781021, read8_delegate(FUNC(snesb_state::sharedram_r),this), write8_delegate(FUNC(snesb_state::sharedram_w),this));
m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0x781200, 0x781221, read8_delegate(FUNC(snesb_state::sharedram2_r),this), write8_delegate(FUNC(snesb_state::sharedram2_w),this));