{
  "_notes": [
    "Locally added -- upstream pinmame-nvram-maps has no map for NBA.",
    "Built from a 4-player game driven through the cabinet's own streamer.",
    "current_player and current_ball are adjacent in CPU RAM at 0x00033020 and 0x00033021, player low",
    "and ball high. Scores are 4 bytes on 8-byte centres from 0x021109E4.",
    "player_count at 0x02110900, the one address every SAM game shares.",
    "Nine records from 0x021029F8, bounded by where the 16-bit checksum stops validating -- the tenth",
    "does not pass. Five are the high score ladder; four are champions, named off the machine's",
    "post-game DMD cycle and each pinned by a distinct factory default: Free Throws 2 in a row,",
    "2-Pointers 4, 3-Pointers 3, NBA Finals 25,000,000.",
    "The machine displays a Basketball Points champion, and it is deliberately not mapped: it does not",
    "appear to be stored as a champion record at all. Earning it (6 points) and exiting changed nothing",
    "in the record block, put no 6 anywhere in the persistent region, and left record ten still failing",
    "its checksum. Every persistent byte that did change has the audit shape -- a value written twice",
    "followed by a checksum byte -- and the only 6s are in the volatile working area at 0x02111Axx,",
    "among values that move by millions between captures. It reads as a per-game statistic the",
    "game-over summary shows, not a persisted champion.",
    "Score slots confirmed on that game: 1,336,840 for player 1 at 0x021109E4.",
    "Only nba_802 is claimed; SAM addresses move between revisions."
  ],
  "_fileformat": 0.7,
  "_metadata": {
    "version": 2,
    "license": "Open Data Commons Open Database License (ODbL) v1.0",
    "copyright": [
      "Copyright (C) 2026 by Wes Smith <evilwraith@gmail.com>"
    ],
    "platform": "stern-sam",
    "roms": [
      "nba_802"
    ]
  },
  "game_state": {
    "player_count": {
      "label": "Player Count",
      "encoding": "int",
      "start": "0x02110900"
    },
    "current_player": {
      "label": "Player",
      "encoding": "int",
      "start": "0x00033020"
    },
    "current_ball": {
      "label": "Ball",
      "encoding": "int",
      "start": "0x00033021"
    },
    "scores": [
      {
        "label": "Player 1",
        "encoding": "int",
        "length": 4,
        "start": "0x021109E4"
      },
      {
        "label": "Player 2",
        "encoding": "int",
        "length": 4,
        "start": "0x021109EC"
      },
      {
        "label": "Player 3",
        "encoding": "int",
        "length": 4,
        "start": "0x021109F4"
      },
      {
        "label": "Player 4",
        "encoding": "int",
        "length": 4,
        "start": "0x021109FC"
      }
    ]
  },
  "high_scores": [
    {
      "label": "Grand Champion",
      "short_label": "GC",
      "initials": {
        "encoding": "ch",
        "null": "terminate",
        "length": 11,
        "start": "0x021029F8"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102A10"
      }
    },
    {
      "label": "High Score #1",
      "short_label": "HS1",
      "initials": {
        "encoding": "ch",
        "null": "terminate",
        "length": 11,
        "start": "0x02102A18"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102A30"
      }
    },
    {
      "label": "High Score #2",
      "short_label": "HS2",
      "initials": {
        "encoding": "ch",
        "null": "terminate",
        "length": 11,
        "start": "0x02102A38"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102A50"
      }
    },
    {
      "label": "High Score #3",
      "short_label": "HS3",
      "initials": {
        "encoding": "ch",
        "null": "terminate",
        "length": 11,
        "start": "0x02102A58"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102A70"
      }
    },
    {
      "label": "High Score #4",
      "short_label": "HS4",
      "initials": {
        "encoding": "ch",
        "null": "terminate",
        "length": 11,
        "start": "0x02102A78"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102A90"
      }
    }
  ],
  "mode_champions": [
    {
      "label": "Free Throws Champion",
      "initials": {
        "encoding": "ch",
        "null": "terminate",
        "length": 11,
        "start": "0x02102A98"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102AB0",
        "suffix": " In A Row"
      }
    },
    {
      "label": "2-Pointers Champion",
      "initials": {
        "encoding": "ch",
        "null": "terminate",
        "length": 11,
        "start": "0x02102AB8"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102AD0",
        "suffix": " In A Row"
      }
    },
    {
      "label": "3-Pointers Champion",
      "initials": {
        "encoding": "ch",
        "null": "terminate",
        "length": 11,
        "start": "0x02102AD8"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102AF0",
        "suffix": " In A Row"
      }
    },
    {
      "label": "NBA Finals Champion",
      "initials": {
        "encoding": "ch",
        "null": "terminate",
        "length": 11,
        "start": "0x02102AF8"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102B10"
      }
    }
  ],
  "checksum16": [
    {
      "start": "0x021029F8",
      "length": 30,
      "label": "Grand Champion"
    },
    {
      "start": "0x02102A18",
      "length": 30,
      "label": "High Score #1"
    },
    {
      "start": "0x02102A38",
      "length": 30,
      "label": "High Score #2"
    },
    {
      "start": "0x02102A58",
      "length": 30,
      "label": "High Score #3"
    },
    {
      "start": "0x02102A78",
      "length": 30,
      "label": "High Score #4"
    },
    {
      "start": "0x02102A98",
      "length": 30,
      "label": "Free Throws Champion"
    },
    {
      "start": "0x02102AB8",
      "length": 30,
      "label": "2-Pointers Champion"
    },
    {
      "start": "0x02102AD8",
      "length": 30,
      "label": "3-Pointers Champion"
    },
    {
      "start": "0x02102AF8",
      "length": 30,
      "label": "NBA Finals Champion"
    }
  ]
}
