summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/dietgo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/dietgo.c')
-rw-r--r--src/mame/drivers/dietgo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/dietgo.c b/src/mame/drivers/dietgo.c
index 3ef948d75d8..138222086ac 100644
--- a/src/mame/drivers/dietgo.c
+++ b/src/mame/drivers/dietgo.c
@@ -37,7 +37,7 @@ READ16_MEMBER( dietgo_state::dietgo_protection_region_0_104_r )
}
WRITE16_MEMBER( dietgo_state::dietgo_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;
@@ -54,7 +54,7 @@ static ADDRESS_MAP_START( dietgo_map, AS_PROGRAM, 16, dietgo_state )
AM_RANGE(0x222000, 0x2227ff) AM_WRITEONLY AM_SHARE("pf2_rowscroll")
AM_RANGE(0x280000, 0x2807ff) AM_RAM AM_SHARE("spriteram")
AM_RANGE(0x300000, 0x300bff) AM_RAM_DEVWRITE("deco_common", decocomn_device, nonbuffered_palette_w) AM_SHARE("paletteram")
-// AM_RANGE(0x340000, 0x3407ff) AM_READWRITE_LEGACY(dietgo_104_prot_r, dietgo_104_prot_w)
+// AM_RANGE(0x340000, 0x3407ff) AM_READWRITE_LEGACY(dietgo_104_prot_r, dietgo_104_prot_w)
AM_RANGE(0x340000, 0x343fff) AM_READWRITE(dietgo_protection_region_0_104_r,dietgo_protection_region_0_104_w)AM_SHARE("prot16ram") /* Protection device */
AM_RANGE(0x380000, 0x38ffff) AM_RAM // mainram
ADDRESS_MAP_END