{
  "_notes": [
    "Star Trek 25th Anniversary [Data East, 1991]",
    "Created by Tom Collins, based on btmn_106 (by Dave horsepin/Tom Collins)",
    "2026-02-06 split off from trek_201"
  ],
  "_fileformat": 0.8,
  "_metadata": {
    "version": 4,
    "copyright": [
      "Copyright (C) 2016 by Dave horsepin <horse@horsesoft.uk>",
      "Copyright (C) 2025 by Tom Collins <tom@scorbit.io>"
    ],
    "license": "GNU Lesser General Public License v3.0",
    "platform": "dataeast",
    "roms": [
      "trek_117"
    ]
  },
  "game_state": {
    "scores": [
      {
        "label": "Player 1",
        "encoding": "bcd",
        "offsets": [
          "0x1B9",
          "0x1A9",
          "0x1AA",
          "0x1AB",
          "0x1AC"
        ]
      },
      {
        "label": "Player 2",
        "encoding": "bcd",
        "offsets": [
          "0x1BA",
          "0x1AD",
          "0x1AE",
          "0x1AF",
          "0x1B0"
        ]
      },
      {
        "label": "Player 3",
        "encoding": "bcd",
        "offsets": [
          "0x1BB",
          "0x1B1",
          "0x1B2",
          "0x1B3",
          "0x1B4"
        ]
      },
      {
        "label": "Player 4",
        "encoding": "bcd",
        "offsets": [
          "0x1BC",
          "0x1B5",
          "0x1B6",
          "0x1B7",
          "0x1B8"
        ]
      }
    ],
    "credits": {
      "_notes": "Also at 0x51D?",
      "label": "Credits",
      "start": "0x16BE",
      "encoding": "bcd"
    },
    "free_play": {
      "label": "Free Play",
      "start": "0x1E04",
      "encoding": "bool"
    },
    "max_credits": {
      "label": "Max Credits",
      "start": "0x1E0F",
      "encoding": "bcd"
    },
    "player_count": {
      "label": "Player Count",
      "start": "0x19D",
      "encoding": "int"
    },
    "ball_count": {
      "label": "Ball Count",
      "start": "0x1E0D",
      "encoding": "bcd"
    },
    "current_player": {
      "label": "Player",
      "start": "0x19A",
      "encoding": "int"
    },
    "current_ball": {
      "label": "Ball",
      "start": "0x19B",
      "encoding": "int"
    },
    "game_over": {
      "_notes": "game is over if current player/ball is 0",
      "label": "Game Over",
      "start": "0x19C",
      "encoding": "bool",
      "invert": true
    }
  },
  "high_scores": [
    {
      "label": "Admiral",
      "short_label": "#1",
      "initials": {
        "start": "0x16AA",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "offsets": [
          "0x1690",
          "0x1678",
          "0x1679",
          "0x167A",
          "0x167B"
        ]
      }
    },
    {
      "label": "Rear Admiral",
      "short_label": "#2",
      "initials": {
        "start": "0x16AD",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "offsets": [
          "0x1691",
          "0x167C",
          "0x167D",
          "0x167E",
          "0x167F"
        ]
      }
    },
    {
      "label": "Captain",
      "short_label": "#3",
      "initials": {
        "start": "0x16B0",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "offsets": [
          "0x1692",
          "0x1680",
          "0x1681",
          "0x1682",
          "0x1683"
        ]
      }
    },
    {
      "label": "Commander",
      "short_label": "#4",
      "initials": {
        "start": "0x16B3",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "offsets": [
          "0x1693",
          "0x1684",
          "0x1685",
          "0x1686",
          "0x1687"
        ]
      }
    },
    {
      "label": "Lieutenant",
      "short_label": "#5",
      "initials": {
        "start": "0x16B6",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "offsets": [
          "0x1694",
          "0x1688",
          "0x1689",
          "0x168A",
          "0x168B"
        ]
      }
    },
    {
      "label": "Lieutenant J.G.",
      "short_label": "#6",
      "initials": {
        "start": "0x16B9",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "offsets": [
          "0x1695",
          "0x168C",
          "0x168D",
          "0x168E",
          "0x168F"
        ]
      }
    }
  ]
}
