diff options
author | 2015-07-20 08:11:41 +0200 | |
---|---|---|
committer | 2015-07-20 08:11:41 +0200 | |
commit | 4bcb0c13f50ddb1cd3fd0341b4bb31d9c3c7fc7a (patch) | |
tree | 55eccacfca0e69435d0d4e6615205310ca11f271 /src/mess/machine/vector06.c | |
parent | d132946c6f45aa8d271c6180e86f72dd08243048 (diff) | |
parent | 229785f695b26c702c8490792611f59d0366a933 (diff) |
Merge pull request #5 from mamedev/master
Sync to base master
Diffstat (limited to 'src/mess/machine/vector06.c')
-rw-r--r-- | src/mess/machine/vector06.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/mess/machine/vector06.c b/src/mess/machine/vector06.c index e0c436a6239..b6f4e353fed 100644 --- a/src/mess/machine/vector06.c +++ b/src/mess/machine/vector06.c @@ -138,10 +138,22 @@ TIMER_CALLBACK_MEMBER(vector06_state::reset_check_callback) WRITE8_MEMBER( vector06_state::vector06_disc_w ) { -// something here needs to turn the motor on + floppy_image_device *floppy = NULL; - m_fdc->set_side (BIT(data, 2) ^ 1); - m_fdc->set_drive(BIT(data, 0)); + switch (data & 0x01) + { + case 0: floppy = m_floppy0->get_device(); break; + case 1: floppy = m_floppy1->get_device(); break; + } + + m_fdc->set_floppy(floppy); + + if (floppy) + { + // something here needs to turn the motor on + floppy->mon_w(0); + floppy->ss_w(!BIT(data, 2)); + } } void vector06_state::machine_start() |