summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/mie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/mie.cpp')
-rw-r--r--src/mame/machine/mie.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/mame/machine/mie.cpp b/src/mame/machine/mie.cpp
index 0907dfd1d83..2b26c7bebe3 100644
--- a/src/mame/machine/mie.cpp
+++ b/src/mame/machine/mie.cpp
@@ -29,30 +29,30 @@ DEFINE_DEVICE_TYPE(MIE_JVS, mie_jvs_device, "mie_jvs", "JVS (MIE)")
void mie_device::mie_map(address_map &map)
{
map(0x0000, 0x07ff).rom();
- map(0x0800, 0x6fff).r(this, FUNC(mie_device::read_ff));
- map(0x7000, 0x7002).rw(this, FUNC(mie_device::control_r), FUNC(mie_device::control_w)).mirror(0x07c0);
- map(0x7003, 0x7003).rw(this, FUNC(mie_device::lreg_r), FUNC(mie_device::lreg_w)).mirror(0x07c0);
- map(0x7004, 0x7023).rw(this, FUNC(mie_device::tbuf_r), FUNC(mie_device::tbuf_w)).mirror(0x07c0);
- map(0x7024, 0x703f).r(this, FUNC(mie_device::read_00)).mirror(0x07c0);
- map(0x7800, 0x7fff).r(this, FUNC(mie_device::read_78xx));
+ map(0x0800, 0x6fff).r(FUNC(mie_device::read_ff));
+ map(0x7000, 0x7002).rw(FUNC(mie_device::control_r), FUNC(mie_device::control_w)).mirror(0x07c0);
+ map(0x7003, 0x7003).rw(FUNC(mie_device::lreg_r), FUNC(mie_device::lreg_w)).mirror(0x07c0);
+ map(0x7004, 0x7023).rw(FUNC(mie_device::tbuf_r), FUNC(mie_device::tbuf_w)).mirror(0x07c0);
+ map(0x7024, 0x703f).r(FUNC(mie_device::read_00)).mirror(0x07c0);
+ map(0x7800, 0x7fff).r(FUNC(mie_device::read_78xx));
map(0x8000, 0xffff).ram();
}
void mie_device::mie_port(address_map &map)
{
map.global_mask(0xff);
- map(0x00, 0x07).rw(this, FUNC(mie_device::gpio_r), FUNC(mie_device::gpio_w));
- map(0x08, 0x08).rw(this, FUNC(mie_device::gpiodir_r), FUNC(mie_device::gpiodir_w));
- map(0x0f, 0x0f).rw(this, FUNC(mie_device::adc_r), FUNC(mie_device::adc_w));
- map(0x10, 0x10).rw(this, FUNC(mie_device::jvs_r), FUNC(mie_device::jvs_w)); // ports 1x and 2x is standard UARTs, TODO handle it properly
- map(0x12, 0x12).w(this, FUNC(mie_device::jvs_dest_w));
- map(0x13, 0x13).w(this, FUNC(mie_device::jvs_lcr_w));
- map(0x15, 0x15).r(this, FUNC(mie_device::jvs_status_r));
- map(0x30, 0x30).rw(this, FUNC(mie_device::irq_enable_r), FUNC(mie_device::irq_enable_w));
- map(0x50, 0x50).rw(this, FUNC(mie_device::maple_irqlevel_r), FUNC(mie_device::maple_irqlevel_w));
- map(0x70, 0x70).rw(this, FUNC(mie_device::irq_pending_r), FUNC(mie_device::irq_pending_w));
- map(0x90, 0x90).w(this, FUNC(mie_device::jvs_control_w));
- map(0x91, 0x91).r(this, FUNC(mie_device::jvs_sense_r));
+ map(0x00, 0x07).rw(FUNC(mie_device::gpio_r), FUNC(mie_device::gpio_w));
+ map(0x08, 0x08).rw(FUNC(mie_device::gpiodir_r), FUNC(mie_device::gpiodir_w));
+ map(0x0f, 0x0f).rw(FUNC(mie_device::adc_r), FUNC(mie_device::adc_w));
+ map(0x10, 0x10).rw(FUNC(mie_device::jvs_r), FUNC(mie_device::jvs_w)); // ports 1x and 2x is standard UARTs, TODO handle it properly
+ map(0x12, 0x12).w(FUNC(mie_device::jvs_dest_w));
+ map(0x13, 0x13).w(FUNC(mie_device::jvs_lcr_w));
+ map(0x15, 0x15).r(FUNC(mie_device::jvs_status_r));
+ map(0x30, 0x30).rw(FUNC(mie_device::irq_enable_r), FUNC(mie_device::irq_enable_w));
+ map(0x50, 0x50).rw(FUNC(mie_device::maple_irqlevel_r), FUNC(mie_device::maple_irqlevel_w));
+ map(0x70, 0x70).rw(FUNC(mie_device::irq_pending_r), FUNC(mie_device::irq_pending_w));
+ map(0x90, 0x90).w(FUNC(mie_device::jvs_control_w));
+ map(0x91, 0x91).r(FUNC(mie_device::jvs_sense_r));
}
ROM_START( mie )