diff options
author | 2020-08-30 17:08:25 +1000 | |
---|---|---|
committer | 2020-08-30 17:08:25 +1000 | |
commit | ec88949651e02a6d3558e7c38555f3473618c9cc (patch) | |
tree | 65689af57c49ccd881643be276f7f809c37aa87c /src/mame/drivers/goori.cpp | |
parent | 8cf55b23daffb1f565a510458331d0dc49e690dc (diff) |
formats: Get rid of more inappropriate use of emu_fatalerror (and fix some spelling issues, etc. while I'm at it)
Diffstat (limited to 'src/mame/drivers/goori.cpp')
-rw-r--r-- | src/mame/drivers/goori.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mame/drivers/goori.cpp b/src/mame/drivers/goori.cpp index d50501ed5c9..cbc806320bc 100644 --- a/src/mame/drivers/goori.cpp +++ b/src/mame/drivers/goori.cpp @@ -54,12 +54,14 @@ ROMS: #include "cpu/m68000/m68000.h" #include "machine/eepromser.h" -#include "emupal.h" -#include "screen.h" -#include "tilemap.h" #include "sound/okim6295.h" #include "sound/ym2151.h" + +#include "emupal.h" +#include "screen.h" #include "speaker.h" +#include "tilemap.h" + class goori_state : public driver_device { @@ -177,9 +179,9 @@ void goori_state::goori_30000e_w(offs_t offset, uint16_t data, uint16_t mem_mask if (mem_mask & 0x00ff) { - m_eeprom->di_write((data & 0x0004) >> 2); - m_eeprom->cs_write((data & 0x0001) ? ASSERT_LINE : CLEAR_LINE); - m_eeprom->clk_write((data & 0x0002) ? ASSERT_LINE : CLEAR_LINE); + m_eeprom->di_write(BIT(data, 2)); + m_eeprom->cs_write(BIT(data, 0)); + m_eeprom->clk_write(BIT(data, 1)); } } |