Skip to content

Commit

Permalink
doc: null-terminate non-char_map ch fields
Browse files Browse the repository at this point in the history
On Stern S.A.M. games, high score initials/name are null-terminated if
shorter than 3/10 characters.
  • Loading branch information
tomlogic committed Dec 6, 2024
1 parent 4a097d8 commit 271ab9a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,10 @@ how to interpret them. They're comprised of the following key/value pairs:
decimal digits of a number. The byte sequence `0x12 0x34` would translate
to the decimal value `1234`. When converting BCD values, treat the
nibbles 0xA to 0xF as 0 numerically, or a space for display purposes.
- `"ch"`: A sequence of 7-bit ASCII characters. If the JSON file has a
`_char_map` key, use bytes from the NV file as indexes into that string
instead of interpreting them as 7-bit ASCII.
- `"ch"`: A sequence of 7-bit ASCII characters that may be shortened by a
null byte (x00) terminator.
If the JSON file has a `_char_map` key, all bytes (including 0x00) are
indexes into that string.
- `"raw"`: A series of raw bytes, useful for extracting data yet to be
decoded or that requires custom processing.
- `"wpc_rtc"`: A special type for a real-time clock value
Expand Down

0 comments on commit 271ab9a

Please sign in to comment.