{
  "_notes": [
    "Locally added -- upstream pinmame-nvram-maps has no map for 24 as of index rev 1406.",
    "Derived from a real twenty4_150.nv plus a 4-player game on an ALP4K cabinet.",
    "Same Stern SAM record shape as the X-Men and Star Trek maps: records 0x20 apart, NUL-terminated",
    "initials at +0x00, a 4-byte little-endian score at +0x18, and a 16-bit checksum in the last two",
    "bytes of the first 30. The checksum verifies on all five records and fails on the sixth, which is",
    "what bounds the block.",
    "The five entries were still on Stern's factory default ladder (75M/55M/40M/30M/25M with",
    "'G S'/'L R'/'J R'/'D T'/'P P'), which is what confirms the addresses.",
    "Whether this game has mode champions is unknown: the block was untouched and the test game's best",
    "score did not reach the 25M floor, so no champion record was written.",
    "In-progress scores are on 8-byte centres here, not the 4-byte centres X-Men and Star Trek use:",
    "a 4-player game ending 1,778,630 / 3,103,030 / 4,960,820 / 18,483,350 put those at 0x021109E4,",
    "0x021109EC, 0x021109F4 and 0x021109FC. The score itself is still 4 bytes; the 4 bytes after each",
    "were zero throughout and are left undeclared. The spacing is per-ROM, so do not carry it across.",
    "player_count and current_ball were isolated by capturing NVRAM at known game states and diffing.",
    "0x02110900 is the only byte in the 128K that reads 1/4/1 across a 1-player game, a 4-player game",
    "and a 1-player game in progress; 0x02111BA8 is the only byte that reads 2 while sitting on ball 2",
    "and 3 while sitting on ball 3.",
    "There is no game_over flag: no byte reads set in every post-game capture and clear mid-game, so",
    "SAM appears not to keep one in NVRAM. Consumers that gate on ball > 0 do not need it.",
    "Only twenty4_150 is claimed: other revisions were not checked and SAM addresses move between them.",
    "current_player is at 0x00033400 in CPU RAM, the byte below a second copy of the ball at",
    "0x00033401. Over a 4-player game it completed 1->2->3 three times, once per ball, at 558,940 /",
    "1,251,860 / 2,177,650 -- the last being player 1's final score -- while the ball copy completed",
    "once, on the player's second cycle.",
    "current_ball stays at 0x02111BA8 in NVRAM: that one is already proven to drive live scores here,",
    "and this game confirms the same structure exists in RAM as on the other SAM ROMs.",
    "Score slots re-confirmed: 2,177,650 / 2,357,180 / 1,762,430 / 3,117,850 read back at 0x021109E4",
    "on the declared 8-byte stride."
  ],
  "_fileformat": 0.7,
  "_metadata": {
    "version": 4,
    "license": "Open Data Commons Open Database License (ODbL) v1.0",
    "copyright": [
      "Copyright (C) 2026 by Wes Smith <evilwraith@gmail.com>"
    ],
    "platform": "stern-sam",
    "roms": [
      "twenty4_150"
    ]
  },
  "game_state": {
    "player_count": {
      "label": "Player Count",
      "encoding": "int",
      "start": "0x02110900"
    },
    "current_player": {
      "label": "Player",
      "encoding": "int",
      "start": "0x00033400"
    },
    "current_ball": {
      "label": "Ball",
      "encoding": "int",
      "start": "0x02111BA8"
    },
    "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": "0x02102E38"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102E50"
      }
    },
    {
      "label": "High Score #1",
      "short_label": "HS1",
      "initials": {
        "encoding": "ch",
        "null": "terminate",
        "length": 11,
        "start": "0x02102E58"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102E70"
      }
    },
    {
      "label": "High Score #2",
      "short_label": "HS2",
      "initials": {
        "encoding": "ch",
        "null": "terminate",
        "length": 11,
        "start": "0x02102E78"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102E90"
      }
    },
    {
      "label": "High Score #3",
      "short_label": "HS3",
      "initials": {
        "encoding": "ch",
        "null": "terminate",
        "length": 11,
        "start": "0x02102E98"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102EB0"
      }
    },
    {
      "label": "High Score #4",
      "short_label": "HS4",
      "initials": {
        "encoding": "ch",
        "null": "terminate",
        "length": 11,
        "start": "0x02102EB8"
      },
      "score": {
        "encoding": "int",
        "length": 4,
        "start": "0x02102ED0"
      }
    }
  ],
  "checksum16": [
    {
      "start": "0x02102E38",
      "length": 30,
      "label": "Grand Champion"
    },
    {
      "start": "0x02102E58",
      "length": 30,
      "label": "High Score #1"
    },
    {
      "start": "0x02102E78",
      "length": 30,
      "label": "High Score #2"
    },
    {
      "start": "0x02102E98",
      "length": 30,
      "label": "High Score #3"
    },
    {
      "start": "0x02102EB8",
      "length": 30,
      "label": "High Score #4"
    }
  ]
}
