summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/msx/sfkick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/msx/sfkick.cpp')
-rw-r--r--src/mame/msx/sfkick.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/mame/msx/sfkick.cpp b/src/mame/msx/sfkick.cpp
index 74b25abdc50..f6e4a3bc414 100644
--- a/src/mame/msx/sfkick.cpp
+++ b/src/mame/msx/sfkick.cpp
@@ -153,12 +153,14 @@ DIPSW-2
*/
#include "emu.h"
+
#include "cpu/z80/z80.h"
-#include "video/v9938.h"
#include "machine/bankdev.h"
#include "machine/gen_latch.h"
#include "machine/i8255.h"
#include "sound/ymopn.h"
+#include "video/v9938.h"
+
#include "screen.h"
#include "speaker.h"
@@ -168,8 +170,8 @@ namespace {
class sfkick_state : public driver_device
{
public:
- sfkick_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ sfkick_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_page(*this, "page%u", 0U),
@@ -184,8 +186,8 @@ public:
void sfkick(machine_config &config);
protected:
- virtual void machine_start() override;
- virtual void machine_reset() override;
+ virtual void machine_start() override ATTR_COLD;
+ virtual void machine_reset() override ATTR_COLD;
private:
uint8_t mem_r(offs_t offset);
@@ -195,14 +197,14 @@ private:
void ppi_port_a_w(uint8_t data);
void ppi_port_c_w(uint8_t data);
void irqhandler(int state);
- void sfkick_io_map(address_map &map);
- void sfkick_map(address_map &map);
- void sfkick_sound_io_map(address_map &map);
- void sfkick_sound_map(address_map &map);
- void bank_mem(address_map &map);
+ void sfkick_io_map(address_map &map) ATTR_COLD;
+ void sfkick_map(address_map &map) ATTR_COLD;
+ void sfkick_sound_io_map(address_map &map) ATTR_COLD;
+ void sfkick_sound_map(address_map &map) ATTR_COLD;
+ void bank_mem(address_map &map) ATTR_COLD;
- uint8_t m_primary_slot_reg;
- int m_input_mux;
+ uint8_t m_primary_slot_reg = 0;
+ uint8_t m_input_mux = 0;
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_soundcpu;
@@ -328,7 +330,7 @@ static INPUT_PORTS_START( sfkick )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_START("DIAL")
- PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(-20)
+ PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(20) PORT_REVERSE
PORT_START("DSW1") // bitswapped at read! 76543210 -> 45673210
PORT_DIPNAME( 0x10, 0x10, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:1")