summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cninja.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cninja.cpp')
-rw-r--r--src/mame/drivers/cninja.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mame/drivers/cninja.cpp b/src/mame/drivers/cninja.cpp
index 3b668c62fd0..4449f489f2b 100644
--- a/src/mame/drivers/cninja.cpp
+++ b/src/mame/drivers/cninja.cpp
@@ -145,8 +145,8 @@ READ16_MEMBER( cninja_state::cninja_protection_region_0_104_r )
{
int real_address = 0 + (offset *2);
int deco146_addr = BITSWAP32(real_address, /* NC */31,30,29,28,27,26,25,24,23,22,21,20,19,18, 13,12,11,/**/ 17,16,15,14, 10,9,8, 7,6,5,4, 3,2,1,0) & 0x7fff;
- UINT8 cs = 0;
- UINT16 data = m_deco104->read_data( deco146_addr, mem_mask, cs );
+ uint8_t cs = 0;
+ uint16_t data = m_deco104->read_data( deco146_addr, mem_mask, cs );
return data;
}
@@ -154,7 +154,7 @@ WRITE16_MEMBER( cninja_state::cninja_protection_region_0_104_w )
{
int real_address = 0 + (offset *2);
int deco146_addr = BITSWAP32(real_address, /* NC */31,30,29,28,27,26,25,24,23,22,21,20,19,18, 13,12,11,/**/ 17,16,15,14, 10,9,8, 7,6,5,4, 3,2,1,0) & 0x7fff;
- UINT8 cs = 0;
+ uint8_t cs = 0;
m_deco104->write_data( space, deco146_addr, data, mem_mask, cs );
}
@@ -227,8 +227,8 @@ READ16_MEMBER( cninja_state::sshangha_protection_region_8_146_r )
{
int real_address = 0x1a0000 + (offset *2);
int deco146_addr = BITSWAP32(real_address, /* NC */31,30,29,28,27,26,25,24,23,22,21,20,19,18, 13,12,11,/**/ 17,16,15,14, 10,9,8, 7,6,5,4, 3,2,1,0) & 0x7fff;
- UINT8 cs = 0;
- UINT16 data = m_deco146->read_data( deco146_addr, mem_mask, cs );
+ uint8_t cs = 0;
+ uint16_t data = m_deco146->read_data( deco146_addr, mem_mask, cs );
return data;
}
@@ -236,18 +236,18 @@ WRITE16_MEMBER( cninja_state::sshangha_protection_region_8_146_w )
{
int real_address = 0x1a0000 + (offset *2);
int deco146_addr = BITSWAP32(real_address, /* NC */31,30,29,28,27,26,25,24,23,22,21,20,19,18, 13,12,11,/**/ 17,16,15,14, 10,9,8, 7,6,5,4, 3,2,1,0) & 0x7fff;
- UINT8 cs = 0;
+ uint8_t cs = 0;
m_deco146->write_data( space, deco146_addr, data, mem_mask, cs );
}
READ16_MEMBER( cninja_state::sshangha_protection_region_6_146_r )
{
-// UINT16 realdat = deco16_60_prot_r(space,offset&0x3ff,mem_mask);
+// uint16_t realdat = deco16_60_prot_r(space,offset&0x3ff,mem_mask);
int real_address = 0x198000 + (offset *2);
int deco146_addr = BITSWAP32(real_address, /* NC */31,30,29,28,27,26,25,24,23,22,21,20,19,18, 13,12,11,/**/ 17,16,15,14, 10,9,8, 7,6,5,4, 3,2,1,0) & 0x7fff;
- UINT8 cs = 0;
- UINT16 data = m_deco146->read_data( deco146_addr, mem_mask, cs );
+ uint8_t cs = 0;
+ uint16_t data = m_deco146->read_data( deco146_addr, mem_mask, cs );
// if ((realdat & mem_mask) != (data & mem_mask))
@@ -263,7 +263,7 @@ WRITE16_MEMBER( cninja_state::sshangha_protection_region_6_146_w )
int real_address = 0x198000 + (offset *2);
int deco146_addr = BITSWAP32(real_address, /* NC */31,30,29,28,27,26,25,24,23,22,21,20,19,18, 13,12,11,/**/ 17,16,15,14, 10,9,8, 7,6,5,4, 3,2,1,0) & 0x7fff;
- UINT8 cs = 0;
+ uint8_t cs = 0;
m_deco146->write_data( space, deco146_addr, data, mem_mask, cs );
}
@@ -333,8 +333,8 @@ READ16_MEMBER( cninja_state::mutantf_protection_region_0_146_r )
{
int real_address = 0 + (offset *2);
int deco146_addr = BITSWAP32(real_address, /* NC */31,30,29,28,27,26,25,24,23,22,21,20,19,18, 13,12,11,/**/ 17,16,15,14, 10,9,8, 7,6,5,4, 3,2,1,0) & 0x7fff;
- UINT8 cs = 0;
- UINT16 data = m_deco146->read_data( deco146_addr, mem_mask, cs );
+ uint8_t cs = 0;
+ uint16_t data = m_deco146->read_data( deco146_addr, mem_mask, cs );
return data;
}
@@ -342,7 +342,7 @@ WRITE16_MEMBER( cninja_state::mutantf_protection_region_0_146_w )
{
int real_address = 0 + (offset *2);
int deco146_addr = BITSWAP32(real_address, /* NC */31,30,29,28,27,26,25,24,23,22,21,20,19,18, 13,12,11,/**/ 17,16,15,14, 10,9,8, 7,6,5,4, 3,2,1,0) & 0x7fff;
- UINT8 cs = 0;
+ uint8_t cs = 0;
m_deco146->write_data( space, deco146_addr, data, mem_mask, cs );
}
@@ -2310,8 +2310,8 @@ DRIVER_INIT_MEMBER(cninja_state,cninjabl2)
DRIVER_INIT_MEMBER(cninja_state,mutantf)
{
- const UINT8 *src = memregion("gfx2")->base();
- UINT8 *dst = memregion("gfx1")->base();
+ const uint8_t *src = memregion("gfx2")->base();
+ uint8_t *dst = memregion("gfx1")->base();
/* The 16x16 graphic has some 8x8 chars in it - decode them in GFX1 */
memcpy(dst + 0x50000, dst + 0x10000, 0x10000);