public void handler() {
            PORT_START(); 	/* DSW1/DSW2 */

            PORT_DIPNAME(0x000f, 0x000f, DEF_STR("Coinage"));
            PORT_DIPSETTING(0x0000, DEF_STR("5C_1C"));
            PORT_DIPSETTING(0x0002, DEF_STR("4C_1C"));
            PORT_DIPSETTING(0x0005, DEF_STR("3C_1C"));
            PORT_DIPSETTING(0x0008, DEF_STR("2C_1C"));
            PORT_DIPSETTING(0x0004, DEF_STR("3C_2C"));
            PORT_DIPSETTING(0x0001, DEF_STR("4C_3C"));
            PORT_DIPSETTING(0x000f, DEF_STR("1C_1C"));
            PORT_DIPSETTING(0x0003, DEF_STR("3C_4C"));
            PORT_DIPSETTING(0x0007, DEF_STR("2C_3C"));
            PORT_DIPSETTING(0x000e, DEF_STR("1C_2C"));
            PORT_DIPSETTING(0x0006, DEF_STR("2C_5C"));
            PORT_DIPSETTING(0x000d, DEF_STR("1C_3C"));
            PORT_DIPSETTING(0x000c, DEF_STR("1C_4C"));
            PORT_DIPSETTING(0x000b, DEF_STR("1C_5C"));
            PORT_DIPSETTING(0x000a, DEF_STR("1C_6C"));
            PORT_DIPSETTING(0x0009, DEF_STR("1C_7C"));
            PORT_DIPNAME(0x0010, 0x0010, "Continue");
            PORT_DIPSETTING(0x0010, "Normal");
            PORT_DIPSETTING(0x0000, "1 Coin");
            PORT_DIPNAME(0x0020, 0x0020, DEF_STR("Unknown"));
            PORT_DIPSETTING(0x0020, DEF_STR("Off"));
            PORT_DIPSETTING(0x0000, DEF_STR("On"));
            PORT_DIPNAME(0x0040, 0x0040, DEF_STR("Unknown"));
            PORT_DIPSETTING(0x0040, DEF_STR("Off"));
            PORT_DIPSETTING(0x0000, DEF_STR("On"));
            PORT_DIPNAME(0x0080, 0x0080, DEF_STR("Unknown"));
            PORT_DIPSETTING(0x0080, DEF_STR("Off"));
            PORT_DIPSETTING(0x0000, DEF_STR("On"));
            PORT_DIPNAME(0x0300, 0x0300, "Energy");
            PORT_DIPSETTING(0x0300, "30");
            PORT_DIPSETTING(0x0200, "40");
            PORT_DIPSETTING(0x0100, "50");
            PORT_DIPSETTING(0x0000, "60");
            PORT_DIPNAME(0x0c00, 0x0c00, "Period Length");
            PORT_DIPSETTING(0x0c00, "2 Minutes");
            PORT_DIPSETTING(0x0800, "3 Minutes");
            PORT_DIPSETTING(0x0400, "4 Minutes");
            PORT_DIPSETTING(0x0000, "5 Minutes");
            PORT_DIPNAME(0x1000, 0x1000, DEF_STR("Unknown"));
            PORT_DIPSETTING(0x1000, DEF_STR("Off"));
            PORT_DIPSETTING(0x0000, DEF_STR("On"));
            PORT_DIPNAME(0x6000, 0x6000, DEF_STR("Difficulty"));
            PORT_DIPSETTING(0x6000, "Easy");
            PORT_DIPSETTING(0x4000, "Medium");
            PORT_DIPSETTING(0x2000, "Hard");
            PORT_DIPSETTING(0x0000, "Hardest");
            PORT_DIPNAME(0x8000, 0x0000, DEF_STR("Demo_Sounds"));
            PORT_DIPSETTING(0x8000, DEF_STR("Off"));
            PORT_DIPSETTING(0x0000, DEF_STR("On"));

            PORT_START(); 	/* COIN/DSW3 */

            PORT_BIT(0x0001, IP_ACTIVE_LOW, IPT_COIN1);
            PORT_BIT(0x0002, IP_ACTIVE_LOW, IPT_COIN2);
            PORT_BIT(0x0004, IP_ACTIVE_LOW, IPT_COIN3);
            PORT_BIT(0x0008, IP_ACTIVE_LOW, IPT_COIN4);
            PORT_BIT(0x0010, IP_ACTIVE_LOW, IPT_SERVICE1);
            PORT_BIT(0x0020, IP_ACTIVE_LOW, IPT_SERVICE2);
            PORT_BIT(0x0040, IP_ACTIVE_LOW, IPT_SERVICE3);
            PORT_BIT(0x0080, IP_ACTIVE_LOW, IPT_SERVICE4);
            PORT_BIT(0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN);
            PORT_BIT(0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN);
            PORT_BIT(0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN);
            PORT_BIT(0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN);
            PORT_DIPNAME(0x1000, 0x1000, DEF_STR("Flip_Screen"));
            PORT_DIPSETTING(0x1000, DEF_STR("Off"));
            PORT_DIPSETTING(0x0000, DEF_STR("On"));
            PORT_DIPNAME(0x2000, 0x2000, DEF_STR("Unknown"));
            PORT_DIPSETTING(0x2000, DEF_STR("Off"));
            PORT_DIPSETTING(0x0000, DEF_STR("On"));
            PORT_SERVICE(0x4000, IP_ACTIVE_LOW);
            PORT_DIPNAME(0x8000, 0x8000, "Freeze");
            PORT_DIPSETTING(0x8000, DEF_STR("Off"));
            PORT_DIPSETTING(0x0000, DEF_STR("On"));

            PORT_START(); 	/* IN0/IN1 */

            PORT_BIT(0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY | IPF_PLAYER1);
            PORT_BIT(0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER1);
            PORT_BIT(0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY | IPF_PLAYER1);
            PORT_BIT(0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY | IPF_PLAYER1);
            PORT_BIT(0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER1);
            PORT_BIT(0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER1);
            PORT_BIT(0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN);
            PORT_BIT(0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN);
            PORT_BIT(0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY | IPF_PLAYER2);
            PORT_BIT(0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER2);
            PORT_BIT(0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY | IPF_PLAYER2);
            PORT_BIT(0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY | IPF_PLAYER2);
            PORT_BIT(0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER2);
            PORT_BIT(0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER2);
            PORT_BIT(0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN);
            PORT_BIT(0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN);

            PORT_START(); 	/* IN2/IN3 */

            PORT_BIT(0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY | IPF_PLAYER3);
            PORT_BIT(0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER3);
            PORT_BIT(0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY | IPF_PLAYER3);
            PORT_BIT(0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY | IPF_PLAYER3);
            PORT_BIT(0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER3);
            PORT_BIT(0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER3);
            PORT_BIT(0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN);
            PORT_BIT(0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN);
            PORT_BIT(0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT | IPF_8WAY | IPF_PLAYER4);
            PORT_BIT(0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER4);
            PORT_BIT(0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_UP | IPF_8WAY | IPF_PLAYER4);
            PORT_BIT(0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN | IPF_8WAY | IPF_PLAYER4);
            PORT_BIT(0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER4);
            PORT_BIT(0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER4);
            PORT_BIT(0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN);
            PORT_BIT(0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN);
            INPUT_PORTS_END();
        }