From 7be636982db167fc3af44efb2821623122d362af Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Thu, 8 Jun 2023 21:52:43 +0200 Subject: Note to self: -valid is good for the soul --- src/devices/bus/nscsi/cdu415.cpp | 5 ----- src/devices/bus/nscsi/cdu415.h | 1 - src/devices/bus/nscsi/cdu75s.cpp | 5 ----- src/devices/bus/nscsi/cdu75s.h | 1 - src/devices/bus/nscsi/crd254sh.cpp | 5 ----- src/devices/bus/nscsi/crd254sh.h | 1 - src/mame/atlus/bowltry.cpp | 9 --------- src/mame/misc/coinmvga.cpp | 5 ----- src/mame/namco/sweetland4.cpp | 6 ------ src/mame/sega/segaufoh8.cpp | 6 ------ src/mame/skeleton/argox.cpp | 7 ------- src/mame/yamaha/ympsr340.cpp | 6 ------ 12 files changed, 57 deletions(-) diff --git a/src/devices/bus/nscsi/cdu415.cpp b/src/devices/bus/nscsi/cdu415.cpp index a3b733b01d7..5b69a7d3c46 100644 --- a/src/devices/bus/nscsi/cdu415.cpp +++ b/src/devices/bus/nscsi/cdu415.cpp @@ -40,15 +40,10 @@ void cdu415_device::mem_map(address_map &map) map(0x20000, 0x2ffff).rom().region("mcu", 0x10000); } -void cdu415_device::io_map(address_map &map) -{ -} - void cdu415_device::device_add_mconfig(machine_config &config) { H83032(config, m_mcu, 10000000); m_mcu->set_addrmap(AS_PROGRAM, &cdu415_device::mem_map); - m_mcu->set_addrmap(AS_IO, &cdu415_device::io_map); NCR53C94(config, m_scsi, 25'000'000); // Temporary placeholder } diff --git a/src/devices/bus/nscsi/cdu415.h b/src/devices/bus/nscsi/cdu415.h index 5a35e62fffa..11ccab36a2c 100644 --- a/src/devices/bus/nscsi/cdu415.h +++ b/src/devices/bus/nscsi/cdu415.h @@ -24,7 +24,6 @@ protected: private: void mem_map(address_map &map); - void io_map(address_map &map); required_device m_mcu; required_device m_scsi; diff --git a/src/devices/bus/nscsi/cdu75s.cpp b/src/devices/bus/nscsi/cdu75s.cpp index 40fd92c72fc..601b849f36a 100644 --- a/src/devices/bus/nscsi/cdu75s.cpp +++ b/src/devices/bus/nscsi/cdu75s.cpp @@ -51,15 +51,10 @@ void cdu75s_device::mem_map(address_map &map) map(0xc0000, 0xc003f); // CXD1808AQ } -void cdu75s_device::io_map(address_map &map) -{ -} - void cdu75s_device::device_add_mconfig(machine_config &config) { H83032(config, m_mcu, 33.8688_MHz_XTAL/2); m_mcu->set_addrmap(AS_PROGRAM, &cdu75s_device::mem_map); - m_mcu->set_addrmap(AS_IO, &cdu75s_device::io_map); NCR53C94(config, m_scsi, 25'000'000); // FAS204, compatible } diff --git a/src/devices/bus/nscsi/cdu75s.h b/src/devices/bus/nscsi/cdu75s.h index c034df923b4..5fd64d0d889 100644 --- a/src/devices/bus/nscsi/cdu75s.h +++ b/src/devices/bus/nscsi/cdu75s.h @@ -24,7 +24,6 @@ protected: private: void mem_map(address_map &map); - void io_map(address_map &map); required_device m_mcu; required_device m_scsi; diff --git a/src/devices/bus/nscsi/crd254sh.cpp b/src/devices/bus/nscsi/crd254sh.cpp index 80fc5fae740..7561f94cb6e 100644 --- a/src/devices/bus/nscsi/crd254sh.cpp +++ b/src/devices/bus/nscsi/crd254sh.cpp @@ -44,15 +44,10 @@ void crd254sh_device::mem_map(address_map &map) map(0x00000, 0x0ffff).rom().region("mcu", 0); } -void crd254sh_device::io_map(address_map &map) -{ -} - void crd254sh_device::device_add_mconfig(machine_config &config) { H83040(config, m_mcu, 20_MHz_XTAL); m_mcu->set_addrmap(AS_PROGRAM, &crd254sh_device::mem_map); - m_mcu->set_addrmap(AS_IO, &crd254sh_device::io_map); NCR53C94(config, m_scsi, 25_MHz_XTAL); // Placeholder until we implement the real chip } diff --git a/src/devices/bus/nscsi/crd254sh.h b/src/devices/bus/nscsi/crd254sh.h index 20651a2ee85..3aacce43669 100644 --- a/src/devices/bus/nscsi/crd254sh.h +++ b/src/devices/bus/nscsi/crd254sh.h @@ -24,7 +24,6 @@ protected: private: void mem_map(address_map &map); - void io_map(address_map &map); required_device m_mcu; required_device m_scsi; diff --git a/src/mame/atlus/bowltry.cpp b/src/mame/atlus/bowltry.cpp index 7e6d5146b80..a204e67ea3b 100644 --- a/src/mame/atlus/bowltry.cpp +++ b/src/mame/atlus/bowltry.cpp @@ -64,7 +64,6 @@ public: protected: void bowltry_map(address_map &map); - void bowltry_io(address_map &map); uint32_t screen_update_bowltry(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); @@ -146,13 +145,6 @@ void bowltry_state::bowltry_map(address_map &map) map(0x60e000, 0x60ffff).rw(FUNC(bowltry_state::vregs_r), FUNC(bowltry_state::vregs_w)).share("vregs"); } -void bowltry_state::bowltry_io(address_map &map) -{ - // these looks either EEPROM or touchscreen style writes, with chip select etc. -// map(0x09, 0x09).r(FUNC(bowltry_state::fake_io_r)); -// map(0x0a, 0x0a).r(FUNC(bowltry_state::fake_io_r)); -} - static INPUT_PORTS_START( bowltry ) INPUT_PORTS_END @@ -160,7 +152,6 @@ void bowltry_state::bowltry(machine_config &config) { H83008(config, m_maincpu, 16000000); m_maincpu->set_addrmap(AS_PROGRAM, &bowltry_state::bowltry_map); - m_maincpu->set_addrmap(AS_IO, &bowltry_state::bowltry_io); // uses vector $64, IMIAB according to the manual (timer/compare B, internal to the CPU) // no vblank, most likely handled by YGV video register bit at 0x090/2 // TODO: serial hookup, comms with a LED type ring display? diff --git a/src/mame/misc/coinmvga.cpp b/src/mame/misc/coinmvga.cpp index cff65e14f18..9a383390dad 100644 --- a/src/mame/misc/coinmvga.cpp +++ b/src/mame/misc/coinmvga.cpp @@ -257,7 +257,6 @@ public: required_device m_palette2; void coinmvga(machine_config &config); - void coinmvga_io_map(address_map &map); void coinmvga_map(address_map &map); void ramdac2_map(address_map &map); void ramdac_map(address_map &map); @@ -346,8 +345,6 @@ void coinmvga_state::coinmvga_map(address_map &map) //0x800008 "arrow" w? } -void coinmvga_state::coinmvga_io_map(address_map &map) -{ /* Digital I/O ports (ports 4-B are valid on 16-bit H8/3xx) */ // map(h8_device::PORT_4, h8_device::PORT_4) // map(h8_device::PORT_5, h8_device::PORT_5) @@ -363,7 +360,6 @@ void coinmvga_state::coinmvga_io_map(address_map &map) // map(h8_device::ADC_1, h8_device::ADC_1) // map(h8_device::ADC_2, h8_device::ADC_2) // map(h8_device::ADC_3, h8_device::ADC_3) -} /* unknown writes (cmrltv75): @@ -643,7 +639,6 @@ void coinmvga_state::coinmvga(machine_config &config) /* basic machine hardware */ H83007(config, m_maincpu, CPU_CLOCK); /* xtal */ m_maincpu->set_addrmap(AS_PROGRAM, &coinmvga_state::coinmvga_map); - m_maincpu->set_addrmap(AS_IO, &coinmvga_state::coinmvga_io_map); m_maincpu->set_vblank_int("screen", FUNC(coinmvga_state::vblank_irq)); /* wrong, fix me */ // NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); diff --git a/src/mame/namco/sweetland4.cpp b/src/mame/namco/sweetland4.cpp index f4ba789f6ed..0c30ed08545 100644 --- a/src/mame/namco/sweetland4.cpp +++ b/src/mame/namco/sweetland4.cpp @@ -51,7 +51,6 @@ private: void lcdc_w(u8 data); void program_map(address_map &map); - void io_map(address_map &map); }; @@ -69,10 +68,6 @@ void sweetland4_state::program_map(address_map &map) map(0x40000f, 0x40000f).w(FUNC(sweetland4_state::lcdc_w)); } -void sweetland4_state::io_map(address_map &map) -{ -} - static INPUT_PORTS_START( sweetld4 ) PORT_START("IN1") @@ -115,7 +110,6 @@ void sweetland4_state::sweetland4(machine_config &config) { H83007(config, m_maincpu, 14.7456_MHz_XTAL); m_maincpu->set_addrmap(AS_PROGRAM, &sweetland4_state::program_map); - m_maincpu->set_addrmap(AS_IO, &sweetland4_state::io_map); RTC72423(config, "rtc", 32'768); // no evident XTAL on PCB diff --git a/src/mame/sega/segaufoh8.cpp b/src/mame/sega/segaufoh8.cpp index b5bd819ba14..2655ba6f777 100644 --- a/src/mame/sega/segaufoh8.cpp +++ b/src/mame/sega/segaufoh8.cpp @@ -48,7 +48,6 @@ private: required_device m_maincpu; void program_map(address_map &map); - void io_map(address_map &map); }; @@ -60,10 +59,6 @@ void segaufoh8_state::program_map(address_map &map) //map(0xfe0000, 0xffffff).ram(); } -void segaufoh8_state::io_map(address_map &map) -{ -} - static INPUT_PORTS_START( ufo7 ) PORT_START("IN1") @@ -118,7 +113,6 @@ void segaufoh8_state::segaufoh8(machine_config &config) { H83007(config, m_maincpu, 16_MHz_XTAL); m_maincpu->set_addrmap(AS_PROGRAM, &segaufoh8_state::program_map); - m_maincpu->set_addrmap(AS_IO, &segaufoh8_state::io_map); SEGA_315_5296(config, "315_5296", 8_MHz_XTAL); diff --git a/src/mame/skeleton/argox.cpp b/src/mame/skeleton/argox.cpp index f6baa6defc8..3364a2a6e49 100644 --- a/src/mame/skeleton/argox.cpp +++ b/src/mame/skeleton/argox.cpp @@ -60,7 +60,6 @@ public: private: required_device m_maincpu; - void os214_io_map(address_map &map); void os214_prg_map(address_map &map); }; @@ -69,18 +68,12 @@ void os214_state::os214_prg_map(address_map &map) map(0x000000, 0x07ffff).rom(); } -void os214_state::os214_io_map(address_map &map) -{ -// map.global_mask(0xff); -} - void os214_state::os214(machine_config &config) { /* basic machine hardware */ H83002(config, m_maincpu, XTAL(16'000'000)); /* X1 xtal value is correct, but there can be some clock divider perhaps ? */ m_maincpu->set_addrmap(AS_PROGRAM, &os214_state::os214_prg_map); - m_maincpu->set_addrmap(AS_IO, &os214_state::os214_io_map); } void os214_state::init_os214() diff --git a/src/mame/yamaha/ympsr340.cpp b/src/mame/yamaha/ympsr340.cpp index bc1961d1ea4..2a52f504502 100644 --- a/src/mame/yamaha/ympsr340.cpp +++ b/src/mame/yamaha/ympsr340.cpp @@ -56,7 +56,6 @@ private: required_ioport_array<8> m_key; void psr340_map(address_map &map); - void psr340_io_map(address_map &map); void lcd_ctrl_w(u8 data); void lcd_data_w(u8 data); @@ -113,10 +112,6 @@ void psr340_state::psr340_map(address_map &map) map(0xffe02f, 0xffe02f).lr8(NAME([]() -> uint8_t { return 0xff; })); } -void psr340_state::psr340_io_map(address_map &map) -{ -} - void psr340_state::machine_start() { m_outputs.resolve(); @@ -276,7 +271,6 @@ void psr340_state::psr340(machine_config &config) /* basic machine hardware */ H8S2655(config, m_maincpu, 16_MHz_XTAL); // gives correct MIDI serial rate and matches MU100, but doesn't line up exactly with schematic value m_maincpu->set_addrmap(AS_PROGRAM, &psr340_state::psr340_map); - m_maincpu->set_addrmap(AS_IO, &psr340_state::psr340_io_map); // SCI0 is externally clocked at the 31250 Hz MIDI rate m_maincpu->sci_set_external_clock_period(0, attotime::from_hz(31250 * 16)); -- cgit v1.2.3