{
 "schema": 1,
 "platform": "c64",
 "game": "a-nightmare-on-elm-street",
 "part": "resident",
 "build": "Two G64 disk sides (with three more copies of side 2 that hold other saved games): side 1 boots FREDDY, a 1-block file that loads MAIN.OBJ, which loads the resident loader, the sound effects, the fast loader and the street part INIT at $1390; side 2 holds the house part MAIN at $1390 and the ten levels' maps, objects, and art",
 "source": "regenerator2000 live",
 "regions": {
  "exclude": [
   [
    256,
    511,
    "stack"
   ],
   [
    53248,
    57343,
    "I/O and colour RAM"
   ],
   [
    52224,
    53247,
    "screen RAM"
   ],
   [
    2,
    708,
    "2 parts: Freddy's house and the dream levels, Title, character select and Springwood"
   ],
   [
    788,
    1023,
    "2 parts: Freddy's house and the dream levels, Title, character select and Springwood"
   ],
   [
    4752,
    31655,
    "2 parts: Freddy's house and the dream levels, Title, character select and Springwood"
   ],
   [
    32768,
    40959,
    "2 parts: Freddy's house and the dream levels, Title, character select and Springwood"
   ],
   [
    43008,
    59391,
    "2 parts: Freddy's house and the dream levels, Title, character select and Springwood"
   ]
  ],
  "extra": [
   [
    53248,
    55295,
    "character set"
   ]
  ],
  "edges": [
   0,
   256,
   512,
   1024,
   2048,
   4096,
   16384,
   32768,
   40960,
   49152,
   53248,
   57344
  ],
  "elsewhere": [
   [
    2,
    708,
    "2 parts: Freddy's house and the dream levels, Title, character select and Springwood"
   ],
   [
    788,
    1023,
    "2 parts: Freddy's house and the dream levels, Title, character select and Springwood"
   ],
   [
    4752,
    31655,
    "2 parts: Freddy's house and the dream levels, Title, character select and Springwood"
   ],
   [
    32768,
    40959,
    "2 parts: Freddy's house and the dream levels, Title, character select and Springwood"
   ],
   [
    43008,
    59391,
    "2 parts: Freddy's house and the dream levels, Title, character select and Springwood"
   ]
  ]
 },
 "blocks": [
  {
   "start": 0,
   "end": 1,
   "type": "Undefined"
  },
  {
   "start": 709,
   "end": 721,
   "type": "Byte"
  },
  {
   "start": 722,
   "end": 767,
   "type": "Undefined"
  },
  {
   "start": 768,
   "end": 779,
   "type": "Byte"
  },
  {
   "start": 780,
   "end": 787,
   "type": "Undefined"
  },
  {
   "start": 1024,
   "end": 1095,
   "type": "Word"
  },
  {
   "start": 1096,
   "end": 3150,
   "type": "Byte"
  },
  {
   "start": 3151,
   "end": 3151,
   "type": "Undefined"
  },
  {
   "start": 3152,
   "end": 3157,
   "type": "Code"
  },
  {
   "start": 3158,
   "end": 3163,
   "type": "Undefined"
  },
  {
   "start": 3164,
   "end": 3169,
   "type": "Code"
  },
  {
   "start": 3170,
   "end": 3171,
   "type": "Undefined"
  },
  {
   "start": 3172,
   "end": 3191,
   "type": "Byte"
  },
  {
   "start": 3192,
   "end": 3193,
   "type": "Undefined"
  },
  {
   "start": 3194,
   "end": 3199,
   "type": "Word"
  },
  {
   "start": 3200,
   "end": 3305,
   "type": "Byte"
  },
  {
   "start": 3306,
   "end": 3306,
   "type": "Undefined"
  },
  {
   "start": 3307,
   "end": 3311,
   "type": "Byte"
  },
  {
   "start": 3312,
   "end": 3316,
   "type": "Code"
  },
  {
   "start": 3317,
   "end": 3367,
   "type": "Undefined"
  },
  {
   "start": 3368,
   "end": 3810,
   "type": "Code"
  },
  {
   "start": 3811,
   "end": 4749,
   "type": "Byte"
  },
  {
   "start": 4750,
   "end": 4751,
   "type": "Undefined"
  },
  {
   "start": 31656,
   "end": 31661,
   "type": "Code"
  },
  {
   "start": 31662,
   "end": 31670,
   "type": "Byte"
  },
  {
   "start": 31671,
   "end": 31987,
   "type": "Code"
  },
  {
   "start": 31988,
   "end": 31992,
   "type": "Byte"
  },
  {
   "start": 31993,
   "end": 32044,
   "type": "Code"
  },
  {
   "start": 32045,
   "end": 32045,
   "type": "Undefined"
  },
  {
   "start": 32046,
   "end": 32096,
   "type": "Code"
  },
  {
   "start": 32097,
   "end": 32767,
   "type": "Byte"
  },
  {
   "start": 40960,
   "end": 43007,
   "type": "Byte"
  },
  {
   "start": 59392,
   "end": 65535,
   "type": "Byte"
  }
 ],
 "symbols": [
  {
   "address": 0,
   "name": "cpu_port_ddr",
   "type": "ZeroPageField",
   "kind": "user"
  },
  {
   "address": 1,
   "name": "cpu_port",
   "type": "ZeroPageAbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 709,
   "name": "boot_stub",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 722,
   "name": "boot_load_main_obj",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 768,
   "name": "basic_vectors",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 1024,
   "name": "sfx_table",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 1025,
   "name": "sfx_table_hi",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 1096,
   "name": "sfx_scripts",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 2048,
   "name": "sfx_scripts_2",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 2574,
   "name": "sfx_scripts_3",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 2638,
   "name": "sfx_scripts_4",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 3087,
   "name": "sound_unused_fill",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 3151,
   "name": "part_handover_flag",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3152,
   "name": "dos_load",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 3155,
   "name": "dos_save",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 3158,
   "name": "dos_entry_table_rest",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 3164,
   "name": "dos_prompt",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 3167,
   "name": "dos_fatal",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 3170,
   "name": "dos_fatal_flag",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3171,
   "name": "dos_retries",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3172,
   "name": "dos_scratch_command",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 3175,
   "name": "dos_scratch_name",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 3192,
   "name": "dos_cmd_len",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3193,
   "name": "dos_name_len",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3194,
   "name": "dos_message_ptrs",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 3195,
   "name": "dos_message_ptrs_hi",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 3200,
   "name": "dos_messages",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 3212,
   "name": "dos_side_digit",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3276,
   "name": "dos_msg_fatal",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 3306,
   "name": "dos_tries_left",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3307,
   "name": "dos_file_entry",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3308,
   "name": "dos_entry_name_hi",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3309,
   "name": "dos_entry_addr_lo",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3310,
   "name": "dos_entry_addr_hi",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3311,
   "name": "dos_entry_side",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3312,
   "name": "dos_close_cmd",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 3317,
   "name": "dos_kernal_load",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 3364,
   "name": "dos_kload_x",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 3366,
   "name": "dos_kload_y",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 3368,
   "name": "dos_lookup_only",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 3381,
   "name": "dos_lookup_x",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3383,
   "name": "dos_lookup_y",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3385,
   "name": "dos_load_file",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 3394,
   "name": "j_0D42",
   "type": "Jump",
   "kind": "auto"
  },
  {
   "address": 3422,
   "name": "b_0D5E",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 3425,
   "name": "b_0D61",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 3428,
   "name": "dos_load_y",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3430,
   "name": "dos_load_x",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3432,
   "name": "dos_open_command",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 3441,
   "name": "dos_save_file",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 3455,
   "name": "dos_save_x",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3463,
   "name": "dos_save_y",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3467,
   "name": "j_0D8B",
   "type": "Jump",
   "kind": "auto"
  },
  {
   "address": 3491,
   "name": "dos_save_end_lo",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3493,
   "name": "dos_save_end_hi",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3520,
   "name": "b_0DC0",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 3523,
   "name": "b_0DC3",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 3532,
   "name": "dos_fatal_error",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 3542,
   "name": "j_0DD6",
   "type": "Jump",
   "kind": "auto"
  },
  {
   "address": 3545,
   "name": "dos_ptr_to_fb",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 3558,
   "name": "dos_show_message",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 3602,
   "name": "dos_scratch_file",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 3639,
   "name": "dos_scratch_a",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3641,
   "name": "dos_scratch_x",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3643,
   "name": "dos_scratch_y",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3645,
   "name": "dos_find_entry",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 3666,
   "name": "b_0E52",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 3667,
   "name": "dos_entry_number",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3680,
   "name": "b_0E60",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 3685,
   "name": "b_0E65",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 3686,
   "name": "dos_entry_ptr",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3687,
   "name": "dos_entry_ptr_hi",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3717,
   "name": "b_0E85",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 3735,
   "name": "dos_find_y",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3737,
   "name": "dos_find_x",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3742,
   "name": "dos_read_status",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 3769,
   "name": "b_0EB9",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 3773,
   "name": "dos_status_len",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 3780,
   "name": "b_0EC4",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 3810,
   "name": "r_0EE2",
   "type": "Return",
   "kind": "auto"
  },
  {
   "address": 3811,
   "name": "unused_fill",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 4096,
   "name": "unused_fill_2",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 31656,
   "name": "fl_send_drive_code",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 31659,
   "name": "fl_load",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 31662,
   "name": "fl_state",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 31663,
   "name": "fl_block_count",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 31664,
   "name": "fl_busy",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 31665,
   "name": "fl_mw_command",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 31668,
   "name": "fl_mw_addr_lo",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 31669,
   "name": "fl_mw_addr_hi",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 31670,
   "name": "fl_mw_length",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 31671,
   "name": "fl_load_file",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 31698,
   "name": "b_7BD2",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 31710,
   "name": "b_7BDE",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 31712,
   "name": "b_7BE0",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 31722,
   "name": "b_7BEA",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 31749,
   "name": "b_7C05",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 31760,
   "name": "b_7C10",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 31762,
   "name": "b_7C12",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 31772,
   "name": "r_7C1C",
   "type": "Return",
   "kind": "auto"
  },
  {
   "address": 31773,
   "name": "fl_receive_file",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 31827,
   "name": "j_7C53",
   "type": "Jump",
   "kind": "auto"
  },
  {
   "address": 31852,
   "name": "b_7C6C",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 31859,
   "name": "b_7C73",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 31862,
   "name": "b_7C76",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 31869,
   "name": "fl_receive_header",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 31876,
   "name": "fl_receive_block",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 31881,
   "name": "fl_receive_bytes",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 31883,
   "name": "b_7C8B",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 31889,
   "name": "fl_line_value",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 31898,
   "name": "b_7C9A",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 31916,
   "name": "fl_idle_value",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 31922,
   "name": "fl_store_op",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 31926,
   "name": "fl_block_len",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 31940,
   "name": "r_7CC4",
   "type": "Return",
   "kind": "auto"
  },
  {
   "address": 31941,
   "name": "fl_sprites_off",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 31958,
   "name": "fl_sprites_restore",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 31959,
   "name": "fl_sprites_were_on",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 31969,
   "name": "fl_start_drive",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 31974,
   "name": "b_7CE6",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 31988,
   "name": "fl_me_command",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 31993,
   "name": "fl_write_drive",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 31996,
   "name": "b_7CFC",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 32001,
   "name": "b_7D01",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 32025,
   "name": "b_7D19",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 32036,
   "name": "b_7D24",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 32045,
   "name": "fl_blocks_left",
   "type": "AbsoluteAddress",
   "kind": "user"
  },
  {
   "address": 32046,
   "name": "fl_upload",
   "type": "Jump",
   "kind": "user"
  },
  {
   "address": 32064,
   "name": "fl_send_mw",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 32075,
   "name": "b_7D4B",
   "type": "Branch",
   "kind": "auto"
  },
  {
   "address": 32087,
   "name": "fl_listen",
   "type": "Subroutine",
   "kind": "user"
  },
  {
   "address": 32097,
   "name": "fl_drive_code",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 40960,
   "name": "alt_charset",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 41984,
   "name": "alt_charset_2",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 59392,
   "name": "monster_sprites",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 60416,
   "name": "monster_sprites_2",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 61440,
   "name": "monster_sprites_3",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 62464,
   "name": "monster_sprites_4",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 63168,
   "name": "sprite_buffer_a",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 63232,
   "name": "sprite_buffer_b",
   "type": "Field",
   "kind": "user"
  },
  {
   "address": 63296,
   "name": "monster_sprites_5",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 63488,
   "name": "monster_sprites_6",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 64512,
   "name": "monster_sprites_7",
   "type": "UserDefined",
   "kind": "user"
  },
  {
   "address": 65427,
   "name": "KERNAL_SECOND",
   "type": "Predefined",
   "kind": "system"
  },
  {
   "address": 65448,
   "name": "KERNAL_CIOUT",
   "type": "Predefined",
   "kind": "system"
  },
  {
   "address": 65454,
   "name": "KERNAL_UNLSN",
   "type": "Predefined",
   "kind": "system"
  },
  {
   "address": 65457,
   "name": "KERNAL_LISTEN",
   "type": "Predefined",
   "kind": "system"
  },
  {
   "address": 65466,
   "name": "KERNAL_SETLFS",
   "type": "Predefined",
   "kind": "system"
  },
  {
   "address": 65469,
   "name": "KERNAL_SETNAM",
   "type": "Predefined",
   "kind": "system"
  },
  {
   "address": 65472,
   "name": "KERNAL_OPEN",
   "type": "Predefined",
   "kind": "system"
  },
  {
   "address": 65475,
   "name": "KERNAL_CLOSE",
   "type": "Predefined",
   "kind": "system"
  },
  {
   "address": 65478,
   "name": "KERNAL_CHKIN",
   "type": "Predefined",
   "kind": "system"
  },
  {
   "address": 65487,
   "name": "KERNAL_CHRIN",
   "type": "Predefined",
   "kind": "system"
  },
  {
   "address": 65496,
   "name": "KERNAL_SAVE",
   "type": "Predefined",
   "kind": "system"
  },
  {
   "address": 65511,
   "name": "KERNAL_CLALL",
   "type": "Predefined",
   "kind": "system"
  },
  {
   "address": 65530,
   "name": "monster_sprites_tail",
   "type": "UserDefined",
   "kind": "user"
  }
 ],
 "comments": [
  {
   "address": 0,
   "type": "line",
   "text": "the 6510's data direction register for its own port at $0001"
  },
  {
   "address": 1,
   "type": "line",
   "text": "the 6510's port: which of the ROMs and the chips the processor sees. The game keeps $36 (KERNAL and I/O in, BASIC out) and switches to $35 or $34 for a moment to reach the RAM under them"
  },
  {
   "address": 709,
   "type": "line",
   "text": "FREDDY, the 1-block file the disk's first directory entry names: it loads here over the BASIC vectors at $0300 so that BASIC's idle-loop vector ($0302) points at $02D2, which runs as soon as the LOAD finishes. $02C5 is a JMP $02D2 and $02C8 the file name \"MAIN.OBJ\""
  },
  {
   "address": 722,
   "type": "line",
   "text": "the boot code FREDDY brings: blanks the screen, then SETLFS 1,8,0 and SETNAM \"MAIN.OBJ\" and loads that file to $1400 with the KERNAL's LOAD, closes all files and jumps to $1400, the next loader stage"
  },
  {
   "address": 768,
   "type": "line",
   "text": "BASIC's vectors as FREDDY's load left them: $0302 (BASIC's idle loop) points at the boot code at $02D2, the trick that starts the game without typing RUN"
  },
  {
   "address": 1024,
   "type": "line",
   "text": "sound-effect table, 36 two-byte pointers, one per effect number; the player in each part (house $6743) doubles the number, reads the pointer and starts the effect. The data it points at sits in this same 2 KB file, SOUND, loaded at $0400 and kept through the whole game"
  },
  {
   "address": 1025,
   "type": "line",
   "text": "high bytes of the sound-effect pointers; the player reads the pair as $0400,X and $0401,X"
  },
  {
   "address": 1096,
   "type": "line",
   "text": "the effect scripts: each effect starts with three voice pointers (lo, hi; $FFFF or $0000 for a voice it leaves alone), and each voice is a byte list of commands ($C1 nn, $C2 waveform control, $C3 pulse width lo hi, $C4 attack/decay sustain/release, $C7 nn) followed by pitch and length pairs up to $FF, which ends the voice"
  },
  {
   "address": 2048,
   "type": "line",
   "text": "the effect scripts from $0800 on, the later effects of the table at $0400 (pitch sweeps and chord runs, one note list per voice)"
  },
  {
   "address": 2574,
   "type": "line",
   "text": "the long effect scripts from $0A0E on: two-note chords repeated with the $C4 and $C7 commands stepping their envelope down each time"
  },
  {
   "address": 2638,
   "type": "line",
   "text": "the end of the chord scripts, and the two short effects at $0BE7 and $0BED that the table's last entries point at"
  },
  {
   "address": 3087,
   "type": "line",
   "text": "the power-on pattern of $00 and $FF bytes left between the end of SOUND and the disk code; nothing reads it"
  },
  {
   "address": 3151,
   "type": "line",
   "text": "a byte both parts share across a load: the street writes it at $1ECD, the house writes 1 at $142B just before it loads the street part again, and the house reads it at $185C"
  },
  {
   "address": 3152,
   "type": "line",
   "text": "loader entry: load a file by its number in the calling part's file table (A), X and Y passed on; jumps to $0D39"
  },
  {
   "address": 3155,
   "type": "line",
   "text": "loader entry for saving the game: write the file chosen by its number in the part's table; jumps to $0D71"
  },
  {
   "address": 3158,
   "type": "line",
   "text": "two more loader entries, JMP $0CF5 (load a file through the KERNAL's own LOAD) and JMP $0D28 (look up a file's name only)"
  },
  {
   "address": 3164,
   "type": "line",
   "text": "loader entry: show disk message A (0 insert side, 1 write error, 2 fatal error) through the part's message hooks and wait for a key"
  },
  {
   "address": 3167,
   "type": "line",
   "text": "loader entry for an unrecoverable error: show the fatal-error message and hang"
  },
  {
   "address": 3170,
   "type": "line",
   "text": "set to 1 when a fatal disk error has been shown"
  },
  {
   "address": 3171,
   "type": "line",
   "text": "how many times a load or save is tried before the game gives up (3)"
  },
  {
   "address": 3172,
   "type": "line",
   "text": "\"S0:\" followed by the file name: the DOS command that deletes the old save file before a new one is written"
  },
  {
   "address": 3175,
   "type": "line",
   "text": "the file name part of the scratch command, copied from the file table's name"
  },
  {
   "address": 3192,
   "type": "line",
   "text": "length of the scratch command built at $0C64"
  },
  {
   "address": 3193,
   "type": "line",
   "text": "length of the current file name"
  },
  {
   "address": 3194,
   "type": "line",
   "text": "pointers to the three disk messages: insert side, write error, fatal error"
  },
  {
   "address": 3195,
   "type": "line",
   "text": "high bytes of the message pointers at $0C7A"
  },
  {
   "address": 3200,
   "type": "line",
   "text": "\"INSERT SIDE n AND PRESS A KEY...\", \"A WRITE ERROR HAS OCCURED.  PRESS A KEY.\" and \"A FATAL DISK ERROR HAS OCCURED.\", each ending in $00; the side digit at $0C8C is written in by $0DE6"
  },
  {
   "address": 3212,
   "type": "line",
   "text": "the side number in \"INSERT SIDE n\", written as \"1\" or \"2\" from the file's side byte before the message is shown"
  },
  {
   "address": 3276,
   "type": "line",
   "text": "\"A FATAL DISK ERROR HAS OCCURED.\" ($00 ended)"
  },
  {
   "address": 3306,
   "type": "line",
   "text": "tries left for the load or save under way"
  },
  {
   "address": 3307,
   "type": "line",
   "text": "the current file's entry, copied from the part's table: name pointer (2 bytes), load address (2 bytes), disk side (1 byte)"
  },
  {
   "address": 3308,
   "type": "line",
   "text": "high byte of the current file's name pointer"
  },
  {
   "address": 3309,
   "type": "line",
   "text": "low byte of the current file's load address, where the fast loader puts it whatever the file's own header says"
  },
  {
   "address": 3310,
   "type": "line",
   "text": "high byte of that load address"
  },
  {
   "address": 3311,
   "type": "line",
   "text": "the disk side the current file is on, 0 for side 1 and 1 for side 2"
  },
  {
   "address": 3312,
   "type": "line",
   "text": "closes the command channel (file 15)"
  },
  {
   "address": 3317,
   "type": "line",
   "text": "load the current file with the KERNAL's own LOAD to its address, then read the drive's status; returns A=1 when it loaded"
  },
  {
   "address": 3364,
   "type": "line",
   "text": "the caller's X kept by the KERNAL-load entry"
  },
  {
   "address": 3366,
   "type": "line",
   "text": "the caller's Y kept by the KERNAL-load entry"
  },
  {
   "address": 3368,
   "type": "line",
   "text": "looks up a file entry without loading it and returns its disk side in A"
  },
  {
   "address": 3381,
   "type": "line",
   "text": "the caller's X kept by the lookup entry (operand patched at $0D28)"
  },
  {
   "address": 3383,
   "type": "line",
   "text": "the caller's Y kept by the lookup entry"
  },
  {
   "address": 3385,
   "type": "line",
   "text": "loads file A of the part's table with the fast loader at $7BAB, retrying on an error and asking for the disk side on each failure; after the last try it gives up through dos_fatal"
  },
  {
   "address": 3428,
   "type": "line",
   "text": "the caller's Y kept by the load entry (operand patched at $0D3C)"
  },
  {
   "address": 3430,
   "type": "line",
   "text": "the caller's X kept by the load entry (operand patched at $0D39)"
  },
  {
   "address": 3432,
   "type": "line",
   "text": "sets file 15 on drive 8, secondary address 2"
  },
  {
   "address": 3441,
   "type": "line",
   "text": "saves the current file: deletes the old copy with the scratch command, writes the file with the KERNAL's SAVE from the entry's address (the end address is patched into $0DA3 and $0DA5 from that address), reads the drive's status, then sends the fast loader's drive code again with $7BA8; retries like the load"
  },
  {
   "address": 3455,
   "type": "line",
   "text": "the caller's X, kept by the save entry and handed back on return (an operand patched at $0D71)"
  },
  {
   "address": 3463,
   "type": "line",
   "text": "the caller's Y, kept the same way"
  },
  {
   "address": 3491,
   "type": "line",
   "text": "operand of LDX at $0DA2, the low byte of the SAVE end address, patched at $0D80"
  },
  {
   "address": 3493,
   "type": "line",
   "text": "operand of LDY at $0DA4, the high byte of the SAVE end address, patched at $0D88"
  },
  {
   "address": 3532,
   "type": "line",
   "text": "shows the fatal disk error message and stops the game for good in a loop on itself at $0DD6"
  },
  {
   "address": 3545,
   "type": "line",
   "text": "copies the file's load address into the pointer at $FB-$FC"
  },
  {
   "address": 3558,
   "type": "line",
   "text": "puts the disk side into the message, then calls the part's hooks at $1393 to $139C (clear the message line, print the message at its place, wait for a key) and returns once a key is pressed"
  },
  {
   "address": 3602,
   "type": "line",
   "text": "sends \"S0:<name>\" on the command channel to delete the file before it is written again"
  },
  {
   "address": 3639,
   "type": "line",
   "text": "the caller's A kept by the scratch routine (operand patched at $0E12)"
  },
  {
   "address": 3641,
   "type": "line",
   "text": "the caller's X kept by the scratch routine"
  },
  {
   "address": 3643,
   "type": "line",
   "text": "the caller's Y kept by the scratch routine"
  },
  {
   "address": 3645,
   "type": "line",
   "text": "finds entry A in the part's file table at $13B3 (five bytes each), copies it to $0CEB, copies the name to the scratch command and sets the tries counter"
  },
  {
   "address": 3667,
   "type": "line",
   "text": "operand of LDA at $0E52, patched with the file number so that five additions find its five-byte entry"
  },
  {
   "address": 3686,
   "type": "line",
   "text": "the operands of LDA at $0E65, patched to point at the file's entry in the part's table ($13B3 plus five times the number)"
  },
  {
   "address": 3687,
   "type": "line",
   "text": "high byte of that pointer"
  },
  {
   "address": 3735,
   "type": "line",
   "text": "the caller's Y kept by the table lookup"
  },
  {
   "address": 3737,
   "type": "line",
   "text": "the caller's X kept by the table lookup"
  },
  {
   "address": 3742,
   "type": "line",
   "text": "reads the drive's error channel into the text buffer at $139F; carry clear when the status starts \"00\" or \"01\""
  },
  {
   "address": 3773,
   "type": "line",
   "text": "count of the status characters read from the drive"
  },
  {
   "address": 3811,
   "type": "line",
   "text": "the C64's power-on RAM pattern, four $FF and four $00 bytes in turn, between the disk code and the part loaded above it; nothing loads or reads here"
  },
  {
   "address": 4096,
   "type": "line",
   "text": "more of the power-on pattern, up to $128D where the part loaded above it begins"
  },
  {
   "address": 31656,
   "type": "line",
   "text": "fast loader entry 1: sends the drive half of the loader (672 bytes at $7D61) into the 1541's memory"
  },
  {
   "address": 31659,
   "type": "line",
   "text": "fast loader entry 2: loads the file named at X/Y (high/low) by asking the drive to run its half and receiving the file two bits at a time; carry set on an error"
  },
  {
   "address": 31662,
   "type": "line",
   "text": "the fast loader's variables: last block's status byte, its length, a busy flag, the \"M-W\" command bytes and the drive address being written"
  },
  {
   "address": 31663,
   "type": "line",
   "text": "the length byte of the block being received"
  },
  {
   "address": 31664,
   "type": "line",
   "text": "1 while a transfer is under way, 0 after"
  },
  {
   "address": 31665,
   "type": "line",
   "text": "\"M-W\", the memory-write command sent before each block of drive code and before the file name"
  },
  {
   "address": 31668,
   "type": "line",
   "text": "low byte of the drive address the next \"M-W\" writes to"
  },
  {
   "address": 31669,
   "type": "line",
   "text": "high byte of that drive address"
  },
  {
   "address": 31670,
   "type": "line",
   "text": "the byte count in the \"M-W\" command: 32 for a block of drive code, 16 for the file name"
  },
  {
   "address": 31671,
   "type": "line",
   "text": "sends the file name to the drive, starts the drive code with M-E, receives every block into memory at the file's address, then turns the sprites back on; carry set and A the drive's error on failure"
  },
  {
   "address": 31773,
   "type": "line",
   "text": "receives the file block by block into the address the caller put in $FB-$FC (from the part's file table, $0D42): the two bytes after the first block's link bytes, the file's own load address, are received and dropped (the store is patched to RTS for them), and each block's first byte says whether another follows"
  },
  {
   "address": 31869,
   "type": "line",
   "text": "receives the next block's header bytes, storing nothing (the store at $7CB2 is turned into an RTS opcode)"
  },
  {
   "address": 31876,
   "type": "line",
   "text": "receives a block of data bytes into memory through ($FB),Y"
  },
  {
   "address": 31881,
   "type": "line",
   "text": "the receive loop: waits for the drive's signal on $DD00, then reads four pairs of bits from the serial clock and data lines into one byte, 144 bytes or the count set at $7CB6"
  },
  {
   "address": 31889,
   "type": "line",
   "text": "operand of LDA at $7C90, patched with $DD00 and bit 3 set: the value that holds the serial ATN line while bytes arrive"
  },
  {
   "address": 31916,
   "type": "line",
   "text": "operand of LDA at $7CAB, patched with $DD00 as it was, to put the lines back after each byte"
  },
  {
   "address": 31922,
   "type": "line",
   "text": "the instruction that stores each received byte; its opcode is patched to $91 (STA (zp),Y) for data and $60 (RTS) for the header bytes, which return in A instead"
  },
  {
   "address": 31926,
   "type": "line",
   "text": "operand of CPY at $7CB5, the number of bytes in the block being received, from the block's header"
  },
  {
   "address": 31941,
   "type": "line",
   "text": "turns the sprites off for the transfer and remembers which were on, since the timing cannot afford the video chip's sprite fetches"
  },
  {
   "address": 31958,
   "type": "line",
   "text": "turns the sprites back on afterwards"
  },
  {
   "address": 31959,
   "type": "line",
   "text": "operand of LDX at $7CD6, the sprite enable bits saved by $7CC5 and put back by $7CD6"
  },
  {
   "address": 31969,
   "type": "line",
   "text": "sends \"M-E\" to start the drive code at drive address $0410"
  },
  {
   "address": 31988,
   "type": "line",
   "text": "the \"M-E\" command and its address, $0410"
  },
  {
   "address": 31993,
   "type": "line",
   "text": "writes A blocks of 32 bytes from ($FB) into the drive's memory with \"M-W\" commands"
  },
  {
   "address": 32045,
   "type": "line",
   "text": "blocks of drive code still to write"
  },
  {
   "address": 32046,
   "type": "line",
   "text": "writes the 21 blocks of drive code from $7D61 to drive address $0400"
  },
  {
   "address": 32064,
   "type": "line",
   "text": "sends one \"M-W\" command header for the drive address in X/Y"
  },
  {
   "address": 32087,
   "type": "line",
   "text": "makes the drive listen on its command channel"
  },
  {
   "address": 32097,
   "type": "line",
   "text": "the drive half of the fast loader, 6502 code that runs inside the 1541 from $0400: it finds the file in the directory, reads each sector itself and sends it two bits at a time over the serial clock and data lines. It is data to this computer and never runs here"
  },
  {
   "address": 40960,
   "type": "line",
   "text": "ALTCH.CHA, the panel's character set, loaded once and kept for the whole game: characters 0 to 63 are the capital letters, digits and punctuation the messages use, 64 to 127 the pieces of the item pictures beside the panel (the hourglass among them)"
  },
  {
   "address": 41984,
   "type": "line",
   "text": "the second half of the panel character set, characters 128 to 255: more pieces of the item pictures, long jagged lines drawn across several characters, and arrow pieces"
  },
  {
   "address": 59392,
   "type": "line",
   "text": "MON, 6 KB of sprite shapes in the video chip's bank at $C000 (pointers $A0 to $FF), loaded by the street part and kept for the house; in the house the player's sprite 2 points into it ($FE)"
  },
  {
   "address": 60416,
   "type": "line",
   "text": "sprite shapes $B0 to $BF: more frames of the hooded walking figures of the first block"
  },
  {
   "address": 61440,
   "type": "line",
   "text": "sprite shapes $C0 to $CF: a third set of the hooded walking figures"
  },
  {
   "address": 62464,
   "type": "line",
   "text": "sprite shapes $D0 to $DF: single figures (a man in a cap, a falling figure, a winged shape) and two blank shapes"
  },
  {
   "address": 63168,
   "type": "line",
   "text": "shapes $DB and $DC, a two-shape buffer the house fills at run time: $22C7 copies 128 bytes into it from ($6A), clears or masks rows of it, and points sprite 4 at $DB"
  },
  {
   "address": 63232,
   "type": "line",
   "text": "the second shape of that buffer, $DC, cleared and masked alongside the first by the same code"
  },
  {
   "address": 63296,
   "type": "line",
   "text": "sprite shapes $DD to $DF, the last of the fourth block: the shapes after the run-time buffer"
  },
  {
   "address": 63488,
   "type": "line",
   "text": "sprite shapes $E0 to $EF: the roach (monster kind 1, which the level hints call roaches) in its walking frames"
  },
  {
   "address": 64512,
   "type": "line",
   "text": "sprite shapes $F0 to $FF: the walking skeleton (kind 3), then the wheelchair (kind 4, the level hints' WHEELCHAIRS) in its frames"
  },
  {
   "address": 65530,
   "type": "line",
   "text": "the last six bytes of MON, the end of shape $FF, lying in the RAM under the KERNAL where the processor would find its NMI, reset and interrupt vectors if the KERNAL were switched out; the game keeps it in, so they are only sprite data. References to $FFFF from the house are placeholders in instructions it patches before they run"
  }
 ]
}