{
 "schema": 1,
 "platform": "c64",
 "game": "summer-games",
 "part": "diving",
 "build": "The PAL G64 of Epyx's disk (directory \"SUMMER GAMES\"): the boot file SUMMER GAMES and SGLOAD, the engine B unpacked to $0C00-$3EFF, the opening ceremony A, six event files D, E, F, H, I and K each unpacked over $4000 upward (swimming over $1000-$BEFF), the world records WR and DEFAULT, and the unused files L and M; a second PAL image and an NTSC image were supplied too",
 "source": "regenerator2000 live",
 "regions": {
  "exclude": [
   [
    256,
    511,
    "stack"
   ],
   [
    53248,
    57343,
    "I/O and colour RAM"
   ],
   [
    0,
    22527,
    "The engine"
   ],
   [
    48128,
    65535,
    "The engine"
   ]
  ],
  "extra": [],
  "edges": [
   0,
   256,
   512,
   1024,
   2048,
   4096,
   16384,
   32768,
   40960,
   49152,
   53248,
   57344
  ],
  "elsewhere": [
   [
    0,
    22527,
    "The engine"
   ],
   [
    48128,
    65535,
    "The engine"
   ]
  ]
 },
 "blocks": [
  {
   "start": 22528,
   "end": 32735,
   "type": "Byte"
  },
  {
   "start": 32736,
   "end": 32750,
   "type": "Code"
  },
  {
   "start": 32751,
   "end": 43007,
   "type": "Byte"
  },
  {
   "start": 43008,
   "end": 46003,
   "type": "Code"
  },
  {
   "start": 46004,
   "end": 48127,
   "type": "Byte"
  }
 ],
 "symbols": [
  {
   "address": 22528,
   "name": "dv_colour_ram",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 22784,
   "name": "dv_colour_ram2",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 23040,
   "name": "dv_colour_ram3",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 23296,
   "name": "dv_colour_ram4",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 23552,
   "name": "dv_screen_colours",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 24072,
   "name": "dv_screen_colours2",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 24568,
   "name": "dv_sprite_ptrs",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 24569,
   "name": "a_5FF9",
   "type": "AbsoluteAddress",
   "kind": "auto"
  },
  {
   "address": 24570,
   "name": "a_5FFA",
   "type": "AbsoluteAddress",
   "kind": "auto"
  },
  {
   "address": 24571,
   "name": "a_5FFB",
   "type": "AbsoluteAddress",
   "kind": "auto"
  },
  {
   "address": 24572,
   "name": "a_5FFC",
   "type": "AbsoluteAddress",
   "kind": "auto"
  },
  {
   "address": 24573,
   "name": "a_5FFD",
   "type": "AbsoluteAddress",
   "kind": "auto"
  },
  {
   "address": 24574,
   "name": "a_5FFE",
   "type": "AbsoluteAddress",
   "kind": "auto"
  },
  {
   "address": 24576,
   "name": "dv_bitmap",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 25536,
   "name": "dv_bitmap_r3",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 26496,
   "name": "dv_bitmap_r6",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 27456,
   "name": "dv_bitmap_r9",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 28416,
   "name": "dv_bitmap_r12",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 29376,
   "name": "dv_bitmap_r15",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 30336,
   "name": "dv_bitmap_r18",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 31296,
   "name": "dv_bitmap_r21",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 32256,
   "name": "dv_bitmap_r24",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 32576,
   "name": "dv_zero_fill",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 32736,
   "name": "dv_entry",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 32751,
   "name": "dv_zero_fill2",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 32768,
   "name": "dv_shapes",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 32832,
   "name": "f_8040",
   "type": "Field",
   "kind": "auto"
  },
  {
   "address": 32833,
   "name": "f_8041",
   "type": "Field",
   "kind": "auto"
  },
  {
   "address": 32834,
   "name": "dv_shape1_r",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 33792,
   "name": "dv_shapes_8400",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 34816,
   "name": "dv_shapes_8800",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 35840,
   "name": "dv_shapes_8C00",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 36864,
   "name": "dv_shapes_9000",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 37888,
   "name": "dv_shapes_9400",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 38912,
   "name": "dv_shapes_9800",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 39936,
   "name": "dv_shapes_9C00",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 40960,
   "name": "dv_shapes_A000",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 41792,
   "name": "splash_shapes",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 42176,
   "name": "digit_shapes",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 43008,
   "name": "dv_start",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 43030,
   "name": "dive_setup",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 43171,
   "name": "dive_menu",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 43182,
   "name": "b_A8AE",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 43228,
   "name": "b_A8DC",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 43241,
   "name": "b_A8E9",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 43278,
   "name": "b_A90E",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 43295,
   "name": "menu_chosen",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 43305,
   "name": "start_dive",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 43337,
   "name": "b_A949",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 43371,
   "name": "dv_idle",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 43374,
   "name": "score_screen",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 43422,
   "name": "b_A99E",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 43468,
   "name": "b_A9CC",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 43474,
   "name": "show_total",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 43624,
   "name": "dv_standings",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 43656,
   "name": "b_AA88",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 43658,
   "name": "b_AA8A",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 43734,
   "name": "next_diver",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 43762,
   "name": "b_AAF2",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 43771,
   "name": "irq_text",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 43774,
   "name": "irq_after",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 43777,
   "name": "dv_irq",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 43831,
   "name": "b_AB37",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 43839,
   "name": "flight",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 43870,
   "name": "water_entry",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 43942,
   "name": "read_position",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 43950,
   "name": "b_ABAE",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 43961,
   "name": "spin_step",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 43999,
   "name": "b_ABDF",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44018,
   "name": "b_ABF2",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44023,
   "name": "half_turn_bonus",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 44034,
   "name": "b_AC02",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44042,
   "name": "draw_diver",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 44208,
   "name": "move_splash",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 44246,
   "name": "dv_irq_exit",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 44252,
   "name": "irq_splash",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 44254,
   "name": "judges",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 44262,
   "name": "b_ACE6",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44297,
   "name": "b_AD09",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44307,
   "name": "b_AD13",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44342,
   "name": "b_AD36",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44345,
   "name": "sprites_off",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 44353,
   "name": "splash",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 44367,
   "name": "b_AD4F",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44396,
   "name": "b_AD6C",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44419,
   "name": "b_AD83",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44437,
   "name": "move_splash2",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 44439,
   "name": "b_AD97",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44477,
   "name": "set_irq",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 44523,
   "name": "setup_screen",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 44589,
   "name": "b_AE2D",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44591,
   "name": "b_AE2F",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44607,
   "name": "b_AE3F",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44622,
   "name": "setup_sprites",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 44625,
   "name": "b_AE51",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44764,
   "name": "b_AEDC",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44774,
   "name": "dv_random",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 44790,
   "name": "print_at",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 44793,
   "name": "print_msg",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 44811,
   "name": "b_AF0B",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44823,
   "name": "r_AF17",
   "type": "Return",
   "kind": "auto"
  },
  {
   "address": 44827,
   "name": "print_name",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 44839,
   "name": "b_AF27",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44850,
   "name": "or_shape",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 44878,
   "name": "b_AF4E",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44888,
   "name": "copy_shape",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 44916,
   "name": "b_AF74",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44924,
   "name": "mirror_shapes",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 44933,
   "name": "b_AF85",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44972,
   "name": "b_AFAC",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 44973,
   "name": "mir_src_lo",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 44974,
   "name": "mir_src_hi",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 44979,
   "name": "mir_c_lo",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 44980,
   "name": "mir_c_hi",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 44982,
   "name": "mir_c_st_lo",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 44983,
   "name": "mir_c_st_hi",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 44988,
   "name": "mir_a_st_lo",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 44989,
   "name": "mir_a_st_hi",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 44991,
   "name": "mir_b_lo",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 44992,
   "name": "mir_b_hi",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 44997,
   "name": "mir_b_st_lo",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 44998,
   "name": "mir_b_st_hi",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 45019,
   "name": "b_AFDB",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45031,
   "name": "b_AFE7",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45050,
   "name": "make_reverse",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45052,
   "name": "b_AFFC",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45057,
   "name": "b_B001",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45069,
   "name": "text_mode",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45095,
   "name": "show_picture",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45097,
   "name": "b_B029",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45131,
   "name": "b_B04B",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45140,
   "name": "b_B054",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45149,
   "name": "b_B05D",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45158,
   "name": "b_B066",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45172,
   "name": "clear_text",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45183,
   "name": "b_B07F",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45198,
   "name": "b_B08E",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45213,
   "name": "b_B09D",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45232,
   "name": "fire_pressed",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45246,
   "name": "b_B0BE",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45252,
   "name": "b_B0C4",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45257,
   "name": "stick_dir",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45262,
   "name": "b_B0CE",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45268,
   "name": "b_B0D4",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45270,
   "name": "dv_wait_line",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45278,
   "name": "screen_pos",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45304,
   "name": "b_B0F8",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45317,
   "name": "put_char",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45338,
   "name": "b_B11A",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45341,
   "name": "print_bcd_hi",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45349,
   "name": "print_bcd_dot",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45362,
   "name": "print_score",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45396,
   "name": "b_B154",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45399,
   "name": "dv_print_number",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45404,
   "name": "dv_print_digit",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45414,
   "name": "digit_char",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 45428,
   "name": "high_nibble",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45433,
   "name": "print_spaces",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45435,
   "name": "b_B17B",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45445,
   "name": "print_dive_row",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45466,
   "name": "b_B19A",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45480,
   "name": "print_points",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45521,
   "name": "b_B1D1",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45527,
   "name": "save_results",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45534,
   "name": "b_B1DE",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45601,
   "name": "add_total",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45625,
   "name": "b_B239",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45665,
   "name": "judge_entry",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45675,
   "name": "b_B26B",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45690,
   "name": "b_B27A",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45699,
   "name": "j_B283",
   "type": "Jump",
   "kind": "auto"
  },
  {
   "address": 45708,
   "name": "b_B28C",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45715,
   "name": "split_judges",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 45721,
   "name": "b_B299",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45730,
   "name": "b_B2A2",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45738,
   "name": "b_B2AA",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45750,
   "name": "b_B2B6",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45785,
   "name": "high_low",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 45789,
   "name": "j_B2DD",
   "type": "Jump",
   "kind": "auto"
  },
  {
   "address": 45804,
   "name": "b_B2EC",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45820,
   "name": "shuffle_scores",
   "type": "Branch",
   "kind": "user"
  },
  {
   "address": 45827,
   "name": "b_B303",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45858,
   "name": "to_decimal",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45862,
   "name": "j_B326",
   "type": "Jump",
   "kind": "auto"
  },
  {
   "address": 45898,
   "name": "div_ten",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45904,
   "name": "b_B350",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45913,
   "name": "b_B359",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45920,
   "name": "b_B360",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45925,
   "name": "times32",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45926,
   "name": "times16",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45931,
   "name": "dv_clear_scores",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45933,
   "name": "b_B36D",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45953,
   "name": "mult_difficulty",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 45964,
   "name": "j_B38C",
   "type": "Jump",
   "kind": "auto"
  },
  {
   "address": 45983,
   "name": "b_B39F",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45992,
   "name": "b_B3A8",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 45995,
   "name": "wait_fire",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 46004,
   "name": "bit_masks",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 46020,
   "name": "dv_messages",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 46389,
   "name": "msg_lo",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 46416,
   "name": "msg_hi",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 46443,
   "name": "msg_colour",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 46470,
   "name": "buf_lo",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 46477,
   "name": "buf_hi",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 46509,
   "name": "pose_shapes",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 46510,
   "name": "f_B5AE",
   "type": "Field",
   "kind": "auto"
  },
  {
   "address": 46511,
   "name": "f_B5AF",
   "type": "Field",
   "kind": "auto"
  },
  {
   "address": 46512,
   "name": "pose_shapes2",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 46705,
   "name": "pose_x",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 46706,
   "name": "f_B672",
   "type": "Field",
   "kind": "auto"
  },
  {
   "address": 46707,
   "name": "f_B673",
   "type": "Field",
   "kind": "auto"
  },
  {
   "address": 46708,
   "name": "pose_x2",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 46901,
   "name": "pose_y",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 46902,
   "name": "f_B736",
   "type": "Field",
   "kind": "auto"
  },
  {
   "address": 46903,
   "name": "f_B737",
   "type": "Field",
   "kind": "auto"
  },
  {
   "address": 46904,
   "name": "pose_y2",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47097,
   "name": "pose_index",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47146,
   "name": "entry_base",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47194,
   "name": "entry_step_fwd",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47242,
   "name": "entry_step_back",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47290,
   "name": "entry_type",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47338,
   "name": "splash_spread",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47342,
   "name": "splash_left",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47346,
   "name": "splash_right",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47350,
   "name": "splash_x_left",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47354,
   "name": "splash_x_right",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47358,
   "name": "pos_base",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47362,
   "name": "spin_rate",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47378,
   "name": "card_pos",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47385,
   "name": "card_pos2",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47392,
   "name": "sid_init",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47416,
   "name": "splash_volume",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47420,
   "name": "splash_time",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47424,
   "name": "bit_reverse",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47680,
   "name": "dive_flags",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47684,
   "name": "start_diff",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47688,
   "name": "diver_colour",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47696,
   "name": "diver_colour2",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47704,
   "name": "frame_chars",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47768,
   "name": "frame_count",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47769,
   "name": "spin_frame",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47770,
   "name": "diver_x",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47771,
   "name": "diver_y",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47772,
   "name": "body_pos",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47773,
   "name": "spin_acc",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47774,
   "name": "dive_state",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47775,
   "name": "rise_speed",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47776,
   "name": "cur_pose",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47777,
   "name": "splash_step",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47778,
   "name": "dv_timer",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47779,
   "name": "cards_shown",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47780,
   "name": "dive_raw",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47781,
   "name": "judge_scores",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47784,
   "name": "judge_scores4",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47786,
   "name": "a_BAAA",
   "type": "AbsoluteAddress",
   "kind": "auto"
  },
  {
   "address": 47787,
   "name": "a_BAAB",
   "type": "AbsoluteAddress",
   "kind": "auto"
  },
  {
   "address": 47788,
   "name": "fire_latch",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47789,
   "name": "facing",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47790,
   "name": "spin_back",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47793,
   "name": "lead_char",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47794,
   "name": "text_colour",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47795,
   "name": "entry_pose",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47796,
   "name": "entry_spin",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47797,
   "name": "difficulty",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47798,
   "name": "cur_player",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47799,
   "name": "cur_dive",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47800,
   "name": "skip_cards",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47801,
   "name": "points_lo",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47805,
   "name": "points_total_lo",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47841,
   "name": "points_mid",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47845,
   "name": "points_total_mid",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47881,
   "name": "points_hi",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47885,
   "name": "points_total_hi",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47921,
   "name": "unscored",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47925,
   "name": "total_unscored",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 47961,
   "name": "dv_count",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47962,
   "name": "slot_base",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47963,
   "name": "row_player",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47965,
   "name": "row_y",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47973,
   "name": "pos_bonus",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47974,
   "name": "a_BB66",
   "type": "AbsoluteAddress",
   "kind": "auto"
  },
  {
   "address": 47975,
   "name": "a_BB67",
   "type": "AbsoluteAddress",
   "kind": "auto"
  },
  {
   "address": 47976,
   "name": "a_BB68",
   "type": "AbsoluteAddress",
   "kind": "auto"
  },
  {
   "address": 47977,
   "name": "menu_count",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 47978,
   "name": "dv_leftover",
   "type": "UserDefined",
   "kind": "user"
  }
 ],
 "comments": [
  {
   "address": 22528,
   "type": "line",
   "text": "The picture's colour RAM, rows 0-6, copied to $D800 by show_picture ($B027)"
  },
  {
   "address": 22784,
   "type": "line",
   "text": "The picture's colour RAM, rows 6-12, copied to $D900"
  },
  {
   "address": 23040,
   "type": "line",
   "text": "The picture's colour RAM, rows 12-19, copied to $DA00"
  },
  {
   "address": 23296,
   "type": "line",
   "text": "The picture's colour RAM, rows 19-24, copied to $DB00, with 24 spare bytes"
  },
  {
   "address": 23552,
   "type": "line",
   "text": "Screen RAM of the picture ($5C00-$5FE7, $D018 = $78 in bank 1): in multicolour bitmap mode each byte holds two colours of its cell. Rows 0-12"
  },
  {
   "address": 24072,
   "type": "line",
   "text": "Screen colours of the picture, rows 13-24"
  },
  {
   "address": 24552,
   "type": "line",
   "text": "Sixteen bytes after the screen that nothing reads"
  },
  {
   "address": 24568,
   "type": "line",
   "text": "The eight sprite pointers. The interrupt points sprites 0-3 at the blank buffer $38 ($4E00) while it rebuilds the diver, then at $39-$3C; sprites 4 and 5 ($3D, $3E) are the splash, 6 ($3F) unused in the dive"
  },
  {
   "address": 24569,
   "type": "line",
   "text": "Sprite 1's pointer"
  },
  {
   "address": 24570,
   "type": "line",
   "text": "Sprite 2's pointer"
  },
  {
   "address": 24571,
   "type": "line",
   "text": "Sprite 3's pointer"
  },
  {
   "address": 24572,
   "type": "line",
   "text": "Sprite 4's pointer, the left splash"
  },
  {
   "address": 24573,
   "type": "line",
   "text": "Sprite 5's pointer, the right splash"
  },
  {
   "address": 24574,
   "type": "line",
   "text": "Sprite 6's pointer"
  },
  {
   "address": 24575,
   "type": "line",
   "text": "Sprite 7's pointer"
  },
  {
   "address": 24576,
   "type": "line",
   "text": "The multicolour bitmap of the diving tower and pool ($6000-$7F3F), shown by show_picture. Rows 0-2"
  },
  {
   "address": 25536,
   "type": "line",
   "text": "The bitmap, character rows 3-5"
  },
  {
   "address": 26496,
   "type": "line",
   "text": "The bitmap, character rows 6-8"
  },
  {
   "address": 27456,
   "type": "line",
   "text": "The bitmap, character rows 9-11"
  },
  {
   "address": 28416,
   "type": "line",
   "text": "The bitmap, character rows 12-14"
  },
  {
   "address": 29376,
   "type": "line",
   "text": "The bitmap, character rows 15-17"
  },
  {
   "address": 30336,
   "type": "line",
   "text": "The bitmap, character rows 18-20"
  },
  {
   "address": 31296,
   "type": "line",
   "text": "The bitmap, character rows 21-24"
  },
  {
   "address": 32256,
   "type": "line",
   "text": "The bitmap's last character row"
  },
  {
   "address": 32576,
   "type": "line",
   "text": "Zero bytes between the bitmap and the module's entry"
  },
  {
   "address": 32736,
   "type": "line",
   "text": "The module's entry (module 4, file E), from the engine's loader: sets the processor port so BASIC is out and RAM shows at $A000-$BFFF, where the event's code is, then jumps to dv_start"
  },
  {
   "address": 32751,
   "type": "line",
   "text": "Zero bytes before the shapes"
  },
  {
   "address": 32768,
   "type": "line",
   "text": "The diver's shapes, 64 bytes each, numbered from $8000 (shape n at $8000 + 64n) and copied into the sprite buffers by copy_shape. Shape 0 is blank; 1-12 the tuck through one turn, 13-24 the tuck's second sprite"
  },
  {
   "address": 32832,
   "type": "line",
   "text": "Shape 1's first byte, the start mirror_shapes rewrites from"
  },
  {
   "address": 32833,
   "type": "line",
   "text": "Shape 1's second byte, operand of the middle-byte LDX and STA"
  },
  {
   "address": 32834,
   "type": "line",
   "text": "Shape 1 onward: the operand of mirror_shapes points here, so the disassembler marks it; tuck shapes"
  },
  {
   "address": 33792,
   "type": "line",
   "text": "More tuck shapes, then from shape 25 ($8640) the pike: its body, legs and arms (shapes 25-60)"
  },
  {
   "address": 34816,
   "type": "line",
   "text": "Pike shapes, then from shape 61 ($8F40) the half-pike (shapes 61-99)"
  },
  {
   "address": 35840,
   "type": "line",
   "text": "Pike and half-pike shapes"
  },
  {
   "address": 36864,
   "type": "line",
   "text": "Half-pike shapes; from shape 100 ($9900) the layout, the body straight (shapes 100-137)"
  },
  {
   "address": 37888,
   "type": "line",
   "text": "Half-pike and layout shapes"
  },
  {
   "address": 38912,
   "type": "line",
   "text": "Layout shapes through one turn"
  },
  {
   "address": 39936,
   "type": "line",
   "text": "Layout shapes; shapes 138-140 ($A280-$A33F) the diver standing on the platform"
  },
  {
   "address": 40960,
   "type": "line",
   "text": "The last layout and standing shapes"
  },
  {
   "address": 41792,
   "type": "line",
   "text": "The splash, shapes $8D-$92: small, large and medium for each side (left $8D-$8F, right $90-$92), chosen by the entry"
  },
  {
   "address": 42176,
   "type": "line",
   "text": "The judges' score cards, shapes $93-$9D: \"0.\" to \"10.\" with a gap for the half, then $9E \"0\" and $9F \"5\" ORed into the gap"
  },
  {
   "address": 43008,
   "type": "line",
   "text": "The event starts: sets the interrupt and screen, builds the bit-reversing table, clears every score, then starts with player 0's first dive"
  },
  {
   "address": 43030,
   "type": "line",
   "text": "Before each dive: resets the stack and the dive's state (state 4, layout position, standing pose $0C, rising speed $ED, X $E7, Y $44), takes the starting difficulty from start_diff for this dive, arms the bonus bits, and puts up the text screen. In practice it offers the dive menu; in competition it says whose dive and which it is"
  },
  {
   "address": 43111,
   "type": "line",
   "text": "Competition: \"GET READY FOR DIVE #\" with the player's name, the dive number and \"THIS WILL BE A\" and the dive's name, then waits for the button"
  },
  {
   "address": 43171,
   "type": "line",
   "text": "Practice: \"CHOOSE TYPE OF DIVE TO PRACTICE:\" and the five lines FORWARD, BACKWARD, REVERSE, INWARD and QUIT, with an arrow on the chosen line"
  },
  {
   "address": 43236,
   "type": "line",
   "text": "Waits up to nine frames for the button; then reads the stick: up moves the arrow up, down moves it down"
  },
  {
   "address": 43295,
   "type": "line",
   "text": "The button: QUIT goes back to the engine's menu at $0900; any dive goes on"
  },
  {
   "address": 43305,
   "type": "line",
   "text": "Sets the spin direction from dive_flags bit 0 (backward and reverse spin the other way) and, when bit 1 (which way the diver faces) differs from the last dive, mirrors every shape with $085F set; then shows the picture, colours the diver by player and hands over to the interrupt in state 0"
  },
  {
   "address": 43371,
   "type": "line",
   "text": "The main program idles here: the dive runs in the raster interrupt"
  },
  {
   "address": 43374,
   "type": "line",
   "text": "After the seventh judge: the text screen with \"JUDGES SCORES:\", the seven cards in a row, \"DIVE RATING FOR:\" and the player's name"
  },
  {
   "address": 43437,
   "type": "line",
   "text": "\"DISCARD HIGH AND LOW TO GET:\" and the five middle scores' sum (dive_raw, in half points), then that sum times five into $21/$22"
  },
  {
   "address": 43474,
   "type": "line",
   "text": "\"MULTIPLY BY DIFFICULTY RATING:\" and the rating as x.x, then multiplies (mult_difficulty) and prints \"TOTAL POINTS:\" with the product. The three BCD bytes go into this player's slot for this dive, which is marked scored, and add_total sums the player's four dives"
  },
  {
   "address": 43624,
   "type": "line",
   "text": "Competition: \"CURRENT STANDINGS:\", one line per player with the name and the four dives' points, the rows spaced by three, or two with seven or more players"
  },
  {
   "address": 43734,
   "type": "line",
   "text": "Waits for the button, then the next player; after the last player, the next dive; after the fourth dive, save_results and back to the engine at $0900"
  },
  {
   "address": 43771,
   "type": "line",
   "text": "State 4 or more: sprites off"
  },
  {
   "address": 43774,
   "type": "line",
   "text": "State 2 or 3: the splash and the judges"
  },
  {
   "address": 43777,
   "type": "line",
   "text": "The raster interrupt, line $F7, every frame: blanks the diver's sprites while their buffers change, counts the frame and runs the state: 0 on the platform, 1 in the air, 2 the splash, 3 the judges' cards, 4 and above the text screen with sprites off"
  },
  {
   "address": 43816,
   "type": "line",
   "text": "State 0: the fire button takes off (state 1); the diver stands until then"
  },
  {
   "address": 43839,
   "type": "line",
   "text": "State 1, a frame of the dive: the diver drifts left a pixel, and the vertical speed, a signed byte, adds a sixteenth of itself to Y while it rises by one a frame (gravity). At Y $F5 the diver is in the water"
  },
  {
   "address": 43870,
   "type": "line",
   "text": "The entry: judge_entry scores the pose, then the pose's entry type (entry_type) picks the splash's spread, its two shapes and places, its loudness and how long it lasts, and the noise starts on all three voices"
  },
  {
   "address": 43942,
   "type": "line",
   "text": "In the air the stick picks the body position (stick_dir: 0 right tuck, 1 left half-pike, 2 down pike, 3 up layout). Each position adds 3 to the difficulty the first time it is used, through its bonus bits"
  },
  {
   "address": 43961,
   "type": "line",
   "text": "The spin: the position's rate for this dive (spin_rate) adds to an accumulator, and each carry turns the diver one of twelve frames, down for forward spins and up for backward ones. Out of the standing pose ($0C) both start at frame 11"
  },
  {
   "address": 44023,
   "type": "line",
   "text": "Passing frames 2 and 8, each half-turn, adds 0.4 to the difficulty: the CMP that finds the frame leaves the carry set, so the ADC #$03 adds 4"
  },
  {
   "address": 44042,
   "type": "line",
   "text": "Draws the diver: keeps the pose and spin accumulator for the scoring, takes the pose from the position's base and the frame (pose_index), and places up to four sprites from the pose's offsets around X and Y, copying their shapes into buffers $39-$3C"
  },
  {
   "address": 44208,
   "type": "line",
   "text": "Moves the two splash shapes down a row and apart by the spread each frame"
  },
  {
   "address": 44246,
   "type": "line",
   "text": "Pulls Y, X and A and returns from the interrupt"
  },
  {
   "address": 44252,
   "type": "line",
   "text": "State 2 goes to the splash"
  },
  {
   "address": 44254,
   "type": "line",
   "text": "State 3: the judges' cards come up one at a time, each after a random 32-54 frames, or at once once the button has been pressed. Each card is a digit shape for the whole points with the \"0\" or \"5\" ORed in for the half. After the seventh, the button goes to the score screen"
  },
  {
   "address": 44345,
   "type": "line",
   "text": "State 4 and above: all sprites off"
  },
  {
   "address": 44353,
   "type": "line",
   "text": "State 2: the splash runs for its time; with $28 frames left the noise is gated off. When it ends the buffers are cleared and seven black sprites placed for the judges' cards (state 3)"
  },
  {
   "address": 44437,
   "type": "line",
   "text": "Moves the splash shapes down a row and apart"
  },
  {
   "address": 44477,
   "type": "line",
   "text": "Sets the raster interrupt on line $F7 to dv_irq (and the BRK vector with it), and turns the CIA's interrupts off"
  },
  {
   "address": 44523,
   "type": "line",
   "text": "Sets the text screen's colours and VIC bank 1, then copies the character ROM's second half ($D800-$DBFF, the upper and lower case set) to $5000 with the CPU's view of it switched in, and puts eight drawn characters from frame_chars over its first codes"
  },
  {
   "address": 44616,
   "type": "line",
   "text": "Switches the I/O back in and goes on to set the sprites up"
  },
  {
   "address": 44622,
   "type": "line",
   "text": "Clears the sprite buffers ($4E00-$4FFF), points sprites 0-6 at $39-$3F, single colour and unexpanded, sprite 0 white and 1-3 light red until start_dive colours them by player, splash sprites on line $E3, and loads the SID from sid_init"
  },
  {
   "address": 44774,
   "type": "line",
   "text": "Steps the random number in $1A/$1B and returns a byte of it"
  },
  {
   "address": 44790,
   "type": "line",
   "text": "Sets the screen position from A (column) and Y (row), then prints message X"
  },
  {
   "address": 44793,
   "type": "line",
   "text": "Prints message X in its colour from msg_lo/msg_hi/msg_colour, up to the $FF that ends it"
  },
  {
   "address": 44824,
   "type": "line",
   "text": "Sets the screen position, then falls into print_name; nothing calls this way in"
  },
  {
   "address": 44827,
   "type": "line",
   "text": "Prints player X's 16-character name from the engine's record at $0800 + 32X"
  },
  {
   "address": 44850,
   "type": "line",
   "text": "ORs shape A into sprite buffer Y: shape n is at $8000 + 64n"
  },
  {
   "address": 44888,
   "type": "line",
   "text": "Copies shape A into sprite buffer Y (buf_lo/buf_hi)"
  },
  {
   "address": 44924,
   "type": "line",
   "text": "Mirrors every diver shape left to right, three bytes a row through bit_reverse with the two side bytes swapped, from $8040 up to $A33F, by rewriting its own addresses for each shape; then negates the pose X offsets, so the diver faces the other way"
  },
  {
   "address": 44973,
   "type": "line",
   "text": "The shape address's low byte in the first LDX, rewritten for each shape"
  },
  {
   "address": 44974,
   "type": "line",
   "text": "Its high byte"
  },
  {
   "address": 44979,
   "type": "line",
   "text": "The third byte's address, low, in the second LDX"
  },
  {
   "address": 44980,
   "type": "line",
   "text": "High byte of the third byte's address (second LDX)"
  },
  {
   "address": 44982,
   "type": "line",
   "text": "The third byte's address in the first STA, low"
  },
  {
   "address": 44983,
   "type": "line",
   "text": "High byte of the third byte's address (first STA)"
  },
  {
   "address": 44988,
   "type": "line",
   "text": "The first byte's address in the second STA, low"
  },
  {
   "address": 44989,
   "type": "line",
   "text": "High byte of the first byte's address (second STA)"
  },
  {
   "address": 44991,
   "type": "line",
   "text": "The middle byte's address in the third LDX, low"
  },
  {
   "address": 44992,
   "type": "line",
   "text": "High byte of the middle byte's address (third LDX)"
  },
  {
   "address": 44997,
   "type": "line",
   "text": "The middle byte's address in the last STA, low"
  },
  {
   "address": 44998,
   "type": "line",
   "text": "Its high byte. Then the next shape, 64 bytes on, until $A340"
  },
  {
   "address": 45050,
   "type": "line",
   "text": "Builds bit_reverse: each byte with its bits in the opposite order"
  },
  {
   "address": 45069,
   "type": "line",
   "text": "The text screen: bank 1, screen $5400, characters $5000, background colour 3"
  },
  {
   "address": 45095,
   "type": "line",
   "text": "The picture: waits for line $F1, turns on multicolour bitmap mode ($D018 = $78: screen $5C00, bitmap $6000), black background, and copies the colour RAM from $5800"
  },
  {
   "address": 45172,
   "type": "line",
   "text": "Clears the text screen and draws its frame: a top border, 23 rows of spaces and a bottom border, then the double line on row 2"
  },
  {
   "address": 45232,
   "type": "line",
   "text": "Carry set only on the frame the fire button goes down; a held button counts once"
  },
  {
   "address": 45257,
   "type": "line",
   "text": "The stick's direction in A: 3 up, 2 down, 1 left, 0 right, negative for none"
  },
  {
   "address": 45270,
   "type": "line",
   "text": "Waits for raster line $3C"
  },
  {
   "address": 45278,
   "type": "line",
   "text": "Points $1C/$1D at screen $5400 + 40 rows + column, and $1E/$1F at the same cell of colour RAM"
  },
  {
   "address": 45317,
   "type": "line",
   "text": "Writes the character in A with the colour in text_colour and moves on"
  },
  {
   "address": 45341,
   "type": "line",
   "text": "Prints a BCD digit with a leading space for zero"
  },
  {
   "address": 45349,
   "type": "line",
   "text": "Prints a BCD digit with a leading 0, then a point"
  },
  {
   "address": 45362,
   "type": "line",
   "text": "Prints a judge's score in half points as \" n.0\" or \" n.5\""
  },
  {
   "address": 45399,
   "type": "line",
   "text": "Prints X+1 as a digit"
  },
  {
   "address": 45404,
   "type": "line",
   "text": "Prints the low nibble as a digit, or the leading character for zero"
  },
  {
   "address": 45414,
   "type": "line",
   "text": "A digit through the decimal flag, 0-9 as \"0\"-\"9\", and from then on the leading character is \"0\""
  },
  {
   "address": 45428,
   "type": "line",
   "text": "Shifts the high nibble down"
  },
  {
   "address": 45433,
   "type": "line",
   "text": "Prints A spaces"
  },
  {
   "address": 45445,
   "type": "line",
   "text": "Prints one standings line: the player's four dives' points"
  },
  {
   "address": 45480,
   "type": "line",
   "text": "Prints the points in slot Y, or six spaces when it has none"
  },
  {
   "address": 45527,
   "type": "line",
   "text": "At the end of the competition, for each player: prints the total as text into the engine record's result field ($0810 + 32X), then writes its three BCD bytes after it as the score"
  },
  {
   "address": 45601,
   "type": "line",
   "text": "Adds a player's four dives in BCD into the fifth slot, their total"
  },
  {
   "address": 45665,
   "type": "line",
   "text": "Scores the entry from the pose and the spin: only the layout scores. Its base (entry_base) is 100 at frames 5 and 11, head or feet straight down, 80 one frame off, 32 two off and 0 flat; the spin accumulator's top nibble, read the way the dive turns, takes or adds the step (entry_step_fwd or entry_step_back) for how far it is to the next frame"
  },
  {
   "address": 45715,
   "type": "line",
   "text": "Divides the total by five into five judges' scores in half points, the remainder spread one each"
  },
  {
   "address": 45741,
   "type": "line",
   "text": "Moves a point from one random judge to another, unless the first has none or the second has 20"
  },
  {
   "address": 45785,
   "type": "line",
   "text": "Adds the high and low judges: one judge's score plus 0 or 1, at most 20, and another's less 0 or 1"
  },
  {
   "address": 45820,
   "type": "line",
   "text": "Shuffles the seven scores nine times"
  },
  {
   "address": 45858,
   "type": "line",
   "text": "Turns the 16-bit number in $10/$11 into BCD in $12-$14"
  },
  {
   "address": 45898,
   "type": "line",
   "text": "Divides $10/$11 by ten: the quotient back in $10/$11, the remainder in A"
  },
  {
   "address": 45925,
   "type": "line",
   "text": "A times 32"
  },
  {
   "address": 45926,
   "type": "line",
   "text": "A times 16"
  },
  {
   "address": 45931,
   "type": "line",
   "text": "Clears the 40 score slots, eight players by five, and marks them all unscored"
  },
  {
   "address": 45953,
   "type": "line",
   "text": "Multiplies $21/$22 by the difficulty, shifting and adding, then to decimal"
  },
  {
   "address": 45995,
   "type": "line",
   "text": "Waits for the fire button"
  },
  {
   "address": 46004,
   "type": "line",
   "text": "Single-bit and single-gap masks that nothing reads"
  },
  {
   "address": 46020,
   "type": "line",
   "text": "The messages, each ended by $FF, in the frame characters and upper case: \"FREESTYLE DIVING\", \"CURRENT STANDINGS:\", the borders, \"CHOOSE TYPE OF DIVE TO PRACTICE:\", \"JUDGES SCORES:\", the score lines and the dives' names, which the menu prints from the second character"
  },
  {
   "address": 46389,
   "type": "line",
   "text": "Low bytes of the 27 messages"
  },
  {
   "address": 46416,
   "type": "line",
   "text": "High bytes of the messages"
  },
  {
   "address": 46443,
   "type": "line",
   "text": "Each message's colour"
  },
  {
   "address": 46470,
   "type": "line",
   "text": "Low bytes of the seven sprite buffers ($4E40-$4FC0)"
  },
  {
   "address": 46477,
   "type": "line",
   "text": "High bytes of the sprite buffers"
  },
  {
   "address": 46484,
   "type": "line",
   "text": "25 bytes that nothing reads"
  },
  {
   "address": 46509,
   "type": "line",
   "text": "The 49 poses, four shapes each (0 none): twelve tuck, twelve pike, twelve half-pike, twelve layout and standing"
  },
  {
   "address": 46510,
   "type": "line",
   "text": "pose_shapes read from its second byte, the second sprite's shape"
  },
  {
   "address": 46511,
   "type": "line",
   "text": "pose_shapes from its third byte, the third sprite's shape"
  },
  {
   "address": 46512,
   "type": "line",
   "text": "The pose shape table continued"
  },
  {
   "address": 46705,
   "type": "line",
   "text": "Each pose's four X offsets from the diver's X, negated by mirror_shapes"
  },
  {
   "address": 46706,
   "type": "line",
   "text": "pose_x from its second byte"
  },
  {
   "address": 46707,
   "type": "line",
   "text": "pose_x from its third byte"
  },
  {
   "address": 46708,
   "type": "line",
   "text": "The pose X offsets continued"
  },
  {
   "address": 46901,
   "type": "line",
   "text": "Each pose's four Y offsets"
  },
  {
   "address": 46902,
   "type": "line",
   "text": "pose_y from its second byte"
  },
  {
   "address": 46903,
   "type": "line",
   "text": "pose_y from its third byte"
  },
  {
   "address": 46904,
   "type": "line",
   "text": "The pose Y offsets continued"
  },
  {
   "address": 47097,
   "type": "line",
   "text": "The pose for each position base plus frame; the twelve frames are shifted three so frame 0 is the right-way-up pose of the turn"
  },
  {
   "address": 47146,
   "type": "line",
   "text": "The entry's base score for each pose: 0 for every bent pose; for the layout 80, 32, 0, 32, 80, 100 through each half-turn"
  },
  {
   "address": 47194,
   "type": "line",
   "text": "The step for each pose when the spin is past the frame, as +1, 0 or -1 per sixteenth"
  },
  {
   "address": 47242,
   "type": "line",
   "text": "The step when the spin reads the other way"
  },
  {
   "address": 47290,
   "type": "line",
   "text": "Each pose's splash: 1 for bent, and for the layout 3, 2, 2, 2, 3, 0 through each half-turn"
  },
  {
   "address": 47338,
   "type": "line",
   "text": "By entry type, how fast the splash's halves part: 1 for a clean entry, 3 bent, 4 flat, 2 nearly straight"
  },
  {
   "address": 47342,
   "type": "line",
   "text": "The left splash shape by type"
  },
  {
   "address": 47346,
   "type": "line",
   "text": "The right splash shape by type"
  },
  {
   "address": 47350,
   "type": "line",
   "text": "The left splash's X by type"
  },
  {
   "address": 47354,
   "type": "line",
   "text": "The right splash's X by type"
  },
  {
   "address": 47358,
   "type": "line",
   "text": "Each position's first pose: right tuck 0, left half-pike 24, down pike 12, up layout 36"
  },
  {
   "address": 47362,
   "type": "line",
   "text": "The spin rate for each dive (forward, backward, reverse, inward) and position (tuck, half-pike, pike, layout): the tuck turns fastest, the layout slowest"
  },
  {
   "address": 47378,
   "type": "line",
   "text": "X and Y for the seven judges' cards, interleaved as the VIC's registers are: X $21 to $BD, 26 apart, on line $C1"
  },
  {
   "address": 47385,
   "type": "line",
   "text": "card_pos read from its eighth byte, so the loop writes X and Y registers alternately"
  },
  {
   "address": 47392,
   "type": "line",
   "text": "The SID's 24 registers for the event: three noise voices for the splash"
  },
  {
   "address": 47416,
   "type": "line",
   "text": "The splash's loudness by entry type: 8 clean, 12 bent, 15 flat, 10 nearly"
  },
  {
   "address": 47420,
   "type": "line",
   "text": "How many frames the splash lasts, by type"
  },
  {
   "address": 47424,
   "type": "line",
   "text": "Each byte with its bits reversed, built by make_reverse, for mirror_shapes"
  },
  {
   "address": 47680,
   "type": "line",
   "text": "Each dive's flags: bit 0 spins backward, bit 1 faces the board. Forward 0, backward 3, reverse 1, inward 2"
  },
  {
   "address": 47684,
   "type": "line",
   "text": "Each dive's starting difficulty in tenths before the bonuses: forward 0, backward 1, reverse 3, inward 2"
  },
  {
   "address": 47688,
   "type": "line",
   "text": "The diver's colour by player"
  },
  {
   "address": 47696,
   "type": "line",
   "text": "The colour of the diver's other sprites by player"
  },
  {
   "address": 47704,
   "type": "line",
   "text": "Eight drawn characters for the text screen's frame, copied over codes 0-7"
  },
  {
   "address": 47768,
   "type": "line",
   "text": "Counts frames"
  },
  {
   "address": 47769,
   "type": "line",
   "text": "The frame of the turn, 0-11, or 12 standing"
  },
  {
   "address": 47770,
   "type": "line",
   "text": "The diver's X"
  },
  {
   "address": 47771,
   "type": "line",
   "text": "The diver's Y"
  },
  {
   "address": 47772,
   "type": "line",
   "text": "The body position: 0 tuck, 1 half-pike, 2 pike, 3 layout"
  },
  {
   "address": 47773,
   "type": "line",
   "text": "The spin accumulator; a carry turns a frame"
  },
  {
   "address": 47774,
   "type": "line",
   "text": "The interrupt's state: 0 standing, 1 in the air, 2 splash, 3 judges, 4 text"
  },
  {
   "address": 47775,
   "type": "line",
   "text": "The vertical speed, signed, starting at $ED (rising)"
  },
  {
   "address": 47776,
   "type": "line",
   "text": "The pose drawn this frame"
  },
  {
   "address": 47777,
   "type": "line",
   "text": "How far the splash parts each frame"
  },
  {
   "address": 47778,
   "type": "line",
   "text": "Counts down the splash and the gap before each card"
  },
  {
   "address": 47779,
   "type": "line",
   "text": "How many judges' cards are up"
  },
  {
   "address": 47780,
   "type": "line",
   "text": "The entry's score: the five middle judges' sum in half points"
  },
  {
   "address": 47781,
   "type": "line",
   "text": "The seven judges' scores in half points, 0-20; the last two start as the high and low ones"
  },
  {
   "address": 47784,
   "type": "line",
   "text": "The fourth judge's score; the shuffle swaps among the first four and the last four from here"
  },
  {
   "address": 47786,
   "type": "line",
   "text": "The sixth of the seven judges' scores: high_low writes the high judge here, and the shuffle that follows can swap it with any of the first four"
  },
  {
   "address": 47787,
   "type": "line",
   "text": "The low judge's score"
  },
  {
   "address": 47788,
   "type": "line",
   "text": "The fire button's state last frame"
  },
  {
   "address": 47789,
   "type": "line",
   "text": "Which way the shapes face now (dive_flags bit 1)"
  },
  {
   "address": 47790,
   "type": "line",
   "text": "Non-zero when the dive spins backward"
  },
  {
   "address": 47793,
   "type": "line",
   "text": "The character printed for a leading zero"
  },
  {
   "address": 47794,
   "type": "line",
   "text": "The colour put_char writes"
  },
  {
   "address": 47795,
   "type": "line",
   "text": "The pose at the moment of entry"
  },
  {
   "address": 47796,
   "type": "line",
   "text": "The spin accumulator at the moment of entry"
  },
  {
   "address": 47797,
   "type": "line",
   "text": "The dive's difficulty in tenths"
  },
  {
   "address": 47798,
   "type": "line",
   "text": "The player diving"
  },
  {
   "address": 47799,
   "type": "line",
   "text": "The dive, 0-3 (4 is QUIT on the menu)"
  },
  {
   "address": 47800,
   "type": "line",
   "text": "Set when the button is pressed during the cards, to show the rest at once"
  },
  {
   "address": 47801,
   "type": "line",
   "text": "The points' low BCD byte for each of 40 slots: player times five plus dive, the fifth the total"
  },
  {
   "address": 47805,
   "type": "line",
   "text": "The low BCD byte of each player's total, slot five of five"
  },
  {
   "address": 47841,
   "type": "line",
   "text": "The points' middle BCD byte"
  },
  {
   "address": 47845,
   "type": "line",
   "text": "The middle BCD byte of each total"
  },
  {
   "address": 47881,
   "type": "line",
   "text": "The points' high BCD byte"
  },
  {
   "address": 47885,
   "type": "line",
   "text": "The high BCD byte of each total"
  },
  {
   "address": 47921,
   "type": "line",
   "text": "Bit 7 set while a slot has no points"
  },
  {
   "address": 47925,
   "type": "line",
   "text": "The totals' unscored flags, cleared by add_total"
  },
  {
   "address": 47961,
   "type": "line",
   "text": "A loop count, and the standings' row step"
  },
  {
   "address": 47962,
   "type": "line",
   "text": "The standings player's first slot"
  },
  {
   "address": 47963,
   "type": "line",
   "text": "The standings or results player"
  },
  {
   "address": 47965,
   "type": "line",
   "text": "The standings row"
  },
  {
   "address": 47973,
   "type": "line",
   "text": "The four positions' bonus bits: each starts at 7, and the first three frames in a position add a tenth each"
  },
  {
   "address": 47974,
   "type": "line",
   "text": "The half-pike's bonus bits"
  },
  {
   "address": 47975,
   "type": "line",
   "text": "The pike's bonus bits"
  },
  {
   "address": 47976,
   "type": "line",
   "text": "The layout's bonus bits"
  },
  {
   "address": 47977,
   "type": "line",
   "text": "The menu's frame count before the stick is read"
  },
  {
   "address": 47978,
   "type": "line",
   "text": "Bytes nothing reads, left from an earlier build: they hold fragments of 6502 code"
  }
 ]
}