Skip to navigation


Version analysis of CHK

This code appears in the following versions (click to see it in the source code):

Code variations between these versions are shown below.

Name: CHK Type: Variable Category: Save and load Summary: First checksum byte for the saved commander data file Deep dive: Commander save files The competition code
Commander checksum byte. If the default commander is changed, a new checksum will be calculated and inserted by the elite-checksum.py script. The offset of this byte within a saved commander file is also shown (it's at byte #75).
.CHK

Code variation 1 of 1Related to the 6502SP version

The Executive version contains a maxed-out default commander, which has a different checksum.

Tap on a block to expand it, and tap it again to revert.

EQUB &03 \ The checksum value for the default commander, #75
EQUB 0 \ Placeholder for the checksum in byte #75 \.CHK3 \ These instructions are commented out in the original \EQUB 0 \ source SKIP 12 \ These bytes appear to be unused, though the first byte \ in this block is included in the commander file (it \ has no effect, as it's the third checksum byte from \ the Commodore 64 version, which isn't used in the \ Master version)
IF _SNG45 OR _SOURCE_DISC EQUB &03 \ The checksum value for the default commander, #75 ELIF _EXECUTIVE EQUB &3F \ The checksum value for the maxed-out default \ commander, #75 ENDIF