From 044c920a5b05ed680a5f312a44f0d3f1cedb0972 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 1 Jan 2017 20:56:52 -0500 Subject: [PATCH] Made it more explicit that there are no unhandled cases. --- Components/1770/1770.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Components/1770/1770.cpp b/Components/1770/1770.cpp index f12490b59..25582f18f 100644 --- a/Components/1770/1770.cpp +++ b/Components/1770/1770.cpp @@ -789,12 +789,9 @@ void WD1770::posit_event(Event new_event_type) WAIT_FOR_TIME(30); test_type3_type: - switch(command_ >> 4) - { - case 0xa: goto begin_read_address; - case 0xc: goto begin_read_track; - case 0xf: goto begin_write_track; - } + if(!(command_&0x20)) goto begin_read_address; + if(!(command_&0x10)) goto begin_read_track; + goto begin_write_track; begin_read_address: index_hole_count_ = 0;