diff options
author | 2019-11-05 00:30:42 -0500 | |
---|---|---|
committer | 2019-11-05 00:38:11 -0500 | |
commit | addf59de2fab6f3855aaf83b9308ea2c58143391 (patch) | |
tree | 583afae67c4145cb4a078a1466680eb8741e51f2 /src/devices/bus/nes/disksys.cpp | |
parent | 5675bdec9c0f4ec91cb6064000cceb5d034b1156 (diff) |
flopdrv: Even legacy devices need some code cleanup (nw)
- Get rid of the hardcoded FLOPPY_n tags as much as practical, mostly adding device finder arrays in their place
- Move remaining functions using FLOPPY_n down into appldriv and sonydriv (both of which may be eliminated once FDC emulation is modernized)
- Replace CLEAR_LINE and ASSERT_LINE with 0 and 1 (these were being inaccurately used to represent active-low control line states)
Diffstat (limited to 'src/devices/bus/nes/disksys.cpp')
-rw-r--r-- | src/devices/bus/nes/disksys.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/nes/disksys.cpp b/src/devices/bus/nes/disksys.cpp index 71101492822..0b2bb169a2d 100644 --- a/src/devices/bus/nes/disksys.cpp +++ b/src/devices/bus/nes/disksys.cpp @@ -53,7 +53,7 @@ static const floppy_interface nes_floppy_interface = void nes_disksys_device::device_add_mconfig(machine_config &config) { - LEGACY_FLOPPY(config, FLOPPY_0, 0, &nes_floppy_interface); + LEGACY_FLOPPY(config, m_disk, 0, &nes_floppy_interface); } @@ -101,7 +101,7 @@ nes_disksys_device::nes_disksys_device(const machine_config &mconfig, const char : nes_nrom_device(mconfig, NES_DISKSYS, tag, owner, clock) , m_2c33_rom(*this, "drive") , m_fds_data(nullptr) - , m_disk(*this, FLOPPY_0) + , m_disk(*this, "floppy0") , irq_timer(nullptr) , m_irq_count(0), m_irq_count_latch(0), m_irq_enable(0), m_irq_transfer(0), m_fds_motor_on(0), m_fds_door_closed(0), m_fds_current_side(0), m_fds_head_position(0), m_fds_status0(0), m_read_mode(0), m_drive_ready(0) , m_fds_sides(0), m_fds_last_side(0), m_fds_count(0) |