summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/n64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/n64.cpp')
-rw-r--r--src/mame/drivers/n64.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/n64.cpp b/src/mame/drivers/n64.cpp
index 4f95800e6d7..103b1880864 100644
--- a/src/mame/drivers/n64.cpp
+++ b/src/mame/drivers/n64.cpp
@@ -40,6 +40,9 @@ public:
DECLARE_DEVICE_IMAGE_UNLOAD_MEMBER( n64dd );
void n64(machine_config &config);
void n64dd(machine_config &config);
+ void n64_map(address_map &map);
+ void n64dd_map(address_map &map);
+ void rsp_map(address_map &map);
};
READ32_MEMBER(n64_mess_state::dd_null_r)
@@ -47,7 +50,7 @@ READ32_MEMBER(n64_mess_state::dd_null_r)
return 0xffffffff;
}
-static ADDRESS_MAP_START( n64_map, AS_PROGRAM, 32, n64_mess_state )
+ADDRESS_MAP_START(n64_mess_state::n64_map)
AM_RANGE(0x00000000, 0x007fffff) AM_RAM AM_SHARE("rdram") // RDRAM
AM_RANGE(0x03f00000, 0x03f00027) AM_DEVREADWRITE("rcp", n64_periphs, rdram_reg_r, rdram_reg_w)
AM_RANGE(0x04000000, 0x04000fff) AM_RAM AM_SHARE("rsp_dmem") // RSP DMEM
@@ -67,7 +70,7 @@ static ADDRESS_MAP_START( n64_map, AS_PROGRAM, 32, n64_mess_state )
AM_RANGE(0x1fc007c0, 0x1fc007ff) AM_DEVREADWRITE("rcp", n64_periphs, pif_ram_r, pif_ram_w)
ADDRESS_MAP_END
-static ADDRESS_MAP_START( n64dd_map, AS_PROGRAM, 32, n64_mess_state )
+ADDRESS_MAP_START(n64_mess_state::n64dd_map)
AM_RANGE(0x00000000, 0x007fffff) AM_RAM AM_SHARE("rdram") // RDRAM
AM_RANGE(0x03f00000, 0x03f00027) AM_DEVREADWRITE("rcp", n64_periphs, rdram_reg_r, rdram_reg_w)
AM_RANGE(0x04000000, 0x04000fff) AM_RAM AM_SHARE("rsp_dmem") // RSP DMEM
@@ -88,7 +91,7 @@ static ADDRESS_MAP_START( n64dd_map, AS_PROGRAM, 32, n64_mess_state )
AM_RANGE(0x1fc007c0, 0x1fc007ff) AM_DEVREADWRITE("rcp", n64_periphs, pif_ram_r, pif_ram_w)
ADDRESS_MAP_END
-static ADDRESS_MAP_START( rsp_map, AS_PROGRAM, 32, n64_mess_state )
+ADDRESS_MAP_START(n64_mess_state::rsp_map)
AM_RANGE(0x00000000, 0x00000fff) AM_RAM AM_SHARE("rsp_dmem")
AM_RANGE(0x00001000, 0x00001fff) AM_RAM AM_SHARE("rsp_imem")
AM_RANGE(0x04000000, 0x04000fff) AM_RAM AM_SHARE("rsp_dmem")