summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/gammagic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/gammagic.cpp')
-rw-r--r--src/mame/drivers/gammagic.cpp44
1 files changed, 23 insertions, 21 deletions
diff --git a/src/mame/drivers/gammagic.cpp b/src/mame/drivers/gammagic.cpp
index 85167b30d57..68e30455f00 100644
--- a/src/mame/drivers/gammagic.cpp
+++ b/src/mame/drivers/gammagic.cpp
@@ -51,27 +51,29 @@ public:
};
// Memory is mostly handled by the chipset
-ADDRESS_MAP_START(gammagic_state::gammagic_map)
- AM_RANGE(0x00000000, 0x0009ffff) AM_RAM
- AM_RANGE(0x000a0000, 0x000bffff) AM_DEVREADWRITE8("vga", vga_device, mem_r, mem_w, 0xffffffff)
- AM_RANGE(0x000e0000, 0x000fffff) AM_ROM AM_REGION("user", 0x20000)/* System BIOS */
- AM_RANGE(0x00100000, 0x07ffffff) AM_RAM
- AM_RANGE(0x08000000, 0xfffdffff) AM_NOP
- AM_RANGE(0xfffe0000, 0xffffffff) AM_ROM AM_REGION("user", 0x20000)/* System BIOS */
-ADDRESS_MAP_END
-
-ADDRESS_MAP_START(gammagic_state::gammagic_io)
- AM_IMPORT_FROM(pcat32_io_common)
- AM_RANGE(0x00e8, 0x00ef) AM_NOP
- AM_RANGE(0x00f0, 0x01ef) AM_NOP
- AM_RANGE(0x01f8, 0x03af) AM_NOP
- AM_RANGE(0x03b0, 0x03bf) AM_DEVREADWRITE8("vga", vga_device, port_03b0_r, port_03b0_w, 0xffffffff)
- AM_RANGE(0x03c0, 0x03cf) AM_DEVREADWRITE8("vga", vga_device, port_03c0_r, port_03c0_w, 0xffffffff)
- AM_RANGE(0x03d0, 0x03df) AM_DEVREADWRITE8("vga", vga_device, port_03d0_r, port_03d0_w, 0xffffffff)
- AM_RANGE(0x03e0, 0x03ef) AM_NOP
- AM_RANGE(0x0cf8, 0x0cff) AM_DEVREADWRITE("pcibus", pci_bus_legacy_device, read, write)
- AM_RANGE(0x0400, 0xffff) AM_NOP
-ADDRESS_MAP_END
+void gammagic_state::gammagic_map(address_map &map)
+{
+ map(0x00000000, 0x0009ffff).ram();
+ map(0x000a0000, 0x000bffff).rw("vga", FUNC(vga_device::mem_r), FUNC(vga_device::mem_w));
+ map(0x000e0000, 0x000fffff).rom().region("user", 0x20000);/* System BIOS */
+ map(0x00100000, 0x07ffffff).ram();
+ map(0x08000000, 0xfffdffff).noprw();
+ map(0xfffe0000, 0xffffffff).rom().region("user", 0x20000);/* System BIOS */
+}
+
+void gammagic_state::gammagic_io(address_map &map)
+{
+ pcat32_io_common(map);
+ map(0x00e8, 0x00ef).noprw();
+ map(0x00f0, 0x01ef).noprw();
+ map(0x01f8, 0x03af).noprw();
+ map(0x03b0, 0x03bf).rw("vga", FUNC(vga_device::port_03b0_r), FUNC(vga_device::port_03b0_w));
+ map(0x03c0, 0x03cf).rw("vga", FUNC(vga_device::port_03c0_r), FUNC(vga_device::port_03c0_w));
+ map(0x03d0, 0x03df).rw("vga", FUNC(vga_device::port_03d0_r), FUNC(vga_device::port_03d0_w));
+ map(0x03e0, 0x03ef).noprw();
+ map(0x0cf8, 0x0cff).rw("pcibus", FUNC(pci_bus_legacy_device::read), FUNC(pci_bus_legacy_device::write));
+ map(0x0400, 0xffff).noprw();
+}
#define AT_KEYB_HELPER(bit, text, key1) \
PORT_BIT( bit, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_NAME(text) PORT_CODE(key1)