diff options
Diffstat (limited to 'src/devices/bus/adamnet/printer.cpp')
-rw-r--r-- | src/devices/bus/adamnet/printer.cpp | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/src/devices/bus/adamnet/printer.cpp b/src/devices/bus/adamnet/printer.cpp index 637ce3a86e6..0e8c5fcd8b4 100644 --- a/src/devices/bus/adamnet/printer.cpp +++ b/src/devices/bus/adamnet/printer.cpp @@ -47,32 +47,18 @@ const tiny_rom_entry *adam_printer_device::device_rom_region() const //------------------------------------------------- -// ADDRESS_MAP( adam_prn_mem ) -//------------------------------------------------- - -void adam_printer_device::adam_prn_mem(address_map &map) -{ - map(0x0000, 0x001f).rw(M6801_TAG, FUNC(m6801_cpu_device::m6801_io_r), FUNC(m6801_cpu_device::m6801_io_w)); - map(0x0080, 0x00ff).ram(); - map(0xf800, 0xffff).rom().region(M6801_TAG, 0); -} - - -//------------------------------------------------- // device_add_mconfig - add device configuration //------------------------------------------------- void adam_printer_device::device_add_mconfig(machine_config &config) { M6801(config, m_maincpu, XTAL(4'000'000)); - m_maincpu->set_addrmap(AS_PROGRAM, &adam_printer_device::adam_prn_mem); m_maincpu->out_p1_cb().set(FUNC(adam_printer_device::p1_w)); m_maincpu->in_p2_cb().set(FUNC(adam_printer_device::p2_r)); m_maincpu->out_p2_cb().set(FUNC(adam_printer_device::p2_w)); m_maincpu->in_p3_cb().set(FUNC(adam_printer_device::p3_r)); m_maincpu->in_p4_cb().set(FUNC(adam_printer_device::p4_r)); m_maincpu->out_p4_cb().set(FUNC(adam_printer_device::p4_w)); - m_maincpu->set_disable(); // TODO } @@ -116,7 +102,7 @@ void adam_printer_device::adamnet_reset_w(int state) // p1_w - //------------------------------------------------- -WRITE8_MEMBER( adam_printer_device::p1_w ) +void adam_printer_device::p1_w(uint8_t data) { /* @@ -139,7 +125,7 @@ WRITE8_MEMBER( adam_printer_device::p1_w ) // p2_r - //------------------------------------------------- -READ8_MEMBER( adam_printer_device::p2_r ) +uint8_t adam_printer_device::p2_r() { /* @@ -166,7 +152,7 @@ READ8_MEMBER( adam_printer_device::p2_r ) // p2_w - //------------------------------------------------- -WRITE8_MEMBER( adam_printer_device::p2_w ) +void adam_printer_device::p2_w(uint8_t data) { /* @@ -188,7 +174,7 @@ WRITE8_MEMBER( adam_printer_device::p2_w ) // p3_r - //------------------------------------------------- -READ8_MEMBER( adam_printer_device::p3_r ) +uint8_t adam_printer_device::p3_r() { return 0xff; } @@ -198,7 +184,7 @@ READ8_MEMBER( adam_printer_device::p3_r ) // p4_r - //------------------------------------------------- -READ8_MEMBER( adam_printer_device::p4_r ) +uint8_t adam_printer_device::p4_r() { /* @@ -223,7 +209,7 @@ READ8_MEMBER( adam_printer_device::p4_r ) // p4_w - //------------------------------------------------- -WRITE8_MEMBER( adam_printer_device::p4_w ) +void adam_printer_device::p4_w(uint8_t data) { /* |