{
  "machine": {
    "name": "sms1krfm",
    "sourcefile": "sega/sms.cpp",
    "cloneof": "sms",
    "romof": "sms",
    "isbios": "no",
    "isdevice": "no",
    "ismechanical": "no",
    "runnable": "yes",
    "description": "Gam*Boy (Korea) (FM)",
    "year": "1989",
    "manufacturer": "Samsung",
    "biosset": {
      "name": "jbios21",
      "description": "Japanese BIOS v2.1 (1987)",
      "default": "no"
    },
    "rom": {
      "name": "mpr-11124.ic2",
      "bios": "jbios21",
      "size": "8192",
      "crc": "48d44a13",
      "sha1": "a8c1b39a2e41137835eda6a5de6d46dd9fadbaf2",
      "region": "user1",
      "offset": "0",
      "status": "good",
      "optional": "no"
    },
    "device_ref": [
      {
        "tag": ":mono",
        "name": "speaker"
      },
      {
        "tag": ":cart_list",
        "name": "software_list"
      },
      {
        "tag": ":ctrl1",
        "name": "sms_control_port"
      },
      {
        "tag": ":ctrl1:mspad",
        "name": "sms_joypad"
      },
      {
        "tag": ":ctrl2",
        "name": "sms_control_port"
      },
      {
        "tag": ":ctrl2:mspad",
        "name": "sms_joypad"
      },
      {
        "tag": ":maincpu",
        "name": "z80"
      },
      {
        "tag": ":screen",
        "name": "screen"
      },
      {
        "tag": ":left_lcd",
        "name": "screen"
      },
      {
        "tag": ":right_lcd",
        "name": "screen"
      },
      {
        "tag": ":sms_vdp",
        "name": "sega315_5124"
      },
      {
        "tag": ":sms_vdp:palette_lut",
        "name": "palette"
      },
      {
        "tag": ":sms_vdp:snsnd",
        "name": "segapsg"
      },
      {
        "tag": ":slot",
        "name": "sg1000mk3_cart_slot"
      },
      {
        "tag": ":mycard",
        "name": "sms_card_slot"
      },
      {
        "tag": ":smsexp",
        "name": "sms_expansion_slot"
      },
      {
        "tag": ":cart_list2",
        "name": "software_list"
      },
      {
        "tag": ":ym2413",
        "name": "ym2413"
      }
    ],
    "chip": [
      {
        "type": "cpu",
        "tag": "maincpu",
        "name": "Zilog Z80",
        "clock": "3579545"
      },
      {
        "type": "audio",
        "tag": "mono",
        "name": "Speaker"
      },
      {
        "type": "audio",
        "tag": "sms_vdp",
        "name": "Sega 315-5124 SMS1 VDP",
        "clock": "10738635"
      },
      {
        "type": "audio",
        "tag": "sms_vdp:snsnd",
        "name": "Sega VDP PSG",
        "clock": "3579545"
      },
      {
        "type": "audio",
        "tag": "ym2413",
        "name": "YM2413 OPLL",
        "clock": "3579545"
      }
    ],
    "display": [
      {
        "tag": "screen",
        "type": "raster",
        "rotate": "0",
        "width": "268",
        "height": "224",
        "refresh": "59.922743",
        "pixclock": "5369317",
        "htotal": "342",
        "hbend": "61",
        "hbstart": "329",
        "vtotal": "262",
        "vbend": "27",
        "vbstart": "251",
        "flipx": "no"
      },
      {
        "tag": "left_lcd",
        "type": "lcd",
        "rotate": "0",
        "width": "268",
        "height": "224",
        "refresh": "59.922743",
        "pixclock": "5369317",
        "htotal": "342",
        "hbend": "61",
        "hbstart": "329",
        "vtotal": "262",
        "vbend": "27",
        "vbstart": "251",
        "flipx": "no"
      },
      {
        "tag": "right_lcd",
        "type": "lcd",
        "rotate": "0",
        "width": "268",
        "height": "224",
        "refresh": "59.922743",
        "pixclock": "5369317",
        "htotal": "342",
        "hbend": "61",
        "hbstart": "329",
        "vtotal": "262",
        "vbend": "27",
        "vbstart": "251",
        "flipx": "no"
      }
    ],
    "sound": {
      "channels": "1"
    },
    "input": {
      "players": "2",
      "service": "no",
      "tilt": "no",
      "control": [
        {
          "type": "joy",
          "player": "1",
          "buttons": "2",
          "ways": "8",
          "reverse": "no"
        },
        {
          "type": "joy",
          "player": "2",
          "buttons": "2",
          "ways": "8",
          "reverse": "no"
        }
      ]
    },
    "configuration": [
      {
        "name": "SegaScope (3-D Glasses)",
        "tag": "SEGASCOPE",
        "mask": "1",
        "confsetting": [
          {
            "name": "Off",
            "value": "0",
            "default": "yes"
          },
          {
            "name": "On",
            "value": "1",
            "default": "no"
          }
        ]
      },
      {
        "name": "SegaScope - Binocular Hack",
        "tag": "SSCOPE_BINOCULAR",
        "mask": "3",
        "condition": {
          "tag": "SEGASCOPE",
          "mask": "1",
          "relation": "eq",
          "value": "1"
        },
        "confsetting": [
          {
            "name": "Off",
            "value": "0",
            "default": "yes"
          },
          {
            "name": "Left Lens",
            "value": "1",
            "default": "no"
          },
          {
            "name": "Right Lens",
            "value": "2",
            "default": "no"
          },
          {
            "name": "Both Lens",
            "value": "3",
            "default": "no"
          }
        ]
      }
    ],
    "port": [
      {
        "tag": ":PAUSE"
      },
      {
        "tag": ":RAPID"
      },
      {
        "tag": ":SEGASCOPE"
      },
      {
        "tag": ":SSCOPE_BINOCULAR"
      },
      {
        "tag": ":ctrl1:mspad:JOYPAD"
      },
      {
        "tag": ":ctrl2:mspad:JOYPAD"
      }
    ],
    "driver": {
      "status": "good",
      "emulation": "good",
      "savestate": "supported",
      "requiresartwork": "no",
      "unofficial": "no",
      "nosoundhardware": "no",
      "incomplete": "no"
    },
    "device": [
      {
        "type": "cartridge",
        "tag": "slot",
        "interface": "sms_cart,sg1000_cart",
        "instance": {
          "name": "cartridge",
          "briefname": "cart"
        },
        "extension": [
          {
            "name": "bin"
          },
          {
            "name": "sms"
          },
          {
            "name": "sg"
          }
        ]
      },
      {
        "type": "card",
        "tag": "mycard",
        "interface": "sms_card",
        "instance": {
          "name": "card",
          "briefname": "card"
        },
        "extension": {
          "name": "bin"
        }
      }
    ],
    "slot": [
      {
        "name": "ctrl1",
        "slotoption": [
          {
            "name": "xe1ap",
            "devname": "sms_xe1ap",
            "default": "no"
          },
          {
            "name": "teamplay",
            "devname": "sms_teamplayer",
            "default": "no"
          },
          {
            "name": "sportsjp",
            "devname": "sms_sports_pad_jp",
            "default": "no"
          },
          {
            "name": "mouse",
            "devname": "sms_segamouse",
            "default": "no"
          },
          {
            "name": "multitap",
            "devname": "sms_multitap",
            "default": "no"
          },
          {
            "name": "rapidfire",
            "devname": "sms_rapid_fire",
            "default": "no"
          },
          {
            "name": "mouseus",
            "devname": "sms_megamouse",
            "default": "no"
          },
          {
            "name": "mspad",
            "devname": "sms_joypad",
            "default": "yes"
          },
          {
            "name": "mdpad",
            "devname": "sms_mdpad",
            "default": "no"
          },
          {
            "name": "md6button",
            "devname": "sms_md6button",
            "default": "no"
          },
          {
            "name": "sports",
            "devname": "sms_sports_pad",
            "default": "no"
          },
          {
            "name": "lphaser",
            "devname": "sms_light_phaser",
            "default": "no"
          },
          {
            "name": "paddle",
            "devname": "sms_paddle",
            "default": "no"
          },
          {
            "name": "graphic",
            "devname": "sms_graphic",
            "default": "no"
          },
          {
            "name": "hypershot",
            "devname": "sms_hypershot",
            "default": "no"
          },
          {
            "name": "rs232",
            "devname": "sms_rs232",
            "default": "no"
          },
          {
            "name": "diypaddle",
            "devname": "sms_diypaddle",
            "default": "no"
          }
        ]
      },
      {
        "name": "ctrl2",
        "slotoption": [
          {
            "name": "xe1ap",
            "devname": "sms_xe1ap",
            "default": "no"
          },
          {
            "name": "teamplay",
            "devname": "sms_teamplayer",
            "default": "no"
          },
          {
            "name": "sportsjp",
            "devname": "sms_sports_pad_jp",
            "default": "no"
          },
          {
            "name": "mouse",
            "devname": "sms_segamouse",
            "default": "no"
          },
          {
            "name": "multitap",
            "devname": "sms_multitap",
            "default": "no"
          },
          {
            "name": "rapidfire",
            "devname": "sms_rapid_fire",
            "default": "no"
          },
          {
            "name": "mouseus",
            "devname": "sms_megamouse",
            "default": "no"
          },
          {
            "name": "mspad",
            "devname": "sms_joypad",
            "default": "yes"
          },
          {
            "name": "mdpad",
            "devname": "sms_mdpad",
            "default": "no"
          },
          {
            "name": "md6button",
            "devname": "sms_md6button",
            "default": "no"
          },
          {
            "name": "sports",
            "devname": "sms_sports_pad",
            "default": "no"
          },
          {
            "name": "lphaser",
            "devname": "sms_light_phaser",
            "default": "no"
          },
          {
            "name": "paddle",
            "devname": "sms_paddle",
            "default": "no"
          },
          {
            "name": "graphic",
            "devname": "sms_graphic",
            "default": "no"
          },
          {
            "name": "hypershot",
            "devname": "sms_hypershot",
            "default": "no"
          },
          {
            "name": "rs232",
            "devname": "sms_rs232",
            "default": "no"
          },
          {
            "name": "diypaddle",
            "devname": "sms_diypaddle",
            "default": "no"
          }
        ]
      },
      {
        "name": "slot"
      },
      {
        "name": "mycard"
      },
      {
        "name": "smsexp",
        "slotoption": {
          "name": "genderadp",
          "devname": "sms_gender_adapter",
          "default": "no"
        }
      }
    ],
    "softwarelist": [
      {
        "tag": "cart_list",
        "name": "sms",
        "status": "original"
      },
      {
        "tag": "cart_list2",
        "name": "sg1000",
        "status": "original"
      }
    ]
  }
}