{"schema":1,"platform":"c64","game":"neverending-story","part":"engine","title":"The NeverEnding Story","build":"MrL and Dr Bakterius crack of Ocean's release (.d64, MD5 1938dd66ac2dcf1f9067532f41c0b3e8); the engine at the opening, each part at its first prompt","symbols_sha256":"7334e63b59acedbb5e8763b752b6268458b40dce04f1a6b1217308001ac8b75f","snapshot":{"file":"work/opening.vsf","sha256":"e5feaa8a4622c0642043de9027b7733ee9cfb4e63d298ad946d3d12b668ab45d"},"index":[{"a":1024,"n":"ENTRY_POINT","k":"routine","len":6,"c":true},{"a":1030,"n":"CALL_INIT_GAME","k":"routine","len":3,"c":true},{"a":1033,"n":"MAIN_LOOP","k":"routine","len":12,"c":true},{"a":1045,"n":"SWITCH_TO_NEXT_PART","k":"routine","len":32,"c":true},{"a":1063,"n":"NEXT_PART_SET_ROOM_PART2","k":"branch","len":1,"c":false},{"a":1068,"n":"NEXT_PART_LOAD_AND_SETUP","k":"branch","len":1,"c":false},{"a":1077,"n":"ROOM_GRAPHIC_TABLE_PTR","k":"variable","len":1,"c":true},{"a":1078,"n":"a_0436","k":"variable","len":1,"c":true},{"a":1079,"n":"PART_INIT_SCRIPT_TABLE_PTR","k":"variable","len":1,"c":true},{"a":1080,"n":"a_0438","k":"variable","len":1,"c":true},{"a":1081,"n":"SHOW_PART_LOAD_SCREEN","k":"routine","len":38,"c":true},{"a":1119,"n":"LOAD_DISABLED_RTS","k":"routine","len":1,"c":true},{"a":1120,"n":"ROUTINE_PADDING_0460","k":"variable","len":1,"c":true},{"a":1121,"n":"DISK_LOAD_GAME","k":"routine","len":48,"c":true},{"a":1162,"n":"DISK_LOAD_POST_LOAD_SETUP","k":"branch","len":1,"c":false},{"a":1169,"n":"SAVE_DISABLED_RTS","k":"routine","len":1,"c":true},{"a":1170,"n":"UNUSED_READ_FILENAME_PTR","k":"variable","len":2,"c":true},{"a":1172,"n":"DISK_SAVE_GAME","k":"routine","len":34,"c":true},{"a":1206,"n":"DISK_IO_ERROR","k":"routine","len":13,"c":true},{"a":1209,"n":"DISK_IO_ERROR_REPORT","k":"branch","len":1,"c":false},{"a":1219,"n":"ABORT_EMPTY_FILENAME","k":"routine","len":5,"c":true},{"a":1224,"n":"READ_FILENAME","k":"routine","len":35,"c":true},{"a":1241,"n":"READ_FILENAME_COPY_LOOP","k":"branch","len":1,"c":false},{"a":1250,"n":"READ_FILENAME_STORE_CHAR","k":"branch","len":1,"c":false},{"a":1259,"n":"BLANK_FILENAME_BUF","k":"routine","len":11,"c":true},{"a":1263,"n":"BLANK_FILENAME_LOOP","k":"branch","len":1,"c":false},{"a":1270,"n":"PREPARE_DISK_IO","k":"routine","len":22,"c":true},{"a":1292,"n":"SETUP_KERNAL_FILE","k":"routine","len":21,"c":true},{"a":1313,"n":"END_DISK_IO","k":"routine","len":27,"c":true},{"a":1340,"n":"SWAP_ZERO_PAGE_AND_BACKUP","k":"routine","len":22,"c":true},{"a":1342,"n":"SWAP_LOOP","k":"branch","len":1,"c":false},{"a":1362,"n":"WAIT_FOR_KEY","k":"routine","len":11,"c":true},{"a":1373,"n":"WAIT_FOR_SPACE_KEY","k":"routine","len":8,"c":true},{"a":1381,"n":"CHECK_YES_KEY","k":"routine","len":11,"c":true},{"a":1390,"n":"CHECK_YES_ACCEPT","k":"branch","len":1,"c":false},{"a":1392,"n":"RENDER_ROOM_GRAPHICS","k":"routine","len":79,"c":true},{"a":1409,"n":"RENDER_ROOM_GFX_RECORD_LOOP","k":"branch","len":1,"c":false},{"a":1418,"n":"RENDER_ROOM_GFX_NEXT_RECORD","k":"branch","len":1,"c":false},{"a":1429,"n":"RENDER_ROOM_GFX_LOOP_TAIL","k":"branch","len":1,"c":false},{"a":1441,"n":"RENDER_ROOM_GFX_STRIDE_LOOP","k":"branch","len":1,"c":false},{"a":1453,"n":"RENDER_ROOM_GFX_STRIDE_TAIL","k":"branch","len":1,"c":false},{"a":1471,"n":"BLIT_ROOM_GRAPHIC","k":"routine","len":183,"c":true},{"a":1475,"n":"BLIT_ROOM_GFX_COPY_RECORD","k":"branch","len":1,"c":false},{"a":1492,"n":"BLIT_ROOM_GFX_ROW_LOOP","k":"branch","len":1,"c":false},{"a":1524,"n":"BLIT_ROOM_GFX_ADD_COLUMN","k":"branch","len":1,"c":false},{"a":1653,"n":"BLIT_ROOM_GFX_DONE","k":"branch","len":1,"c":false},{"a":1654,"n":"COPY_BLIT_ROW","k":"routine","len":31,"c":true},{"a":1656,"n":"COPY_BLIT_ROW_LOOP","k":"branch","len":1,"c":false},{"a":1666,"n":"COPY_BLIT_ROW_BUMP_DEST","k":"branch","len":1,"c":false},{"a":1672,"n":"COPY_BLIT_ROW_TEST_END","k":"branch","len":1,"c":false},{"a":1685,"n":"READ_RASTER_LINE","k":"routine","len":4,"c":true},{"a":1689,"n":"NOOP_0699","k":"routine","len":1,"c":true},{"a":1690,"n":"NOOP_069A","k":"routine","len":1,"c":true},{"a":1691,"n":"OPENING_SETUP","k":"routine","len":116,"c":true},{"a":1714,"n":"b_06B2","k":"branch","len":1,"c":false},{"a":1807,"n":"ENTER_GAMEPLAY_DISPLAY","k":"routine","len":33,"c":true},{"a":1840,"n":"INSTALL_DISK_LOADER","k":"routine","len":73,"c":true},{"a":1913,"n":"MEMCPY","k":"routine","len":37,"c":true},{"a":1921,"n":"COPY_BLOCK_LOOP","k":"branch","len":1,"c":false},{"a":1935,"n":"COPY_REMAINDER_BYTES","k":"branch","len":1,"c":false},{"a":1944,"n":"COPY_REMAINDER_LOOP","k":"branch","len":1,"c":false},{"a":1950,"n":"REMAINDER_BYTES","k":"routine","len":4,"c":true},{"a":1953,"n":"COPY_COMPLETED","k":"branch","len":1,"c":false},{"a":1954,"n":"RESTORE_GAMEPLAY_DISPLAY","k":"routine","len":70,"c":true},{"a":2024,"n":"CLEAR_TEXT_SCREEN","k":"routine","len":25,"c":true},{"a":2036,"n":"CLEAR_TEXT_PAGE_LOOP","k":"branch","len":1,"c":false},{"a":2038,"n":"CLEAR_TEXT_BYTE_LOOP","k":"branch","len":1,"c":false},{"a":2049,"n":"READ_INPUT_ALT","k":"routine","len":5,"c":true},{"a":2054,"n":"READ_INPUT","k":"routine","len":199,"c":true},{"a":2062,"n":"READ_INPUT_SET_IDLE_HIGH","k":"branch","len":1,"c":false},{"a":2082,"n":"READ_INPUT_BLANK_LOOP","k":"branch","len":1,"c":false},{"a":2108,"n":"READ_INPUT_IDLE_TICK","k":"branch","len":1,"c":false},{"a":2123,"n":"READ_INPUT_SCAN_KEY","k":"branch","len":1,"c":false},{"a":2158,"n":"READ_INPUT_STORE_CHAR","k":"branch","len":1,"c":false},{"a":2171,"n":"READ_INPUT_RESET_REPEAT","k":"branch","len":1,"c":false},{"a":2179,"n":"READ_INPUT_BACKSPACE","k":"branch","len":1,"c":false},{"a":2218,"n":"READ_INPUT_BACKSPACE_COLOR","k":"branch","len":1,"c":false},{"a":2229,"n":"READ_INPUT_REDRAW_CURSOR","k":"branch","len":1,"c":false},{"a":2244,"n":"READ_INPUT_TIMED_OUT","k":"branch","len":1,"c":false},{"a":2253,"n":"FINISH_INPUT_LINE","k":"routine","len":14,"c":true},{"a":2267,"n":"PRINT_CHARACTER","k":"routine","len":36,"c":true},{"a":2282,"n":"INC_COLOR_PTR","k":"branch","len":1,"c":false},{"a":2288,"n":"SET_COLUMN","k":"branch","len":1,"c":false},{"a":2299,"n":"RESET_COLUMN","k":"branch","len":1,"c":false},{"a":2303,"n":"SCROLL_IF_BOTTOM","k":"routine","len":74,"c":true},{"a":2371,"n":"CLEAR_LAST_ROW","k":"branch","len":1,"c":false},{"a":2376,"n":"SCROLL_DONE","k":"branch","len":1,"c":false},{"a":2377,"n":"a_0949","k":"routine","len":3,"c":true},{"a":2380,"n":"DRAW_INPUT_CURSOR","k":"routine","len":11,"c":true},{"a":2390,"n":"RETURN_FROM_SCROLL","k":"branch","len":1,"c":false},{"a":2391,"n":"PRINT_ROOM_TEXT_DROPCAP","k":"routine","len":68,"c":true},{"a":2422,"n":"DROPCAP_GAP_LOOP","k":"branch","len":1,"c":false},{"a":2459,"n":"PRINT_SENTENCE","k":"routine","len":15,"c":true},{"a":2474,"n":"COMPUTE_SENTENCE_PTR_OFS","k":"routine","len":16,"c":true},{"a":2486,"n":"STORE_HIGH_BYTE","k":"branch","len":1,"c":false},{"a":2490,"n":"COMPUTE_SENTENCE_PTR","k":"routine","len":29,"c":true},{"a":2519,"n":"PRINT_EVENT_TEXT","k":"routine","len":55,"c":true},{"a":2541,"n":"EVENT_TEXT_INDEX_HIGH","k":"branch","len":1,"c":false},{"a":2545,"n":"EVENT_TEXT_ADD_TABLE_BASE","k":"branch","len":1,"c":false},{"a":2574,"n":"PROCESS_TERM","k":"routine","len":45,"c":true},{"a":2587,"n":"TOKEN_TEST","k":"branch","len":1,"c":false},{"a":2592,"n":"DISPATCH_CHARACTER","k":"branch","len":1,"c":false},{"a":2609,"n":"CONTINUE_WORD_SCAN","k":"branch","len":1,"c":false},{"a":2619,"n":"TEST_WORD_FITS_SCREEN_1","k":"routine","len":56,"c":true},{"a":2631,"n":"CALL_PRINT_WORD","k":"branch","len":1,"c":false},{"a":2634,"n":"TEST_ADD_SPACE","k":"branch","len":1,"c":false},{"a":2654,"n":"TEST_WORD_FITS_SCREEN_2","k":"branch","len":1,"c":false},{"a":2666,"n":"PRINT_WORD_AND_SPACE","k":"branch","len":1,"c":false},{"a":2675,"n":"PROCESS_TOKEN","k":"routine","len":104,"c":true},{"a":2699,"n":"STORE_HIGH_BYTE","k":"branch","len":1,"c":false},{"a":2703,"n":"COMPUTE_TOKEN_ADDR","k":"branch","len":1,"c":false},{"a":2745,"n":"MOVE_POINTER_TO_CHARS","k":"branch","len":1,"c":false},{"a":2751,"n":"PRINT_TERM","k":"branch","len":1,"c":false},{"a":2771,"n":"RESUME_SENTENCE","k":"branch","len":1,"c":false},{"a":2779,"n":"PRINT_WORD","k":"routine","len":26,"c":true},{"a":2805,"n":"UPPERCASE_FILTER_ENABLED","k":"routine","len":10,"c":true},{"a":2812,"n":"CONTINUE_UPPERCASE_LETTER","k":"branch","len":1,"c":false},{"a":2815,"n":"UPPERCASE_LETTER_FLAG","k":"routine","len":19,"c":true},{"a":2827,"n":"CONTINUE_LOWERCASE_LETTER","k":"branch","len":1,"c":false},{"a":2831,"n":"CONTINUE_ANY_LETTER","k":"branch","len":1,"c":false},{"a":2834,"n":"HANDLE_DOT","k":"routine","len":43,"c":true},{"a":2841,"n":"PRINT_CHAR_AND_CONTINUE","k":"branch","len":1,"c":false},{"a":2844,"n":"INCREMENT_TERM_PTR","k":"branch","len":1,"c":false},{"a":2850,"n":"PROCEED_TO_NEXT_CHAR","k":"branch","len":1,"c":false},{"a":2855,"n":"NEXT_CHAR_COLOR_ESCAPE","k":"branch","len":1,"c":false},{"a":2861,"n":"NEXT_CHAR_SET_COLOR","k":"branch","len":1,"c":false},{"a":2871,"n":"HANDLE_NEWLINE","k":"branch","len":1,"c":false},{"a":2877,"n":"PRINT_PARAGRAPH_INDENT","k":"routine","len":14,"c":true},{"a":2891,"n":"PRINT_EMPTY_LINE","k":"routine","len":13,"c":true},{"a":2903,"n":"PRINTING_COMPLETED","k":"branch","len":1,"c":false},{"a":2904,"n":"PRINT_ROOM_TEXT","k":"routine","len":101,"c":true},{"a":2936,"n":"ROOM_TEXT_INDEX_HIGH","k":"branch","len":1,"c":false},{"a":2940,"n":"ROOM_TEXT_ADD_TABLE_BASE","k":"branch","len":1,"c":false},{"a":2997,"n":"ROOM_TEXT_SET_BODY_COLOR","k":"branch","len":1,"c":false},{"a":3005,"n":"BITMAP_ROW_ADDR_TABLE","k":"table","len":20,"c":true},{"a":3025,"n":"SCREEN_ROW_ADDR_TABLE","k":"table","len":20,"c":true},{"a":3045,"n":"COLOR_ROW_ADDR_TABLE","k":"table","len":20,"c":true},{"a":3065,"n":"ROOM_GRAPHIC_TABLE","k":"table","len":342,"c":true},{"a":3407,"n":"OBJ_ROOM_TABLE","k":"table","len":125,"c":true},{"a":3532,"n":"PART_ROOM_BASE_IDS","k":"table","len":3,"c":true},{"a":3535,"n":"PART_INIT_SCRIPT_POINTERS","k":"table","len":6,"c":true},{"a":3541,"n":"FILENAME_PTR","k":"variable","len":1,"c":true},{"a":3542,"n":"a_0DD6","k":"variable","len":1,"c":true},{"a":3543,"n":"FILENAME_BUF","k":"table","len":8,"c":true},{"a":3551,"n":"UNUSED_FILENAME_BUFFER_SIZE","k":"variable","len":2,"c":true},{"a":3553,"n":"ACTION_DISPATCH_TABLE_PTR","k":"variable","len":1,"c":true},{"a":3554,"n":"ACTION_DISPATCH_TABLE_PTR_HI","k":"variable","len":1,"c":true},{"a":3555,"n":"ACTION_DISPATCH_TABLE","k":"table","len":66,"c":true},{"a":3621,"n":"SCRIPT_GOTO_ACTION_SCRIPT_NOUN","k":"routine","len":14,"c":true},{"a":3629,"n":"SCRIPT_MOVE_NOUN_BAD_DIRECTION","k":"branch","len":1,"c":false},{"a":3635,"n":"SCRIPT_GOTO_ACTION_SCRIPT","k":"routine","len":3,"c":true},{"a":3638,"n":"RUN_DIRECTION_ACTION_SCRIPT","k":"routine","len":9,"c":true},{"a":3647,"n":"ACTION_MOVE_DIRECTION","k":"routine","len":78,"c":true},{"a":3665,"n":"MOVE_DIR_INDEX_HIGH","k":"branch","len":1,"c":false},{"a":3669,"n":"MOVE_DIR_ADD_TABLE_BASE","k":"branch","len":1,"c":false},{"a":3697,"n":"MOVE_DIR_SCAN_EXITS","k":"branch","len":1,"c":false},{"a":3711,"n":"MOVE_DIR_TAKE_EXIT","k":"branch","len":1,"c":false},{"a":3720,"n":"MOVE_DIR_NO_EXIT","k":"branch","len":1,"c":false},{"a":3725,"n":"SCRIPT_SET_CURRENT_ROOM","k":"routine","len":7,"c":true},{"a":3732,"n":"SCRIPT_SET_OBJECT_LOCATION","k":"routine","len":18,"c":true},{"a":3746,"n":"SET_OBJ_LOC_STORE","k":"branch","len":1,"c":false},{"a":3750,"n":"SET_VERBOSE_OFF","k":"routine","len":5,"c":true},{"a":3755,"n":"SET_VERBOSE_ON","k":"routine","len":5,"c":true},{"a":3760,"n":"ACTION_DROP_OBJECT","k":"routine","len":82,"c":true},{"a":3769,"n":"DROP_OBJ_RESOLVE","k":"branch","len":1,"c":false},{"a":3781,"n":"DROP_OBJ_PLACE_IN_ROOM","k":"branch","len":1,"c":false},{"a":3799,"n":"DROP_OBJ_FIND_RECORD","k":"branch","len":1,"c":false},{"a":3804,"n":"DROP_OBJ_SCAN_RECORDS","k":"branch","len":1,"c":false},{"a":3820,"n":"DROP_OBJ_NEXT_RECORD","k":"branch","len":1,"c":false},{"a":3830,"n":"DROP_OBJ_CLEAR_RECORD","k":"branch","len":1,"c":false},{"a":3842,"n":"ACTION_TAKE_OBJECT","k":"routine","len":110,"c":true},{"a":3851,"n":"TAKE_OBJ_RESOLVE","k":"branch","len":1,"c":false},{"a":3859,"n":"TAKE_OBJ_CHECK_STATE","k":"branch","len":1,"c":false},{"a":3898,"n":"SHOW_OBJECT_ICON","k":"branch","len":1,"c":false},{"a":3900,"n":"SHOW_ICON_SCAN_FREE_SLOT","k":"branch","len":1,"c":false},{"a":3915,"n":"SHOW_ICON_INSTALL_POINTER","k":"branch","len":1,"c":false},{"a":3932,"n":"TAKE_OBJ_ALREADY_CARRIED","k":"branch","len":1,"c":false},{"a":3937,"n":"TAKE_OBJ_NOT_HERE","k":"branch","len":1,"c":false},{"a":3942,"n":"TAKE_OBJ_BLOCKED","k":"branch","len":1,"c":false},{"a":3947,"n":"TAKE_OBJ_NO_NOUN","k":"branch","len":1,"c":false},{"a":3952,"n":"CALC_OBJECT_GRAPHIC_PTR","k":"routine","len":27,"c":true},{"a":3964,"n":"CALC_OBJ_GFX_ADD_BLOCK","k":"branch","len":1,"c":false},{"a":3975,"n":"CALC_OBJ_GFX_LOOP_TAIL","k":"branch","len":1,"c":false},{"a":3978,"n":"CALC_OBJ_GFX_DONE","k":"branch","len":1,"c":false},{"a":3979,"n":"STATE_SET_COUNTER","k":"routine","len":14,"c":true},{"a":3993,"n":"STATE_INC_COUNTER","k":"routine","len":15,"c":true},{"a":4007,"n":"INC_COUNTER_DONE","k":"branch","len":1,"c":false},{"a":4008,"n":"STATE_DEC_COUNTER","k":"routine","len":13,"c":true},{"a":4020,"n":"DEC_COUNTER_DONE","k":"branch","len":1,"c":false},{"a":4021,"n":"STATE_SET_FLAG","k":"routine","len":10,"c":true},{"a":4031,"n":"STATE_CLEAR_FLAG","k":"routine","len":10,"c":true},{"a":4041,"n":"RETURN_SKIP_CALLER","k":"routine","len":3,"c":true},{"a":4044,"n":"ACTION_QUIT","k":"routine","len":17,"c":true},{"a":4061,"n":"RESTART_GAME","k":"routine","len":20,"c":true},{"a":4081,"n":"ACTION_NEXT_PART","k":"routine","len":16,"c":true},{"a":4097,"n":"ACTION_PRINT_MESSAGE","k":"routine","len":7,"c":true},{"a":4104,"n":"CMD_INVENTORY","k":"routine","len":118,"c":true},{"a":4115,"n":"INVENTORY_SCAN_LOOP","k":"branch","len":1,"c":false},{"a":4122,"n":"INVENTORY_NEXT_OBJECT","k":"branch","len":1,"c":false},{"a":4140,"n":"INVENTORY_DONE","k":"branch","len":1,"c":false},{"a":4144,"n":"INVENTORY_PRINT_ITEM","k":"branch","len":1,"c":false},{"a":4170,"n":"INVENTORY_INDEX_HIGH","k":"branch","len":1,"c":false},{"a":4174,"n":"INVENTORY_ADD_TABLE_BASE","k":"branch","len":1,"c":false},{"a":4206,"n":"INVENTORY_SET_TERM_PTR","k":"branch","len":1,"c":false},{"a":4222,"n":"DESCRIBE_CURRENT_ROOM","k":"routine","len":139,"c":true},{"a":4235,"n":"DESCRIBE_ROOM_LIT","k":"branch","len":1,"c":false},{"a":4243,"n":"DESCRIBE_ROOM_SCAN_OBJECTS","k":"branch","len":1,"c":false},{"a":4251,"n":"DESCRIBE_ROOM_NEXT_OBJECT","k":"branch","len":1,"c":false},{"a":4257,"n":"DESCRIBE_ROOM_UPDATE_GRAPHIC","k":"branch","len":1,"c":false},{"a":4275,"n":"DESCRIBE_ROOM_DONE","k":"branch","len":1,"c":false},{"a":4276,"n":"DESCRIBE_ROOM_PRINT_OBJECT","k":"branch","len":1,"c":false},{"a":4290,"n":"DESCRIBE_ROOM_INDEX_HIGH","k":"branch","len":1,"c":false},{"a":4294,"n":"DESCRIBE_ROOM_ADD_TABLE_BASE","k":"branch","len":1,"c":false},{"a":4343,"n":"DESCRIBE_ROOM_SKIP_PREFIX","k":"branch","len":1,"c":false},{"a":4349,"n":"DESCRIBE_ROOM_SET_TERM_PTR","k":"branch","len":1,"c":false},{"a":4361,"n":"DESCRIBE_ROOM_SAVED_PREFIX","k":"routine","len":28,"c":true},{"a":4371,"n":"DESCRIBE_ROOM_SUFFIX_10","k":"branch","len":1,"c":false},{"a":4379,"n":"DESCRIBE_ROOM_SUFFIX_07","k":"branch","len":1,"c":false},{"a":4384,"n":"DESCRIBE_ROOM_RESUME_SCAN","k":"branch","len":1,"c":false},{"a":4389,"n":"NOOP_ACTION_11","k":"routine","len":4,"c":true},{"a":4393,"n":"NOOP_ACTION_12","k":"routine","len":4,"c":true},{"a":4397,"n":"SCRIPT_SET_ROOM_GRAPHIC","k":"routine","len":16,"c":true},{"a":4410,"n":"SET_ROOM_GFX_USE_ROOM_DEFAULT","k":"branch","len":1,"c":false},{"a":4413,"n":"SCRIPT_SET_OBJECT_GRAPHIC","k":"routine","len":36,"c":true},{"a":4431,"n":"SET_OBJ_GFX_INSTALL","k":"branch","len":1,"c":false},{"a":4449,"n":"SCRIPT_PRINT_SENTENCE","k":"routine","len":7,"c":true},{"a":4456,"n":"DEC_CARRIED_COUNT","k":"routine","len":6,"c":true},{"a":4462,"n":"INC_CARRIED_COUNT","k":"routine","len":6,"c":true},{"a":4468,"n":"SCRIPT_SET_NOUN_ID","k":"routine","len":6,"c":true},{"a":4474,"n":"SHOW_PAUSED_MESSAGE","k":"routine","len":15,"c":true},{"a":4482,"n":"WAIT_FOR_SPACE","k":"branch","len":1,"c":false},{"a":4489,"n":"ACTION_SAVE_DISABLED","k":"routine","len":3,"c":true},{"a":4492,"n":"ACTION_LOAD_DISABLED","k":"routine","len":3,"c":true},{"a":4495,"n":"NOOP_ACTION_15","k":"routine","len":2,"c":true},{"a":4497,"n":"COND_TABLE_PTR","k":"variable","len":1,"c":true},{"a":4498,"n":"a_1192","k":"variable","len":1,"c":true},{"a":4499,"n":"CONDITION_DISPATCH_TABLE","k":"table","len":20,"c":true},{"a":4519,"n":"COND_CURRENT_ROOM_IS","k":"routine","len":11,"c":true},{"a":4530,"n":"COND_OBJECT_IN_ROOM","k":"routine","len":12,"c":true},{"a":4542,"n":"COND_FALSE","k":"routine","len":2,"c":true},{"a":4544,"n":"COND_TRUE","k":"routine","len":2,"c":true},{"a":4546,"n":"COND_OBJECT_CARRIED","k":"routine","len":14,"c":true},{"a":4560,"n":"COND_FLAG_SET","k":"routine","len":12,"c":true},{"a":4572,"n":"COND_FLAG_CLEAR","k":"routine","len":12,"c":true},{"a":4584,"n":"COND_COUNTER_ZERO","k":"routine","len":12,"c":true},{"a":4596,"n":"COND_COUNTER_EQ","k":"routine","len":18,"c":true},{"a":4614,"n":"COND_OBJECT_PRESENT","k":"routine","len":14,"c":true},{"a":4628,"n":"COND_OBJECT_ABSENT","k":"routine","len":14,"c":true},{"a":4642,"n":"COND_RANDOM","k":"routine","len":13,"c":true},{"a":4655,"n":"PARSE_INPUT","k":"routine","len":97,"c":true},{"a":4660,"n":"PARSE_CLEAR_TOKENS","k":"branch","len":1,"c":false},{"a":4666,"n":"PARSE_CLEAR_LOOP","k":"branch","len":1,"c":false},{"a":4683,"n":"PARSE_SKIP_SPACES","k":"branch","len":1,"c":false},{"a":4695,"n":"PARSE_WORD_START","k":"branch","len":1,"c":false},{"a":4699,"n":"PARSE_SCAN_WORD","k":"branch","len":1,"c":false},{"a":4710,"n":"PARSE_LAST_WORD_END","k":"branch","len":1,"c":false},{"a":4718,"n":"PARSE_SAVE_WORD_END","k":"branch","len":1,"c":false},{"a":4720,"n":"PARSE_SKIP_GAP","k":"branch","len":1,"c":false},{"a":4734,"n":"PARSE_RESTORE_WORD_END","k":"branch","len":1,"c":false},{"a":4739,"n":"PARSE_RECORD_WORD_END","k":"branch","len":1,"c":false},{"a":4752,"n":"PARSE_BEGIN_LOOKUP","k":"routine","len":52,"c":true},{"a":4758,"n":"PARSE_NEXT_WORD","k":"branch","len":1,"c":false},{"a":4764,"n":"PARSE_BLANK_WORD_BUFFER","k":"branch","len":1,"c":false},{"a":4780,"n":"PARSE_COPY_WORD_CHARS","k":"branch","len":1,"c":false},{"a":4794,"n":"PARSE_LOAD_VOCAB_PTR","k":"branch","len":1,"c":false},{"a":4804,"n":"VOCAB_LOOKUP","k":"routine","len":50,"c":true},{"a":4818,"n":"VOCAB_NEXT_ENTRY","k":"branch","len":1,"c":false},{"a":4832,"n":"VOCAB_MATCH_CHAR_2","k":"branch","len":1,"c":false},{"a":4843,"n":"VOCAB_MATCH_CHAR_3","k":"branch","len":1,"c":false},{"a":4854,"n":"WORD_NOT_FOUND","k":"routine","len":47,"c":true},{"a":4901,"n":"VOCAB_READ_TOKEN_ID","k":"routine","len":99,"c":true},{"a":4917,"n":"VOCAB_DISAMBIGUATE_TYPE_1","k":"branch","len":1,"c":false},{"a":4946,"n":"VOCAB_TYPE_1_WEST","k":"branch","len":1,"c":false},{"a":4953,"n":"VOCAB_TYPE_1_EAST","k":"branch","len":1,"c":false},{"a":4960,"n":"VOCAB_DISAMBIGUATE_TYPE_5","k":"branch","len":1,"c":false},{"a":4989,"n":"VOCAB_TYPE_5_WEST","k":"branch","len":1,"c":false},{"a":4996,"n":"VOCAB_TYPE_5_EAST","k":"branch","len":1,"c":false},{"a":5000,"n":"VOCAB_STORE_TOKEN_ID","k":"routine","len":41,"c":true},{"a":5014,"n":"RESOLVE_VERB_NOUN","k":"branch","len":1,"c":false},{"a":5026,"n":"RESOLVE_VN_RESTART_SCAN","k":"branch","len":1,"c":false},{"a":5030,"n":"RESOLVE_VN_SCAN_VERB","k":"branch","len":1,"c":false},{"a":5034,"n":"RESOLVE_VN_NEXT_VERB_SLOT","k":"branch","len":1,"c":false},{"a":5041,"n":"COMMAND_UNHANDLED_FLAG","k":"routine","len":82,"c":true},{"a":5052,"n":"RESOLVE_VN_DONE","k":"branch","len":1,"c":false},{"a":5053,"n":"RESOLVE_VN_TEST_CANDIDATE","k":"branch","len":1,"c":false},{"a":5065,"n":"RESOLVE_VN_SKIP_TOKEN","k":"branch","len":1,"c":false},{"a":5068,"n":"RESOLVE_VN_ACCEPT_VERB","k":"branch","len":1,"c":false},{"a":5080,"n":"RESOLVE_VN_SCAN_NOUN","k":"branch","len":1,"c":false},{"a":5091,"n":"RESOLVE_VN_NEXT_NOUN_SLOT","k":"branch","len":1,"c":false},{"a":5101,"n":"RESOLVE_VN_ACCEPT_NOUN","k":"branch","len":1,"c":false},{"a":5113,"n":"RESOLVE_VN_MULTI_COMMAND","k":"branch","len":1,"c":false},{"a":5123,"n":"DISPATCH_COMMAND","k":"routine","len":79,"c":true},{"a":5142,"n":"DISPATCH_SCAN_RULES","k":"branch","len":1,"c":false},{"a":5153,"n":"DISPATCH_NEXT_RULE","k":"branch","len":1,"c":false},{"a":5159,"n":"DISPATCH_CHECK_NOUN","k":"branch","len":1,"c":false},{"a":5173,"n":"DISPATCH_CHECK_INDEX","k":"branch","len":1,"c":false},{"a":5186,"n":"DISPATCH_NO_MATCH","k":"branch","len":1,"c":false},{"a":5187,"n":"DISPATCH_RUN_RULE","k":"branch","len":1,"c":false},{"a":5194,"n":"VERB_NOT_FOUND","k":"branch","len":1,"c":false},{"a":5202,"n":"RUN_ACTION_SCRIPT","k":"routine","len":43,"c":true},{"a":5214,"n":"RUN_ACTION_INDEX_HIGH","k":"branch","len":1,"c":false},{"a":5218,"n":"RUN_ACTION_ADD_TABLE_BASE","k":"branch","len":1,"c":false},{"a":5245,"n":"RUN_TURN_SCRIPTS","k":"routine","len":55,"c":true},{"a":5300,"n":"ROOM_SCRIPT_INDEX_HIGH","k":"routine","len":4,"c":true},{"a":5304,"n":"ROOM_SCRIPT_ADD_TABLE_BASE","k":"routine","len":30,"c":true},{"a":5334,"n":"INIT_GAME","k":"routine","len":3,"c":true},{"a":5337,"n":"ASK_RESTORE_GAME","k":"routine","len":13,"c":true},{"a":5350,"n":"INIT_GAME_RUN","k":"routine","len":13,"c":true},{"a":5360,"n":"INIT_RUN_SETUP_ROOM","k":"branch","len":1,"c":false},{"a":5363,"n":"RESTORE_SAVED_GAME","k":"routine","len":11,"c":true},{"a":5373,"n":"RESTORE_DONE","k":"branch","len":1,"c":false},{"a":5374,"n":"INIT_GAME_STATE","k":"routine","len":70,"c":true},{"a":5412,"n":"INIT_STATE_COPY_LOCATIONS","k":"branch","len":1,"c":false},{"a":5428,"n":"INIT_STATE_CLEAR_FLAGS","k":"branch","len":1,"c":false},{"a":5444,"n":"SETUP_CURRENT_ROOM","k":"routine","len":60,"c":true},{"a":5464,"n":"SETUP_ROOM_INDEX_HIGH","k":"branch","len":1,"c":false},{"a":5468,"n":"SETUP_ROOM_ADD_TABLE_BASE","k":"branch","len":1,"c":false},{"a":5494,"n":"SETUP_ROOM_RUN_INIT_SCRIPT","k":"branch","len":1,"c":false},{"a":5504,"n":"SHOW_OPENING_NARRATIVE_AND_ENTER_PLAY","k":"routine","len":88,"c":true},{"a":5592,"n":"FETCH_SCRIPT_BYTE","k":"routine","len":11,"c":true},{"a":5602,"n":"FETCH_SCRIPT_DONE","k":"branch","len":1,"c":false},{"a":5603,"n":"RESOLVE_NOUN","k":"routine","len":34,"c":true},{"a":5610,"n":"RESOLVE_NOUN_SCAN","k":"branch","len":1,"c":false},{"a":5625,"n":"RESOLVE_NOUN_NOT_FOUND","k":"branch","len":1,"c":false},{"a":5627,"n":"RESOLVE_NOUN_FOUND","k":"branch","len":1,"c":false},{"a":5637,"n":"RUN_SCRIPT","k":"routine","len":61,"c":true},{"a":5651,"n":"SCRIPT_CONDITION_INDEX","k":"branch","len":1,"c":false},{"a":5665,"n":"SCRIPT_CONDITION_INDEX_HIGH","k":"branch","len":1,"c":false},{"a":5669,"n":"SCRIPT_CONDITION_ADD_TABLE_BASE","k":"branch","len":1,"c":false},{"a":5698,"n":"CONDITION_HANDLER_TARGET_LO","k":"routine","len":1,"c":true},{"a":5699,"n":"CONDITION_HANDLER_TARGET_HI","k":"routine","len":87,"c":true},{"a":5705,"n":"SCRIPT_READ_ACTION_OPCODE","k":"branch","len":1,"c":false},{"a":5715,"n":"SCRIPT_TEST_END_MARKER","k":"branch","len":1,"c":false},{"a":5719,"n":"SCRIPT_END","k":"branch","len":1,"c":false},{"a":5720,"n":"SCRIPT_TEST_RULE_SEPARATOR","k":"branch","len":1,"c":false},{"a":5738,"n":"SCRIPT_NEXT_RULE","k":"branch","len":1,"c":false},{"a":5741,"n":"SCRIPT_ACTION_INDEX","k":"branch","len":1,"c":false},{"a":5753,"n":"SCRIPT_ACTION_INDEX_HIGH","k":"branch","len":1,"c":false},{"a":5757,"n":"SCRIPT_ACTION_ADD_TABLE_BASE","k":"branch","len":1,"c":false},{"a":5785,"n":"SCRIPT_CALL_ACTION_HANDLER","k":"branch","len":1,"c":false},{"a":5786,"n":"ACTION_HANDLER_TARGET_LO","k":"routine","len":1,"c":true},{"a":5787,"n":"ACTION_HANDLER_TARGET_HI","k":"routine","len":25,"c":true},{"a":5791,"n":"SCRIPT_SKIP_ACTIONS","k":"branch","len":1,"c":false},{"a":5793,"n":"SCRIPT_SKIP_LOOP","k":"branch","len":1,"c":false},{"a":5801,"n":"SCRIPT_SKIP_TEST_MARKER","k":"branch","len":1,"c":false},{"a":5812,"n":"DIRECTION_EXIT_TABLE_PTR","k":"variable","len":1,"c":true},{"a":5813,"n":"a_16B5","k":"variable","len":1,"c":true},{"a":5814,"n":"DIRECTION_EXIT_POINTERS","k":"table","len":20,"c":true},{"a":5834,"n":"ROOM_EXITS_NORTH","k":"table","len":74,"c":true},{"a":5908,"n":"ROOM_EXITS_NORTH_END","k":"variable","len":1,"c":true},{"a":5909,"n":"ROOM_EXITS_NORTHEAST","k":"table","len":50,"c":true},{"a":5959,"n":"ROOM_EXITS_NORTHEAST_END","k":"variable","len":1,"c":true},{"a":5960,"n":"ROOM_EXITS_EAST","k":"table","len":144,"c":true},{"a":6104,"n":"ROOM_EXITS_EAST_END","k":"variable","len":1,"c":true},{"a":6105,"n":"ROOM_EXITS_SOUTHEAST","k":"table","len":52,"c":true},{"a":6157,"n":"ROOM_EXITS_SOUTHEAST_END","k":"variable","len":1,"c":true},{"a":6158,"n":"ROOM_EXITS_SOUTH","k":"table","len":76,"c":true},{"a":6234,"n":"ROOM_EXITS_SOUTH_END","k":"variable","len":1,"c":true},{"a":6235,"n":"ROOM_EXITS_SOUTHWEST","k":"table","len":52,"c":true},{"a":6287,"n":"ROOM_EXITS_SOUTHWEST_END","k":"variable","len":1,"c":true},{"a":6288,"n":"ROOM_EXITS_WEST","k":"table","len":146,"c":true},{"a":6434,"n":"ROOM_EXITS_WEST_END","k":"variable","len":1,"c":true},{"a":6435,"n":"ROOM_EXITS_NORTHWEST","k":"table","len":50,"c":true},{"a":6485,"n":"ROOM_EXITS_NORTHWEST_END","k":"variable","len":1,"c":true},{"a":6486,"n":"ROOM_EXITS_UP","k":"table","len":30,"c":true},{"a":6516,"n":"ROOM_EXITS_UP_END","k":"variable","len":1,"c":true},{"a":6517,"n":"ROOM_EXITS_DOWN","k":"table","len":38,"c":true},{"a":6555,"n":"ROOM_EXITS_DOWN_END","k":"variable","len":1,"c":true},{"a":6556,"n":"VOCAB_TABLE_PTR","k":"variable","len":1,"c":true},{"a":6557,"n":"a_199D","k":"variable","len":1,"c":true},{"a":6558,"n":"VERB_RULE_TABLE_PTR","k":"variable","len":1,"c":true},{"a":6559,"n":"a_199F","k":"variable","len":1,"c":true},{"a":6560,"n":"VERB_RULE_TABLE","k":"table","len":26,"c":true},{"a":6586,"n":"VERB_RULE_GET_ARTAX","k":"variable","len":2,"c":true},{"a":6588,"n":"VERB_RULE_GET_FALKOR","k":"table","len":34,"c":true},{"a":6622,"n":"VERB_RULE_SAVE","k":"variable","len":2,"c":true},{"a":6624,"n":"VERB_RULE_LOAD","k":"table","len":78,"c":true},{"a":6702,"n":"VOCAB_TABLE","k":"table","len":96,"c":true},{"a":6798,"n":"VOCAB_SAVE","k":"table","len":4,"c":true},{"a":6802,"n":"VOCAB_LOAD","k":"table","len":408,"c":true},{"a":7210,"n":"VOCAB_ARTAX","k":"table","len":12,"c":true},{"a":7222,"n":"VOCAB_CRUCIFIX","k":"table","len":48,"c":true},{"a":7270,"n":"VOCAB_TABLE_END","k":"variable","len":1,"c":true},{"a":7271,"n":"TOKEN_POINTERS_BASE_ADDR","k":"variable","len":1,"c":true},{"a":7272,"n":"a_1C68","k":"variable","len":1,"c":true},{"a":7273,"n":"SENTENCE_POINTERS_BASE_ADDR","k":"variable","len":1,"c":true},{"a":7274,"n":"a_1C6A","k":"variable","len":1,"c":true},{"a":7275,"n":"OBJECT_DESCRIPTION_TABLE_PTR","k":"variable","len":1,"c":true},{"a":7276,"n":"a_1C6C","k":"variable","len":1,"c":true},{"a":7277,"n":"GLOBAL_TURN_SCRIPT_PTR","k":"variable","len":1,"c":true},{"a":7278,"n":"a_1C6E","k":"variable","len":1,"c":true},{"a":7279,"n":"GLOBAL_TURN_SCRIPT","k":"table","len":65,"c":true},{"a":7344,"n":"SENTENCE_POINTERS","k":"table","len":136,"c":true},{"a":7480,"n":"SENTENCE_00","k":"table","len":22,"c":true},{"a":7502,"n":"SENTENCE_01","k":"table","len":20,"c":true},{"a":7522,"n":"SENTENCE_02","k":"table","len":21,"c":true},{"a":7543,"n":"SENTENCE_03","k":"table","len":11,"c":true},{"a":7554,"n":"SENTENCE_04","k":"table","len":3,"c":true},{"a":7557,"n":"SENTENCE_05","k":"table","len":3,"c":true},{"a":7560,"n":"SENTENCE_06","k":"table","len":15,"c":true},{"a":7575,"n":"SENTENCE_07","k":"table","len":6,"c":true},{"a":7581,"n":"SENTENCE_08","k":"table","len":15,"c":true},{"a":7596,"n":"SENTENCE_09","k":"table","len":24,"c":true},{"a":7620,"n":"SENTENCE_0A","k":"table","len":20,"c":true},{"a":7640,"n":"SENTENCE_0B","k":"table","len":27,"c":true},{"a":7667,"n":"SENTENCE_0C","k":"table","len":7,"c":true},{"a":7674,"n":"SENTENCE_0D","k":"table","len":9,"c":true},{"a":7683,"n":"SENTENCE_0E","k":"table","len":22,"c":true},{"a":7705,"n":"SENTENCE_0F","k":"table","len":4,"c":true},{"a":7709,"n":"SENTENCE_10","k":"table","len":4,"c":true},{"a":7713,"n":"SENTENCE_11","k":"table","len":23,"c":true},{"a":7736,"n":"SENTENCE_12","k":"table","len":7,"c":true},{"a":7743,"n":"SENTENCE_13","k":"table","len":7,"c":true},{"a":7750,"n":"SENTENCE_14","k":"table","len":11,"c":true},{"a":7761,"n":"SENTENCE_15","k":"table","len":11,"c":true},{"a":7772,"n":"SENTENCE_16","k":"table","len":10,"c":true},{"a":7782,"n":"SENTENCE_17","k":"table","len":14,"c":true},{"a":7796,"n":"SENTENCE_18","k":"table","len":29,"c":true},{"a":7825,"n":"SENTENCE_19","k":"table","len":20,"c":true},{"a":7845,"n":"SENTENCE_1A","k":"table","len":21,"c":true},{"a":7866,"n":"SENTENCE_1B","k":"table","len":12,"c":true},{"a":7878,"n":"SENTENCE_1C","k":"table","len":36,"c":true},{"a":7914,"n":"SENTENCE_1D","k":"table","len":26,"c":true},{"a":7940,"n":"SENTENCE_1E","k":"table","len":13,"c":true},{"a":7953,"n":"SENTENCE_1F","k":"table","len":4,"c":true},{"a":7957,"n":"SENTENCE_20","k":"table","len":5,"c":true},{"a":7962,"n":"SENTENCE_21","k":"table","len":18,"c":true},{"a":7980,"n":"SENTENCE_22","k":"table","len":10,"c":true},{"a":7990,"n":"SENTENCE_23","k":"table","len":10,"c":true},{"a":8000,"n":"SENTENCE_24","k":"table","len":18,"c":true},{"a":8018,"n":"SENTENCE_25","k":"table","len":19,"c":true},{"a":8037,"n":"SENTENCE_26","k":"table","len":16,"c":true},{"a":8053,"n":"SENTENCE_27","k":"table","len":24,"c":true},{"a":8077,"n":"SENTENCE_28","k":"table","len":24,"c":true},{"a":8101,"n":"SENTENCE_29","k":"table","len":41,"c":true},{"a":8142,"n":"SENTENCE_2A","k":"table","len":61,"c":true},{"a":8203,"n":"SENTENCE_2B","k":"table","len":14,"c":true},{"a":8217,"n":"SENTENCE_2C","k":"table","len":28,"c":true},{"a":8245,"n":"SENTENCE_2D","k":"table","len":15,"c":true},{"a":8260,"n":"SENTENCE_2E","k":"table","len":19,"c":true},{"a":8279,"n":"SENTENCE_2F","k":"table","len":14,"c":true},{"a":8293,"n":"SENTENCE_30","k":"table","len":9,"c":true},{"a":8302,"n":"SENTENCE_31","k":"table","len":9,"c":true},{"a":8311,"n":"SENTENCE_32","k":"table","len":11,"c":true},{"a":8322,"n":"SENTENCE_33","k":"table","len":9,"c":true},{"a":8331,"n":"SENTENCE_34","k":"table","len":10,"c":true},{"a":8341,"n":"SENTENCE_35","k":"table","len":10,"c":true},{"a":8351,"n":"SENTENCE_36","k":"table","len":23,"c":true},{"a":8374,"n":"SENTENCE_37","k":"table","len":6,"c":true},{"a":8380,"n":"SENTENCE_38","k":"table","len":12,"c":true},{"a":8392,"n":"SENTENCE_39","k":"table","len":24,"c":true},{"a":8416,"n":"SENTENCE_3A","k":"table","len":76,"c":true},{"a":8492,"n":"SENTENCE_3B","k":"table","len":124,"c":true},{"a":8616,"n":"SENTENCE_3C","k":"table","len":17,"c":true},{"a":8633,"n":"SENTENCE_3D","k":"table","len":19,"c":true},{"a":8652,"n":"SENTENCE_3E","k":"table","len":26,"c":true},{"a":8678,"n":"SENTENCE_3F","k":"table","len":25,"c":true},{"a":8703,"n":"SENTENCE_40","k":"table","len":22,"c":true},{"a":8725,"n":"SENTENCE_41","k":"table","len":45,"c":true},{"a":8770,"n":"SENTENCE_42","k":"table","len":21,"c":true},{"a":8791,"n":"SENTENCE_43","k":"table","len":21,"c":true},{"a":8812,"n":"INITIAL_OBJECT_LOCATIONS","k":"table","len":54,"c":true},{"a":8866,"n":"INITIAL_CARRIED_END","k":"variable","len":1,"c":true},{"a":8867,"n":"OBJECT_COUNT","k":"variable","len":1,"c":true},{"a":8868,"n":"NOUN_TO_OBJECT_INDEX","k":"table","len":36,"c":true},{"a":8904,"n":"NOUN_TO_OBJECT_END","k":"variable","len":1,"c":true},{"a":8905,"n":"OBJECT_DESCRIPTION_POINTERS","k":"table","len":108,"c":true},{"a":9013,"n":"OBJECT_DESCRIPTION_00","k":"table","len":3,"c":true},{"a":9016,"n":"OBJECT_DESCRIPTION_01","k":"variable","len":1,"c":true},{"a":9017,"n":"OBJECT_DESCRIPTION_05","k":"table","len":20,"c":true},{"a":9037,"n":"OBJECT_DESCRIPTION_08","k":"table","len":26,"c":true},{"a":9063,"n":"OBJECT_DESCRIPTION_09","k":"table","len":19,"c":true},{"a":9082,"n":"OBJECT_DESCRIPTION_0A","k":"table","len":10,"c":true},{"a":9092,"n":"OBJECT_DESCRIPTION_0B","k":"table","len":3,"c":true},{"a":9095,"n":"OBJECT_DESCRIPTION_0C","k":"table","len":12,"c":true},{"a":9107,"n":"OBJECT_DESCRIPTION_0F","k":"table","len":7,"c":true},{"a":9114,"n":"OBJECT_DESCRIPTION_11","k":"table","len":13,"c":true},{"a":9127,"n":"OBJECT_DESCRIPTION_12","k":"table","len":9,"c":true},{"a":9136,"n":"OBJECT_DESCRIPTION_13","k":"table","len":12,"c":true},{"a":9148,"n":"OBJECT_DESCRIPTION_14","k":"table","len":28,"c":true},{"a":9176,"n":"OBJECT_DESCRIPTION_15","k":"table","len":14,"c":true},{"a":9190,"n":"OBJECT_DESCRIPTION_16","k":"table","len":18,"c":true},{"a":9208,"n":"OBJECT_DESCRIPTION_17","k":"table","len":19,"c":true},{"a":9227,"n":"OBJECT_DESCRIPTION_18","k":"table","len":27,"c":true},{"a":9254,"n":"OBJECT_DESCRIPTION_19","k":"table","len":14,"c":true},{"a":9268,"n":"OBJECT_DESCRIPTION_1A","k":"table","len":18,"c":true},{"a":9286,"n":"OBJECT_DESCRIPTION_1B","k":"table","len":18,"c":true},{"a":9304,"n":"OBJECT_DESCRIPTION_1D","k":"table","len":21,"c":true},{"a":9325,"n":"OBJECT_DESCRIPTION_1E","k":"table","len":29,"c":true},{"a":9354,"n":"OBJECT_DESCRIPTION_1F","k":"table","len":24,"c":true},{"a":9378,"n":"OBJECT_DESCRIPTION_21","k":"table","len":25,"c":true},{"a":9403,"n":"OBJECT_DESCRIPTION_22","k":"table","len":18,"c":true},{"a":9421,"n":"OBJECT_DESCRIPTION_24","k":"table","len":36,"c":true},{"a":9457,"n":"OBJECT_DESCRIPTION_25","k":"table","len":3,"c":true},{"a":9460,"n":"OBJECT_DESCRIPTION_26","k":"table","len":23,"c":true},{"a":9483,"n":"OBJECT_DESCRIPTION_27","k":"table","len":13,"c":true},{"a":9496,"n":"OBJECT_DESCRIPTION_29","k":"table","len":15,"c":true},{"a":9511,"n":"OBJECT_DESCRIPTION_2D","k":"table","len":38,"c":true},{"a":9549,"n":"OBJECT_DESCRIPTION_2E","k":"table","len":26,"c":true},{"a":9575,"n":"OBJECT_DESCRIPTION_2F","k":"table","len":14,"c":true},{"a":9589,"n":"OBJECT_DESCRIPTION_30","k":"table","len":12,"c":true},{"a":9601,"n":"OBJECT_DESCRIPTION_31","k":"table","len":25,"c":true},{"a":9626,"n":"OBJECT_DESCRIPTION_33","k":"table","len":19,"c":true},{"a":9645,"n":"OBJECT_DESCRIPTION_34","k":"table","len":26,"c":true},{"a":9671,"n":"OBJECT_DESCRIPTION_35","k":"table","len":22,"c":true},{"a":9693,"n":"TOKEN_POINTERS_TABLE","k":"table","len":188,"c":true},{"a":9881,"n":"WORD_THE_LC","k":"table","len":4,"c":true},{"a":9885,"n":"WORD_ATREYU","k":"table","len":7,"c":true},{"a":9892,"n":"WORD_FALKOR","k":"table","len":7,"c":true},{"a":9899,"n":"WORD_THERE_CAP","k":"table","len":6,"c":true},{"a":9905,"n":"WORD_IS","k":"table","len":3,"c":true},{"a":9908,"n":"WORD_THAT","k":"table","len":5,"c":true},{"a":9913,"n":"WORD_IN","k":"table","len":3,"c":true},{"a":9916,"n":"WORD_STANDS","k":"table","len":7,"c":true},{"a":9923,"n":"WORD_OF","k":"table","len":3,"c":true},{"a":9926,"n":"WORD_GREAT","k":"table","len":6,"c":true},{"a":9932,"n":"WORD_FOREST","k":"table","len":7,"c":true},{"a":9939,"n":"WORD_YOU_CAP","k":"table","len":4,"c":true},{"a":9943,"n":"WORD_ARE","k":"table","len":4,"c":true},{"a":9947,"n":"WORD_TO_LC","k":"variable","len":1,"c":true},{"a":9948,"n":"WORD_TO_LC_TEXT","k":"variable","len":2,"c":true},{"a":9950,"n":"WORD_OFF","k":"table","len":4,"c":true},{"a":9954,"n":"WORD_NORTH","k":"table","len":6,"c":true},{"a":9960,"n":"WORD_NORTHEAST","k":"table","len":10,"c":true},{"a":9970,"n":"WORD_EAST","k":"table","len":5,"c":true},{"a":9975,"n":"WORD_SOUTHEAST","k":"table","len":10,"c":true},{"a":9985,"n":"WORD_SOUTH","k":"table","len":6,"c":true},{"a":9991,"n":"WORD_SOUTHWEST","k":"table","len":10,"c":true},{"a":10001,"n":"WORD_WEST","k":"table","len":5,"c":true},{"a":10006,"n":"WORD_NORTHWEST","k":"table","len":10,"c":true},{"a":10016,"n":"WORD_CAN","k":"table","len":4,"c":true},{"a":10020,"n":"WORD_SEE","k":"table","len":4,"c":true},{"a":10024,"n":"WORD_ALL","k":"table","len":4,"c":true},{"a":10028,"n":"WORD_BUT","k":"table","len":4,"c":true},{"a":10032,"n":"WORD_THERE","k":"table","len":6,"c":true},{"a":10038,"n":"WORD_BE","k":"table","len":3,"c":true},{"a":10041,"n":"WORD_ON","k":"table","len":3,"c":true},{"a":10044,"n":"WORD_AT","k":"table","len":3,"c":true},{"a":10047,"n":"WORD_SWAMPS","k":"table","len":7,"c":true},{"a":10054,"n":"WORD_SADNESS","k":"table","len":8,"c":true},{"a":10062,"n":"WORD_SOME","k":"table","len":5,"c":true},{"a":10067,"n":"WORD_AURYN","k":"table","len":6,"c":true},{"a":10073,"n":"WORD_UP","k":"table","len":3,"c":true},{"a":10076,"n":"WORD_DOWN","k":"table","len":5,"c":true},{"a":10081,"n":"WORD_LEADING","k":"table","len":8,"c":true},{"a":10089,"n":"WORD_SMALL","k":"table","len":6,"c":true},{"a":10095,"n":"WORD_LARGE","k":"table","len":6,"c":true},{"a":10101,"n":"WORD_REMAINS","k":"table","len":8,"c":true},{"a":10109,"n":"WORD_THIS","k":"table","len":5,"c":true},{"a":10114,"n":"WORD_AN","k":"table","len":3,"c":true},{"a":10117,"n":"WORD_SIDE","k":"table","len":5,"c":true},{"a":10122,"n":"WORD_HERE","k":"table","len":5,"c":true},{"a":10127,"n":"WORD_SEEN","k":"table","len":5,"c":true},{"a":10132,"n":"WORD_SPOOK_CITY","k":"table","len":11,"c":true},{"a":10143,"n":"WORD_NOTHING","k":"table","len":8,"c":true},{"a":10151,"n":"WORD_CORRIDOR","k":"table","len":9,"c":true},{"a":10160,"n":"WORD_WELL","k":"table","len":5,"c":true},{"a":10165,"n":"WORD_STAIRS","k":"table","len":7,"c":true},{"a":10172,"n":"WORD_DUNGEON","k":"table","len":8,"c":true},{"a":10180,"n":"WORD_MAIN","k":"table","len":5,"c":true},{"a":10185,"n":"WORD_EXITS","k":"table","len":6,"c":true},{"a":10191,"n":"WORD_THE","k":"table","len":4,"c":true},{"a":10195,"n":"WORD_RUINED","k":"table","len":7,"c":true},{"a":10202,"n":"WORD_ONLY","k":"table","len":5,"c":true},{"a":10207,"n":"WORD_AS","k":"table","len":3,"c":true},{"a":10210,"n":"WORD_AND","k":"table","len":4,"c":true},{"a":10214,"n":"WORD_HAS","k":"table","len":4,"c":true},{"a":10218,"n":"WORD_WHICH","k":"table","len":6,"c":true},{"a":10224,"n":"WORD_PAINTING","k":"table","len":9,"c":true},{"a":10233,"n":"WORD_WALL","k":"table","len":5,"c":true},{"a":10238,"n":"WORD_CENTRE","k":"table","len":7,"c":true},{"a":10245,"n":"WORD_TO","k":"table","len":3,"c":true},{"a":10248,"n":"WORD_IT","k":"table","len":3,"c":true},{"a":10251,"n":"WORD_FROM","k":"table","len":5,"c":true},{"a":10256,"n":"WORD_THOUGH","k":"table","len":7,"c":true},{"a":10263,"n":"WORD_IVORY_TOWER","k":"table","len":12,"c":true},{"a":10275,"n":"WORD_DEEP","k":"table","len":5,"c":true},{"a":10280,"n":"WORD_A","k":"variable","len":2,"c":true},{"a":10282,"n":"WORD_TRACK","k":"table","len":6,"c":true},{"a":10288,"n":"WORD_PATH","k":"table","len":5,"c":true},{"a":10293,"n":"WORD_MORLA","k":"table","len":6,"c":true},{"a":10299,"n":"WORD_FANTASIA","k":"table","len":11,"c":true},{"a":10310,"n":"WORD_INTO","k":"table","len":5,"c":true},{"a":10315,"n":"WORD_TINY","k":"table","len":5,"c":true},{"a":10320,"n":"WORD_OPEN","k":"table","len":5,"c":true},{"a":10325,"n":"WORD_CLOSED","k":"table","len":7,"c":true},{"a":10332,"n":"WORD_ENTRANCE","k":"table","len":11,"c":true},{"a":10343,"n":"WORD_FLOOR","k":"table","len":6,"c":true},{"a":10349,"n":"WORD_ROOM","k":"table","len":5,"c":true},{"a":10354,"n":"WORD_JUST","k":"table","len":5,"c":true},{"a":10359,"n":"WORD_BY","k":"table","len":3,"c":true},{"a":10362,"n":"WORD_EMPRESS","k":"table","len":8,"c":true},{"a":10370,"n":"WORD_ROCKBITER","k":"table","len":10,"c":true},{"a":10380,"n":"WORD_ENGYWOOK","k":"table","len":9,"c":true},{"a":10389,"n":"WORD_URGLL","k":"table","len":6,"c":true},{"a":10395,"n":"WORD_ARTAX","k":"table","len":6,"c":true},{"a":10401,"n":"WORD_BASTIAN","k":"table","len":8,"c":true},{"a":10409,"n":"WORD_NEVERENDING","k":"table","len":12,"c":true},{"a":10421,"n":"WORD_YOU","k":"table","len":4,"c":true},{"a":10425,"n":"VISIBLE_OBJECT_RECORDS_PTR","k":"variable","len":1,"c":true},{"a":10426,"n":"a_28BA","k":"variable","len":1,"c":true},{"a":10427,"n":"DISK_LOAD_ADDR","k":"variable","len":1,"c":true},{"a":10428,"n":"a_28BC","k":"variable","len":1,"c":true},{"a":10429,"n":"DISK_SAVE_END_ADDR","k":"variable","len":1,"c":true},{"a":10430,"n":"a_28BE","k":"variable","len":1,"c":true},{"a":10431,"n":"OBJECT_LOCATIONS","k":"table","len":80,"c":true},{"a":10511,"n":"OBJ_FLAGS","k":"table","len":32,"c":true},{"a":10543,"n":"OBJ_COUNTERS","k":"table","len":16,"c":true},{"a":10559,"n":"CURRENT_ROOM","k":"variable","len":1,"c":true},{"a":10560,"n":"CURRENT_PART_NO","k":"variable","len":1,"c":true},{"a":10561,"n":"UNUSED_SAVE_STATE_2941","k":"variable","len":1,"c":true},{"a":10562,"n":"CURRENT_ROOM_GRAPHIC_ID","k":"variable","len":1,"c":true},{"a":10563,"n":"VISIBLE_OBJECT_RECORDS","k":"table","len":3,"c":true},{"a":10566,"n":"OBJECT_RECORD_0_SOURCE_HI","k":"table","len":3,"c":true},{"a":10569,"n":"OBJECT_RECORD_1","k":"table","len":3,"c":true},{"a":10572,"n":"OBJECT_RECORD_1_SOURCE_HI","k":"table","len":3,"c":true},{"a":10575,"n":"OBJECT_RECORD_2","k":"table","len":3,"c":true},{"a":10578,"n":"OBJECT_RECORD_2_SOURCE_HI","k":"table","len":3,"c":true},{"a":10581,"n":"OBJECT_RECORD_3","k":"table","len":3,"c":true},{"a":10584,"n":"OBJECT_RECORD_3_SOURCE_HI","k":"table","len":3,"c":true},{"a":10587,"n":"OBJECT_RECORD_4","k":"table","len":3,"c":true},{"a":10590,"n":"OBJECT_RECORD_4_SOURCE_HI","k":"table","len":3,"c":true},{"a":10593,"n":"COMPANION_RECORD","k":"variable","len":2,"c":true},{"a":10595,"n":"COMPANION_SOURCE_PTR","k":"variable","len":1,"c":true},{"a":10596,"n":"COMPANION_SOURCE_HI","k":"table","len":3,"c":true},{"a":10599,"n":"SAVE_BLOCK_END","k":"variable","len":1,"c":true},{"a":10600,"n":"PART_1_START_SCRIPT","k":"table","len":5,"c":true},{"a":10605,"n":"PART_1_START_SCRIPT_END","k":"variable","len":1,"c":true},{"a":10606,"n":"PART_2_START_SCRIPT","k":"table","len":16,"c":true},{"a":10622,"n":"PART_3_START_SCRIPT","k":"table","len":6,"c":true},{"a":10628,"n":"ACTION_SCRIPT_TABLE_PTR","k":"variable","len":1,"c":true},{"a":10629,"n":"a_2985","k":"variable","len":1,"c":true},{"a":10630,"n":"ACTION_SCRIPT_POINTERS","k":"table","len":26,"c":true},{"a":10656,"n":"ACTION_SCRIPT_GET_ARTAX_PTR","k":"variable","len":2,"c":true},{"a":10658,"n":"ACTION_SCRIPT_GET_FALKOR_PTR","k":"table","len":34,"c":true},{"a":10692,"n":"ACTION_SCRIPT_SAVE_PTR","k":"variable","len":2,"c":true},{"a":10694,"n":"ACTION_SCRIPT_LOAD_PTR","k":"table","len":76,"c":true},{"a":10770,"n":"ACTION_SCRIPT_COUNT","k":"variable","len":1,"c":true},{"a":10771,"n":"ACTION_SCRIPT_00","k":"table","len":19,"c":true},{"a":10790,"n":"ACTION_SCRIPT_02","k":"table","len":43,"c":true},{"a":10833,"n":"ACTION_SCRIPT_04","k":"table","len":32,"c":true},{"a":10865,"n":"ACTION_SCRIPT_06","k":"table","len":45,"c":true},{"a":10910,"n":"ACTION_SCRIPT_08","k":"table","len":42,"c":true},{"a":10952,"n":"ACTION_SCRIPT_09","k":"table","len":75,"c":true},{"a":11027,"n":"ACTION_SCRIPT_0A","k":"table","len":12,"c":true},{"a":11039,"n":"ACTION_SCRIPT_12","k":"variable","len":2,"c":true},{"a":11041,"n":"ACTION_SCRIPT_13","k":"variable","len":2,"c":true},{"a":11043,"n":"ACTION_SCRIPT_1B","k":"variable","len":2,"c":true},{"a":11045,"n":"ACTION_SCRIPT_1C","k":"table","len":4,"c":true},{"a":11049,"n":"ACTION_SCRIPT_1D","k":"table","len":4,"c":true},{"a":11053,"n":"ACTION_SCRIPT_1E","k":"table","len":19,"c":true},{"a":11072,"n":"ACTION_SCRIPT_0C","k":"table","len":17,"c":true},{"a":11089,"n":"ACTION_SCRIPT_SAVE_DISABLED","k":"variable","len":2,"c":true},{"a":11091,"n":"ACTION_SCRIPT_LOAD_DISABLED","k":"variable","len":2,"c":true},{"a":11093,"n":"ACTION_SCRIPT_GET_ARTAX","k":"table","len":23,"c":true},{"a":11116,"n":"ACTION_SCRIPT_GET_FALKOR","k":"table","len":48,"c":true},{"a":11164,"n":"ACTION_SCRIPT_15","k":"table","len":13,"c":true},{"a":11177,"n":"ACTION_SCRIPT_16","k":"table","len":15,"c":true},{"a":11192,"n":"ACTION_SCRIPT_14","k":"table","len":17,"c":true},{"a":11209,"n":"ACTION_SCRIPT_22","k":"table","len":20,"c":true},{"a":11229,"n":"ACTION_SCRIPT_24","k":"table","len":40,"c":true},{"a":11269,"n":"ACTION_SCRIPT_25","k":"table","len":34,"c":true},{"a":11303,"n":"ACTION_SCRIPT_26","k":"table","len":47,"c":true},{"a":11350,"n":"ACTION_SCRIPT_29","k":"table","len":14,"c":true},{"a":11364,"n":"ACTION_SCRIPT_2A","k":"table","len":46,"c":true},{"a":11410,"n":"ACTION_SCRIPT_2B","k":"table","len":52,"c":true},{"a":11462,"n":"ACTION_SCRIPT_2E","k":"table","len":3,"c":true},{"a":11465,"n":"ACTION_SCRIPT_2F","k":"table","len":13,"c":true},{"a":11478,"n":"ACTION_SCRIPT_0F","k":"table","len":21,"c":true},{"a":11499,"n":"ACTION_SCRIPT_30","k":"table","len":28,"c":true},{"a":11527,"n":"ACTION_SCRIPT_17","k":"table","len":14,"c":true},{"a":11541,"n":"ACTION_SCRIPT_27","k":"table","len":22,"c":true},{"a":11563,"n":"ACTION_SCRIPT_28","k":"table","len":22,"c":true},{"a":11585,"n":"ACTION_SCRIPT_32","k":"table","len":3,"c":true},{"a":11588,"n":"ACTION_SCRIPT_33","k":"variable","len":2,"c":true},{"a":11590,"n":"ACTION_SCRIPT_31","k":"table","len":3,"c":true},{"a":11593,"n":"ACTION_SCRIPT_35","k":"table","len":9,"c":true},{"a":11602,"n":"ACTION_SCRIPT_34","k":"variable","len":2,"c":true},{"a":11604,"n":"ACTION_SCRIPT_36","k":"table","len":9,"c":true},{"a":11613,"n":"ACTION_SCRIPT_21","k":"table","len":35,"c":true},{"a":11648,"n":"ACTION_SCRIPT_23","k":"table","len":3,"c":true},{"a":11651,"n":"ACTION_SCRIPT_2C","k":"table","len":3,"c":true},{"a":11654,"n":"ACTION_SCRIPT_10","k":"table","len":13,"c":true},{"a":11667,"n":"ACTION_SCRIPT_37","k":"table","len":30,"c":true},{"a":11697,"n":"ACTION_SCRIPT_38","k":"table","len":17,"c":true},{"a":11714,"n":"ACTION_SCRIPT_39","k":"table","len":9,"c":true},{"a":11723,"n":"ACTION_SCRIPT_3A","k":"table","len":9,"c":true},{"a":11732,"n":"ACTION_SCRIPT_3B","k":"table","len":3,"c":true},{"a":11735,"n":"ACTION_SCRIPT_3C","k":"table","len":20,"c":true},{"a":11755,"n":"ACTION_SCRIPT_3D","k":"table","len":21,"c":true},{"a":11776,"n":"ACTION_SCRIPT_3E","k":"table","len":21,"c":true},{"a":11797,"n":"ACTION_SCRIPT_3F","k":"table","len":55,"c":true},{"a":11852,"n":"ACTION_SCRIPT_40","k":"table","len":55,"c":true},{"a":11907,"n":"ACTION_SCRIPT_0B","k":"table","len":14,"c":true},{"a":11921,"n":"ACTION_SCRIPT_41","k":"table","len":30,"c":true},{"a":11951,"n":"ACTION_SCRIPT_11","k":"table","len":9,"c":true},{"a":11960,"n":"ACTION_SCRIPT_42","k":"table","len":5,"c":true},{"a":11965,"n":"ACTION_SCRIPT_43","k":"table","len":21,"c":true},{"a":11986,"n":"ACTION_SCRIPT_44","k":"table","len":5,"c":true},{"a":11991,"n":"ACTION_SCRIPT_1A","k":"table","len":3,"c":true},{"a":11994,"n":"ACTION_SCRIPT_45","k":"table","len":38,"c":true},{"a":38400,"n":"LEFTOVER_9600","k":"table","len":128,"c":true},{"a":38528,"n":"MUSIC_FADE","k":"routine","len":21,"c":true},{"a":38546,"n":"b_9692","k":"branch","len":1,"c":false},{"a":38549,"n":"MUSIC_PLAY","k":"routine","len":12,"c":true},{"a":38561,"n":"MUSIC_STOP","k":"routine","len":30,"c":true},{"a":38584,"n":"b_96B8","k":"branch","len":1,"c":false},{"a":38591,"n":"MUSIC_VOLUME_DOWN","k":"routine","len":8,"c":true},{"a":38599,"n":"MUSIC_VOLUME_UP","k":"routine","len":8,"c":true},{"a":38607,"n":"MUSIC_SET_VOLUME","k":"routine","len":11,"c":true},{"a":38618,"n":"MUSIC_INIT","k":"routine","len":38,"c":true},{"a":38620,"n":"b_96DC","k":"branch","len":1,"c":false},{"a":38656,"n":"LOADER_ENTRY_9700","k":"routine","len":8,"c":true},{"a":38664,"n":"LOADER_DIGIT_9708","k":"routine","len":1,"c":true},{"a":38665,"n":"V1_PULSE_RESET","k":"routine","len":6,"c":true},{"a":38671,"n":"V1_PULSE_START","k":"routine","len":6,"c":true},{"a":38677,"n":"V1_PULSE_RELOAD","k":"routine","len":19,"c":true},{"a":38696,"n":"V3_PULSE_RESET","k":"routine","len":6,"c":true},{"a":38702,"n":"V3_PULSE_START","k":"routine","len":6,"c":true},{"a":38708,"n":"V3_PULSE_RELOAD","k":"routine","len":19,"c":true},{"a":38727,"n":"V1_VIBRATO_RESET","k":"routine","len":6,"c":true},{"a":38733,"n":"V1_VIBRATO_START","k":"routine","len":6,"c":true},{"a":38739,"n":"V1_VIBRATO_RELOAD","k":"routine","len":31,"c":true},{"a":38770,"n":"V2_VIBRATO_RESET","k":"routine","len":6,"c":true},{"a":38776,"n":"V2_VIBRATO_START","k":"routine","len":6,"c":true},{"a":38782,"n":"V2_VIBRATO_RELOAD","k":"routine","len":31,"c":true},{"a":38813,"n":"V1_TICK","k":"routine","len":12,"c":true},{"a":38822,"n":"b_97A6","k":"branch","len":1,"c":false},{"a":38825,"n":"V1_SKIP_COMMAND","k":"routine","len":11,"c":true},{"a":38836,"n":"V1_READ_EVENT","k":"routine","len":33,"c":true},{"a":38869,"n":"V1_COMMAND_JUMP","k":"routine","len":1,"c":true},{"a":38870,"n":"V1_COMMAND_JUMP_LOW","k":"routine","len":1,"c":true},{"a":38871,"n":"V1_COMMAND_JUMP_HIGH","k":"routine","len":1,"c":true},{"a":38872,"n":"V1_NOTE","k":"routine","len":22,"c":true},{"a":38883,"n":"b_97E3","k":"branch","len":1,"c":false},{"a":38891,"n":"b_97EB","k":"branch","len":1,"c":false},{"a":38894,"n":"V1_UNREACHED_CUT_TEST","k":"routine","len":6,"c":true},{"a":38900,"n":"V1_START_NOTE","k":"routine","len":12,"c":true},{"a":38904,"n":"b_97F8","k":"branch","len":1,"c":false},{"a":38912,"n":"LOADER_PAGE_9800","k":"routine","len":127,"c":true},{"a":38916,"n":"b_9804","k":"branch","len":1,"c":false},{"a":38927,"n":"b_980F","k":"branch","len":1,"c":false},{"a":38955,"n":"b_982B","k":"branch","len":1,"c":false},{"a":38964,"n":"b_9834","k":"branch","len":1,"c":false},{"a":38974,"n":"b_983E","k":"branch","len":1,"c":false},{"a":38983,"n":"b_9847","k":"branch","len":1,"c":false},{"a":39039,"n":"V1_SET_LENGTH","k":"routine","len":24,"c":true},{"a":39060,"n":"b_9894","k":"branch","len":1,"c":false},{"a":39063,"n":"V1_CMD_RETURN","k":"routine","len":18,"c":true},{"a":39081,"n":"V1_CMD_ENVELOPE","k":"routine","len":4,"c":true},{"a":39085,"n":"V1_COPY_SETTINGS","k":"routine","len":12,"c":true},{"a":39097,"n":"V1_CMD_INSTRUMENT","k":"routine","len":6,"c":true},{"a":39103,"n":"V1_CMD_VIBRATO","k":"routine","len":6,"c":true},{"a":39109,"n":"V1_CMD_PULSE","k":"routine","len":6,"c":true},{"a":39115,"n":"V1_CMD_LENGTHS","k":"routine","len":6,"c":true},{"a":39121,"n":"V1_CMD_JUMP","k":"routine","len":11,"c":true},{"a":39132,"n":"V1_CMD_MACHINE_CODE","k":"routine","len":9,"c":true},{"a":39141,"n":"V1_UNREACHED_CALL_TRANSPOSED","k":"routine","len":10,"c":true},{"a":39151,"n":"V1_CMD_CALL","k":"routine","len":22,"c":true},{"a":39173,"n":"V1_CMD_POKE","k":"routine","len":14,"c":true},{"a":39187,"n":"V1_COMMANDS","k":"variable","len":1,"c":true},{"a":39188,"n":"V1_COMMANDS_HIGH","k":"table","len":29,"c":true},{"a":39217,"n":"V1_VIBRATO_EFFECT","k":"routine","len":178,"c":true},{"a":39223,"n":"b_9937","k":"branch","len":1,"c":false},{"a":39270,"n":"b_9966","k":"branch","len":1,"c":false},{"a":39273,"n":"b_9969","k":"branch","len":1,"c":false},{"a":39284,"n":"b_9974","k":"branch","len":1,"c":false},{"a":39290,"n":"j_997A","k":"branch","len":1,"c":false},{"a":39311,"n":"b_998F","k":"branch","len":1,"c":false},{"a":39332,"n":"b_99A4","k":"branch","len":1,"c":false},{"a":39353,"n":"b_99B9","k":"branch","len":1,"c":false},{"a":39374,"n":"b_99CE","k":"branch","len":1,"c":false},{"a":39389,"n":"b_99DD","k":"branch","len":1,"c":false},{"a":39395,"n":"V1_WRITE_FREQUENCY","k":"routine","len":12,"c":true},{"a":39407,"n":"V1_PULSE_EFFECT","k":"routine","len":105,"c":true},{"a":39431,"n":"b_9A07","k":"branch","len":1,"c":false},{"a":39442,"n":"b_9A12","k":"branch","len":1,"c":false},{"a":39449,"n":"j_9A19","k":"branch","len":1,"c":false},{"a":39470,"n":"b_9A2E","k":"branch","len":1,"c":false},{"a":39491,"n":"b_9A43","k":"branch","len":1,"c":false},{"a":39506,"n":"b_9A52","k":"branch","len":1,"c":false},{"a":39512,"n":"V1_WRITE_PULSE","k":"routine","len":12,"c":true},{"a":39524,"n":"V1_GATE_TIMER","k":"routine","len":39,"c":true},{"a":39536,"n":"b_9A70","k":"branch","len":1,"c":false},{"a":39549,"n":"b_9A7D","k":"branch","len":1,"c":false},{"a":39562,"n":"r_9A8A","k":"branch","len":1,"c":false},{"a":39563,"n":"GAP_9A8B","k":"variable","len":1,"c":true},{"a":39564,"n":"V2_TICK","k":"routine","len":13,"c":true},{"a":39574,"n":"b_9A96","k":"branch","len":1,"c":false},{"a":39577,"n":"V2_SKIP_COMMAND","k":"routine","len":11,"c":true},{"a":39588,"n":"V2_READ_EVENT","k":"routine","len":31,"c":true},{"a":39619,"n":"V2_COMMAND_JUMP","k":"routine","len":1,"c":true},{"a":39620,"n":"V2_COMMAND_JUMP_LOW","k":"routine","len":1,"c":true},{"a":39621,"n":"V2_COMMAND_JUMP_HIGH","k":"routine","len":1,"c":true},{"a":39622,"n":"V2_NOTE","k":"routine","len":23,"c":true},{"a":39633,"n":"b_9AD1","k":"branch","len":1,"c":false},{"a":39642,"n":"b_9ADA","k":"branch","len":1,"c":false},{"a":39645,"n":"V2_UNREACHED_CUT_TEST","k":"routine","len":6,"c":true},{"a":39651,"n":"V2_START_NOTE","k":"routine","len":112,"c":true},{"a":39655,"n":"b_9AE7","k":"branch","len":1,"c":false},{"a":39667,"n":"b_9AF3","k":"branch","len":1,"c":false},{"a":39678,"n":"b_9AFE","k":"branch","len":1,"c":false},{"a":39706,"n":"b_9B1A","k":"branch","len":1,"c":false},{"a":39715,"n":"b_9B23","k":"branch","len":1,"c":false},{"a":39763,"n":"V2_SET_LENGTH","k":"routine","len":24,"c":true},{"a":39784,"n":"b_9B68","k":"branch","len":1,"c":false},{"a":39787,"n":"V2_CMD_RETURN","k":"routine","len":18,"c":true},{"a":39805,"n":"V2_CMD_ENVELOPE","k":"routine","len":4,"c":true},{"a":39809,"n":"V2_COPY_SETTINGS","k":"routine","len":12,"c":true},{"a":39821,"n":"V2_CMD_INSTRUMENT","k":"routine","len":6,"c":true},{"a":39827,"n":"V2_CMD_INSTRUMENT_AND_LENGTHS","k":"routine","len":6,"c":true},{"a":39833,"n":"V2_CMD_VIBRATO","k":"routine","len":6,"c":true},{"a":39839,"n":"V2_CMD_PULSE","k":"routine","len":6,"c":true},{"a":39845,"n":"V2_CMD_JUMP_TRANSPOSED","k":"routine","len":7,"c":true},{"a":39852,"n":"V2_CMD_JUMP","k":"routine","len":11,"c":true},{"a":39863,"n":"V2_CMD_MACHINE_CODE","k":"routine","len":9,"c":true},{"a":39872,"n":"V2_CMD_CALL","k":"routine","len":22,"c":true},{"a":39874,"n":"b_9BC2","k":"branch","len":1,"c":false},{"a":39894,"n":"V2_CMD_POKE","k":"routine","len":14,"c":true},{"a":39908,"n":"V2_CMD_CALL_TRANSPOSED","k":"routine","len":11,"c":true},{"a":39919,"n":"V2_COMMANDS","k":"variable","len":1,"c":true},{"a":39920,"n":"V2_COMMANDS_HIGH","k":"table","len":29,"c":true},{"a":39949,"n":"V2_VIBRATO_EFFECT","k":"routine","len":178,"c":true},{"a":39955,"n":"b_9C13","k":"branch","len":1,"c":false},{"a":40002,"n":"b_9C42","k":"branch","len":1,"c":false},{"a":40005,"n":"b_9C45","k":"branch","len":1,"c":false},{"a":40016,"n":"b_9C50","k":"branch","len":1,"c":false},{"a":40022,"n":"j_9C56","k":"branch","len":1,"c":false},{"a":40043,"n":"b_9C6B","k":"branch","len":1,"c":false},{"a":40064,"n":"b_9C80","k":"branch","len":1,"c":false},{"a":40085,"n":"b_9C95","k":"branch","len":1,"c":false},{"a":40106,"n":"b_9CAA","k":"branch","len":1,"c":false},{"a":40121,"n":"b_9CB9","k":"branch","len":1,"c":false},{"a":40127,"n":"V2_WRITE_FREQUENCY","k":"routine","len":12,"c":true},{"a":40139,"n":"V2_GATE_TIMER","k":"routine","len":39,"c":true},{"a":40151,"n":"b_9CD7","k":"branch","len":1,"c":false},{"a":40164,"n":"b_9CE4","k":"branch","len":1,"c":false},{"a":40177,"n":"r_9CF1","k":"branch","len":1,"c":false},{"a":40178,"n":"V3_TICK","k":"routine","len":13,"c":true},{"a":40188,"n":"b_9CFC","k":"branch","len":1,"c":false},{"a":40191,"n":"V3_SKIP_COMMAND","k":"routine","len":11,"c":true},{"a":40202,"n":"V3_READ_EVENT","k":"routine","len":34,"c":true},{"a":40236,"n":"V3_COMMAND_JUMP","k":"routine","len":1,"c":true},{"a":40237,"n":"V3_COMMAND_JUMP_LOW","k":"routine","len":1,"c":true},{"a":40238,"n":"V3_COMMAND_JUMP_HIGH","k":"routine","len":1,"c":true},{"a":40239,"n":"V3_NOTE","k":"routine","len":23,"c":true},{"a":40250,"n":"b_9D3A","k":"branch","len":1,"c":false},{"a":40259,"n":"b_9D43","k":"branch","len":1,"c":false},{"a":40262,"n":"V3_UNREACHED_CUT_TEST","k":"routine","len":6,"c":true},{"a":40268,"n":"V3_START_NOTE","k":"routine","len":105,"c":true},{"a":40272,"n":"b_9D50","k":"branch","len":1,"c":false},{"a":40284,"n":"b_9D5C","k":"branch","len":1,"c":false},{"a":40295,"n":"b_9D67","k":"branch","len":1,"c":false},{"a":40323,"n":"b_9D83","k":"branch","len":1,"c":false},{"a":40332,"n":"b_9D8C","k":"branch","len":1,"c":false},{"a":40373,"n":"V3_SET_LENGTH","k":"routine","len":24,"c":true},{"a":40394,"n":"b_9DCA","k":"branch","len":1,"c":false},{"a":40397,"n":"V3_CMD_RETURN","k":"routine","len":18,"c":true},{"a":40415,"n":"V3_CMD_INSTRUMENT","k":"routine","len":4,"c":true},{"a":40419,"n":"V3_COPY_SETTINGS","k":"routine","len":12,"c":true},{"a":40431,"n":"V3_CMD_LENGTHS","k":"routine","len":6,"c":true},{"a":40437,"n":"V3_CMD_JUMP_TRANSPOSED","k":"routine","len":7,"c":true},{"a":40444,"n":"V3_CMD_JUMP","k":"routine","len":11,"c":true},{"a":40455,"n":"V3_UNREACHED_MACHINE_CODE","k":"routine","len":9,"c":true},{"a":40464,"n":"V3_CMD_CALL","k":"routine","len":22,"c":true},{"a":40466,"n":"b_9E12","k":"branch","len":1,"c":false},{"a":40486,"n":"V3_CMD_CALL_TRANSPOSED","k":"routine","len":11,"c":true},{"a":40497,"n":"V3_COMMANDS","k":"variable","len":1,"c":true},{"a":40498,"n":"V3_COMMANDS_HIGH","k":"table","len":27,"c":true},{"a":40525,"n":"V3_PULSE_EFFECT","k":"routine","len":115,"c":true},{"a":40533,"n":"b_9E55","k":"branch","len":1,"c":false},{"a":40559,"n":"b_9E6F","k":"branch","len":1,"c":false},{"a":40570,"n":"b_9E7A","k":"branch","len":1,"c":false},{"a":40577,"n":"j_9E81","k":"branch","len":1,"c":false},{"a":40598,"n":"b_9E96","k":"branch","len":1,"c":false},{"a":40619,"n":"b_9EAB","k":"branch","len":1,"c":false},{"a":40634,"n":"b_9EBA","k":"branch","len":1,"c":false},{"a":40640,"n":"V3_WRITE_PULSE","k":"routine","len":12,"c":true},{"a":40652,"n":"V3_GATE_TIMER","k":"routine","len":39,"c":true},{"a":40664,"n":"b_9ED8","k":"branch","len":1,"c":false},{"a":40677,"n":"b_9EE5","k":"branch","len":1,"c":false},{"a":40690,"n":"r_9EF2","k":"branch","len":1,"c":false},{"a":40691,"n":"V1_BLOCK_VIBRATO","k":"table","len":14,"c":true},{"a":40705,"n":"V1_BLOCK_VIBRATO_FLAGS","k":"variable","len":1,"c":true},{"a":40706,"n":"V1_BLOCK_PULSE","k":"table","len":8,"c":true},{"a":40714,"n":"V1_BLOCK_PULSE_FLAGS","k":"variable","len":1,"c":true},{"a":40715,"n":"V1_BLOCK_WIDTH_LOW","k":"variable","len":1,"c":true},{"a":40716,"n":"V1_BLOCK_WIDTH_HIGH","k":"variable","len":1,"c":true},{"a":40717,"n":"V1_BLOCK_ENVELOPE","k":"table","len":3,"c":true},{"a":40720,"n":"V1_BLOCK_RELEASE_TICKS","k":"variable","len":1,"c":true},{"a":40721,"n":"V1_BLOCK_GATE_TICKS","k":"variable","len":1,"c":true},{"a":40722,"n":"V1_BLOCK_FILTER","k":"table","len":3,"c":true},{"a":40725,"n":"V1_BLOCK_MODE","k":"variable","len":1,"c":true},{"a":40726,"n":"V1_BLOCK_LENGTHS","k":"table","len":16,"c":true},{"a":40742,"n":"V1_STACK_LOW","k":"table","len":16,"c":true},{"a":40758,"n":"V1_STACK_HIGH","k":"table","len":16,"c":true},{"a":40774,"n":"V1_TRANSPOSE","k":"variable","len":1,"c":true},{"a":40775,"n":"V2_BLOCK_VIBRATO","k":"table","len":14,"c":true},{"a":40789,"n":"V2_BLOCK_VIBRATO_FLAGS","k":"variable","len":1,"c":true},{"a":40790,"n":"V2_BLOCK_PULSE","k":"table","len":8,"c":true},{"a":40798,"n":"V2_BLOCK_PULSE_FLAGS","k":"variable","len":1,"c":true},{"a":40799,"n":"V2_BLOCK_WIDTH_LOW","k":"variable","len":1,"c":true},{"a":40800,"n":"V2_BLOCK_WIDTH_HIGH","k":"variable","len":1,"c":true},{"a":40801,"n":"V2_BLOCK_ENVELOPE","k":"table","len":3,"c":true},{"a":40804,"n":"V2_BLOCK_RELEASE_TICKS","k":"variable","len":1,"c":true},{"a":40805,"n":"V2_BLOCK_GATE_TICKS","k":"variable","len":1,"c":true},{"a":40806,"n":"V2_BLOCK_FILTER","k":"table","len":3,"c":true},{"a":40809,"n":"V2_BLOCK_MODE","k":"variable","len":1,"c":true},{"a":40810,"n":"V2_BLOCK_LENGTHS","k":"table","len":16,"c":true},{"a":40826,"n":"V2_STACK_LOW","k":"table","len":16,"c":true},{"a":40842,"n":"V2_STACK_HIGH","k":"table","len":16,"c":true},{"a":40858,"n":"V2_TRANSPOSE","k":"variable","len":1,"c":true},{"a":40859,"n":"V3_BLOCK_VIBRATO","k":"table","len":14,"c":true},{"a":40873,"n":"V3_BLOCK_VIBRATO_FLAGS","k":"variable","len":1,"c":true},{"a":40874,"n":"V3_BLOCK_PULSE","k":"table","len":8,"c":true},{"a":40882,"n":"V3_BLOCK_PULSE_FLAGS","k":"variable","len":1,"c":true},{"a":40883,"n":"V3_BLOCK_WIDTH_LOW","k":"variable","len":1,"c":true},{"a":40884,"n":"V3_BLOCK_WIDTH_HIGH","k":"variable","len":1,"c":true},{"a":40885,"n":"V3_BLOCK_ENVELOPE","k":"table","len":3,"c":true},{"a":40888,"n":"V3_BLOCK_RELEASE_TICKS","k":"variable","len":1,"c":true},{"a":40889,"n":"V3_BLOCK_GATE_TICKS","k":"variable","len":1,"c":true},{"a":40890,"n":"V3_BLOCK_FILTER","k":"table","len":3,"c":true},{"a":40893,"n":"V3_BLOCK_MODE","k":"variable","len":1,"c":true},{"a":40894,"n":"V3_BLOCK_LENGTHS","k":"table","len":16,"c":true},{"a":40910,"n":"V3_STACK_LOW","k":"table","len":16,"c":true},{"a":40926,"n":"V3_STACK_HIGH","k":"table","len":16,"c":true},{"a":40942,"n":"V3_TRANSPOSE","k":"variable","len":1,"c":true},{"a":40943,"n":"LEFTOVER_9FEF","k":"table","len":17,"c":true},{"a":40960,"n":"ZERO_PAGE_BACKUP","k":"table","len":256,"c":true},{"a":41216,"n":"ROOM_GFX_00","k":"table","len":1024,"c":true},{"a":42240,"n":"ROOM_GFX_00_CONT_A500","k":"table","len":96,"c":true},{"a":42336,"n":"ICON_00","k":"table","len":160,"c":true},{"a":42496,"n":"ICON_01","k":"table","len":160,"c":true},{"a":42656,"n":"ICON_02","k":"table","len":160,"c":true},{"a":42816,"n":"ICON_03","k":"table","len":160,"c":true},{"a":42976,"n":"RASTER_IRQ_DISPATCH","k":"routine","len":2,"c":true},{"a":42978,"n":"IRQ_SPLIT_STATE","k":"routine","len":1,"c":true},{"a":42979,"n":"RASTER_SPLIT_PICTURE","k":"routine","len":30,"c":true},{"a":43009,"n":"RASTER_ACK_TAIL","k":"routine","len":9,"c":true},{"a":43018,"n":"RASTER_SPLIT_TEXT_DELAY","k":"routine","len":4,"c":true},{"a":43022,"n":"RASTER_IRQ_SPLIT_MID","k":"routine","len":39,"c":true},{"a":43061,"n":"RASTER_SPLIT_BOTTOM","k":"routine","len":19,"c":true},{"a":43080,"n":"ICON_SLOT_04_ARTWORK_TAIL","k":"table","len":56,"c":true},{"a":43136,"n":"OPENING_IRQ","k":"routine","len":19,"c":true},{"a":43155,"n":"RESTORE_SYSTEM_TO_BASIC","k":"routine","len":57,"c":true},{"a":43162,"n":"RESTORE_BASIC_ZERO_LOOP","k":"branch","len":1,"c":false},{"a":43186,"n":"RESTORE_BASIC_VECTOR_COPY_LOOP","k":"branch","len":1,"c":false},{"a":43212,"n":"INSTALL_GAME_IRQ","k":"routine","len":19,"c":true},{"a":43231,"n":"ICON_SLOT_05_ARTWORK_TAIL","k":"table","len":65,"c":true},{"a":43296,"n":"ICON_06","k":"table","len":160,"c":true},{"a":43456,"n":"ICON_07","k":"table","len":160,"c":true},{"a":43616,"n":"ICON_08","k":"table","len":160,"c":true},{"a":43776,"n":"ICON_09","k":"table","len":160,"c":true},{"a":43936,"n":"ICON_10","k":"table","len":160,"c":true},{"a":44096,"n":"ICON_11_ANCIENT_PADLOCK","k":"table","len":160,"c":true},{"a":44256,"n":"ICON_12","k":"table","len":160,"c":true},{"a":44416,"n":"ICON_13","k":"table","len":160,"c":true},{"a":44576,"n":"ICON_14","k":"table","len":160,"c":true},{"a":44736,"n":"ICON_15","k":"table","len":160,"c":true},{"a":44896,"n":"ICON_16","k":"table","len":160,"c":true},{"a":45056,"n":"ICON_17","k":"table","len":160,"c":true},{"a":45216,"n":"ICON_18","k":"table","len":160,"c":true},{"a":45376,"n":"ICON_19","k":"table","len":160,"c":true},{"a":45536,"n":"ICON_20","k":"table","len":160,"c":true},{"a":45696,"n":"ICON_21","k":"table","len":160,"c":true},{"a":45856,"n":"ICON_22","k":"table","len":160,"c":true},{"a":46016,"n":"ICON_FALKOR","k":"table","len":160,"c":true},{"a":46176,"n":"ICON_ARTAX","k":"table","len":160,"c":true},{"a":46336,"n":"ICON_25","k":"table","len":160,"c":true},{"a":46496,"n":"ICON_26","k":"table","len":160,"c":true},{"a":46656,"n":"UNUSED_ICON_CRUCIFIX","k":"table","len":160,"c":true},{"a":46816,"n":"ICON_28","k":"table","len":160,"c":true},{"a":46976,"n":"OPENING_TITLE_ADDRESS_LOW","k":"variable","len":1,"c":true},{"a":46977,"n":"OPENING_TITLE_ADDRESS_HIGH","k":"variable","len":1,"c":true},{"a":46978,"n":"OPENING_CREDITS_ADDRESS_LOW","k":"variable","len":1,"c":true},{"a":46979,"n":"OPENING_CREDITS_ADDRESS_HIGH","k":"variable","len":1,"c":true},{"a":46980,"n":"OPENING_TITLE_LENGTH","k":"variable","len":1,"c":true},{"a":46981,"n":"OPENING_CREDITS_LENGTH","k":"variable","len":1,"c":true},{"a":46982,"n":"OPENING_TITLE_TEXT","k":"table","len":215,"c":true},{"a":47197,"n":"OPENING_CREDITS_TEXT","k":"table","len":171,"c":true},{"a":47368,"n":"ICON_SLOT_31_TAIL","k":"table","len":88,"c":true},{"a":47456,"n":"ICON_32","k":"table","len":160,"c":true},{"a":47616,"n":"ICON_33","k":"table","len":160,"c":true},{"a":47776,"n":"ICON_34","k":"table","len":160,"c":true},{"a":47936,"n":"ICON_35","k":"table","len":160,"c":true},{"a":48096,"n":"ICON_TABLE_ALIGNMENT_RESIDUE","k":"table","len":32,"c":true},{"a":49152,"n":"STAGED_DISK_LOADER","k":"routine","len":3,"c":true},{"a":49155,"n":"STAGED_PART_NAME","k":"table","len":6,"c":true},{"a":49161,"n":"STAGED_LOAD_PART","k":"routine","len":25,"c":true},{"a":49186,"n":"STAGED_TAPE_LOADER_REMNANT","k":"table","len":222,"c":true},{"a":49408,"n":"STAGED_LOADER_PAGE_2","k":"table","len":118,"c":true},{"a":49526,"n":"STAGED_SCREEN_OFF","k":"table","len":9,"c":true},{"a":49535,"n":"STAGED_UNKNOWN_TABLE","k":"table","len":1024,"c":true},{"a":57344,"n":"BACKDROP_BITMAP","k":"table","len":320,"c":true},{"a":57664,"n":"BACKDROP_BITMAP_ROW_1","k":"table","len":320,"c":true},{"a":57984,"n":"BACKDROP_BITMAP_ROW_2","k":"table","len":319,"c":true},{"a":58303,"n":"s_E3BF","k":"variable","len":1,"c":true},{"a":58304,"n":"BACKDROP_BITMAP_ROW_3","k":"table","len":147,"c":true},{"a":58451,"n":"s_E453","k":"table","len":173,"c":true},{"a":58624,"n":"BACKDROP_BITMAP_ROW_4","k":"table","len":320,"c":true},{"a":58944,"n":"BACKDROP_BITMAP_ROW_5","k":"table","len":320,"c":true},{"a":59264,"n":"BACKDROP_BITMAP_ROW_6","k":"table","len":320,"c":true},{"a":59584,"n":"BACKDROP_BITMAP_ROW_7","k":"table","len":320,"c":true},{"a":59904,"n":"BACKDROP_BITMAP_ROW_8","k":"table","len":129,"c":true},{"a":60033,"n":"j_EA81","k":"table","len":64,"c":true},{"a":60097,"n":"BACKDROP_BITMAP_ROW_8_END","k":"table","len":127,"c":true},{"a":60224,"n":"BACKDROP_BITMAP_ROW_9","k":"table","len":320,"c":true},{"a":60544,"n":"BACKDROP_SCREEN","k":"table","len":400,"c":true},{"a":60944,"n":"BACKDROP_COLOUR","k":"table","len":496,"c":true},{"a":61440,"n":"V1_VIB_DELTA1_LO","k":"variable","len":1,"c":true},{"a":61441,"n":"V1_VIB_DELTA1_HI","k":"variable","len":1,"c":true},{"a":61442,"n":"V1_VIB_DELTA2_LO","k":"variable","len":1,"c":true},{"a":61443,"n":"V1_VIB_DELTA2_HI","k":"variable","len":1,"c":true},{"a":61444,"n":"V1_VIB_DELTA3_LO","k":"variable","len":1,"c":true},{"a":61445,"n":"V1_VIB_DELTA3_HI","k":"variable","len":1,"c":true},{"a":61446,"n":"V1_VIB_DELTA4_LO","k":"variable","len":1,"c":true},{"a":61447,"n":"V1_VIB_DELTA4_HI","k":"variable","len":1,"c":true},{"a":61448,"n":"V1_VIB_STEPS1","k":"variable","len":1,"c":true},{"a":61449,"n":"V1_VIB_STEPS2","k":"variable","len":1,"c":true},{"a":61450,"n":"V1_VIB_STEPS3","k":"variable","len":1,"c":true},{"a":61451,"n":"V1_VIB_STEPS4","k":"variable","len":1,"c":true},{"a":61452,"n":"V1_VIB_DELAY","k":"variable","len":1,"c":true},{"a":61453,"n":"V1_VIB_PERIOD","k":"variable","len":1,"c":true},{"a":61454,"n":"V1_VIB_FLAGS","k":"variable","len":1,"c":true},{"a":61455,"n":"V1_PW_DELTA1_LO","k":"variable","len":1,"c":true},{"a":61456,"n":"V1_PW_DELTA1_HI","k":"variable","len":1,"c":true},{"a":61457,"n":"V1_PW_DELTA2_LO","k":"variable","len":1,"c":true},{"a":61458,"n":"V1_PW_DELTA2_HI","k":"variable","len":1,"c":true},{"a":61459,"n":"V1_PW_STEPS1","k":"variable","len":1,"c":true},{"a":61460,"n":"V1_PW_STEPS2","k":"variable","len":1,"c":true},{"a":61461,"n":"V1_PW_DELAY","k":"variable","len":1,"c":true},{"a":61462,"n":"V1_PW_PERIOD","k":"variable","len":1,"c":true},{"a":61463,"n":"V1_PW_FLAGS","k":"variable","len":1,"c":true},{"a":61464,"n":"V1_PW_BASE_LO","k":"variable","len":1,"c":true},{"a":61465,"n":"V1_PW_BASE_HI","k":"variable","len":1,"c":true},{"a":61466,"n":"V1_BASE_FREQ_LO","k":"variable","len":1,"c":true},{"a":61467,"n":"V1_BASE_FREQ_HI","k":"variable","len":1,"c":true},{"a":61468,"n":"V1_WAVEFORM","k":"variable","len":1,"c":true},{"a":61469,"n":"V1_RELEASE_TICKS","k":"variable","len":1,"c":true},{"a":61470,"n":"V1_GATE_TICKS","k":"variable","len":1,"c":true},{"a":61471,"n":"V1_FREQ_LO","k":"variable","len":1,"c":true},{"a":61472,"n":"V1_FREQ_HI","k":"variable","len":1,"c":true},{"a":61473,"n":"V1_PW_LO","k":"variable","len":1,"c":true},{"a":61474,"n":"V1_PW_HI","k":"variable","len":1,"c":true},{"a":61475,"n":"V1_VIB_LEFT1","k":"variable","len":1,"c":true},{"a":61476,"n":"V1_VIB_LEFT2","k":"variable","len":1,"c":true},{"a":61477,"n":"V1_VIB_LEFT3","k":"variable","len":1,"c":true},{"a":61478,"n":"V1_VIB_LEFT4","k":"variable","len":1,"c":true},{"a":61479,"n":"V1_VIB_TIMER","k":"variable","len":1,"c":true},{"a":61480,"n":"V1_PW_LEFT1","k":"variable","len":1,"c":true},{"a":61481,"n":"V1_PW_LEFT2","k":"variable","len":1,"c":true},{"a":61482,"n":"V1_PW_TIMER","k":"variable","len":1,"c":true},{"a":61483,"n":"V2_VIB_DELTA1_LO","k":"variable","len":1,"c":true},{"a":61484,"n":"V2_VIB_DELTA1_HI","k":"variable","len":1,"c":true},{"a":61485,"n":"V2_VIB_DELTA2_LO","k":"variable","len":1,"c":true},{"a":61486,"n":"V2_VIB_DELTA2_HI","k":"variable","len":1,"c":true},{"a":61487,"n":"V2_VIB_DELTA3_LO","k":"variable","len":1,"c":true},{"a":61488,"n":"V2_VIB_DELTA3_HI","k":"variable","len":1,"c":true},{"a":61489,"n":"V2_VIB_DELTA4_LO","k":"variable","len":1,"c":true},{"a":61490,"n":"V2_VIB_DELTA4_HI","k":"variable","len":1,"c":true},{"a":61491,"n":"V2_VIB_STEPS1","k":"variable","len":1,"c":true},{"a":61492,"n":"V2_VIB_STEPS2","k":"variable","len":1,"c":true},{"a":61493,"n":"V2_VIB_STEPS3","k":"variable","len":1,"c":true},{"a":61494,"n":"V2_VIB_STEPS4","k":"variable","len":1,"c":true},{"a":61495,"n":"V2_VIB_DELAY","k":"variable","len":1,"c":true},{"a":61496,"n":"V2_VIB_PERIOD","k":"variable","len":1,"c":true},{"a":61497,"n":"V2_VIB_FLAGS","k":"variable","len":1,"c":true},{"a":61498,"n":"V2_UNUSED_PULSE","k":"table","len":11,"c":true},{"a":61509,"n":"V2_BASE_FREQ_LO","k":"variable","len":1,"c":true},{"a":61510,"n":"V2_BASE_FREQ_HI","k":"variable","len":1,"c":true},{"a":61511,"n":"V2_WAVEFORM","k":"variable","len":1,"c":true},{"a":61512,"n":"V2_RELEASE_TICKS","k":"variable","len":1,"c":true},{"a":61513,"n":"V2_GATE_TICKS","k":"variable","len":1,"c":true},{"a":61514,"n":"V2_FREQ_LO","k":"variable","len":1,"c":true},{"a":61515,"n":"V2_FREQ_HI","k":"variable","len":1,"c":true},{"a":61516,"n":"V2_UNUSED_PULSE_WIDTH","k":"variable","len":2,"c":true},{"a":61518,"n":"V2_VIB_LEFT1","k":"variable","len":1,"c":true},{"a":61519,"n":"V2_VIB_LEFT2","k":"variable","len":1,"c":true},{"a":61520,"n":"V2_VIB_LEFT3","k":"variable","len":1,"c":true},{"a":61521,"n":"V2_VIB_LEFT4","k":"variable","len":1,"c":true},{"a":61522,"n":"V2_VIB_TIMER","k":"variable","len":1,"c":true},{"a":61523,"n":"V2_UNUSED_PULSE_STEPS","k":"table","len":3,"c":true},{"a":61526,"n":"V3_UNUSED_VIBRATO","k":"table","len":15,"c":true},{"a":61541,"n":"V3_PW_DELTA1_LO","k":"variable","len":1,"c":true},{"a":61542,"n":"V3_PW_DELTA1_HI","k":"variable","len":1,"c":true},{"a":61543,"n":"V3_PW_DELTA2_LO","k":"variable","len":1,"c":true},{"a":61544,"n":"V3_PW_DELTA2_HI","k":"variable","len":1,"c":true},{"a":61545,"n":"V3_PW_STEPS1","k":"variable","len":1,"c":true},{"a":61546,"n":"V3_PW_STEPS2","k":"variable","len":1,"c":true},{"a":61547,"n":"V3_PW_DELAY","k":"variable","len":1,"c":true},{"a":61548,"n":"V3_PW_PERIOD","k":"variable","len":1,"c":true},{"a":61549,"n":"V3_PW_FLAGS","k":"variable","len":1,"c":true},{"a":61550,"n":"V3_PW_BASE_LO","k":"variable","len":1,"c":true},{"a":61551,"n":"V3_PW_BASE_HI","k":"variable","len":1,"c":true},{"a":61552,"n":"V3_UNUSED_BASE_FREQUENCY","k":"variable","len":2,"c":true},{"a":61554,"n":"V3_WAVEFORM","k":"variable","len":1,"c":true},{"a":61555,"n":"V3_RELEASE_TICKS","k":"variable","len":1,"c":true},{"a":61556,"n":"V3_GATE_TICKS","k":"variable","len":1,"c":true},{"a":61557,"n":"V3_UNUSED_FREQUENCY","k":"variable","len":2,"c":true},{"a":61559,"n":"V3_PW_LO","k":"variable","len":1,"c":true},{"a":61560,"n":"V3_PW_HI","k":"variable","len":1,"c":true},{"a":61561,"n":"V3_UNUSED_VIBRATO_STEPS","k":"table","len":5,"c":true},{"a":61566,"n":"V3_PW_LEFT1","k":"variable","len":1,"c":true},{"a":61567,"n":"V3_PW_LEFT2","k":"variable","len":1,"c":true},{"a":61568,"n":"V3_PW_TIMER","k":"variable","len":1,"c":true},{"a":61569,"n":"VOICE_ENABLE","k":"variable","len":1,"c":true},{"a":61570,"n":"VOLUME","k":"variable","len":1,"c":true},{"a":61571,"n":"FADE_ACCUMULATOR","k":"variable","len":1,"c":true},{"a":61572,"n":"FADE_SPEED","k":"variable","len":1,"c":true},{"a":61573,"n":"VOICE_STARTS","k":"table","len":3,"c":true},{"a":61576,"n":"VOICE_STARTS_SECOND_HALF","k":"table","len":3,"c":true},{"a":61579,"n":"VOICE_BLOCK_OFFSETS","k":"table","len":3,"c":true},{"a":61582,"n":"FREQUENCY_HIGH","k":"table","len":92,"c":true},{"a":61674,"n":"FREQUENCY_LOW","k":"table","len":92,"c":true},{"a":61766,"n":"INSTRUMENT_LEAD","k":"table","len":35,"c":true},{"a":61801,"n":"NOTE_LENGTHS","k":"table","len":16,"c":true},{"a":61817,"n":"VIBRATO_BEND_DOWN","k":"table","len":15,"c":true},{"a":61832,"n":"PULSE_SWEEP_F188","k":"table","len":11,"c":true},{"a":61843,"n":"INSTRUMENT_SECOND","k":"table","len":35,"c":true},{"a":61878,"n":"ENVELOPE_CASCADE","k":"table","len":5,"c":true},{"a":61883,"n":"VIBRATO_BEND_UP","k":"table","len":15,"c":true},{"a":61898,"n":"VIBRATO_SLIDE","k":"table","len":15,"c":true},{"a":61913,"n":"VIBRATO_BEND_UP_AND_BACK","k":"table","len":15,"c":true},{"a":61928,"n":"ENVELOPE_CHORDS","k":"table","len":5,"c":true},{"a":61933,"n":"CHORD_F1ED","k":"table","len":15,"c":true},{"a":61948,"n":"CHORD_F1FC","k":"table","len":15,"c":true},{"a":61963,"n":"CHORD_F20B","k":"table","len":15,"c":true},{"a":61978,"n":"CHORD_F21A","k":"table","len":15,"c":true},{"a":61993,"n":"CHORD_F229","k":"table","len":15,"c":true},{"a":62008,"n":"CHORD_F238","k":"table","len":15,"c":true},{"a":62023,"n":"TUNE_SHARED_F247","k":"table","len":9,"c":true},{"a":62032,"n":"TUNE_V1_START","k":"table","len":50,"c":true},{"a":62082,"n":"TUNE_V1_F282","k":"table","len":48,"c":true},{"a":62130,"n":"TUNE_V1_F2B2","k":"table","len":70,"c":true},{"a":62200,"n":"TUNE_V1_F2F8","k":"table","len":89,"c":true},{"a":62289,"n":"TUNE_V1_F351","k":"table","len":142,"c":true},{"a":62431,"n":"TUNE_V1_F3DF","k":"table","len":33,"c":true},{"a":62464,"n":"TUNE_FADE_IN","k":"routine","len":6,"c":true},{"a":62470,"n":"TUNE_FADE_OUT","k":"routine","len":6,"c":true},{"a":62476,"n":"TUNE_V1_F40C","k":"table","len":53,"c":true},{"a":62529,"n":"TUNE_V1_F441","k":"table","len":15,"c":true},{"a":62544,"n":"TUNE_V1_F450","k":"table","len":69,"c":true},{"a":62613,"n":"TUNE_FLIP_F450","k":"routine","len":9,"c":true},{"a":62622,"n":"TUNE_V1_F49E","k":"variable","len":2,"c":true},{"a":62624,"n":"TUNE_V1_F4A0","k":"table","len":31,"c":true},{"a":62655,"n":"TUNE_V1_F4BF","k":"table","len":3,"c":true},{"a":62658,"n":"TUNE_V1_F4C2","k":"table","len":9,"c":true},{"a":62667,"n":"TUNE_V1_F4CB","k":"table","len":15,"c":true},{"a":62682,"n":"TUNE_UNREACHED_F4DA","k":"table","len":3,"c":true},{"a":62685,"n":"TUNE_V1_F4DD","k":"table","len":14,"c":true},{"a":62699,"n":"VIBRATO_BEND_DOWN_V2","k":"table","len":15,"c":true},{"a":62714,"n":"ENVELOPE_V2_CHORDS","k":"table","len":5,"c":true},{"a":62719,"n":"TUNE_V2_F4FF","k":"table","len":18,"c":true},{"a":62737,"n":"TUNE_V2_F511","k":"table","len":66,"c":true},{"a":62803,"n":"TUNE_FLIP_F511","k":"routine","len":9,"c":true},{"a":62812,"n":"TUNE_UNREACHED_F55C","k":"table","len":3,"c":true},{"a":62815,"n":"TUNE_V2_F55F","k":"table","len":3,"c":true},{"a":62818,"n":"TUNE_V2_F562","k":"table","len":17,"c":true},{"a":62835,"n":"TUNE_V2_F573","k":"table","len":3,"c":true},{"a":62838,"n":"TUNE_V2_F576","k":"table","len":3,"c":true},{"a":62841,"n":"TUNE_V2_F579","k":"table","len":17,"c":true},{"a":62858,"n":"TUNE_V2_F58A","k":"table","len":3,"c":true},{"a":62861,"n":"TUNE_V2_F58D","k":"table","len":17,"c":true},{"a":62878,"n":"TUNE_V2_F59E","k":"table","len":17,"c":true},{"a":62895,"n":"TUNE_V2_F5AF","k":"table","len":3,"c":true},{"a":62898,"n":"TUNE_V2_F5B2","k":"table","len":29,"c":true},{"a":62927,"n":"TUNE_V2_F5CF","k":"table","len":3,"c":true},{"a":62930,"n":"TUNE_V2_F5D2","k":"table","len":3,"c":true},{"a":62933,"n":"TUNE_V2_F5D5","k":"table","len":7,"c":true},{"a":62940,"n":"TUNE_V2_F5DC","k":"table","len":23,"c":true},{"a":62963,"n":"TUNE_V2_START","k":"table","len":3,"c":true},{"a":62966,"n":"TUNE_V2_F5F6","k":"table","len":73,"c":true},{"a":63039,"n":"TUNE_V2_F63F","k":"table","len":33,"c":true},{"a":63072,"n":"TUNE_V2_F660","k":"table","len":47,"c":true},{"a":63119,"n":"TUNE_V2_F68F","k":"table","len":3,"c":true},{"a":63122,"n":"TUNE_V2_F692","k":"table","len":9,"c":true},{"a":63131,"n":"INSTRUMENT_BASS","k":"table","len":35,"c":true},{"a":63166,"n":"TUNE_V3_START","k":"table","len":6,"c":true},{"a":63172,"n":"TUNE_V3_F6C4","k":"table","len":79,"c":true},{"a":63251,"n":"TUNE_V3_F713","k":"table","len":3,"c":true},{"a":63254,"n":"TUNE_V3_F716","k":"table","len":3,"c":true},{"a":63257,"n":"TUNE_V3_F719","k":"table","len":9,"c":true},{"a":63266,"n":"TUNE_V3_F722","k":"table","len":3,"c":true},{"a":63269,"n":"TUNE_V3_F725","k":"table","len":20,"c":true},{"a":63289,"n":"TUNE_V3_F739","k":"table","len":16,"c":true},{"a":63305,"n":"TUNE_V3_F749","k":"table","len":12,"c":true},{"a":63317,"n":"TUNE_V3_F755","k":"table","len":20,"c":true},{"a":63337,"n":"LEFTOVER_F769","k":"table","len":151,"c":true},{"a":63488,"n":"gameplay_character_set","k":"table","len":1024,"c":true},{"a":64512,"n":"gameplay_character_set_upper","k":"table","len":304,"c":true},{"a":64816,"n":"KERNAL_VECTOR_TABLE","k":"table","len":720,"c":true},{"a":65412,"n":"KERNAL_IOINIT","k":"variable","len":1,"c":false},{"a":65424,"n":"KERNAL_SETMSG","k":"variable","len":1,"c":false},{"a":65439,"n":"KERNAL_SCNKEY","k":"variable","len":1,"c":false},{"a":65466,"n":"KERNAL_SETLFS","k":"variable","len":1,"c":false},{"a":65469,"n":"KERNAL_SETNAM","k":"variable","len":1,"c":false},{"a":65493,"n":"KERNAL_LOAD","k":"variable","len":1,"c":false},{"a":65496,"n":"KERNAL_SAVE","k":"variable","len":1,"c":false},{"a":65508,"n":"KERNAL_GETIN","k":"variable","len":1,"c":false}],"records":[{"a":0,"t":"gap","n":1024,"x":[1342,1349,1714]},{"a":0,"t":"note","l":"C64_CPU_PROCESSOR_PORT_DIRECTION","c":"6510 on-chip I/O-port data-direction register.","note":"outside the tracked image","x":[1342,1349,1714]},{"a":1,"t":"note","l":"C64_CPU_PROCESSOR_PORT","note":"outside the tracked image","x":[1694,1793,1803,1857,1884,5578,5585,43138,43145,43157]},{"a":2,"t":"note","l":"SCRATCH_BYTE","c":"Shared one-byte arithmetic/comparison scratch.","note":"outside the tracked image","x":[1494,1521,1531,2391,2403,2408,2410,2439,2441,2446,2448,2909,2919,4649,4652,4904,4948,4955,4991,4998,5000,5053,5059,5280,5286,5608,5613,5629,43162]},{"a":3,"t":"note","l":"SCRATCH_INDEX","c":"Shared saved X/index scratch.","note":"outside the tracked image","x":[2424,2429,3982,3987,4599,4604,4758,4771,4776,4864,5002]},{"a":4,"t":"note","l":"SCRATCH_BYTE_2","c":"Shared temporary byte used for lengths, offsets, and part-room bases.","note":"outside the tracked image","x":[1913,1935,2917,2922,4718,4734]},{"a":5,"t":"note","l":"SAVED_CHAR_COLOR","c":"Saved current character colour while PRINT_ROOM_TEXT_DROPCAP ($0957) draws a room description's drop capital in yellow; nothing else uses it.","note":"outside the tracked image","x":[2396,2415,2453]},{"a":6,"t":"note","l":"SCREEN_CURSOR_PTR","note":"outside the tracked image","x":[1770,1810,2207,2212,2236,2269,2276,2305,2363,2371,2384]},{"a":8,"t":"note","l":"COLOR_CURSOR_PTR","note":"outside the tracked image","x":[1772,1812,2218,2223,2274,2282,2365,2388]},{"a":10,"t":"note","l":"MEMCPY_SOURCE","c":"Primary work pointer: the source pointer for MEMCPY, the fill pointer of CLEAR_TEXT_SCREEN, the pointer to the command line (INPUT_TEXT_BUFFER, $CBA0) in PARSE_INPUT ($123F), and the verb-noun rule table pointer in DISPATCH_COMMAND ($1408).","note":"outside the tracked image","x":[1861,1921,1944,1956,1979,2002,2026,2038,2317,2340,4673,4683,4699,4725,4780,5131,5142,5160]},{"a":12,"t":"note","l":"WORK_PTR","c":"Secondary work pointer; destination pointer for MEMCPY and computed table-entry pointer elsewhere.","note":"outside the tracked image","x":[1435,1445,1447,1456,1869,1923,1946,1964,1987,2010,2325,2348,2475,2490,2496,2507,2512,2530,2545,2551,2562,2567,2688,2703,2709,2720,2725,2925,2940,2946,2957,2962,3654,3669,3675,3686,3691,4159,4174,4180,4191,4196,4279,4294,4300,4311,4316,4797,4808,4821,4823,4834,4845,4902,5203,5218,5224,5235,5240,5289,5304,5310,5321,5326,5453,5468,5474,5485,5490,5654,5669,5675,5686,5692,5742,5757,5763,5774,5780]},{"a":14,"t":"note","l":"AUX_PTR","c":"Auxiliary pointer: the command-line pointer of the line editor ($0818) and READ_FILENAME, the exit-table pointer in ACTION_MOVE_DIRECTION ($0E68-$0E80), and the object-description pointer in the inventory and room-object listings ($1061, $10D9).","note":"outside the tracked image","x":[1241,2072,2082,2164,2189,3688,3697,3712,4193,4200,4206,4313,4322,4343,4349]},{"a":16,"t":"note","l":"V1_STREAM","c":"Voice 1's place in the tune: the address of its next event, which MUSIC_INIT sets to $F250. Zero page $10-$21 belongs to the tune while it plays in the opening; the game works in the real zero page, and $A002-$A0FF holds the KERNAL's, copied there by OPENING_SETUP ($06B2) before the tune starts and swapped back in only while a part loads ($053C).","note":"outside the tracked image","x":[38654,38828,38830,38838,38860,38865,39041,39052,39054,39071,39123,39143,39156,39175,39179]},{"a":18,"t":"note","l":"V2_STREAM","c":"Voice 2's place in the tune, set to $F5F3 by MUSIC_INIT.","note":"outside the tracked image","x":[39580,39582,39590,39610,39615,39765,39776,39778,39795,39847,39854,39877,39896,39900,39910]},{"a":20,"t":"note","l":"V3_STREAM","c":"Voice 3's place in the tune, set to $F6BE by MUSIC_INIT.","note":"outside the tracked image","x":[40194,40196,40204,40227,40232,40375,40386,40388,40405,40439,40446,40469,40488]},{"a":22,"t":"note","l":"COMMAND_POINTER","c":"The two bytes after a command in the tune: a pointer (the settings to copy, the place to jump or call, the routine to run), or for a poke its offset and value.","note":"outside the tracked image","x":[38862,39085,39121,39138,39612,39809,39852,39869,40229,40419,40444,40461]},{"a":24,"t":"note","l":"NOTE_INDEX","c":"The note being started, after the transpose: an index into the frequency tables $F08E and $F0EA.","note":"outside the tracked image","x":[38883,38983,39239,39241,39633,39715,39971,39973,40250,40332]},{"a":25,"t":"note","l":"VOICE_FLAGS","c":"Bits 0-2: voices 1-3 read their part of the tune (MUSIC_INIT sets all three, MUSIC_STOP clears them). Bits 3-5: set when the gate timer has cut voice 1, 2 or 3; nothing that runs reads them.","note":"outside the tracked image","x":[38563,38622,38813,38894,39544,39546,39564,39645,40159,40161,40178,40262,40672,40674]},{"a":26,"t":"note","l":"V1_TICKS","c":"Frames until voice 1 reads its next event.","note":"outside the tracked image","x":[38626,38818,39047]},{"a":27,"t":"note","l":"V2_TICKS","c":"Frames until voice 2 reads its next event.","note":"outside the tracked image","x":[39570,39771]},{"a":28,"t":"note","l":"V3_TICKS","c":"Frames until voice 3 reads its next event.","note":"outside the tracked image","x":[40184,40381]},{"a":29,"t":"note","l":"V1_STACK_INDEX","c":"Voice 1's stream stack index: $0F when empty, one less for each call it is inside.","note":"outside the tracked image","x":[38630,39063,39066,39153,39168]},{"a":30,"t":"note","l":"V2_STACK_INDEX","c":"Voice 2's stream stack index.","note":"outside the tracked image","x":[39787,39790,39874,39889]},{"a":31,"t":"note","l":"V3_STACK_INDEX","c":"Voice 3's stream stack index.","note":"outside the tracked image","x":[40397,40400,40466,40481]},{"a":32,"t":"note","l":"LAST_COMMAND","c":"Voices 1 and 3 store each command's index here ($97BD, $9D14); nothing reads it.","note":"outside the tracked image","x":[38845,40212]},{"a":33,"t":"note","l":"V1_WAVEFORM_SEEN","c":"Voice 1 stores the waveform byte of each note it starts here ($987D); nothing reads it.","note":"outside the tracked image","x":[39037]},{"a":34,"t":"note","l":"TERM_DATA_PTR","c":"Current compressed term/text data pointer.","note":"outside the tracked image","x":[2509,2564,2580,2592,2636,2675,2678,2722,2731,2745,2763,2765,2781,2844,2855,2863,2959,2978,2991,4208,4351,4884,5526,5544]},{"a":36,"t":"note","l":"CURRENT_COLUMN","c":"Current text-renderer output column.","note":"outside the tracked image","x":[1894,2201,2203,2205,2288,2294,2301,2622,2642,2657,2736,2896,5516]},{"a":37,"t":"note","l":"WORD_REMAINING_LEN","c":"Remaining characters in the current output word.","note":"outside the tracked image","x":[2576,2613,2619,2654,2733,2850,2861,4877,5521,5539]},{"a":38,"t":"note","l":"INPUT_LEN","c":"Number of characters in INPUT_TEXT_BUFFER.","note":"outside the tracked image","x":[1235,2104,2158,2166,2179,2183,2185,4655,4690,4706,4721]},{"a":39,"t":"note","l":"WORD_COUNT","c":"Parser count/extent for the tokenized input words.","note":"outside the tracked image","x":[4662,4710,4741,4754,5019,5022,5036,5072,5093,5105]},{"a":40,"t":"note","l":"PARSED_TOKENS","c":"Sixteen two-byte slots ($28-$47), cleared at $1238: the first byte of each is a word's start offset in INPUT_TEXT_BUFFER, the second the word's id once it is looked up ($138C). No end offset is kept: a word's length is the next slot's start minus its own minus 1 ($1303), and the slot after the last word holds that word's end + 1 ($1269). The parser stops after 15 words ($1289).","note":"outside the tracked image","x":[4666,4695,4713,4739,4773,4867,4872,4879,5004,5030,5080]},{"a":72,"t":"note","l":"UNUSED_PARSER_PADDING","c":"$48-$4A: nothing in the engine uses these three bytes.","note":"outside the tracked image"},{"a":75,"t":"note","l":"LOOP_COUNTER","c":"Shared loop counter; also holds the matched VERB_RULE_TABLE pair index before action dispatch.","note":"outside the tracked image","x":[1397,1429,4111,4128,4144,4756,5007,5140,5154,5173,5179]},{"a":76,"t":"note","l":"VERB_ID","c":"Parsed command verb id.","note":"outside the tracked image","x":[3638,3647,3649,3651,5068,5144]},{"a":77,"t":"note","l":"NOUN_ID","c":"Parsed command noun id.","note":"outside the tracked image","x":[3621,3760,3842,4471,5028,5101,5166]},{"a":78,"t":"note","l":"SCRIPT_PC","c":"Current action/condition bytecode program counter.","note":"outside the tracked image","x":[5237,5253,5265,5323,5487,5594,5596,5639,5645,5707,5709,5728,5732,5793,5795]},{"a":80,"t":"note","l":"BLIT_ROW","c":"Current illustration character row while blitting a RoomGraphicRecord.","note":"outside the tracked image","x":[1477,1485,1496,1554,1598,1642,1644]},{"a":81,"t":"note","l":"BLIT_COLUMN","c":"Illustration start column from the active RoomGraphicRecord.","note":"outside the tracked image","x":[1511,1569,1613]},{"a":82,"t":"note","l":"BLIT_SOURCE_PTR","c":"Current source cursor for packed bitmap/screen/color graphic data.","note":"outside the tracked image","x":[1541,1585,1629,1656,1660,1672]},{"a":84,"t":"note","l":"BLIT_END_ROW","c":"Exclusive ending row, computed as start_row + height_rows.","note":"outside the tracked image","x":[1488,1490,1646]},{"a":85,"t":"note","l":"BLIT_WIDTH","c":"Graphic width in character columns; bitmap rows consume width*8 bytes.","note":"outside the tracked image","x":[1535,1582,1626]},{"a":86,"t":"note","l":"BLIT_DEST_PTR","c":"Current bitmap, screen, or color destination cursor.","note":"outside the tracked image","x":[1503,1525,1527,1561,1572,1574,1605,1616,1618,1658,1666]},{"a":88,"t":"note","l":"BLIT_SOURCE_END_PTR","c":"Exclusive source end pointer for the current blit row/plane.","note":"outside the tracked image","x":[1543,1587,1631,1674]},{"a":90,"t":"note","l":"GRAPHIC_RECORD_PTR","c":"Pointer to the current static or dynamic RoomGraphicRecord; reused for computed object graphic source addresses.","note":"outside the tracked image","x":[1402,1411,1421,1423,1462,1475,3807,3923,3954,3967,3969,4436]},{"a":92,"t":"note","l":"CURRENT_OBJECT_INDEX","c":"Icon slot of the current object: the position in the noun-to-icon map NOUN_TO_OBJECT_INDEX ($22A4) at which RESOLVE_NOUN found the object number ($15FB; the object-state index itself, noun id - $32, stays in SCRATCH_BYTE), or the slot a script names for SCRIPT_SET_OBJECT_GRAPHIC ($114F). CALC_OBJECT_GRAPHIC_PTR uses it to locate the icon at $A560 + slot*$A0.","note":"outside the tracked image","x":[3960,4431,5627]},{"a":93,"t":"note","l":"UNUSED_GAME_ZP_005D","c":"Nothing in the engine uses this byte, which lies between CURRENT_OBJECT_INDEX and LOADED_PART_NO.","note":"outside the tracked image"},{"a":94,"t":"note","l":"LOADED_PART_NO","c":"Game part resident in memory, numbered like CURRENT_PART_NO: SHOW_PART_LOAD_SCREEN sets it to CURRENT_PART_NO after each load ($045C) and OPENING_SETUP to $FF ($06FD). INIT_GAME_RUN ($14E9) shows the load screen and loads a part whenever it is not 0. The unreachable DISK_LOAD_GAME compares it with CURRENT_PART_NO after restoring a saved state ($047D).","note":"outside the tracked image","x":[1116,1149,1789,5353]},{"a":95,"t":"note","l":"DISK_ERROR_FLAG","c":"Set to 1 when the retained save/load code fails or the file name is empty ($04BB), and from A on entry to DISK_LOAD_GAME ($0461); OPENING_SETUP clears it ($06EE). Its one reader, RESTORE_SAVED_GAME ($14F6), starts a new game through INIT_GAME when it is non-zero. Everything that sets or reads it after the opening is unreachable in this build.","note":"outside the tracked image","x":[1121,1211,1774,5366]},{"a":96,"t":"note","l":"IDLE_COUNTDOWN","c":"Little-endian 24-bit input-idle countdown. Expiry triggers the idle action at $08C4; keypresses extend the high byte.","note":"outside the tracked image","x":[2058,2108]},{"a":99,"t":"note","l":"VERBOSE_FLAG","c":"When non-zero, TAKE and DROP confirm with \"Taken!\" (sentence $0C, $0F31) and \"Dropped!\" (sentence $0D, $0ECE); nothing else reads it. Actions $1B and $1C clear and set it (SET_VERBOSE_OFF, SET_VERBOSE_ON), which scripts use around a silent take or drop; SETUP_CURRENT_ROOM sets it after a part's start script ($157C).","note":"outside the tracked image","x":[3752,3757,3790,3889]},{"a":100,"t":"note","l":"WORD_BUFFER","c":"Space-padded six-byte parser comparison buffer.","note":"outside the tracked image","x":[4764,4786,4814,4836,4847,4919,4926,4933,4962,4969,4976]},{"a":106,"t":"note","l":"SAVED_PARSE_INDEX","c":"Saved PARSED_TOKENS index across an embedded command dispatch.","note":"outside the tracked image","x":[5113,5118]},{"a":107,"t":"note","l":"BASIC_FAC2_WORKSPACE","c":"BASIC's floating-point workspace ($6B-$72). The game's own zero page ends at $6A (SAVED_PARSE_INDEX), and nothing in the engine uses these bytes.","note":"outside the tracked image"},{"a":115,"t":"note","l":"CHRGET","c":"CHRGET ($0073-$008A): BASIC's routine for reading the next character of a program, which the KERNAL copies into zero page at power-up. It is the stock routine, and the game never calls it; its text pointer at $7A/$7B holds $080B, left by the RUN that started the game.","note":"outside the tracked image"},{"a":139,"t":"note","l":"RND_SEED","c":"RNDX ($8B-$8F) - BASIC's RND seed, still the stock power-up value 80 4F C7 52 58. The game\nnever uses BASIC's generator.","note":"outside the tracked image"},{"a":144,"t":"note","l":"C64_WORKSPACE_IO_STATUS","c":"KERNAL status and scratch ($90-$B1). STATUS ($90) is $40, the end of file of the last LOAD; no file is open ($98 = 0); the default devices are the keyboard and the screen ($99/$9A = 0 and 3). The jiffy clock TIME ($A0-$A2) stops once the game's interrupts run, because they leave through $EA81 and skip the start of the KERNAL's handler at $EA31, which updates it.","note":"outside the tracked image"},{"a":145,"t":"note","l":"C64_WORKSPACE_STOP_KEY_FLAG","note":"outside the tracked image"},{"a":153,"t":"note","l":"C64_WORKSPACE_DEFAULT_INPUT_DEVICE","note":"outside the tracked image"},{"a":154,"t":"note","l":"C64_WORKSPACE_DEFAULT_OUTPUT_DEVICE","note":"outside the tracked image"},{"a":178,"t":"note","l":"TAPE1_CASSETTE_BUFFER_PTR","c":"KERNAL file parameters ($B2-$C5) at the opening: device ($BA) 8, from the LOAD that started the game; the file name pointer ($BB/$BC), $0800, was written by the depacker ($016C-$0173), which also used the name length ($B7) as scratch. RESTORE_SYSTEM_TO_BASIC writes $033C to $B2/$B3 and $03 to $C2 ($A8A8-$A8AE), as the KERNAL does at power-up; the loader at $9700 sets the name, device and secondary address again through SETNAM and SETLFS before each part.","note":"outside the tracked image","x":[43176]},{"a":185,"t":"note","l":"SA_SECONDARY_ADDRESS","note":"outside the tracked image"},{"a":186,"t":"note","l":"FA_DEVICE_NUMBER","note":"outside the tracked image"},{"a":193,"t":"note","l":"STAL_IO_START_ADDRESS","note":"outside the tracked image"},{"a":195,"t":"note","l":"MEMUSS_LOAD_ADDRESS","note":"outside the tracked image"},{"a":198,"t":"note","l":"C64_WORKSPACE_KEYBOARD_BUFFER_LENGTH","c":"KERNAL NDX: number of characters waiting in the keyboard buffer.","note":"outside the tracked image","x":[2106]},{"a":199,"t":"note","l":"KERNAL_EDITOR_WORKSPACE","c":"KERNAL screen-editor, keyboard and RS-232 workspace ($C7-$FC). The values are left from the stock 40 by 25 screen at $0400 before the game took over; the game's own screen is at $CC00, and the engine touches them only wholesale: the opening copies the zero page to $A002-$A0FF ($06B2), and SWAP_ZERO_PAGE_AND_BACKUP ($053E) exchanges $02-$FF with that copy around each part's load ($04FB, $0521), so the KERNAL has these values back while it loads. SCNKEY and GETIN, which the game calls, use some of them.","note":"outside the tracked image"},{"a":211,"t":"note","l":"C64_WORKSPACE_CURSOR_COLUMN","note":"outside the tracked image"},{"a":214,"t":"note","l":"C64_WORKSPACE_CURSOR_ROW","note":"outside the tracked image"},{"a":217,"t":"note","l":"LDTB1_SCREEN_LINE_LINK","c":"KERNAL LDTB1 ($D9-$F2) - the screen editor's 26-byte line-link table: one entry per screen row plus an editor scratch byte. Each entry is the high byte of its row's first screen address, with bit 7 set when the row is the first physical line of a logical line; the editor uses only bits 0-1 of it, ORed with HIBASE ($0288). The $84/$85/$86/$87 pattern here describes a stock 40x25 screen based at $0400, i.e. state left over from before the game took the machine. The game neither reads nor writes it.","note":"outside the tracked image"},{"a":243,"t":"note","l":"USER_COLOR_RAM_PTR","note":"outside the tracked image"},{"a":245,"t":"note","l":"KEYTAB_DECODE_VECTOR","note":"outside the tracked image"},{"a":247,"t":"note","l":"RIBUF_RS232_INPUT_PTR","note":"outside the tracked image"},{"a":249,"t":"note","l":"ROBUF_RS232_OUTPUT_PTR","note":"outside the tracked image"},{"a":253,"t":"note","l":"UNUSED_00FD","c":"Zero at the opening, and nothing in the engine uses it. The tape loader remnant at $9722-$9875, which never runs, stores its bytes through ($FD).","note":"outside the tracked image"},{"a":254,"t":"note","l":"SAVE_START_PTR","c":"Zero-page pointer supplied to KERNAL SAVE as the start of serialized state.","note":"outside the tracked image","x":[1178]},{"a":256,"t":"note","l":"DEPACKER_LEFTOVER","c":"$0100-$01D7: code left in the stack page by the depacker that unpacked this copy of the game. It copies memory with $01 = $34, unpacks it with a run-length scheme whose escape byte is $D3 ($01C1), and ends by setting $01 = $37 and jumping to $3300. The game never runs it; its stack only uses the top of the page.","note":"outside the tracked image"},{"a":489,"t":"note","l":"STACK_LEFTOVER","c":"$01D8-$01EE: bytes left by earlier use of the stack.","note":"outside the tracked image"},{"a":495,"t":"note","l":"OPENING_STACK","c":"The stack in use at the opening ($01EF-$01FF, stack pointer $EE). From the newest: $0557, the return from GETIN called by WAIT_FOR_KEY at $0555; $15C6, from WAIT_FOR_KEY called at $15C4 while the opening waits for a key; $0405, from the opening called at $0403; then $0133, left by the depacker, which jumped to $3300 from a subroutine and never returned; above it, bytes from BASIC's RUN.","note":"outside the tracked image"},{"a":512,"t":"note","l":"BASIC_INPUT_BUFFER","c":"BASIC's input buffer ($0200-$0258); the game never uses it. It still holds the tokenised RUN ($8A) and the end of LOAD\"THE NEVER. STORY\",8,1, the commands that started the game.","note":"outside the tracked image","x":[43165]},{"a":601,"t":"note","l":"KERNAL_LAT","c":"KERNAL_LAT ($0259-$0262) - KERNAL table of active logical file numbers, one byte per open\nfile, up to ten. All zero: no logical file is open. Maintained by OPEN/CLOSE,\nnot by this program.","note":"outside the tracked image"},{"a":611,"t":"note","l":"KERNAL_FAT","c":"KERNAL_FAT ($0263-$026C) - KERNAL table of device numbers, parallel to KERNAL_LAT.","note":"outside the tracked image"},{"a":621,"t":"note","l":"KERNAL_SAT","c":"KERNAL_SAT ($026D-$0276) - KERNAL table of secondary addresses, parallel to KERNAL_LAT.","note":"outside the tracked image"},{"a":631,"t":"note","l":"KEYBOARD_BUFFER","c":"KEYBOARD_BUFFER (KEYD, $0277-$0280) - the KERNAL's ten-byte keystroke FIFO.\nSCNKEY ($FF9F) scans the keyboard matrix through CIA 1 and appends PETSCII codes here,\nbumping the count in NDX ($00C6); GETIN ($FFE4) removes the oldest code and decrements NDX.\nThe fill limit is XMAX ($0289), default 10.\nThis program never touches the buffer directly, but it is squarely on the input path: $0552\nand $084B call SCNKEY, $0555 and $084E call GETIN, and $083A zeroes NDX to flush pending\nkeystrokes before reading a command line. Empty at the opening.","note":"outside the tracked image"},{"a":641,"t":"note","l":"OS_MEM_START","note":"outside the tracked image"},{"a":643,"t":"note","l":"OS_MEM_END","note":"outside the tracked image"},{"a":645,"t":"note","l":"IEEE_TIMEOUT_FLAG","note":"outside the tracked image"},{"a":646,"t":"note","l":"C64_WORKSPACE_TEXT_COLOR","c":"KERNAL current character color.","note":"outside the tracked image","x":[1827,2089,2260,2271,2393,2400,2417,2436,2455,2865,2999,5247,5446]},{"a":647,"t":"note","l":"CURSOR_COLOR_UNDER","c":"KERNAL GDCOL: color value saved from the screen cell under the software cursor so it can be restored when the cursor moves.","note":"outside the tracked image"},{"a":648,"t":"note","l":"C64_WORKSPACE_SCREEN_MEMORY_PAGE","c":"KERNAL HIBASE: high byte of the current screen-memory base. $04 selects the standard screen at $0400.","note":"outside the tracked image"},{"a":649,"t":"note","l":"KEYBOARD_BUFFER_MAX_LEN","c":"KERNAL XMAX: maximum number of characters accepted in the keyboard buffer. The default $0A permits ten queued characters.","note":"outside the tracked image"},{"a":650,"t":"note","l":"KEY_REPEAT_MODE","c":"KERNAL RPTFLG: keyboard auto-repeat mode. Zero, the power-up value, makes only the cursor keys, INST/DEL and the space bar repeat.","note":"outside the tracked image"},{"a":651,"t":"note","l":"KEY_REPEAT_COUNTDOWN","c":"KERNAL KOUNT: the key-repeat countdown that SCNKEY counts down while a key is held, repeating the key when it runs out. The game zeroes it after each key the line editor accepts ($087D) and when play starts ($0763).","note":"outside the tracked image","x":[1891,2173]},{"a":652,"t":"note","l":"KEY_REPEAT_DELAY","note":"outside the tracked image"},{"a":653,"t":"note","l":"SHIFT_CTRL_FLAG","note":"outside the tracked image"},{"a":654,"t":"note","l":"LAST_SHIFT_PATTERN","note":"outside the tracked image"},{"a":655,"t":"note","l":"KEYLOG_VECTOR","note":"outside the tracked image"},{"a":657,"t":"note","l":"KERNAL_EDITOR_RS232_WORKSPACE","c":"KERNAL_EDITOR_RS232_WORKSPACE ($0291-$02A5) - charset-switch enable, scroll enable, the\nmock-6551 RS-232 registers and buffer indices, and cassette save temporaries. All zero: this\nprogram uses none of them.","note":"outside the tracked image"},{"a":678,"t":"note","l":"PAL_NTSC_FLAG","note":"outside the tracked image"},{"a":679,"t":"note","l":"UNUSED_02A7","c":"$02A7-$02FF - documented as unused by the KERNAL, and zero here.","note":"outside the tracked image"},{"a":768,"t":"note","l":"BASIC_VECTORS","c":"BASIC_VECTORS ($0300-$030B) - IERROR, IMAIN, ICRNCH, IQPLOP, IGONE, IEVAL: ROM BASIC's indirect entry points.\nStill at power-up values ($E38B, $A483, $A57C, $A71A, $A7E4, $AE86) and inert. BASIC ROM is banked out ($01 = $06): the RAM at $A483-$AE86 now holds picture 0, the object icons and the game's raster IRQ code, and $E38B is in the KERNAL ROM, which stays visible. Left from start-up, not the game's state.","note":"outside the tracked image","x":[43168]},{"a":780,"t":"note","l":"KERNAL_SAVED_REGISTERS","note":"outside the tracked image"},{"a":784,"t":"note","l":"USR_JMP","note":"outside the tracked image"},{"a":787,"t":"note","l":"UNUSED_0313","note":"outside the tracked image"},{"a":788,"t":"note","l":"C64_WORKSPACE_IRQ_RAM_VECTOR","c":"The KERNAL's IRQ vector. At the opening it holds $A880, the interrupt that plays the tune ($06BD); $076D sets $A7E0, the raster split of play, when the opening ends.","note":"outside the tracked image","x":[1727,1903,43189,43203,43214]},{"a":789,"t":"note","l":"IRQ_VECTOR_HIGH_BYTE","note":"outside the tracked image","x":[1732,1908,43208,43219]},{"a":790,"t":"note","l":"C64_WORKSPACE_BRK_RAM_VECTOR","note":"outside the tracked image"},{"a":792,"t":"note","l":"C64_WORKSPACE_NMI_RAM_VECTOR","note":"outside the tracked image"},{"a":794,"t":"note","l":"KERNAL_IO_VECTORS","c":"KERNAL_IO_VECTORS ($031A-$0333) - indirect entry points for OPEN, CLOSE, CHKIN, CKOUT,\nCLRCHN, CHRIN, CHROUT, STOP, GETIN, CLALL, the user command, LOAD and SAVE.\nEvery one is at its ROM default for KERNAL revision 901227-03 ($F34A, $F291, $F20E, $F250,\n$F333, $F157, $F1CA, $F6ED, $F13E, $F32F, $FE66, $F4A5, $F5ED), matching the ROM's own\ndefault table at $FD30. The program never patches them: for disk I/O it calls the public jump\ntable (SETNAM $FFBD and friends) and lets the KERNAL run normally.","note":"outside the tracked image"},{"a":820,"t":"note","l":"STALE_COPY_0800","c":"$0334-$03FF hold the same bytes as $0800-$08CB, left by whatever ran before the game in this copy; the copies compared each have something different here, and nothing in the game reads it.","note":"outside the tracked image"},{"a":1024,"l":"ENTRY_POINT","c":"Where the game starts. $069B sets up the opening's screen and its interrupt, which plays the tune; $1580 shows the opening's texts, waits for a key and calls $070F, which switches to the play screen and its raster split at $A7E0. Both return, and $0406 starts a new game before the command loop at $0409.","s":"Initialize the first display phase before the opening narrative.","t":"code","b":[32,155,6],"m":"jsr","o":"OPENING_SETUP","oa":1691},{"a":1027,"s":"the opening's texts; returns with the play screen set up","t":"code","b":[32,128,21],"m":"jsr","o":"SHOW_OPENING_NARRATIVE_AND_ENTER_PLAY","oa":5504},{"a":1030,"l":"CALL_INIT_GAME","c":"CALL_INIT_GAME ($0406)\nPurpose: Non-returning entry into game initialisation, reached by falling through from ENTRY_POINT after the opening ($0403) and by the restart path (JMP from RESTART_GAME at $0FEE). Calls INIT_GAME to rebuild adventure state and the starting room, then falls through into MAIN_LOOP.\nInputs: None in registers.\nOutputs: Adventure state rebuilt and the starting room described; control continues in MAIN_LOOP. Never returns to its caller.\nAssumptions: The gameplay memory layout, banking, raster IRQ and display are already established; only the adventure state is rebuilt, after SHOW_PART_LOAD_SCREEN has loaded a part whenever LOADED_PART_NO ($5E) is not 0 (INIT_GAME_RUN $14E9).\nClobbers: A, X, Y, flags, and all game state through callees. The stack is not unwound here: RESTART_GAME pulls three return addresses, which reaches the main loop's level for a restart from a turn or room script, but after QUIT, a rule's action four calls deep, the return from PARSE_INPUT into MAIN_LOOP stays on the stack.\nHardware changes: None directly. Callees write screen and colour RAM through the terminal, and when a part is loaded SHOW_PART_LOAD_SCREEN blanks and re-enables the display, rewrites $D01A, stops CIA 1 timer A and drives the serial bus.","s":"initialise adventure state (rooms, inventory, flags)","t":"code","b":[32,214,20],"m":"jsr","o":"INIT_GAME","oa":5334,"x":[4078]},{"a":1033,"l":"MAIN_LOOP","c":"MAIN_LOOP ($0409)\nPurpose: The non-returning foreground command loop: run the turn scripts (the resident one, the part's and the current room's, $147D), read one edited command line, parse and execute it, repeat forever.\nInputs: None in registers. Requires a part's data at $2F00 and initialised game state.\nOutputs: Continuously updated screen and game-state arrays. Never returns; the only exits are the non-local ones taken by RESTART_GAME and ACTION_NEXT_PART.\nAssumptions: Runs under the already-established gameplay banking ($01=$06), the raster-split IRQ, and the split display; it does not configure them itself.\nClobbers: A, X, Y, flags, and the whole parser, VM and renderer workspace.\nHardware changes: None directly; callees write screen RAM at $CC00-$CFFF, colour RAM at $D800-$DBFF and the bitmap at $E000, and read the CIA 1 keyboard matrix through KERNAL SCNKEY/GETIN.","s":"MAIN_LOOP: run the turn scripts (resident, part, current room)","t":"code","b":[32,125,20],"m":"jsr","o":"RUN_TURN_SCRIPTS","oa":5245,"x":[1042,1074]},{"a":1036,"s":"read a line of player input","t":"code","b":[32,6,8],"m":"jsr","o":"READ_INPUT","oa":2054},{"a":1039,"s":"parse & execute the command","t":"code","b":[32,47,18],"m":"jsr","o":"PARSE_INPUT","oa":4655},{"a":1042,"s":"repeat forever","t":"code","b":[76,9,4],"m":"jmp","o":"MAIN_LOOP","oa":1033},{"a":1045,"l":"SWITCH_TO_NEXT_PART","c":"SWITCH_TO_NEXT_PART ($0415)\nPurpose: Move on to the next part of the story. Increments CURRENT_PART_NO, sets CURRENT_ROOM to that part's starting room ($34 for part 2, $4D for any later part), shows the swap prompt and loads, runs the new part's initialisation, and resumes the command loop.\nInputs: CURRENT_PART_NO ($2940) valid; the replacement disk part available in the drive.\nOutputs: CURRENT_PART_NO incremented, CURRENT_ROOM set, $2F00-$95FF replaced by the next part's file, LOADED_PART_NO ($5E) recorded, and control transferred to MAIN_LOOP. Non-returning with respect to the action handler that invoked it.\nAssumptions: Called only from ACTION_NEXT_PART, which has already discarded three levels of return address, so the stack is at the main-loop level.\nClobbers: A, X, Y, flags, UI and disk scratch, and whatever the new part's start script writes.\nHardware changes: Through its callees: VIC-II display enable, VIC interrupt enable $D01A, CIA 1 timer A control $DC0E, and the serial bus through the KERNAL's LOAD.","s":"part counter += 1","t":"code","b":[238,64,41],"m":"inc","o":"CURRENT_PART_NO","oa":10560,"x":[4094]},{"a":1048,"t":"code","b":[173,64,41],"m":"lda","o":"CURRENT_PART_NO","oa":10560},{"a":1051,"s":"counter == 1 ?","t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":1053,"s":"CURRENT_PART_NO 1 is part 2","t":"code","b":[240,8],"m":"beq","o":"NEXT_PART_SET_ROOM_PART2","oa":1063},{"a":1055,"s":"A = room $4D, Part 3's first room","t":"code","b":[169,77],"m":"lda","o":"#$4D"},{"a":1057,"s":"CURRENT_ROOM = $4D, the part-3 starting room.","t":"code","b":[141,63,41],"m":"sta","o":"CURRENT_ROOM","oa":10559},{"a":1060,"s":"skip","t":"code","b":[76,44,4],"m":"jmp","o":"NEXT_PART_LOAD_AND_SETUP","oa":1068},{"a":1063,"l":"NEXT_PART_SET_ROOM_PART2","s":"room $34, where part 2 starts","t":"code","b":[169,52],"m":"lda","o":"#$34","x":[1053]},{"a":1065,"s":"CURRENT_ROOM = $34, the part-2 starting room.","t":"code","b":[141,63,41],"m":"sta","o":"CURRENT_ROOM","oa":10559},{"a":1068,"l":"NEXT_PART_LOAD_AND_SETUP","s":"show 'part N' screen + load from disk","t":"code","b":[32,57,4],"m":"jsr","o":"SHOW_PART_LOAD_SCREEN","oa":1081,"x":[1060]},{"a":1071,"s":"post-load room/game setup","t":"code","b":[32,68,21],"m":"jsr","o":"SETUP_CURRENT_ROOM","oa":5444},{"a":1074,"s":"back to MAIN_LOOP","t":"code","b":[76,9,4],"m":"jmp","o":"MAIN_LOOP","oa":1033},{"a":1077,"l":"ROOM_GRAPHIC_TABLE_PTR","c":"Pointer to ROOM_GRAPHIC_TABLE, the fixed six-byte illustration-blit records.","t":"word","b":[249,11],"d":[3065],"x":[1459]},{"a":1078,"t":"note","l":"a_0436","c":"High byte $0B of ROOM_GRAPHIC_TABLE_PTR, the little-endian pointer at $0435 which holds $0BF9. Low byte and pointer purpose are described at $0435.","note":"inside the item at $0435","x":[1466]},{"a":1079,"l":"PART_INIT_SCRIPT_TABLE_PTR","c":"Pointer to the three-entry per-part initialization-script pointer table.","t":"word","b":[207,13],"d":[3535],"x":[5471]},{"a":1080,"t":"note","l":"a_0438","c":"High byte $0D of PART_INIT_SCRIPT_TABLE_PTR, the little-endian pointer at $0437 which holds $0DCF. Low byte and pointer purpose are described at $0437.","note":"inside the item at $0437","x":[5478]},{"a":1081,"l":"SHOW_PART_LOAD_SCREEN","c":"SHOW_PART_LOAD_SCREEN ($0439)\nPurpose: Print sentence $2F, \"Hit space to load\", and the part's name on the same line (sentence $30 + CURRENT_PART_NO: \"Part one!\", \"Part two!\" or \"Part three!\", printed in lower case), wait for Space, then load the next part through the loader at $9700 and record which part is in memory.\nInputs: CURRENT_PART_NO ($2940), added to $30, picks the sentence that names the part. It does not choose the file: the loader adds one to the digit in its own file name before each load, so it loads PART 1, PART 2 and PART 3 in turn.\nOutputs: The two sentences printed; the next PART file loaded over $2F00-$95FF; LOADED_PART_NO ($5E) set to CURRENT_PART_NO; returns normally.\nAssumptions: Terminal, keyboard, the installed loader at $9700 and the drive are all available. Gameplay interrupts are suspended and restored by PREPARE_DISK_IO/END_DISK_IO around the load.\nClobbers: A, X, Y, flags, the whole text-renderer scratch, and the zero page (exchanged with its backup and exchanged back).\nHardware changes: Blanks and re-enables the VIC display through $D011 bit 4 (DEN); rewrites the VIC interrupt-enable register $D01A ($F0 then $F1); stops CIA 1 timer A through $DC0E bit 0; drives the serial bus through the KERNAL's LOAD.","s":"end the line","t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891,"x":[1068,1159,5357]},{"a":1084,"s":"A = sentence $2F, \"Hit space to load\"","t":"code","b":[169,47],"m":"lda","o":"#$2F"},{"a":1086,"s":"print sentence","t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":1089,"s":"part number","t":"code","b":[173,64,41],"m":"lda","o":"CURRENT_PART_NO","oa":10560},{"a":1092,"t":"code","b":[24],"m":"clc"},{"a":1093,"s":"+ $30: sentence $30 + CURRENT_PART_NO","t":"code","b":[105,48],"m":"adc","o":"#$30"},{"a":1095,"s":"print \"Part one!\", \"Part two!\" or \"Part three!\" on the same line","t":"code","b":[32,170,9],"m":"jsr","o":"COMPUTE_SENTENCE_PTR_OFS","oa":2474},{"a":1098,"s":"end the line","t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":1101,"s":"wait for SPACE key","t":"code","b":[32,93,5],"m":"jsr","o":"WAIT_FOR_SPACE_KEY","oa":1373},{"a":1104,"s":"prepare for disk I/O","t":"code","b":[32,246,4],"m":"jsr","o":"PREPARE_DISK_IO","oa":1270},{"a":1107,"s":"load the next PART file ($9700)","t":"code","b":[32,0,151],"m":"jsr","o":"LOADER_ENTRY_9700","oa":38656},{"a":1110,"s":"restore game state after I/O","t":"code","b":[32,33,5],"m":"jsr","o":"END_DISK_IO","oa":1313},{"a":1113,"s":"record loaded part number ...","t":"code","b":[173,64,41],"m":"lda","o":"CURRENT_PART_NO","oa":10560},{"a":1116,"s":"... in $5E (LOADED_PART_NO)","t":"code","b":[133,94],"m":"sta","o":"LOADED_PART_NO","oa":94},{"a":1118,"t":"code","b":[96],"m":"rts"},{"a":1119,"l":"LOAD_DISABLED_RTS","c":"LOAD_DISABLED_RTS ($045F)\nPurpose: One-byte return stub standing in for the LOAD feature. Action opcode $13 jumps here instead of to the surviving KERNAL load implementation at DISK_LOAD_GAME, so the shipped LOAD verb does nothing.\nInputs: None. Also called (as a plain subroutine) by RESTORE_SAVED_GAME at $14F3, which only the unreachable ASK_RESTORE_GAME reaches.\nOutputs: Immediate return with everything unchanged.\nAssumptions: Nothing; the stub is deliberately inert. The complete load implementation still exists at $0461 but no shipped rule reaches it.\nClobbers: Nothing. A, X, Y, flags, memory, banking and devices are all preserved.\nHardware changes: None.","t":"code","b":[96],"m":"rts","x":[4492,5363]},{"a":1120,"l":"ROUTINE_PADDING_0460","c":"Single $00 byte between the one-byte LOAD_DISABLED_RTS stub ($045F) and DISK_LOAD_GAME ($0461). No instruction or pointer refers to it, and it is on no control-flow path.","t":"byte","b":[0]},{"a":1121,"l":"DISK_LOAD_GAME","c":"DISK_LOAD_GAME ($0461)\nPurpose: Complete but unreachable KERNAL restore-game implementation: prompt for a filename, LOAD the saved state block over OBJECT_LOCATIONS, pull in a different story part if the restored save belongs to one, then redescribe and repaint the room.\nInputs: A, stored into DISK_ERROR_FLAG ($5F); with no caller, nothing says what it means. DISK_LOAD_ADDR ($28BB/$28BC) supplies the load address; the eight-character FILENAME_BUF ($0DD7) is filled by READ_FILENAME.\nOutputs: On success the saved state block is in memory, the room is redescribed and the picture repainted. On a carry-set KERNAL error it tail-jumps to DISK_IO_ERROR. Returns normally otherwise.\nAssumptions: Static audit finds no call, pointer, action script or decoded operand reaching $0461 in the shipped build, so this routine is retained but inactive; the SAVE/LOAD verbs dispatch to the no-op stubs instead. When it did run it required KERNAL ROM, I/O and the KERNAL zero page to be swapped in by PREPARE_DISK_IO.\nClobbers: A, X, Y, flags, DISK_ERROR_FLAG, the zero page (exchanged and restored), and the whole renderer workspace.\nHardware changes: Through its callees: VIC-II display enable $D011 bit 4, VIC interrupt enable $D01A, CIA 1 timer A control $DC0E, and the cassette port (device 1, set by SETUP_KERNAL_FILE) via KERNAL LOAD ($FFD5); SETLFS ($FFBA) and SETNAM ($FFBD) only record the parameters. Executes SEI around the status check.","s":"$5F = mode flag (from A)","t":"code","b":[133,95],"m":"sta","o":"DISK_ERROR_FLAG","oa":95},{"a":1123,"s":"prompt for + read filename","t":"code","b":[32,200,4],"m":"jsr","o":"READ_FILENAME","oa":1224},{"a":1126,"s":"prepare for the KERNAL load below, from device 1, the cassette","t":"code","b":[32,246,4],"m":"jsr","o":"PREPARE_DISK_IO","oa":1270},{"a":1129,"s":"SETLFS (device 1, the cassette) and SETNAM (8-character name)","t":"code","b":[32,12,5],"m":"jsr","o":"SETUP_KERNAL_FILE","oa":1292},{"a":1132,"s":"A=0 => LOAD (not verify)","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1134,"s":"X = load address low","t":"code","b":[174,187,40],"m":"ldx","o":"DISK_LOAD_ADDR","oa":10427},{"a":1137,"s":"Y = load address high","t":"code","b":[172,188,40],"m":"ldy","o":"a_28BC","oa":10428},{"a":1140,"s":"KERNAL LOAD","t":"code","b":[32,213,255],"m":"jsr","o":"KERNAL_LOAD","oa":65493},{"a":1143,"s":"block IRQ during status check","t":"code","b":[120],"m":"sei"},{"a":1144,"s":"carry set => load error","t":"code","b":[176,60],"m":"bcs","o":"DISK_IO_ERROR","oa":1206},{"a":1146,"s":"restore game state after I/O","t":"code","b":[32,33,5],"m":"jsr","o":"END_DISK_IO","oa":1313},{"a":1149,"s":"loaded part number","t":"code","b":[165,94],"m":"lda","o":"LOADED_PART_NO","oa":94},{"a":1151,"s":"== requested part?","t":"code","b":[205,64,41],"m":"cmp","o":"CURRENT_PART_NO","oa":10560},{"a":1154,"s":"yes -> skip reload","t":"code","b":[240,6],"m":"beq","o":"DISK_LOAD_POST_LOAD_SETUP","oa":1162},{"a":1156,"s":"else fetch requested part:","t":"code","b":[173,64,41],"m":"lda","o":"CURRENT_PART_NO","oa":10560},{"a":1159,"s":"show 'part N' + load","t":"code","b":[32,57,4],"m":"jsr","o":"SHOW_PART_LOAD_SCREEN","oa":1081},{"a":1162,"l":"DISK_LOAD_POST_LOAD_SETUP","s":"post-load setup","t":"code","b":[32,126,16],"m":"jsr","o":"DESCRIBE_CURRENT_ROOM","oa":4222,"x":[1154]},{"a":1165,"s":"post-load setup 2","t":"code","b":[32,112,5],"m":"jsr","o":"RENDER_ROOM_GRAPHICS","oa":1392},{"a":1168,"s":"done","t":"code","b":[96],"m":"rts"},{"a":1169,"l":"SAVE_DISABLED_RTS","c":"SAVE_DISABLED_RTS ($0491)\nPurpose: One-byte return stub standing in for the SAVE feature. Action opcode $12 jumps here instead of to the surviving KERNAL save implementation at DISK_SAVE_GAME.\nInputs: None.\nOutputs: Immediate return with everything unchanged.\nAssumptions: Nothing; the stub is deliberately inert. The orphaned pointer word $04C8 stored at $0492/$0493 is leftover metadata of the disabled subsystem, not a live vector.\nClobbers: Nothing. A, X, Y, flags, memory, banking and devices are all preserved.\nHardware changes: None.","t":"code","b":[96],"m":"rts","x":[4489]},{"a":1170,"l":"UNUSED_READ_FILENAME_PTR","c":"UNUSED_READ_FILENAME_PTR - orphaned little-endian pointer $04C8 to READ_FILENAME, retained beside the disabled save/load implementation.\nThe shipped vocabulary accepts SAVE and LOAD, but their action scripts are only `12 FF` and `13 FF`; those opcode handlers jump to SAVE_DISABLED_RTS ($0491) and LOAD_DISABLED_RTS ($045F). No pointer, call, action script, decoded operand, or recorded reference reaches DISK_LOAD_GAME, DISK_SAVE_GAME, or this word. Their exact value and placement immediately after the save verb's RTS identify leftover filename-routine metadata from the disabled feature, not active code or an unresolved target.","t":"word","b":[200,4],"d":[1224]},{"a":1172,"l":"DISK_SAVE_GAME","c":"DISK_SAVE_GAME ($0494)\nPurpose: Complete but unreachable KERNAL save-game implementation: copy the save start address into the zero-page pointer at $FE/$FF, set the file parameters, and SAVE from there up to DISK_SAVE_END_ADDR.\nInputs: DISK_LOAD_ADDR ($28BB/$28BC) is the start of the block to write; DISK_SAVE_END_ADDR ($28BD/$28BE) is the exclusive end; FILENAME_BUF holds the eight-character name.\nOutputs: On success the block is written and END_DISK_IO restores the gameplay machine state. On a carry-set KERNAL error it tail-jumps to DISK_IO_ERROR.\nAssumptions: Static audit finds no active caller; the SAVE verb dispatches to SAVE_DISABLED_RTS. KERNAL SAVE requires A to hold the zero-page address of the start pointer, hence the LDA #$FE.\nClobbers: A, X, Y, flags, the save pointer at $FE/$FF, and the zero page (exchanged and restored).\nHardware changes: VIC-II display enable $D011 bit 4; VIC interrupt enable $D01A; CIA 1 timer A control $DC0E; the cassette port (device 1, set by SETUP_KERNAL_FILE) via KERNAL SAVE ($FFD8). Executes SEI around the status check.","s":"prepare for disk I/O","t":"code","b":[32,246,4],"m":"jsr","o":"PREPARE_DISK_IO","oa":1270},{"a":1175,"s":"save start low ...","t":"code","b":[173,187,40],"m":"lda","o":"DISK_LOAD_ADDR","oa":10427},{"a":1178,"s":"... -> $FE","t":"code","b":[133,254],"m":"sta","o":"SAVE_START_PTR","oa":254},{"a":1180,"s":"save start high ...","t":"code","b":[173,188,40],"m":"lda","o":"a_28BC","oa":10428},{"a":1183,"s":"... -> $FF (KERNAL SAVE start ptr in ZP)","t":"code","b":[133,255],"m":"sta","o":"zpa_FF","oa":255},{"a":1185,"s":"SETLFS + SETNAM","t":"code","b":[32,12,5],"m":"jsr","o":"SETUP_KERNAL_FILE","oa":1292},{"a":1188,"s":"A=$FE => ZP ptr holding start address","t":"code","b":[169,254],"m":"lda","o":"#$FE"},{"a":1190,"s":"X = end address low","t":"code","b":[174,189,40],"m":"ldx","o":"DISK_SAVE_END_ADDR","oa":10429},{"a":1193,"s":"Y = end address high","t":"code","b":[172,190,40],"m":"ldy","o":"a_28BE","oa":10430},{"a":1196,"s":"KERNAL SAVE ($FE.. up to X/Y)","t":"code","b":[32,216,255],"m":"jsr","o":"KERNAL_SAVE","oa":65496},{"a":1199,"s":"block IRQ during status check","t":"code","b":[120],"m":"sei"},{"a":1200,"s":"carry set => save error","t":"code","b":[176,4],"m":"bcs","o":"DISK_IO_ERROR","oa":1206},{"a":1202,"s":"restore game state after I/O","t":"code","b":[32,33,5],"m":"jsr","o":"END_DISK_IO","oa":1313},{"a":1205,"t":"code","b":[96],"m":"rts"},{"a":1206,"l":"DISK_IO_ERROR","c":"DISK_IO_ERROR ($04B6)\nPurpose: Shared failure tail for the retained disk subsystem: restore the gameplay machine state, raise the error flag, and print the disk-error message.\nInputs: Entered by tail jump from DISK_LOAD_GAME ($0478) or DISK_SAVE_GAME ($04B0) with carry set from the KERNAL call, or from ABORT_EMPTY_FILENAME at the $04B9 continuation.\nOutputs: DISK_ERROR_FLAG ($5F) set to 1; sentence $12 printed; returns to the caller of the failed disk routine.\nAssumptions: END_DISK_IO must be able to swap the game zero page back in, so the backup at $A002-$A0FF must be intact and BASIC must be banked out.\nClobbers: A, X, Y, flags, DISK_ERROR_FLAG, zero page (exchanged), and text-renderer scratch.\nHardware changes: Through END_DISK_IO: re-enables the VIC display ($D011 bit 4), stops CIA 1 timer A ($DC0E bit 0), rewrites $D01A to $F1 and executes CLI. Writes screen and colour RAM through the terminal.","s":"restore game state after I/O","t":"code","b":[32,33,5],"m":"jsr","o":"END_DISK_IO","oa":1313,"x":[1144,1200]},{"a":1209,"l":"DISK_IO_ERROR_REPORT","s":"A = 1","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[1221]},{"a":1211,"s":"$5F = error flag = 1","t":"code","b":[133,95],"m":"sta","o":"DISK_ERROR_FLAG","oa":95},{"a":1213,"s":"A = $12 = error-message sentence id","t":"code","b":[169,18],"m":"lda","o":"#$12"},{"a":1215,"s":"print sentence","t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":1218,"t":"code","b":[96],"m":"rts"},{"a":1219,"l":"ABORT_EMPTY_FILENAME","c":"ABORT_EMPTY_FILENAME ($04C3)\nPurpose: Abort the filename prompt when the player entered nothing. Discards the immediate caller's return address so control cannot fall back into the load flow, then joins the error tail at $04B9.\nInputs: Entered by branch from READ_FILENAME ($04D5) with INPUT_LEN ($26) zero.\nOutputs: Two bytes popped from the stack; DISK_ERROR_FLAG set to 1 and sentence $12 printed; the eventual RTS returns to the caller of the routine that called READ_FILENAME.\nAssumptions: The stack contains exactly READ_FILENAME's return address on top, i.e. this label is only reachable from inside READ_FILENAME.\nClobbers: A, X, Y, flags, DISK_ERROR_FLAG, the two stack bytes of READ_FILENAME's return address, and renderer scratch.\nHardware changes: Writes screen and colour RAM through the terminal; no device register is programmed here.","s":"discard caller return address (2 bytes)","t":"code","b":[104],"m":"pla","x":[1237]},{"a":1220,"t":"code","b":[104],"m":"pla"},{"a":1221,"s":"report as I/O error","t":"code","b":[76,185,4],"m":"jmp","o":"DISK_IO_ERROR_REPORT","oa":1209},{"a":1224,"l":"READ_FILENAME","c":"READ_FILENAME ($04C8)\nPurpose: Prompt for and normalise an eight-character filename: print the prompt sentence, read one line with the long idle timeout, blank the buffer, then copy up to eight characters while folding lowercase to uppercase.\nInputs: None in registers. Uses the edited line left by READ_INPUT_ALT at INPUT_TEXT_BUFFER ($CBA0) with its length in INPUT_LEN ($26) and its pointer in AUX_PTR ($0E/$0F).\nOutputs: FILENAME_BUF ($0DD7-$0DDE) contains eight characters, space padded, PETSCII uppercase. Empty input does not return; it diverts to ABORT_EMPTY_FILENAME.\nAssumptions: Case folding is a plain SBC #$20 applied to every non-space character; that is enough because the line editor stores only spaces and lower-case letters. Retained inactive code.\nClobbers: A, X, Y, flags, FILENAME_BUF, and everything READ_INPUT_ALT clobbers (editor state, idle counters, cursor).\nHardware changes: Through the editor: reads the CIA 1 keyboard matrix via KERNAL SCNKEY ($FF9F) and GETIN ($FFE4); writes screen and colour RAM.","s":"A = $43 = 'enter filename' prompt sentence id","t":"code","b":[169,67],"m":"lda","o":"#$43","x":[1123]},{"a":1226,"s":"print prompt","t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":1229,"s":"read an input line","t":"code","b":[32,1,8],"m":"jsr","o":"READ_INPUT_ALT","oa":2049},{"a":1232,"s":"blank FILENAME_BUF (8 spaces)","t":"code","b":[32,235,4],"m":"jsr","o":"BLANK_FILENAME_BUF","oa":1259},{"a":1235,"s":"input length","t":"code","b":[165,38],"m":"lda","o":"INPUT_LEN","oa":38},{"a":1237,"s":"empty -> abort","t":"code","b":[240,236],"m":"beq","o":"ABORT_EMPTY_FILENAME","oa":1219},{"a":1239,"s":"Y = 0 (dest index)","t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":1241,"l":"READ_FILENAME_COPY_LOOP","s":"next input char (via $0E/$0F ptr)","t":"code","b":[177,14],"m":"lda","o":"(AUX_PTR),y","oa":14,"x":[1256]},{"a":1243,"s":"space?","t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":1245,"s":"yes -> keep as-is","t":"code","b":[240,3],"m":"beq","o":"READ_FILENAME_STORE_CHAR","oa":1250},{"a":1247,"s":"convert lowercase -> uppercase:","t":"code","b":[56],"m":"sec"},{"a":1248,"s":"A -= $20","t":"code","b":[233,32],"m":"sbc","o":"#$20"},{"a":1250,"l":"READ_FILENAME_STORE_CHAR","s":"store into FILENAME_BUF[Y]","t":"code","b":[153,215,13],"m":"sta","o":"FILENAME_BUF,y","oa":3543,"x":[1245]},{"a":1253,"s":"next char","t":"code","b":[200],"m":"iny"},{"a":1254,"s":"up to 8 chars","t":"code","b":[192,8],"m":"cpy","o":"#$08"},{"a":1256,"s":"loop","t":"code","b":[208,239],"m":"bne","o":"READ_FILENAME_COPY_LOOP","oa":1241},{"a":1258,"s":"done","t":"code","b":[96],"m":"rts"},{"a":1259,"l":"BLANK_FILENAME_BUF","c":"BLANK_FILENAME_BUF ($04EB)\nPurpose: Fill the eight-byte FILENAME_BUF with PETSCII spaces. The fill has no effect: READ_FILENAME, its one caller, then copies eight characters over the whole buffer, and a short name is padded by the spaces of the command line.\nInputs: None.\nOutputs: FILENAME_BUF ($0DD7-$0DDE) set to $20 eight times. Returns with X=$FF and N set.\nAssumptions: The buffer is exactly eight bytes and is followed by the orphaned metadata word, which this loop does not touch.\nClobbers: A, X, flags. Y is preserved.\nHardware changes: None; ordinary RAM only.","s":"X = 7 (indices 7..0)","t":"code","b":[162,7],"m":"ldx","o":"#$07","x":[1232]},{"a":1261,"s":"A = $20 space","t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":1263,"l":"BLANK_FILENAME_LOOP","s":"FILENAME_BUF[X] = space","t":"code","b":[157,215,13],"m":"sta","o":"FILENAME_BUF,x","oa":3543,"x":[1267]},{"a":1266,"s":"X--","t":"code","b":[202],"m":"dex"},{"a":1267,"s":"loop while >= 0","t":"code","b":[16,250],"m":"bpl","o":"BLANK_FILENAME_LOOP","oa":1263},{"a":1269,"t":"code","b":[96],"m":"rts"},{"a":1270,"l":"PREPARE_DISK_IO","c":"PREPARE_DISK_IO ($04F6)\nPurpose: Put the machine into a state in which KERNAL disk routines can run: disable interrupts, exchange the game's private zero page for the KERNAL's, blank the display, and disable the raster interrupt source.\nInputs: None. Requires the KERNAL zero-page image to be present in the backup at $A002-$A0FF.\nOutputs: The KERNAL zero page is live and the game's copy is parked in the backup; the display is blank; the VIC raster interrupt is masked; returns with interrupts still disabled.\nAssumptions: BASIC ROM must be banked out ($01=$06 or $05) so that reads from $A000-$A0FF see the backup RAM rather than ROM. The four NOPs at $04F7-$04FA are shipped padding.\nClobbers: A, X, Y, flags, and the entire zero page from $02 to $FF (exchanged with its backup).\nHardware changes: Executes SEI. Clears bit 4 (DEN) of VIC-II control register 1 $D011, blanking the display. Writes $F0 to the VIC interrupt-enable register $D01A, clearing bit 0 so raster compares no longer request an IRQ.","s":"block IRQ","t":"code","b":[120],"m":"sei","x":[1104,1126,1172]},{"a":1271,"t":"code","b":[234],"m":"nop"},{"a":1272,"t":"code","b":[234],"m":"nop"},{"a":1273,"t":"code","b":[234],"m":"nop"},{"a":1274,"t":"code","b":[234],"m":"nop"},{"a":1275,"s":"swap the KERNAL's zero page in from $A002-$A0FF, parking the game's there","t":"code","b":[32,60,5],"m":"jsr","o":"SWAP_ZERO_PAGE_AND_BACKUP","oa":1340},{"a":1278,"s":"read $D011","t":"code","b":[173,17,208],"m":"lda","o":"vic_control1"},{"a":1281,"s":"clear bit4 (DEN) = blank display","t":"code","b":[41,239],"m":"and","o":"#$EF"},{"a":1283,"s":"$D011","t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":1286,"s":"A = $F0","t":"code","b":[169,240],"m":"lda","o":"#$F0"},{"a":1288,"s":"$D01A: disable raster IRQ (bit0=0)","t":"code","b":[141,26,208],"m":"sta","o":"vic_irq_enable"},{"a":1291,"t":"code","b":[96],"m":"rts"},{"a":1292,"l":"SETUP_KERNAL_FILE","c":"SETUP_KERNAL_FILE ($050C)\nPurpose: Establish the KERNAL file parameters for the retained save/load code: logical file $20 on device 1, the cassette, with secondary address 0 (Datasoft's disk version of the game has device 8 here), and an eight-character name taken from FILENAME_BUF.\nInputs: FILENAME_BUF filled; FILENAME_PTR ($0DD5/$0DD6) points at it.\nOutputs: KERNAL SETLFS and SETNAM have recorded the file number, device, secondary address, name length and name pointer.\nAssumptions: Secondary address 0 makes LOAD put the file at the address in X/Y, which DISK_LOAD_GAME takes from DISK_LOAD_ADDR, rather than at the address it was saved from.\nClobbers: A, X, Y, flags, and the KERNAL's own zero-page file-parameter bytes.\nHardware changes: Calls KERNAL SETLFS ($FFBA) and SETNAM ($FFBD); no device is accessed yet.","s":"A = $20 logical file number","t":"code","b":[169,32],"m":"lda","o":"#$20","x":[1129,1185]},{"a":1294,"s":"X = 1: device 1, the cassette","t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":1296,"s":"Y = 0 secondary address","t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":1298,"s":"KERNAL SETLFS","t":"code","b":[32,186,255],"m":"jsr","o":"KERNAL_SETLFS","oa":65466},{"a":1301,"s":"A = 8 filename length","t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":1303,"s":"X = filename addr low (FILENAME_PTR)","t":"code","b":[174,213,13],"m":"ldx","o":"FILENAME_PTR","oa":3541},{"a":1306,"s":"Y = filename addr high","t":"code","b":[172,214,13],"m":"ldy","o":"a_0DD6","oa":3542},{"a":1309,"s":"KERNAL SETNAM","t":"code","b":[32,189,255],"m":"jsr","o":"KERNAL_SETNAM","oa":65469},{"a":1312,"t":"code","b":[96],"m":"rts"},{"a":1313,"l":"END_DISK_IO","c":"END_DISK_IO ($0521)\nPurpose: Undo PREPARE_DISK_IO: bring the game's zero page back, re-enable the display, stop CIA 1 timer A, re-arm the raster interrupt, and re-enable interrupts.\nInputs: None. Requires the game zero page to be parked in the backup at $A002-$A0FF.\nOutputs: Game zero page live again; display enabled; CIA 1 timer A halted; VIC raster interrupt re-armed; interrupts enabled on return.\nAssumptions: BASIC must still be banked out so the backup region reads as RAM. The routine assumes the raster dispatcher at $A7E0 is still installed in CINV.\nClobbers: A, X, Y, flags, and the entire zero page from $02 to $FF.\nHardware changes: Executes SEI then CLI. Sets bit 4 (DEN) of $D011 to re-enable the display. Clears bit 0 of CIA 1 timer A control $DC0E, stopping the timer that would otherwise drive the KERNAL's 60 Hz interrupt. Writes $F1 to $D01A, enabling the raster-compare interrupt source.","s":"swap game zero page back in","t":"code","b":[32,60,5],"m":"jsr","o":"SWAP_ZERO_PAGE_AND_BACKUP","oa":1340,"x":[1110,1146,1202,1206]},{"a":1316,"t":"code","b":[120],"m":"sei"},{"a":1317,"s":"read $D011","t":"code","b":[173,17,208],"m":"lda","o":"vic_control1"},{"a":1320,"s":"set bit4 (DEN) = display on","t":"code","b":[9,16],"m":"ora","o":"#$10"},{"a":1322,"s":"$D011","t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":1325,"s":"read CIA#1 Timer A control","t":"code","b":[173,14,220],"m":"lda","o":"cia1_control_a"},{"a":1328,"s":"clear bit0 (stop timer)","t":"code","b":[41,254],"m":"and","o":"#$FE"},{"a":1330,"s":"CIA#1 Timer A control","t":"code","b":[141,14,220],"m":"sta","o":"cia1_control_a"},{"a":1333,"s":"A = $F1","t":"code","b":[169,241],"m":"lda","o":"#$F1"},{"a":1335,"s":"$D01A: re-enable raster IRQ (bit0=1)","t":"code","b":[141,26,208],"m":"sta","o":"vic_irq_enable"},{"a":1338,"t":"code","b":[88],"m":"cli"},{"a":1339,"t":"code","b":[96],"m":"rts"},{"a":1340,"l":"SWAP_ZERO_PAGE_AND_BACKUP","c":"SWAP_ZERO_PAGE_AND_BACKUP ($053C)\nPurpose: Exchange the 254 bytes of zero page from $02 to $FF with the backup block at $A002-$A0FF, so the same code can serve both directions: park the game's workspace while the KERNAL loads or saves a file and bring it back afterwards. PREPARE_DISK_IO ($04FB) and END_DISK_IO ($0521) are its only callers; the rest of the time $A002-$A0FF holds the KERNAL's zero page, which OPENING_SETUP copied there ($06B2).\nInputs: None.\nOutputs: The two regions have exchanged contents. Returns with Y=$01 and X holding the last byte read from zero page.\nAssumptions: $00 and $01 are deliberately excluded: they are the 6510 data-direction and port registers, not ordinary RAM, and swapping them would change the memory map mid-loop. BASIC ROM must be banked out so $A000-$A0FF reads the backup RAM; a write-only mapping is not enough because every byte is read before being replaced.\nClobbers: A, X, Y, flags, zero page $02-$FF, and the backup block.\nHardware changes: None directly, but the routine is only correct under a banking configuration that hides BASIC ROM.","t":"code","b":[160,255],"m":"ldy","o":"#$FF","x":[1275,1313]},{"a":1342,"l":"SWAP_LOOP","t":"code","b":[185,0,0],"m":"lda","o":"C64_CPU_PROCESSOR_PORT_DIRECTION,y","oa":0,"x":[1359]},{"a":1345,"t":"code","b":[170],"m":"tax"},{"a":1346,"t":"code","b":[185,0,160],"m":"lda","o":"ZERO_PAGE_BACKUP,y","oa":40960},{"a":1349,"t":"code","b":[153,0,0],"m":"sta","o":"C64_CPU_PROCESSOR_PORT_DIRECTION,y","oa":0},{"a":1352,"t":"code","b":[138],"m":"txa"},{"a":1353,"t":"code","b":[153,0,160],"m":"sta","o":"ZERO_PAGE_BACKUP,y","oa":40960},{"a":1356,"t":"code","b":[136],"m":"dey"},{"a":1357,"t":"code","b":[192,1],"m":"cpy","o":"#$01"},{"a":1359,"t":"code","b":[208,237],"m":"bne","o":"SWAP_LOOP","oa":1342},{"a":1361,"t":"code","b":[96],"m":"rts"},{"a":1362,"l":"WAIT_FOR_KEY","c":"WAIT_FOR_KEY ($0552)\nPurpose: Block until the keyboard produces a non-zero PETSCII code, scanning the matrix explicitly rather than relying on the KERNAL's timer interrupt.\nInputs: None.\nOutputs: A = the pressed key code, guaranteed non-zero; flags reflect the CMP #$00 that fell through.\nAssumptions: KERNAL ROM and the I/O page are visible and the KERNAL's keyboard-related zero-page workspace is valid. Because the game normally runs with CIA 1 timer A stopped, the KERNAL's own keyboard scan is not running, which is why SCNKEY is called explicitly.\nClobbers: A, X, Y, flags, the KERNAL keyboard buffer and its associated zero-page bytes.\nHardware changes: Calls KERNAL SCNKEY ($FF9F), which drives the CIA 1 keyboard matrix through $DC00/$DC01, and GETIN ($FFE4), which consumes the keyboard queue. No display register is touched.","t":"code","b":[32,159,255],"m":"jsr","o":"KERNAL_SCNKEY","oa":65439,"x":[1370,1373,1381,5572]},{"a":1365,"t":"code","b":[32,228,255],"m":"jsr","o":"KERNAL_GETIN","oa":65508},{"a":1368,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":1370,"t":"code","b":[240,246],"m":"beq","o":"WAIT_FOR_KEY","oa":1362},{"a":1372,"t":"code","b":[96],"m":"rts"},{"a":1373,"l":"WAIT_FOR_SPACE_KEY","c":"WAIT_FOR_SPACE_KEY ($055D)\nPurpose: Block until the player presses Space, discarding every other key.\nInputs: None.\nOutputs: A = $20; flags reflect the CMP #$20 that fell through.\nAssumptions: Same KERNAL ROM, I/O and zero-page requirements as WAIT_FOR_KEY.\nClobbers: A, X, Y, flags, KERNAL keyboard workspace.\nHardware changes: Through WAIT_FOR_KEY: CIA 1 keyboard matrix scanning via KERNAL SCNKEY and GETIN.","t":"code","b":[32,82,5],"m":"jsr","o":"WAIT_FOR_KEY","oa":1362,"x":[1101,1378,4482]},{"a":1376,"s":"Space","t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":1378,"t":"code","b":[208,249],"m":"bne","o":"WAIT_FOR_SPACE_KEY","oa":1373},{"a":1380,"t":"code","b":[96],"m":"rts"},{"a":1381,"l":"CHECK_YES_KEY","c":"CHECK_YES_KEY ($0565)\nPurpose: Read exactly one key and classify it as confirmation. Carry is the Boolean result.\nInputs: None.\nOutputs: A = the key that was pressed; carry set only for $59, the Y key pressed without Shift, clear for everything else.\nAssumptions: Same KERNAL ROM, I/O and zero-page requirements as WAIT_FOR_KEY. The comparison is exact: Shift-Y ($D9) does not confirm.\nClobbers: A, X, Y, flags, KERNAL keyboard workspace.\nHardware changes: Through WAIT_FOR_KEY: CIA 1 keyboard matrix scanning via KERNAL SCNKEY and GETIN.","t":"code","b":[32,82,5],"m":"jsr","o":"WAIT_FOR_KEY","oa":1362,"x":[4052,5345]},{"a":1384,"t":"code","b":[201,89],"m":"cmp","o":"#$59"},{"a":1386,"t":"code","b":[240,2],"m":"beq","o":"CHECK_YES_ACCEPT","oa":1390},{"a":1388,"t":"code","b":[24],"m":"clc"},{"a":1389,"t":"code","b":[96],"m":"rts"},{"a":1390,"l":"CHECK_YES_ACCEPT","t":"code","b":[56],"m":"sec","x":[1386]},{"a":1391,"t":"code","b":[96],"m":"rts"},{"a":1392,"l":"RENDER_ROOM_GRAPHICS","c":"RENDER_ROOM_GRAPHICS ($0570)\nPurpose: Rebuild the whole illustration band: restore the packed base display, draw each active runtime object record, then draw the static room picture selected by CURRENT_ROOM_GRAPHIC_ID.\nInputs: CURRENT_ROOM_GRAPHIC_ID ($2942) selects a RoomGraphicRecord in the 57-entry table at $0BF9; VISIBLE_OBJECT_RECORDS ($2943) holds six six-byte runtime records whose byte 3, the source address's high byte, is 0 in an unused record.\nOutputs: Bitmap RAM at $E000, the screen matrix at $CC00 and colour RAM at $D800 hold the composed picture. Falls through into BLIT_ROOM_GRAPHIC ($05BF), which draws the room picture and returns.\nAssumptions: The record index multiplication is performed as six repeated additions of CURRENT_ROOM_GRAPHIC_ID, which is the six-byte record stride; the caller must keep the index inside the table.\nClobbers: A, X, Y, flags, SCRATCH_BYTE ($02), LOOP_COUNTER ($4B), GRAPHIC_RECORD_PTR ($5A/$5B), WORK_PTR ($0C/$0D), the blit state at $50-$59, and MEMCPY's pointers, SCRATCH_BYTE_2 ($04) and tail operand ($079E).\nHardware changes: Writes colour RAM at $D800-$DBFF directly. Writes bitmap and screen memory, which the VIC-II reads from bank 3. No VIC register is programmed here; the raster handler already selected the modes.","s":"Restore the packed base room display before overlay rendering.","t":"code","b":[32,162,7],"m":"jsr","o":"RESTORE_GAMEPLAY_DISPLAY","oa":1954,"x":[1165,3839,3929,4272,4407,4428,4446]},{"a":1395,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":1397,"s":"6 records to check","t":"code","b":[133,75],"m":"sta","o":"LOOP_COUNTER","oa":75},{"a":1399,"s":"$5A/$5B = VISIBLE_OBJ_RECORDS","t":"code","b":[173,185,40],"m":"lda","o":"VISIBLE_OBJECT_RECORDS_PTR","oa":10425},{"a":1402,"t":"code","b":[133,90],"m":"sta","o":"GRAPHIC_RECORD_PTR","oa":90},{"a":1404,"t":"code","b":[173,186,40],"m":"lda","o":"a_28BA","oa":10426},{"a":1407,"t":"code","b":[133,91],"m":"sta","o":"zpa_5B","oa":91},{"a":1409,"l":"RENDER_ROOM_GFX_RECORD_LOOP","t":"code","b":[160,3],"m":"ldy","o":"#$03","x":[1431]},{"a":1411,"s":"record byte 3, the source address's high byte (0 in an unused record)","t":"code","b":[177,90],"m":"lda","o":"(GRAPHIC_RECORD_PTR),y","oa":90},{"a":1413,"t":"code","b":[240,3],"m":"beq","o":"RENDER_ROOM_GFX_NEXT_RECORD","oa":1418},{"a":1415,"s":"Draw this active runtime RoomGraphicRecord.","t":"code","b":[32,191,5],"m":"jsr","o":"BLIT_ROOM_GRAPHIC","oa":1471},{"a":1418,"l":"RENDER_ROOM_GFX_NEXT_RECORD","t":"code","b":[169,6],"m":"lda","o":"#$06","x":[1413]},{"a":1420,"s":"advance to next 6-byte record","t":"code","b":[24],"m":"clc"},{"a":1421,"t":"code","b":[101,90],"m":"adc","o":"GRAPHIC_RECORD_PTR","oa":90},{"a":1423,"t":"code","b":[133,90],"m":"sta","o":"GRAPHIC_RECORD_PTR","oa":90},{"a":1425,"t":"code","b":[144,2],"m":"bcc","o":"RENDER_ROOM_GFX_LOOP_TAIL","oa":1429},{"a":1427,"t":"code","b":[230,91],"m":"inc","o":"zpa_5B","oa":91},{"a":1429,"l":"RENDER_ROOM_GFX_LOOP_TAIL","t":"code","b":[198,75],"m":"dec","o":"LOOP_COUNTER","oa":75,"x":[1425]},{"a":1431,"t":"code","b":[208,232],"m":"bne","o":"RENDER_ROOM_GFX_RECORD_LOOP","oa":1409},{"a":1433,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1435,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":1437,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":1439,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":1441,"l":"RENDER_ROOM_GFX_STRIDE_LOOP","s":"multiply CURRENT_ROOM_GRAPHIC_ID by the six-byte RoomGraphicRecord stride","t":"code","b":[173,66,41],"m":"lda","o":"CURRENT_ROOM_GRAPHIC_ID","oa":10562,"x":[1454]},{"a":1444,"t":"code","b":[24],"m":"clc"},{"a":1445,"t":"code","b":[101,12],"m":"adc","o":"WORK_PTR","oa":12},{"a":1447,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":1449,"t":"code","b":[144,2],"m":"bcc","o":"RENDER_ROOM_GFX_STRIDE_TAIL","oa":1453},{"a":1451,"t":"code","b":[230,13],"m":"inc","o":"zpa_0D","oa":13},{"a":1453,"l":"RENDER_ROOM_GFX_STRIDE_TAIL","t":"code","b":[202],"m":"dex","x":[1449]},{"a":1454,"t":"code","b":[208,241],"m":"bne","o":"RENDER_ROOM_GFX_STRIDE_LOOP","oa":1441},{"a":1456,"t":"code","b":[165,12],"m":"lda","o":"WORK_PTR","oa":12},{"a":1458,"t":"code","b":[24],"m":"clc"},{"a":1459,"s":"+ ROOM_GRAPHIC_TABLE_PTR ($0435), the picture records at $0BF9","t":"code","b":[109,53,4],"m":"adc","o":"ROOM_GRAPHIC_TABLE_PTR","oa":1077},{"a":1462,"t":"code","b":[133,90],"m":"sta","o":"GRAPHIC_RECORD_PTR","oa":90},{"a":1464,"t":"code","b":[165,13],"m":"lda","o":"zpa_0D","oa":13},{"a":1466,"t":"code","b":[109,54,4],"m":"adc","o":"a_0436","oa":1078},{"a":1469,"t":"code","b":[133,91],"m":"sta","o":"zpa_5B","oa":91},{"a":1471,"l":"BLIT_ROOM_GRAPHIC","c":"BLIT_ROOM_GRAPHIC ($05BF)\nPurpose: Draw one RoomGraphicRecord. Copies the six record fields into the zero-page blit state and then, for each character row, writes the record's bitmap, screen-code and colour spans to bitmap, screen and colour memory.\nInputs: GRAPHIC_RECORD_PTR ($5A/$5B) points at a six-byte record: start row, start column, source pointer (two bytes), height in rows, width in columns.\nOutputs: A height-by-width rectangle of the picture band updated in bitmap, screen and colour memory; BLIT_ROW ($50) advanced to the end row.\nAssumptions: Rows stay inside the ten-entry row-address tables at $0BBD (bitmap), $0BD1 (screen) and $0BE5 (colour), and columns inside the forty-column band. No clipping is performed. The source stream is interleaved per row as width*8 bitmap bytes, then width screen bytes, then width colour bytes, so one record consumes height*width*10 bytes.\nClobbers: A, X, Y, flags, SCRATCH_BYTE ($02), and the blit state $50-$59 (row, column, source pointer, end row, width, destination pointer, source end pointer).\nHardware changes: Writes colour RAM at $D800-$DBFF; writes bitmap and screen memory read by the VIC-II. Programs no VIC register.","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[1415]},{"a":1473,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":1475,"l":"BLIT_ROOM_GFX_COPY_RECORD","s":"copy 6-byte record -> $50..$55","t":"code","b":[177,90],"m":"lda","o":"(GRAPHIC_RECORD_PTR),y","oa":90,"x":[1483]},{"a":1477,"t":"code","b":[149,80],"m":"sta","o":"BLIT_ROW,x","oa":80},{"a":1479,"t":"code","b":[232],"m":"inx"},{"a":1480,"t":"code","b":[200],"m":"iny"},{"a":1481,"t":"code","b":[192,6],"m":"cpy","o":"#$06"},{"a":1483,"t":"code","b":[208,246],"m":"bne","o":"BLIT_ROOM_GFX_COPY_RECORD","oa":1475},{"a":1485,"t":"code","b":[165,80],"m":"lda","o":"BLIT_ROW","oa":80},{"a":1487,"t":"code","b":[24],"m":"clc"},{"a":1488,"t":"code","b":[101,84],"m":"adc","o":"BLIT_END_ROW","oa":84},{"a":1490,"t":"code","b":[133,84],"m":"sta","o":"BLIT_END_ROW","oa":84},{"a":1492,"l":"BLIT_ROOM_GFX_ROW_LOOP","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[1650]},{"a":1494,"t":"code","b":[133,2],"m":"sta","o":"SCRATCH_BYTE","oa":2},{"a":1496,"t":"code","b":[165,80],"m":"lda","o":"BLIT_ROW","oa":80},{"a":1498,"t":"code","b":[10],"m":"asl","o":"a"},{"a":1499,"t":"code","b":[170],"m":"tax"},{"a":1500,"s":"row -> bitmap address (BITMAP_ROW_ADDR_TABLE)","t":"code","b":[189,189,11],"m":"lda","o":"BITMAP_ROW_ADDR_TABLE,x","oa":3005},{"a":1503,"t":"code","b":[133,86],"m":"sta","o":"BLIT_DEST_PTR","oa":86},{"a":1505,"t":"code","b":[232],"m":"inx"},{"a":1506,"t":"code","b":[189,189,11],"m":"lda","o":"BITMAP_ROW_ADDR_TABLE,x","oa":3005},{"a":1509,"t":"code","b":[133,87],"m":"sta","o":"zpa_57","oa":87},{"a":1511,"t":"code","b":[165,81],"m":"lda","o":"BLIT_COLUMN","oa":81},{"a":1513,"s":"column * 8 (bitmap cell)","t":"code","b":[10],"m":"asl","o":"a"},{"a":1514,"t":"code","b":[10],"m":"asl","o":"a"},{"a":1515,"t":"code","b":[10],"m":"asl","o":"a"},{"a":1516,"t":"code","b":[144,6],"m":"bcc","o":"BLIT_ROOM_GFX_ADD_COLUMN","oa":1524},{"a":1518,"t":"code","b":[72],"m":"pha"},{"a":1519,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":1521,"t":"code","b":[133,2],"m":"sta","o":"SCRATCH_BYTE","oa":2},{"a":1523,"t":"code","b":[104],"m":"pla"},{"a":1524,"l":"BLIT_ROOM_GFX_ADD_COLUMN","t":"code","b":[24],"m":"clc","x":[1516]},{"a":1525,"t":"code","b":[101,86],"m":"adc","o":"BLIT_DEST_PTR","oa":86},{"a":1527,"t":"code","b":[133,86],"m":"sta","o":"BLIT_DEST_PTR","oa":86},{"a":1529,"t":"code","b":[165,87],"m":"lda","o":"zpa_57","oa":87},{"a":1531,"t":"code","b":[101,2],"m":"adc","o":"SCRATCH_BYTE","oa":2},{"a":1533,"t":"code","b":[133,87],"m":"sta","o":"zpa_57","oa":87},{"a":1535,"t":"code","b":[165,85],"m":"lda","o":"BLIT_WIDTH","oa":85},{"a":1537,"t":"code","b":[10],"m":"asl","o":"a"},{"a":1538,"t":"code","b":[10],"m":"asl","o":"a"},{"a":1539,"t":"code","b":[10],"m":"asl","o":"a"},{"a":1540,"t":"code","b":[24],"m":"clc"},{"a":1541,"t":"code","b":[101,82],"m":"adc","o":"BLIT_SOURCE_PTR","oa":82},{"a":1543,"t":"code","b":[133,88],"m":"sta","o":"BLIT_SOURCE_END_PTR","oa":88},{"a":1545,"t":"code","b":[165,83],"m":"lda","o":"zpa_53","oa":83},{"a":1547,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":1549,"t":"code","b":[133,89],"m":"sta","o":"zpa_59","oa":89},{"a":1551,"s":"Copy this bitmap row span.","t":"code","b":[32,118,6],"m":"jsr","o":"COPY_BLIT_ROW","oa":1654},{"a":1554,"t":"code","b":[165,80],"m":"lda","o":"BLIT_ROW","oa":80},{"a":1556,"t":"code","b":[10],"m":"asl","o":"a"},{"a":1557,"t":"code","b":[170],"m":"tax"},{"a":1558,"t":"code","b":[189,209,11],"m":"lda","o":"SCREEN_ROW_ADDR_TABLE,x","oa":3025},{"a":1561,"t":"code","b":[133,86],"m":"sta","o":"BLIT_DEST_PTR","oa":86},{"a":1563,"t":"code","b":[232],"m":"inx"},{"a":1564,"t":"code","b":[189,209,11],"m":"lda","o":"SCREEN_ROW_ADDR_TABLE,x","oa":3025},{"a":1567,"t":"code","b":[133,87],"m":"sta","o":"zpa_57","oa":87},{"a":1569,"t":"code","b":[165,81],"m":"lda","o":"BLIT_COLUMN","oa":81},{"a":1571,"t":"code","b":[24],"m":"clc"},{"a":1572,"t":"code","b":[101,86],"m":"adc","o":"BLIT_DEST_PTR","oa":86},{"a":1574,"t":"code","b":[133,86],"m":"sta","o":"BLIT_DEST_PTR","oa":86},{"a":1576,"t":"code","b":[165,87],"m":"lda","o":"zpa_57","oa":87},{"a":1578,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":1580,"t":"code","b":[133,87],"m":"sta","o":"zpa_57","oa":87},{"a":1582,"t":"code","b":[165,85],"m":"lda","o":"BLIT_WIDTH","oa":85},{"a":1584,"t":"code","b":[24],"m":"clc"},{"a":1585,"t":"code","b":[101,82],"m":"adc","o":"BLIT_SOURCE_PTR","oa":82},{"a":1587,"t":"code","b":[133,88],"m":"sta","o":"BLIT_SOURCE_END_PTR","oa":88},{"a":1589,"t":"code","b":[165,83],"m":"lda","o":"zpa_53","oa":83},{"a":1591,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":1593,"t":"code","b":[133,89],"m":"sta","o":"zpa_59","oa":89},{"a":1595,"s":"Copy this screen-code row span.","t":"code","b":[32,118,6],"m":"jsr","o":"COPY_BLIT_ROW","oa":1654},{"a":1598,"t":"code","b":[165,80],"m":"lda","o":"BLIT_ROW","oa":80},{"a":1600,"t":"code","b":[10],"m":"asl","o":"a"},{"a":1601,"t":"code","b":[170],"m":"tax"},{"a":1602,"t":"code","b":[189,229,11],"m":"lda","o":"COLOR_ROW_ADDR_TABLE,x","oa":3045},{"a":1605,"t":"code","b":[133,86],"m":"sta","o":"BLIT_DEST_PTR","oa":86},{"a":1607,"t":"code","b":[232],"m":"inx"},{"a":1608,"t":"code","b":[189,229,11],"m":"lda","o":"COLOR_ROW_ADDR_TABLE,x","oa":3045},{"a":1611,"t":"code","b":[133,87],"m":"sta","o":"zpa_57","oa":87},{"a":1613,"t":"code","b":[165,81],"m":"lda","o":"BLIT_COLUMN","oa":81},{"a":1615,"t":"code","b":[24],"m":"clc"},{"a":1616,"t":"code","b":[101,86],"m":"adc","o":"BLIT_DEST_PTR","oa":86},{"a":1618,"t":"code","b":[133,86],"m":"sta","o":"BLIT_DEST_PTR","oa":86},{"a":1620,"t":"code","b":[165,87],"m":"lda","o":"zpa_57","oa":87},{"a":1622,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":1624,"t":"code","b":[133,87],"m":"sta","o":"zpa_57","oa":87},{"a":1626,"t":"code","b":[165,85],"m":"lda","o":"BLIT_WIDTH","oa":85},{"a":1628,"t":"code","b":[24],"m":"clc"},{"a":1629,"t":"code","b":[101,82],"m":"adc","o":"BLIT_SOURCE_PTR","oa":82},{"a":1631,"t":"code","b":[133,88],"m":"sta","o":"BLIT_SOURCE_END_PTR","oa":88},{"a":1633,"t":"code","b":[165,83],"m":"lda","o":"zpa_53","oa":83},{"a":1635,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":1637,"t":"code","b":[133,89],"m":"sta","o":"zpa_59","oa":89},{"a":1639,"s":"Copy this color row span.","t":"code","b":[32,118,6],"m":"jsr","o":"COPY_BLIT_ROW","oa":1654},{"a":1642,"t":"code","b":[230,80],"m":"inc","o":"BLIT_ROW","oa":80},{"a":1644,"t":"code","b":[165,80],"m":"lda","o":"BLIT_ROW","oa":80},{"a":1646,"t":"code","b":[197,84],"m":"cmp","o":"BLIT_END_ROW","oa":84},{"a":1648,"t":"code","b":[240,3],"m":"beq","o":"BLIT_ROOM_GFX_DONE","oa":1653},{"a":1650,"t":"code","b":[76,212,5],"m":"jmp","o":"BLIT_ROOM_GFX_ROW_LOOP","oa":1492},{"a":1653,"l":"BLIT_ROOM_GFX_DONE","t":"code","b":[96],"m":"rts","x":[1648]},{"a":1654,"l":"COPY_BLIT_ROW","c":"COPY_BLIT_ROW ($0676)\nPurpose: Copy one span of the interleaved picture stream to its destination, advancing both pointers across page boundaries and stopping on an exact sixteen-bit end comparison.\nInputs: BLIT_SOURCE_PTR ($52/$53), BLIT_SOURCE_END_PTR ($58/$59) as an exclusive end, and BLIT_DEST_PTR ($56/$57).\nOutputs: The span is copied; source and destination pointers are left at their ends, so the caller can compute the next span from BLIT_SOURCE_PTR alone.\nAssumptions: The end pointer is strictly reachable from the start pointer; the loop tests low byte then high byte, so a mismatched pair would run away. Y is held at zero throughout, so the indirect stores are effectively plain pointer writes.\nClobbers: A, Y, flags, BLIT_SOURCE_PTR and BLIT_DEST_PTR. X is preserved.\nHardware changes: Writes colour RAM at $D800-$DBFF when the destination is a colour span; otherwise writes ordinary RAM that the VIC-II reads.","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[1551,1595,1639]},{"a":1656,"l":"COPY_BLIT_ROW_LOOP","s":"Dynamic GET FALKOR proof: this indirect read used BLIT_SOURCE_PTR=$B3C0 with CURRENT_OBJECT_INDEX=$17; slot 23 is ICON_FALKOR.","t":"code","b":[177,82],"m":"lda","o":"(BLIT_SOURCE_PTR),y","oa":82,"x":[1676,1682]},{"a":1658,"t":"code","b":[145,86],"m":"sta","o":"(BLIT_DEST_PTR),y","oa":86},{"a":1660,"t":"code","b":[230,82],"m":"inc","o":"BLIT_SOURCE_PTR","oa":82},{"a":1662,"t":"code","b":[208,2],"m":"bne","o":"COPY_BLIT_ROW_BUMP_DEST","oa":1666},{"a":1664,"t":"code","b":[230,83],"m":"inc","o":"zpa_53","oa":83},{"a":1666,"l":"COPY_BLIT_ROW_BUMP_DEST","t":"code","b":[230,86],"m":"inc","o":"BLIT_DEST_PTR","oa":86,"x":[1662]},{"a":1668,"t":"code","b":[208,2],"m":"bne","o":"COPY_BLIT_ROW_TEST_END","oa":1672},{"a":1670,"t":"code","b":[230,87],"m":"inc","o":"zpa_57","oa":87},{"a":1672,"l":"COPY_BLIT_ROW_TEST_END","t":"code","b":[165,82],"m":"lda","o":"BLIT_SOURCE_PTR","oa":82,"x":[1668]},{"a":1674,"t":"code","b":[197,88],"m":"cmp","o":"BLIT_SOURCE_END_PTR","oa":88},{"a":1676,"t":"code","b":[208,234],"m":"bne","o":"COPY_BLIT_ROW_LOOP","oa":1656},{"a":1678,"t":"code","b":[165,83],"m":"lda","o":"zpa_53","oa":83},{"a":1680,"t":"code","b":[197,89],"m":"cmp","o":"zpa_59","oa":89},{"a":1682,"t":"code","b":[208,228],"m":"bne","o":"COPY_BLIT_ROW_LOOP","oa":1656},{"a":1684,"t":"code","b":[96],"m":"rts"},{"a":1685,"l":"READ_RASTER_LINE","c":"READ_RASTER_LINE ($0695)\nPurpose: Sample the low eight bits of the VIC-II raster counter, used by the engine as its only entropy source.\nInputs: None.\nOutputs: A = the low eight bits of $D012; N and Z reflect that value. X and Y are preserved.\nAssumptions: The I/O page must be visible. Bit 8 of the raster counter lives in bit 7 of $D011 and is not returned, so over a PAL frame of 312 lines the value runs 0-255 and then 0-55 again: values 0-55 come round twice a frame, 56-255 once.\nClobbers: A and flags only.\nHardware changes: Reads VIC-II register $D012. Nothing is written and no VIC state changes.","t":"code","b":[173,18,208],"m":"lda","o":"vic_raster","x":[4646]},{"a":1688,"t":"code","b":[96],"m":"rts"},{"a":1689,"l":"NOOP_0699","c":"NOOP_0699 ($0699)\nPurpose: One-byte RTS stub invoked by action opcode $0B through NOOP_ACTION_11.\nInputs: None.\nOutputs: Immediate return.\nAssumptions: Opcode $0B is the action of the rule for the verb with stem \"mus\" (rule 28, then \"Ok!\") and also runs in Part 3's room $7C script; the $0C stub at $069A serves the \"nom\" verb. The third no-op opcode, $0F, has no stub: its handler at $118F is NOP, RTS.\nClobbers: Nothing. A, X, Y, flags, memory and devices are all preserved.\nHardware changes: None.","t":"code","b":[96],"m":"rts","x":[4389]},{"a":1690,"l":"NOOP_069A","c":"NOOP_069A ($069A)\nPurpose: One-byte RTS stub invoked by action opcode $0C through NOOP_ACTION_12.\nInputs: None.\nOutputs: Immediate return.\nAssumptions: Paired with NOOP_0699. Opcode $0C is the action of the rule for the verb with stem \"nom\" (rule 29, then \"Ok!\"). The no-op opcode $0F has no stub of its own: its handler at $118F is NOP, RTS.\nClobbers: Nothing. A, X, Y, flags, memory and devices are all preserved.\nHardware changes: None.","t":"code","b":[96],"m":"rts","x":[4393]},{"a":1691,"l":"OPENING_SETUP","c":"The opening's set-up. Masks interrupts, sets $01 = $06, calls the KERNAL's IOINIT ($FF84) and SETMSG ($FF90) with A = 0, stops CIA 1's timer A, and copies zero page $02-$FF, as the KERNAL left it, to $A002-$A0FF, where it waits to be swapped back in for each load ($053C). Points the IRQ vector at $A880, enables the raster interrupt ($D01A = $F1) at line $33, selects VIC bank 3 ($C000-$FFFF) and the text screen ($D018 = $3E, $D011 = $1B, $D016 = $C8). Sets the screen and colour cursors to $CC00 and $D800, clears DISK_ERROR_FLAG ($5F) and the screen ($07E8), sets LOADED_PART_NO ($5E) to $FF, and with $01 = $05 calls MUSIC_STOP and MUSIC_INIT; then $01 = $06 and CLI.","t":"code","b":[120],"m":"sei","x":[1024]},{"a":1692,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":1694,"t":"code","b":[133,1],"m":"sta","o":"C64_CPU_PROCESSOR_PORT","oa":1},{"a":1696,"t":"code","b":[32,132,255],"m":"jsr","o":"KERNAL_IOINIT","oa":65412},{"a":1699,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1701,"t":"code","b":[32,144,255],"m":"jsr","o":"KERNAL_SETMSG","oa":65424},{"a":1704,"t":"code","b":[173,14,220],"m":"lda","o":"cia1_control_a"},{"a":1707,"t":"code","b":[41,254],"m":"and","o":"#$FE"},{"a":1709,"t":"code","b":[141,14,220],"m":"sta","o":"cia1_control_a"},{"a":1712,"t":"code","b":[160,255],"m":"ldy","o":"#$FF"},{"a":1714,"l":"b_06B2","t":"code","b":[185,0,0],"m":"lda","o":"C64_CPU_PROCESSOR_PORT_DIRECTION,y","oa":0,"x":[1723]},{"a":1717,"t":"code","b":[153,0,160],"m":"sta","o":"ZERO_PAGE_BACKUP,y","oa":40960},{"a":1720,"t":"code","b":[136],"m":"dey"},{"a":1721,"t":"code","b":[192,1],"m":"cpy","o":"#$01"},{"a":1723,"t":"code","b":[208,245],"m":"bne","o":"b_06B2","oa":1714},{"a":1725,"t":"code","b":[169,128],"m":"lda","o":"#$80"},{"a":1727,"t":"code","b":[141,20,3],"m":"sta","o":"C64_WORKSPACE_IRQ_RAM_VECTOR","oa":788},{"a":1730,"t":"code","b":[169,168],"m":"lda","o":"#$A8"},{"a":1732,"t":"code","b":[141,21,3],"m":"sta","o":"IRQ_VECTOR_HIGH_BYTE","oa":789},{"a":1735,"t":"code","b":[169,241],"m":"lda","o":"#$F1"},{"a":1737,"t":"code","b":[141,26,208],"m":"sta","o":"vic_irq_enable"},{"a":1740,"t":"code","b":[169,51],"m":"lda","o":"#$33"},{"a":1742,"t":"code","b":[141,18,208],"m":"sta","o":"vic_raster"},{"a":1745,"t":"code","b":[173,0,221],"m":"lda","o":"cia2_port_a"},{"a":1748,"t":"code","b":[41,252],"m":"and","o":"#$FC"},{"a":1750,"t":"code","b":[141,0,221],"m":"sta","o":"cia2_port_a"},{"a":1753,"t":"code","b":[169,62],"m":"lda","o":"#$3E"},{"a":1755,"t":"code","b":[141,24,208],"m":"sta","o":"vic_memory"},{"a":1758,"t":"code","b":[169,27],"m":"lda","o":"#$1B"},{"a":1760,"t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":1763,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":1765,"t":"code","b":[141,22,208],"m":"sta","o":"vic_control2"},{"a":1768,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1770,"t":"code","b":[133,6],"m":"sta","o":"SCREEN_CURSOR_PTR","oa":6},{"a":1772,"t":"code","b":[133,8],"m":"sta","o":"COLOR_CURSOR_PTR","oa":8},{"a":1774,"t":"code","b":[133,95],"m":"sta","o":"DISK_ERROR_FLAG","oa":95},{"a":1776,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":1778,"t":"code","b":[133,7],"m":"sta","o":"zpa_07","oa":7},{"a":1780,"t":"code","b":[169,216],"m":"lda","o":"#$D8"},{"a":1782,"t":"code","b":[133,9],"m":"sta","o":"zpa_09","oa":9},{"a":1784,"t":"code","b":[32,232,7],"m":"jsr","o":"CLEAR_TEXT_SCREEN","oa":2024},{"a":1787,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":1789,"t":"code","b":[133,94],"m":"sta","o":"LOADED_PART_NO","oa":94},{"a":1791,"t":"code","b":[169,5],"m":"lda","o":"#$05"},{"a":1793,"t":"code","b":[133,1],"m":"sta","o":"C64_CPU_PROCESSOR_PORT","oa":1},{"a":1795,"t":"code","b":[32,161,150],"m":"jsr","o":"MUSIC_STOP","oa":38561},{"a":1798,"t":"code","b":[32,218,150],"m":"jsr","o":"MUSIC_INIT","oa":38618},{"a":1801,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":1803,"t":"code","b":[133,1],"m":"sta","o":"C64_CPU_PROCESSOR_PORT","oa":1},{"a":1805,"t":"code","b":[88],"m":"cli"},{"a":1806,"t":"code","b":[96],"m":"rts"},{"a":1807,"l":"ENTER_GAMEPLAY_DISPLAY","c":"ENTER_GAMEPLAY_DISPLAY ($070F)\nPurpose: The gameplay-side half of the phase transition: set up the text cursor, clear the text screen, copy the disk loader from $C000 to $9700 over the music driver, save the play screen's background ($E000-$EF9F) to $BC00, restore the composed display, and install the raster-split IRQ handler.\nInputs: None in registers. Requires the loader at $C000-$C1FF and, as loaded, the background's bitmap at $E000-$EC7F, its screen bytes at $EC80-$EE0F and its colour bytes at $EE10-$EF9F; the previous phase has already selected VIC bank 3, enabled the raster interrupt in $D01A and programmed an initial $D012/$D011 compare.\nOutputs: SCREEN_CURSOR_PTR ($06/$07) = $CD90 and COLOR_CURSOR_PTR ($08/$09) = $D990; the text screen is cleared; the 512-byte loader occupies $9700-$98FF; $BC00-$CB9F holds a copy of $E000-$EF9F; the composed display is restored; CINV ($0314/$0315) = $A7E0; $01 = $06; interrupts enabled on return.\nAssumptions: Reading $E000-$EF9F needs $01 = $05, which shows the RAM under the KERNAL; the routine sets it for the copy and then restores $06.\nClobbers: A, X, Y, flags, MEMCPY_SOURCE ($0A/$0B), WORK_PTR ($0C/$0D), SCRATCH_BYTE_2 ($04) and MEMCPY's tail operand at $079E, the screen and colour cursors, CURRENT_COLUMN ($24), C64_WORKSPACE_TEXT_COLOR ($0286, set to 6, blue), KEY_REPEAT_COUNTDOWN ($028B), the renderer state byte at $0AF5 (UPPERCASE_FILTER_ENABLED, set to 1), and the two pages at $9700-$98FF.\nHardware changes: Executes SEI then CLI. Writes the 6510 port $01 ($05 then $06). Sets VIC-II background colour $D021 and border colour $D020 to medium grey ($0C). Writes colour RAM at $D800-$D98F (400 cells) through the display restore. Rewrites the KERNAL RAM IRQ vector CINV at $0314/$0315 to point at $A7E0.","s":"Keep interrupts disabled while replacing display and IRQ state.","t":"code","b":[120],"m":"sei","x":[5588]},{"a":1808,"s":"Set screen cursor to $CD90, the first gameplay text position.","t":"code","b":[169,144],"m":"lda","o":"#$90"},{"a":1810,"t":"code","b":[133,6],"m":"sta","o":"SCREEN_CURSOR_PTR","oa":6},{"a":1812,"t":"code","b":[133,8],"m":"sta","o":"COLOR_CURSOR_PTR","oa":8},{"a":1814,"s":"Set matching color cursor to $D990.","t":"code","b":[169,205],"m":"lda","o":"#$CD"},{"a":1816,"t":"code","b":[133,7],"m":"sta","o":"zpa_07","oa":7},{"a":1818,"t":"code","b":[169,217],"m":"lda","o":"#$D9"},{"a":1820,"t":"code","b":[133,9],"m":"sta","o":"zpa_09","oa":9},{"a":1822,"s":"Clear all four pages of screen RAM.","t":"code","b":[32,232,7],"m":"jsr","o":"CLEAR_TEXT_SCREEN","oa":2024},{"a":1825,"s":"Select blue as the KERNAL text color.","t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":1827,"t":"code","b":[141,134,2],"m":"sta","o":"C64_WORKSPACE_TEXT_COLOR","oa":646},{"a":1830,"s":"Set border and background to medium grey ($0C).","t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":1832,"t":"code","b":[141,33,208],"m":"sta","o":"vic_background0"},{"a":1835,"t":"code","b":[141,32,208],"m":"sta","o":"vic_border"},{"a":1838,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":1840,"l":"INSTALL_DISK_LOADER","c":"Copies the 512-byte disk loader from $C000-$C1FF to $9700-$98FF, over the music driver, which is not needed once the opening ends. Y counts 0-255 for both pages at once.","s":"Copy staged loader page $C000 to runtime page $9700.","t":"code","b":[185,0,192],"m":"lda","o":"STAGED_DISK_LOADER,y","oa":49152,"x":[1853]},{"a":1843,"s":"Install loader page 1 at $9700.","t":"code","b":[153,0,151],"m":"sta","o":"LOADER_ENTRY_9700,y","oa":38656},{"a":1846,"s":"Copy staged loader page $C100 to runtime page $9800.","t":"code","b":[185,0,193],"m":"lda","o":"STAGED_LOADER_PAGE_2,y","oa":49408},{"a":1849,"s":"Install loader page 2 at $9800.","t":"code","b":[153,0,152],"m":"sta","o":"LOADER_PAGE_9800,y","oa":38912},{"a":1852,"t":"code","b":[200],"m":"iny"},{"a":1853,"t":"code","b":[208,241],"m":"bne","o":"INSTALL_DISK_LOADER","oa":1840},{"a":1855,"s":"Expose RAM beneath KERNAL before reading the live bitmap.","t":"code","b":[169,5],"m":"lda","o":"#$05"},{"a":1857,"t":"code","b":[133,1],"m":"sta","o":"C64_CPU_PROCESSOR_PORT","oa":1},{"a":1859,"s":"MEMCPY source = $E000 bitmap memory.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1861,"t":"code","b":[133,10],"m":"sta","o":"MEMCPY_SOURCE","oa":10},{"a":1863,"t":"code","b":[169,224],"m":"lda","o":"#$E0"},{"a":1865,"t":"code","b":[133,11],"m":"sta","o":"zpa_0B","oa":11},{"a":1867,"s":"MEMCPY destination = packed display buffer at $BC00.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1869,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":1871,"t":"code","b":[169,188],"m":"lda","o":"#$BC"},{"a":1873,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":1875,"s":"Copy 15 complete pages.","t":"code","b":[162,15],"m":"ldx","o":"#$0F"},{"a":1877,"s":"Copy an additional $A0 bytes, for $0FA0 bytes total.","t":"code","b":[160,160],"m":"ldy","o":"#$A0"},{"a":1879,"s":"Copy the complete $0FA0-byte packed display bundle.","t":"code","b":[32,121,7],"m":"jsr","o":"MEMCPY","oa":1913},{"a":1882,"s":"Restore game-standard banking.","t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":1884,"t":"code","b":[133,1],"m":"sta","o":"C64_CPU_PROCESSOR_PORT","oa":1},{"a":1886,"s":"Restore saved screen, color, and bitmap buffers.","t":"code","b":[32,162,7],"m":"jsr","o":"RESTORE_GAMEPLAY_DISPLAY","oa":1954},{"a":1889,"s":"A = 0 for KEY_REPEAT_COUNTDOWN and CURRENT_COLUMN.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1891,"s":"Zero the KERNAL's key-repeat countdown.","t":"code","b":[141,139,2],"m":"sta","o":"KEY_REPEAT_COUNTDOWN","oa":651},{"a":1894,"t":"code","b":[133,36],"m":"sta","o":"CURRENT_COLUMN","oa":36},{"a":1896,"s":"Initialize renderer state byte at $0AF5.","t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":1898,"t":"code","b":[141,245,10],"m":"sta","o":"UPPERCASE_FILTER_ENABLED","oa":2805},{"a":1901,"s":"Install gameplay raster dispatcher $A7E0 in the KERNAL IRQ vector.","t":"code","b":[169,224],"m":"lda","o":"#$E0"},{"a":1903,"t":"code","b":[141,20,3],"m":"sta","o":"C64_WORKSPACE_IRQ_RAM_VECTOR","oa":788},{"a":1906,"t":"code","b":[169,167],"m":"lda","o":"#$A7"},{"a":1908,"t":"code","b":[141,21,3],"m":"sta","o":"IRQ_VECTOR_HIGH_BYTE","oa":789},{"a":1911,"s":"Transition complete; enable gameplay interrupts.","t":"code","b":[88],"m":"cli"},{"a":1912,"t":"code","b":[96],"m":"rts"},{"a":1913,"l":"MEMCPY","c":"MEMCPY ($0779)\nPurpose: General forward block copy of X complete pages plus an optional Y-byte tail, used for the display bundle, screen scrolling and buffer restores.\nInputs: MEMCPY_SOURCE ($0A/$0B) = source, WORK_PTR ($0C/$0D) = destination, X = number of whole 256-byte pages, Y = tail length in bytes.\nOutputs: The requested bytes are copied. The two pointer low bytes are unchanged; their high bytes have been incremented by the original X. When the tail was non-zero the routine returns with Y equal to the tail length.\nAssumptions: The copy is strictly forward, so it corrupts any overlapping range where the destination lies above the source, within a page or across pages; a destination below the source, as in scrolling, is safe. The tail bound is not a register: it is written into the CPY immediate operand at $079E, so the routine is self-modifying and not interrupt-reentrant.\nClobbers: A, X, Y, flags, SCRATCH_BYTE_2 ($04), the high bytes of both pointers, and the immediate operand byte at $079E, which retains the most recent non-zero tail length.\nHardware changes: None of its own; the destination may be colour RAM or VIC-visible RAM depending on the caller.","s":"Preserve the requested tail length in zero-page scratch $04.","t":"code","b":[132,4],"m":"sty","o":"SCRATCH_BYTE_2","oa":4,"x":[1879,1974,1997,2020,2335,2358]},{"a":1915,"s":"Skip the full-page loop when X is zero.","t":"code","b":[224,0],"m":"cpx","o":"#$00"},{"a":1917,"t":"code","b":[240,16],"m":"beq","o":"COPY_REMAINDER_BYTES","oa":1935},{"a":1919,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":1921,"l":"COPY_BLOCK_LOOP","s":"Load through the source pointer.","t":"code","b":[177,10],"m":"lda","o":"(MEMCPY_SOURCE),y","oa":10,"x":[1926,1933]},{"a":1923,"s":"Store through the destination pointer.","t":"code","b":[145,12],"m":"sta","o":"(WORK_PTR),y","oa":12},{"a":1925,"t":"code","b":[200],"m":"iny"},{"a":1926,"t":"code","b":[208,249],"m":"bne","o":"COPY_BLOCK_LOOP","oa":1921},{"a":1928,"s":"Advance source pointer by one page.","t":"code","b":[230,11],"m":"inc","o":"zpa_0B","oa":11},{"a":1930,"s":"Advance destination pointer by one page.","t":"code","b":[230,13],"m":"inc","o":"zpa_0D","oa":13},{"a":1932,"t":"code","b":[202],"m":"dex"},{"a":1933,"t":"code","b":[208,242],"m":"bne","o":"COPY_BLOCK_LOOP","oa":1921},{"a":1935,"l":"COPY_REMAINDER_BYTES","s":"Recover the requested tail length.","t":"code","b":[164,4],"m":"ldy","o":"SCRATCH_BYTE_2","oa":4,"x":[1917]},{"a":1937,"t":"code","b":[240,14],"m":"beq","o":"COPY_COMPLETED","oa":1953},{"a":1939,"s":"Patch the CPY immediate operand with the tail length.","t":"code","b":[140,158,7],"m":"sty","o":"REMAINDER_BYTES","oa":1950},{"a":1942,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":1944,"l":"COPY_REMAINDER_LOOP","s":"Copy the remaining partial page.","t":"code","b":[177,10],"m":"lda","o":"(MEMCPY_SOURCE),y","oa":10,"x":[1951]},{"a":1946,"t":"code","b":[145,12],"m":"sta","o":"(WORK_PTR),y","oa":12},{"a":1948,"t":"code","b":[200],"m":"iny"},{"a":1949,"s":"Self-modified tail-loop bound.","t":"code","b":[192,0],"m":"cpy","o":"#$00"},{"a":1950,"t":"note","l":"REMAINDER_BYTES","c":"Self-modified immediate tail length for CPY at $079D, written by $0793 in MEMCPY. The BNE at $079F repeats the partial-page copy until Y reaches this bound; $07A1 returns.","note":"inside the item at $079D","x":[1939]},{"a":1951,"t":"code","b":[208,247],"m":"bne","o":"COPY_REMAINDER_LOOP","oa":1944},{"a":1953,"l":"COPY_COMPLETED","t":"code","b":[96],"m":"rts","x":[1937]},{"a":1954,"l":"RESTORE_GAMEPLAY_DISPLAY","c":"RESTORE_GAMEPLAY_DISPLAY ($07A2)\nPurpose: Repaint the picture band of the gameplay display, character rows 0-9, from the three packed buffers: 400 screen cells from $C880 to $CC00, 400 colour cells from $CA10 to $D800, and the $0C80-byte picture from $BC00 to $E000.\nInputs: None in registers; the three packed buffers must hold the composed base display.\nOutputs: Screen matrix, colour RAM and bitmap memory of rows 0-9 restored to the base picture, ready for object overlays to be drawn on top. The text window, rows 10-24, is not touched.\nAssumptions: Runs with $01=$06. That leaves KERNAL ROM readable at $E000-$FFFF, but the routine only ever writes there, and writes always fall through to the RAM underneath, which is the RAM the VIC-II fetches the bitmap from in bank 3; no $05 switch is needed because nothing here reads $E000. Writing colour RAM requires the I/O page to be visible, which $06 provides.\nClobbers: A, X, Y, flags, MEMCPY_SOURCE ($0A/$0B), WORK_PTR ($0C/$0D), SCRATCH_BYTE_2 ($04), and MEMCPY's self-modified tail operand.\nHardware changes: Writes colour RAM at $D800-$D98F (400 cells, X=$01/Y=$90). Writes screen and bitmap memory read by the VIC-II. Programs no VIC register.","s":"Source = SAVED_SCREEN ($C880).","t":"code","b":[169,128],"m":"lda","o":"#$80","x":[1392,1886]},{"a":1956,"s":"SAVED_SCREEN -> $CC00","t":"code","b":[133,10],"m":"sta","o":"MEMCPY_SOURCE","oa":10},{"a":1958,"t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":1960,"t":"code","b":[133,11],"m":"sta","o":"zpa_0B","oa":11},{"a":1962,"s":"Destination = screen RAM ($CC00).","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1964,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":1966,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":1968,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":1970,"s":"Copy one page plus $90 bytes: 400 screen cells.","t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":1972,"t":"code","b":[160,144],"m":"ldy","o":"#$90"},{"a":1974,"t":"code","b":[32,121,7],"m":"jsr","o":"MEMCPY","oa":1913},{"a":1977,"s":"Source = SAVED_COLOR ($CA10).","t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":1979,"s":"SAVED_COLOR -> $D800","t":"code","b":[133,10],"m":"sta","o":"MEMCPY_SOURCE","oa":10},{"a":1981,"t":"code","b":[169,202],"m":"lda","o":"#$CA"},{"a":1983,"t":"code","b":[133,11],"m":"sta","o":"zpa_0B","oa":11},{"a":1985,"s":"Destination = color RAM ($D800).","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":1987,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":1989,"t":"code","b":[169,216],"m":"lda","o":"#$D8"},{"a":1991,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":1993,"s":"Copy one page plus $90 bytes: 400 color cells.","t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":1995,"t":"code","b":[160,144],"m":"ldy","o":"#$90"},{"a":1997,"t":"code","b":[32,121,7],"m":"jsr","o":"MEMCPY","oa":1913},{"a":2000,"s":"Source = SAVED_BITMAP ($BC00).","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2002,"s":"SAVED_BITMAP -> $E000 (the play screen's backdrop)","t":"code","b":[133,10],"m":"sta","o":"MEMCPY_SOURCE","oa":10},{"a":2004,"t":"code","b":[169,188],"m":"lda","o":"#$BC"},{"a":2006,"t":"code","b":[133,11],"m":"sta","o":"zpa_0B","oa":11},{"a":2008,"s":"Destination = bitmap RAM ($E000).","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2010,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":2012,"t":"code","b":[169,224],"m":"lda","o":"#$E0"},{"a":2014,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2016,"s":"Copy twelve pages plus $80 bytes: $0C80 bytes.","t":"code","b":[162,12],"m":"ldx","o":"#$0C"},{"a":2018,"t":"code","b":[160,128],"m":"ldy","o":"#$80"},{"a":2020,"t":"code","b":[32,121,7],"m":"jsr","o":"MEMCPY","oa":1913},{"a":2023,"t":"code","b":[96],"m":"rts"},{"a":2024,"l":"CLEAR_TEXT_SCREEN","c":"CLEAR_TEXT_SCREEN ($07E8)\nPurpose: Fill all four pages of the gameplay screen matrix at $CC00-$CFFF with the space screen code.\nInputs: None.\nOutputs: 1024 bytes of $20 written at $CC00. Colour RAM is not touched.\nAssumptions: The screen matrix is at $CC00 in VIC bank 3, which is where $D018=$38/$3E place it. Runs with the I/O page mapped but never writes it.\nClobbers: A, X, Y, flags and MEMCPY_SOURCE ($0A/$0B), which is left pointing one page past the screen.\nHardware changes: None; ordinary RAM that the VIC-II reads.","s":"Point the clear loop at screen RAM $CC00.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[1784,1822]},{"a":2026,"t":"code","b":[133,10],"m":"sta","o":"MEMCPY_SOURCE","oa":10},{"a":2028,"t":"code","b":[169,204],"m":"lda","o":"#$CC"},{"a":2030,"t":"code","b":[133,11],"m":"sta","o":"zpa_0B","oa":11},{"a":2032,"s":"Screen-code space.","t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":2034,"s":"Clear four complete 256-byte pages.","t":"code","b":[162,4],"m":"ldx","o":"#$04"},{"a":2036,"l":"CLEAR_TEXT_PAGE_LOOP","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[2046]},{"a":2038,"l":"CLEAR_TEXT_BYTE_LOOP","t":"code","b":[145,10],"m":"sta","o":"(MEMCPY_SOURCE),y","oa":10,"x":[2041]},{"a":2040,"t":"code","b":[200],"m":"iny"},{"a":2041,"t":"code","b":[208,251],"m":"bne","o":"CLEAR_TEXT_BYTE_LOOP","oa":2038},{"a":2043,"t":"code","b":[230,11],"m":"inc","o":"zpa_0B","oa":11},{"a":2045,"t":"code","b":[202],"m":"dex"},{"a":2046,"t":"code","b":[208,244],"m":"bne","o":"CLEAR_TEXT_PAGE_LOOP","oa":2036},{"a":2048,"t":"code","b":[96],"m":"rts"},{"a":2049,"l":"READ_INPUT_ALT","c":"READ_INPUT_ALT ($0801)\nPurpose: Alternate entry into the line editor used by the retained filename prompt. It sets only the high byte of the three-byte idle countdown to $FF and joins READ_INPUT at $080E, preserving the existing low and middle bytes and therefore giving a much longer idle timeout than READ_INPUT's own $0004FFFF initialisation.\nInputs: The existing IDLE_COUNTDOWN low and middle bytes ($60/$61).\nOutputs: As READ_INPUT: a lowercased command line in INPUT_TEXT_BUFFER ($CBA0) with its length in INPUT_LEN ($26).\nAssumptions: Same terminal, KERNAL and banking assumptions as READ_INPUT. Only reachable from READ_FILENAME, which is itself retained inactive code.\nClobbers: As READ_INPUT.\nHardware changes: As READ_INPUT: CIA 1 keyboard scanning through KERNAL SCNKEY/GETIN, plus screen and colour RAM writes.","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[1229]},{"a":2051,"t":"code","b":[76,14,8],"m":"jmp","o":"READ_INPUT_SET_IDLE_HIGH","oa":2062},{"a":2054,"l":"READ_INPUT","c":"READ_INPUT ($0806)\nPurpose: Read and edit one command line with echo, backspace and an idle timeout. Return finishes the line, Delete backspaces, Space and A-Z are appended after folding to lowercase, and everything else is ignored.\nInputs: None in registers. Uses the terminal cursors at $06-$09 and CURRENT_COLUMN ($24).\nOutputs: A lowercased command line of up to 78 characters at INPUT_TEXT_BUFFER ($CBA0) with its length in INPUT_LEN ($26); the line has been echoed on screen and the cursor moved to the start of the next line. On timeout the line is finished automatically and sentence $13 is printed.\nAssumptions: KERNAL ROM and the I/O page must be visible and the KERNAL's keyboard workspace usable, because the editor calls SCNKEY and GETIN directly rather than waiting on a timer interrupt. The buffer is 81 bytes and the editor stops appending at 78.\nClobbers: A, X, Y, flags, IDLE_COUNTDOWN ($60-$62), AUX_PTR ($0E/$0F), INPUT_LEN, KEYBOARD_BUFFER_LEN ($C6), CURRENT_CHAR_COLOR ($0286), KEY_REPEAT_COUNTDOWN ($028B), CURRENT_COLUMN, the terminal cursors, the self-modified caret-gate operand at $0949, and, when the screen scrolls, MEMCPY_SOURCE ($0A/$0B), WORK_PTR ($0C/$0D), SCRATCH_BYTE_2 ($04) and the byte at $079E; on a timeout also what PRINT_SENTENCE changes: UPPERCASE_LETTER_FLAG ($0AFF), TERM_DATA_PTR ($22/$23) and WORD_REMAINING_LEN ($25).\nHardware changes: Reads the CIA 1 keyboard matrix through KERNAL SCNKEY ($FF9F) and GETIN ($FFE4). Writes screen RAM at $CC00-$CFFF and colour RAM at $D800-$DBFF through PRINT_CHARACTER.","s":"IDLE_COUNTDOWN = $0004FFFF (idle-timeout counter)","t":"code","b":[169,255],"m":"lda","o":"#$FF","x":[1036]},{"a":2056,"t":"code","b":[133,97],"m":"sta","o":"zpa_61","oa":97},{"a":2058,"t":"code","b":[133,96],"m":"sta","o":"IDLE_COUNTDOWN","oa":96},{"a":2060,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":2062,"l":"READ_INPUT_SET_IDLE_HIGH","t":"code","b":[133,98],"m":"sta","o":"zpa_62","oa":98,"x":[2051]},{"a":2064,"t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":2067,"t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":2070,"s":"$0E/$0F = INPUT_TEXT_BUFFER ($CBA0)","t":"code","b":[169,160],"m":"lda","o":"#$A0"},{"a":2072,"t":"code","b":[133,14],"m":"sta","o":"AUX_PTR","oa":14},{"a":2074,"t":"code","b":[169,203],"m":"lda","o":"#$CB"},{"a":2076,"t":"code","b":[133,15],"m":"sta","o":"zpa_0F","oa":15},{"a":2078,"s":"clear input line ($51 spaces)","t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":2080,"t":"code","b":[160,80],"m":"ldy","o":"#$50"},{"a":2082,"l":"READ_INPUT_BLANK_LOOP","t":"code","b":[145,14],"m":"sta","o":"(AUX_PTR),y","oa":14,"x":[2085]},{"a":2084,"t":"code","b":[136],"m":"dey"},{"a":2085,"t":"code","b":[16,251],"m":"bpl","o":"READ_INPUT_BLANK_LOOP","oa":2082},{"a":2087,"s":"text colour = 2 (red) for the prompt and the typed line","t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":2089,"t":"code","b":[141,134,2],"m":"sta","o":"C64_WORKSPACE_TEXT_COLOR","oa":646},{"a":2092,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":2094,"t":"code","b":[141,73,9],"m":"sta","o":"a_0949","oa":2377},{"a":2097,"s":"print '>' prompt ($3E)","t":"code","b":[169,62],"m":"lda","o":"#$3E"},{"a":2099,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2102,"s":"INPUT_LEN = 0","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2104,"t":"code","b":[133,38],"m":"sta","o":"INPUT_LEN","oa":38},{"a":2106,"s":"clear KERNAL keybuf count","t":"code","b":[133,198],"m":"sta","o":"C64_WORKSPACE_KEYBOARD_BUFFER_LENGTH","oa":198},{"a":2108,"l":"READ_INPUT_IDLE_TICK","s":"tick idle countdown ...","t":"code","b":[198,96],"m":"dec","o":"IDLE_COUNTDOWN","oa":96,"x":[2131,2149,2153,2162,2176,2181]},{"a":2110,"t":"code","b":[208,11],"m":"bne","o":"READ_INPUT_SCAN_KEY","oa":2123},{"a":2112,"t":"code","b":[198,97],"m":"dec","o":"zpa_61","oa":97},{"a":2114,"t":"code","b":[208,7],"m":"bne","o":"READ_INPUT_SCAN_KEY","oa":2123},{"a":2116,"t":"code","b":[198,98],"m":"dec","o":"zpa_62","oa":98},{"a":2118,"t":"code","b":[208,3],"m":"bne","o":"READ_INPUT_SCAN_KEY","oa":2123},{"a":2120,"s":"... timed out -> auto-finish","t":"code","b":[76,196,8],"m":"jmp","o":"READ_INPUT_TIMED_OUT","oa":2244},{"a":2123,"l":"READ_INPUT_SCAN_KEY","s":"scan + read keyboard","t":"code","b":[32,159,255],"m":"jsr","o":"KERNAL_SCNKEY","oa":65439,"x":[2110,2114,2118]},{"a":2126,"t":"code","b":[32,228,255],"m":"jsr","o":"KERNAL_GETIN","oa":65508},{"a":2129,"s":"no key -> keep waiting","t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":2131,"t":"code","b":[240,231],"m":"beq","o":"READ_INPUT_IDLE_TICK","oa":2108},{"a":2133,"t":"code","b":[230,98],"m":"inc","o":"zpa_62","oa":98},{"a":2135,"s":"RETURN -> finish","t":"code","b":[201,13],"m":"cmp","o":"#$0D"},{"a":2137,"t":"code","b":[240,114],"m":"beq","o":"FINISH_INPUT_LINE","oa":2253},{"a":2139,"s":"DELETE -> backspace","t":"code","b":[201,20],"m":"cmp","o":"#$14"},{"a":2141,"t":"code","b":[240,36],"m":"beq","o":"READ_INPUT_BACKSPACE","oa":2179},{"a":2143,"s":"SPACE","t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":2145,"t":"code","b":[240,11],"m":"beq","o":"READ_INPUT_STORE_CHAR","oa":2158},{"a":2147,"s":"below 'A' -> ignore","t":"code","b":[201,65],"m":"cmp","o":"#$41"},{"a":2149,"t":"code","b":[144,213],"m":"bcc","o":"READ_INPUT_IDLE_TICK","oa":2108},{"a":2151,"s":"above 'Z' -> ignore","t":"code","b":[201,91],"m":"cmp","o":"#$5B"},{"a":2153,"t":"code","b":[176,209],"m":"bcs","o":"READ_INPUT_IDLE_TICK","oa":2108},{"a":2155,"t":"code","b":[24],"m":"clc"},{"a":2156,"s":"fold A-Z to lowercase (+$20)","t":"code","b":[105,32],"m":"adc","o":"#$20"},{"a":2158,"l":"READ_INPUT_STORE_CHAR","s":"line full (78)?","t":"code","b":[164,38],"m":"ldy","o":"INPUT_LEN","oa":38,"x":[2145]},{"a":2160,"t":"code","b":[192,78],"m":"cpy","o":"#$4E"},{"a":2162,"t":"code","b":[240,200],"m":"beq","o":"READ_INPUT_IDLE_TICK","oa":2108},{"a":2164,"s":"store char into input buffer","t":"code","b":[145,14],"m":"sta","o":"(AUX_PTR),y","oa":14},{"a":2166,"s":"INPUT_LEN++","t":"code","b":[230,38],"m":"inc","o":"INPUT_LEN","oa":38},{"a":2168,"s":"echo the char","t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2171,"l":"READ_INPUT_RESET_REPEAT","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[2241]},{"a":2173,"t":"code","b":[141,139,2],"m":"sta","o":"KEY_REPEAT_COUNTDOWN","oa":651},{"a":2176,"t":"code","b":[76,60,8],"m":"jmp","o":"READ_INPUT_IDLE_TICK","oa":2108},{"a":2179,"l":"READ_INPUT_BACKSPACE","s":"backspace: line empty?","t":"code","b":[165,38],"m":"lda","o":"INPUT_LEN","oa":38,"x":[2141]},{"a":2181,"t":"code","b":[240,181],"m":"beq","o":"READ_INPUT_IDLE_TICK","oa":2108},{"a":2183,"t":"code","b":[198,38],"m":"dec","o":"INPUT_LEN","oa":38},{"a":2185,"t":"code","b":[164,38],"m":"ldy","o":"INPUT_LEN","oa":38},{"a":2187,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":2189,"t":"code","b":[145,14],"m":"sta","o":"(AUX_PTR),y","oa":14},{"a":2191,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2193,"t":"code","b":[141,73,9],"m":"sta","o":"a_0949","oa":2377},{"a":2196,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":2198,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2201,"t":"code","b":[198,36],"m":"dec","o":"CURRENT_COLUMN","oa":36},{"a":2203,"t":"code","b":[198,36],"m":"dec","o":"CURRENT_COLUMN","oa":36},{"a":2205,"t":"code","b":[198,36],"m":"dec","o":"CURRENT_COLUMN","oa":36},{"a":2207,"t":"code","b":[165,6],"m":"lda","o":"SCREEN_CURSOR_PTR","oa":6},{"a":2209,"t":"code","b":[56],"m":"sec"},{"a":2210,"t":"code","b":[233,3],"m":"sbc","o":"#$03"},{"a":2212,"t":"code","b":[133,6],"m":"sta","o":"SCREEN_CURSOR_PTR","oa":6},{"a":2214,"t":"code","b":[176,2],"m":"bcs","o":"READ_INPUT_BACKSPACE_COLOR","oa":2218},{"a":2216,"t":"code","b":[198,7],"m":"dec","o":"zpa_07","oa":7},{"a":2218,"l":"READ_INPUT_BACKSPACE_COLOR","t":"code","b":[165,8],"m":"lda","o":"COLOR_CURSOR_PTR","oa":8,"x":[2214]},{"a":2220,"t":"code","b":[56],"m":"sec"},{"a":2221,"t":"code","b":[233,3],"m":"sbc","o":"#$03"},{"a":2223,"t":"code","b":[133,8],"m":"sta","o":"COLOR_CURSOR_PTR","oa":8},{"a":2225,"t":"code","b":[176,2],"m":"bcs","o":"READ_INPUT_REDRAW_CURSOR","oa":2229},{"a":2227,"t":"code","b":[198,9],"m":"dec","o":"zpa_09","oa":9},{"a":2229,"l":"READ_INPUT_REDRAW_CURSOR","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[2225]},{"a":2231,"t":"code","b":[141,73,9],"m":"sta","o":"a_0949","oa":2377},{"a":2234,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":2236,"t":"code","b":[161,6],"m":"lda","o":"(SCREEN_CURSOR_PTR,x)","oa":6},{"a":2238,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2241,"t":"code","b":[76,123,8],"m":"jmp","o":"READ_INPUT_RESET_REPEAT","oa":2171},{"a":2244,"l":"READ_INPUT_TIMED_OUT","s":"timeout: finish + sentence $13","t":"code","b":[32,205,8],"m":"jsr","o":"FINISH_INPUT_LINE","oa":2253,"x":[2120]},{"a":2247,"t":"code","b":[169,19],"m":"lda","o":"#$13"},{"a":2249,"t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":2252,"t":"code","b":[96],"m":"rts"},{"a":2253,"l":"FINISH_INPUT_LINE","c":"FINISH_INPUT_LINE ($08CD)\nPurpose: Close a command line: disable the input caret, restore the ordinary blue text colour, and advance to a fresh line.\nInputs: None.\nOutputs: The caret gate at $0949 cleared to zero, CURRENT_CHAR_COLOR ($0286) set to 6 (blue), and the line ended with spaces, so the cursor sits at column zero of the next line (a whole blank line only when the typed line had just filled one). Normally returns with A=$00 and Z set.\nAssumptions: The caret gate is an immediate operand inside PRINT_CHARACTER's scroll tail, so clearing it here suppresses the caret for all subsequent output until the editor sets it again.\nClobbers: A, X, flags, the caret-gate operand at $0949, CURRENT_CHAR_COLOR, CURRENT_COLUMN, the terminal cursors, and, when the screen scrolls, Y, MEMCPY_SOURCE ($0A/$0B), WORK_PTR ($0C/$0D), SCRATCH_BYTE_2 ($04) and the byte at $079E.\nHardware changes: Writes screen RAM at $CC00-$CFFF and colour RAM at $D800-$DBFF through PRINT_CHARACTER.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[2137,2244]},{"a":2255,"t":"code","b":[141,73,9],"m":"sta","o":"a_0949","oa":2377},{"a":2258,"s":"char color = 6 (blue)","t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":2260,"t":"code","b":[141,134,2],"m":"sta","o":"C64_WORKSPACE_TEXT_COLOR","oa":646},{"a":2263,"t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":2266,"t":"code","b":[96],"m":"rts"},{"a":2267,"l":"PRINT_CHARACTER","c":"PRINT_CHARACTER ($08DB)\nPurpose: Write one screen code at the terminal cursor in the current colour, advance both cursors and the column, wrap at column 39, and scroll the text window when the cursor passes the last row. All the engine's text goes through here; only the caret and the opening's two corner glyphs ($15B2-$15C1) are stored straight into the screen.\nInputs: A = screen code. SCREEN_CURSOR_PTR ($06/$07), COLOR_CURSOR_PTR ($08/$09), CURRENT_COLUMN ($24) and CURRENT_CHAR_COLOR ($0286).\nOutputs: One screen cell and its colour cell written; both sixteen-bit cursors incremented; CURRENT_COLUMN advanced or reset to zero; the window scrolled and the caret optionally repainted.\nAssumptions: The two cursors must stay in step, on the same cell of the screen ($CC00) and colour RAM ($D800). In play they stay in the text window, $CD90-$CFE7 / $D990-$DBE7; the opening prints its title and credits from $CC00 / $D800. The scroll test compares the screen cursor with $CFE8, one past the screen's last cell, so it triggers as soon as a character has been written in that cell.\nClobbers: A, X, Y, flags, both cursors, CURRENT_COLUMN, and, when scrolling, MEMCPY_SOURCE/WORK_PTR, SCRATCH_BYTE_2 ($04) and MEMCPY's self-modified tail operand.\nHardware changes: Writes screen RAM at $CC00-$CFFF and colour RAM at $D800-$DBFF. Colour RAM is only four bits wide, so the stored colour reads back as the low nibble.","s":"screen RAM[cursor] = char","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[2099,2168,2198,2238,2405,2412,2426,2443,2450,2648,2671,2841,2882,2887,2893,2968,2973,4861,4895]},{"a":2269,"s":"Print char to current position","t":"code","b":[129,6],"m":"sta","o":"(SCREEN_CURSOR_PTR,x)","oa":6},{"a":2271,"s":"color RAM[cursor] = CURRENT_CHAR_COLOR","t":"code","b":[173,134,2],"m":"lda","o":"C64_WORKSPACE_TEXT_COLOR","oa":646},{"a":2274,"s":"Set color to corresponding position","t":"code","b":[129,8],"m":"sta","o":"(COLOR_CURSOR_PTR,x)","oa":8},{"a":2276,"s":"cursor ptr++ (16-bit)","t":"code","b":[230,6],"m":"inc","o":"SCREEN_CURSOR_PTR","oa":6},{"a":2278,"t":"code","b":[208,2],"m":"bne","o":"INC_COLOR_PTR","oa":2282},{"a":2280,"t":"code","b":[230,7],"m":"inc","o":"zpa_07","oa":7},{"a":2282,"l":"INC_COLOR_PTR","s":"color ptr++ (16-bit)","t":"code","b":[230,8],"m":"inc","o":"COLOR_CURSOR_PTR","oa":8,"x":[2278]},{"a":2284,"t":"code","b":[208,2],"m":"bne","o":"SET_COLUMN","oa":2288},{"a":2286,"t":"code","b":[230,9],"m":"inc","o":"zpa_09","oa":9},{"a":2288,"l":"SET_COLUMN","s":"at last column (39)?","t":"code","b":[165,36],"m":"lda","o":"CURRENT_COLUMN","oa":36,"x":[2284]},{"a":2290,"s":"Last column","t":"code","b":[201,39],"m":"cmp","o":"#$27"},{"a":2292,"s":"yes -> wrap to new line","t":"code","b":[240,5],"m":"beq","o":"RESET_COLUMN","oa":2299},{"a":2294,"s":"else column++","t":"code","b":[230,36],"m":"inc","o":"CURRENT_COLUMN","oa":36},{"a":2296,"t":"code","b":[76,255,8],"m":"jmp","o":"SCROLL_IF_BOTTOM","oa":2303},{"a":2299,"l":"RESET_COLUMN","s":"RESET_COLUMN: column = 0","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[2292]},{"a":2301,"t":"code","b":[133,36],"m":"sta","o":"CURRENT_COLUMN","oa":36},{"a":2303,"l":"SCROLL_IF_BOTTOM","c":"When the cursor reaches $CFE8, one past the screen's last cell, the text window scrolls up one row:\nrows 11-24 move up to rows 10-23 ($CDB8 to $CD90, 560 bytes) and their colours with them ($D9B8 to\n$D990); the cursor goes back to $CFC0, the start of the last row, which is cleared to spaces.","t":"code","b":[169,232],"m":"lda","o":"#$E8","x":[2296]},{"a":2305,"s":"cursor low byte = $E8?","t":"code","b":[197,6],"m":"cmp","o":"SCREEN_CURSOR_PTR","oa":6},{"a":2307,"s":"\u2193","t":"code","b":[208,67],"m":"bne","o":"SCROLL_DONE","oa":2376},{"a":2309,"t":"code","b":[169,207],"m":"lda","o":"#$CF"},{"a":2311,"s":"cursor high == $CF? (last row)","t":"code","b":[197,7],"m":"cmp","o":"zpa_07","oa":7},{"a":2313,"s":"\u2191Cursor is past the end of screen RAM?","t":"code","b":[208,61],"m":"bne","o":"SCROLL_DONE","oa":2376},{"a":2315,"s":"scroll screen rows up (MEMCPY)","t":"code","b":[169,184],"m":"lda","o":"#$B8"},{"a":2317,"t":"code","b":[133,10],"m":"sta","o":"MEMCPY_SOURCE","oa":10},{"a":2319,"s":"\u219112th row (CDB8h - CC00h = 440 = 40 * 11)","t":"code","b":[169,205],"m":"lda","o":"#$CD"},{"a":2321,"t":"code","b":[133,11],"m":"sta","o":"zpa_0B","oa":11},{"a":2323,"s":"\u2193","t":"code","b":[169,144],"m":"lda","o":"#$90"},{"a":2325,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":2327,"s":"\u219111th row (CD90h - CC00h = 400 = 40 * 10)","t":"code","b":[169,205],"m":"lda","o":"#$CD"},{"a":2329,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2331,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":2333,"t":"code","b":[160,48],"m":"ldy","o":"#$30"},{"a":2335,"s":"Scroll rows 12th..25th (2 * 256 + 48 = 560 bytes = 14 rows)","t":"code","b":[32,121,7],"m":"jsr","o":"MEMCPY","oa":1913},{"a":2338,"s":"scroll color RAM up to match","t":"code","b":[169,184],"m":"lda","o":"#$B8"},{"a":2340,"t":"code","b":[133,10],"m":"sta","o":"MEMCPY_SOURCE","oa":10},{"a":2342,"t":"code","b":[169,217],"m":"lda","o":"#$D9"},{"a":2344,"t":"code","b":[133,11],"m":"sta","o":"zpa_0B","oa":11},{"a":2346,"t":"code","b":[169,144],"m":"lda","o":"#$90"},{"a":2348,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":2350,"t":"code","b":[169,217],"m":"lda","o":"#$D9"},{"a":2352,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2354,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":2356,"t":"code","b":[160,48],"m":"ldy","o":"#$30"},{"a":2358,"s":"Mirrors the copy above, for color RAM ($D9B8 to $D990)","t":"code","b":[32,121,7],"m":"jsr","o":"MEMCPY","oa":1913},{"a":2361,"s":"cursor -> $CFC0 (last row)","t":"code","b":[169,192],"m":"lda","o":"#$C0"},{"a":2363,"t":"code","b":[133,6],"m":"sta","o":"SCREEN_CURSOR_PTR","oa":6},{"a":2365,"t":"code","b":[133,8],"m":"sta","o":"COLOR_CURSOR_PTR","oa":8},{"a":2367,"s":"clear last row (40 spaces)","t":"code","b":[160,39],"m":"ldy","o":"#$27"},{"a":2369,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":2371,"l":"CLEAR_LAST_ROW","t":"code","b":[145,6],"m":"sta","o":"(SCREEN_CURSOR_PTR),y","oa":6,"x":[2374]},{"a":2373,"t":"code","b":[136],"m":"dey"},{"a":2374,"t":"code","b":[16,251],"m":"bpl","o":"CLEAR_LAST_ROW","oa":2371},{"a":2376,"l":"SCROLL_DONE","s":"A = caret-enable flag (operand at $0949 is self-modified); 0 -> skip caret, nonzero -> DRAW_INPUT_CURSOR","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[2307,2313]},{"a":2377,"t":"note","l":"a_0949","c":"Self-modified input-caret enable byte, the immediate operand of LDA at $0948. Zero skips DRAW_INPUT_CURSOR; nonzero draws glyph $3D at the cursor after every character PRINT_CHARACTER prints (after the scroll and the clearing of the last row, when there was one).","note":"inside the item at $0948","x":[2094,2193,2231,2255]},{"a":2378,"t":"code","b":[240,10],"m":"beq","o":"RETURN_FROM_SCROLL","oa":2390},{"a":2380,"l":"DRAW_INPUT_CURSOR","c":"DRAW_INPUT_CURSOR ($094C)\nPurpose: Paint the line-input caret, screen code $3D in light grey, at the current terminal position. Reached from PRINT_CHARACTER's scroll tail only when the caret gate is enabled, so the caret follows every echoed keystroke.\nInputs: SCREEN_CURSOR_PTR ($06/$07) and COLOR_CURSOR_PTR ($08/$09). The gate is the immediate operand at $0949, written from outside PRINT_CHARACTER by the editor ($082E and $08B7 enable it, $0891 and FINISH_INPUT_LINE at $08CF clear it).\nOutputs: One screen cell set to $3D and its colour cell set to $0F (light grey).\nAssumptions: This is not debug code: it is the only caret the engine draws, and it is deliberately suppressed outside line editing so ordinary narrative output leaves no stray character.\nClobbers: A, X, flags. Y is preserved.\nHardware changes: Writes one screen cell in $CC00-$CFFF and one colour cell in $D800-$DBFF.","s":"screen code $3D = input caret glyph","t":"code","b":[169,61],"m":"lda","o":"#$3D"},{"a":2382,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":2384,"t":"code","b":[129,6],"m":"sta","o":"(SCREEN_CURSOR_PTR,x)","oa":6},{"a":2386,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":2388,"t":"code","b":[129,8],"m":"sta","o":"(COLOR_CURSOR_PTR,x)","oa":8},{"a":2390,"l":"RETURN_FROM_SCROLL","t":"code","b":[96],"m":"rts","x":[2378]},{"a":2391,"l":"PRINT_ROOM_TEXT_DROPCAP","c":"PRINT_ROOM_TEXT_DROPCAP ($0957)\nPurpose: Render the first letter of a room description as a two-by-two drop capital built from four consecutive custom glyphs, in yellow (colour 7), then restore the previous text colour.\nInputs: A = the top-left glyph code. The caller derives it as $7B + 4*(letter - 'A') from the description's leading letter.\nOutputs: Four screen cells and their colour cells written: the top pair, then thirty-eight spaces in the caller's colour to reach the next row, then the bottom pair. CURRENT_CHAR_COLOR ($0286) is restored to its entry value.\nAssumptions: The gameplay character set at $F800 contains the four-cell drop-cap glyphs at $7B upwards. Its one caller, PRINT_ROOM_TEXT, leaves the cursor at column 2 (a line end and two spaces); the top pair and thirty-eight spaces make exactly forty cells, so the bottom pair lands directly underneath the top pair from whatever column it starts.\nClobbers: A, X, Y, flags, SCRATCH_BYTE ($02), SCRATCH_INDEX ($03), SAVED_CHAR_COLOR ($05), the terminal cursors, CURRENT_COLUMN, and, when the screen scrolls, MEMCPY_SOURCE ($0A/$0B), WORK_PTR ($0C/$0D), SCRATCH_BYTE_2 ($04) and the byte at $079E.\nHardware changes: Writes screen RAM at $CC00-$CFFF and colour RAM at $D800-$DBFF through PRINT_CHARACTER.","s":"save base char in $02","t":"code","b":[133,2],"m":"sta","o":"SCRATCH_BYTE","oa":2,"x":[2988]},{"a":2393,"t":"code","b":[173,134,2],"m":"lda","o":"C64_WORKSPACE_TEXT_COLOR","oa":646},{"a":2396,"s":"save current color","t":"code","b":[133,5],"m":"sta","o":"SAVED_CHAR_COLOR","oa":5},{"a":2398,"s":"colour 7, yellow","t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":2400,"t":"code","b":[141,134,2],"m":"sta","o":"C64_WORKSPACE_TEXT_COLOR","oa":646},{"a":2403,"t":"code","b":[165,2],"m":"lda","o":"SCRATCH_BYTE","oa":2},{"a":2405,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2408,"t":"code","b":[230,2],"m":"inc","o":"SCRATCH_BYTE","oa":2},{"a":2410,"t":"code","b":[165,2],"m":"lda","o":"SCRATCH_BYTE","oa":2},{"a":2412,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2415,"t":"code","b":[165,5],"m":"lda","o":"SAVED_CHAR_COLOR","oa":5},{"a":2417,"t":"code","b":[141,134,2],"m":"sta","o":"C64_WORKSPACE_TEXT_COLOR","oa":646},{"a":2420,"s":"print $26 spaces (gap) in prior color","t":"code","b":[162,38],"m":"ldx","o":"#$26"},{"a":2422,"l":"DROPCAP_GAP_LOOP","t":"code","b":[169,32],"m":"lda","o":"#$20","x":[2432]},{"a":2424,"t":"code","b":[134,3],"m":"stx","o":"SCRATCH_INDEX","oa":3},{"a":2426,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2429,"t":"code","b":[166,3],"m":"ldx","o":"SCRATCH_INDEX","oa":3},{"a":2431,"t":"code","b":[202],"m":"dex"},{"a":2432,"t":"code","b":[208,244],"m":"bne","o":"DROPCAP_GAP_LOOP","oa":2422},{"a":2434,"s":"colour 7, yellow, again","t":"code","b":[169,7],"m":"lda","o":"#$07"},{"a":2436,"t":"code","b":[141,134,2],"m":"sta","o":"C64_WORKSPACE_TEXT_COLOR","oa":646},{"a":2439,"t":"code","b":[230,2],"m":"inc","o":"SCRATCH_BYTE","oa":2},{"a":2441,"t":"code","b":[165,2],"m":"lda","o":"SCRATCH_BYTE","oa":2},{"a":2443,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2446,"t":"code","b":[230,2],"m":"inc","o":"SCRATCH_BYTE","oa":2},{"a":2448,"t":"code","b":[165,2],"m":"lda","o":"SCRATCH_BYTE","oa":2},{"a":2450,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2453,"t":"code","b":[165,5],"m":"lda","o":"SAVED_CHAR_COLOR","oa":5},{"a":2455,"t":"code","b":[141,134,2],"m":"sta","o":"C64_WORKSPACE_TEXT_COLOR","oa":646},{"a":2458,"t":"code","b":[96],"m":"rts"},{"a":2459,"l":"PRINT_SENTENCE","c":"PRINT_SENTENCE ($099B)\nPurpose: Print one common sentence on a new line, with its first letter capitalised: PRINT_EMPTY_LINE first ends the line the cursor is on (a whole blank line when the cursor is already at column 0). This is the engine's standard way of emitting a canned reply.\nInputs: A = common-sentence id.\nOutputs: The cursor at column 0, then the selected compressed term stream rendered with word wrapping. Tail-jumps into COMPUTE_SENTENCE_PTR_OFS, so the caller's RTS is the renderer's.\nAssumptions: SENTENCE_POINTERS ($1CB0, reached through the base pointer at $1C69) contains a valid entry for the id; ids are not range checked.\nClobbers: A, X, Y, flags, UPPERCASE_LETTER_FLAG ($0AFF), WORK_PTR ($0C/$0D), TERM_DATA_PTR ($22/$23), WORD_REMAINING_LEN ($25), the cursors ($06-$09), CURRENT_COLUMN, and, when the screen scrolls, MEMCPY_SOURCE ($0A/$0B), WORK_PTR ($0C/$0D), SCRATCH_BYTE_2 ($04) and the byte at $079E.\nHardware changes: Writes screen RAM at $CC00-$CFFF and colour RAM at $D800-$DBFF through the renderer.","s":"save sentence id","t":"code","b":[72],"m":"pha","x":[1086,1215,1226,2249,3631,3722,3766,3778,3796,3848,3895,3934,3939,3944,3949,4049,4072,4106,4231,4452,4479,4856,5046,5196,5339]},{"a":2460,"t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":2463,"t":"code","b":[104],"m":"pla"},{"a":2464,"t":"code","b":[168],"m":"tay"},{"a":2465,"s":"UPPERCASE_LETTER_FLAG = 1 (capitalise first letter)","t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":2467,"t":"code","b":[141,255,10],"m":"sta","o":"UPPERCASE_LETTER_FLAG","oa":2815},{"a":2470,"t":"code","b":[152],"m":"tya"},{"a":2471,"s":"-> compute sentence pointer","t":"code","b":[76,170,9],"m":"jmp","o":"COMPUTE_SENTENCE_PTR_OFS","oa":2474},{"a":2474,"l":"COMPUTE_SENTENCE_PTR_OFS","c":"COMPUTE_SENTENCE_PTR_OFS ($09AA)\nPurpose: Resolve a common-sentence id into a term-stream pointer and render it. Doubles the id, adds the sixteen-bit table base, loads the two-byte entry into TERM_DATA_PTR and tail-jumps to PROCESS_TERM.\nInputs: A = common-sentence id. The sentence pointer table base is the word at $1C69.\nOutputs: TERM_DATA_PTR ($22/$23) points at the sentence's term stream, which is then rendered. Control leaves through PROCESS_TERM, so this routine never returns on its own.\nAssumptions: The doubling is done with ASL and a carry test, which supports ids up to 255 and therefore table offsets up to 510. It does not check the id against the table length.\nClobbers: A, Y, flags, WORK_PTR ($0C/$0D), TERM_DATA_PTR, and everything the renderer clobbers.\nHardware changes: Writes screen and colour RAM through the renderer; no device register is programmed.","s":"id * 2 (2-byte table entries)","t":"code","b":[10],"m":"asl","o":"a","x":[1095,2471,4137,4340,4373,4381]},{"a":2475,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":2477,"t":"code","b":[176,7],"m":"bcs","o":"STORE_HIGH_BYTE","oa":2486},{"a":2479,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2481,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2483,"t":"code","b":[76,186,9],"m":"jmp","o":"COMPUTE_SENTENCE_PTR","oa":2490},{"a":2486,"l":"STORE_HIGH_BYTE","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[2477]},{"a":2488,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2490,"l":"COMPUTE_SENTENCE_PTR","c":"Compute sentence pointer","t":"code","b":[165,12],"m":"lda","o":"WORK_PTR","oa":12,"x":[2483]},{"a":2492,"t":"code","b":[24],"m":"clc"},{"a":2493,"s":"+ SENTENCE_POINTERS_BASE_ADDR","t":"code","b":[109,105,28],"m":"adc","o":"SENTENCE_POINTERS_BASE_ADDR","oa":7273},{"a":2496,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":2498,"t":"code","b":[165,13],"m":"lda","o":"zpa_0D","oa":13},{"a":2500,"t":"code","b":[109,106,28],"m":"adc","o":"a_1C6A","oa":7274},{"a":2503,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2505,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":2507,"s":"read sentence data ptr -> TERM_DATA_PTR","t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":2509,"t":"code","b":[133,34],"m":"sta","o":"TERM_DATA_PTR","oa":34},{"a":2511,"t":"code","b":[200],"m":"iny"},{"a":2512,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":2514,"t":"code","b":[133,35],"m":"sta","o":"zpa_23","oa":35},{"a":2516,"s":"render it (PROCESS_TERM)","t":"code","b":[76,14,10],"m":"jmp","o":"PROCESS_TERM","oa":2574},{"a":2519,"l":"PRINT_EVENT_TEXT","c":"PRINT_EVENT_TEXT ($09D7)\nPurpose: Render one event-text entry: capitalise the first letter, end the line (a blank line when the cursor is already at column 0) and indent two spaces, then resolve the id through the event pointer table and render the stream.\nInputs: A = event-text id. The event pointer table base is the word at $2F02.\nOutputs: A new indented paragraph containing the event text. Tail-jumps to PROCESS_TERM.\nAssumptions: Event ids come from the scripts and are not range checked. The word at $2F02 is part of each part's data, so the same id means different text in each part.\nClobbers: A, X, Y, flags, UPPERCASE_LETTER_FLAG ($0AFF), WORK_PTR ($0C/$0D), TERM_DATA_PTR ($22/$23), and the terminal state.\nHardware changes: Writes screen and colour RAM through the renderer.","t":"code","b":[72],"m":"pha","x":[4100]},{"a":2520,"s":"UPPERCASE_LETTER_FLAG = 1","t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":2522,"t":"code","b":[141,255,10],"m":"sta","o":"UPPERCASE_LETTER_FLAG","oa":2815},{"a":2525,"s":"End the line and indent two spaces before the event text.","t":"code","b":[32,61,11],"m":"jsr","o":"PRINT_PARAGRAPH_INDENT","oa":2877},{"a":2528,"t":"code","b":[104],"m":"pla"},{"a":2529,"s":"id * 2","t":"code","b":[10],"m":"asl","o":"a"},{"a":2530,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":2532,"t":"code","b":[176,7],"m":"bcs","o":"EVENT_TEXT_INDEX_HIGH","oa":2541},{"a":2534,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2536,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2538,"t":"code","b":[76,241,9],"m":"jmp","o":"EVENT_TEXT_ADD_TABLE_BASE","oa":2545},{"a":2541,"l":"EVENT_TEXT_INDEX_HIGH","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[2532]},{"a":2543,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2545,"l":"EVENT_TEXT_ADD_TABLE_BASE","t":"code","b":[165,12],"m":"lda","o":"WORK_PTR","oa":12,"x":[2538]},{"a":2547,"t":"code","b":[24],"m":"clc"},{"a":2548,"s":"+ $2F02 table base low","t":"code","b":[109,2,47],"m":"adc","o":"$2F02","oa":12034},{"a":2551,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":2553,"t":"code","b":[165,13],"m":"lda","o":"zpa_0D","oa":13},{"a":2555,"s":"+ $2F03 base high -> entry ptr","t":"code","b":[109,3,47],"m":"adc","o":"$2F03","oa":12035},{"a":2558,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2560,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":2562,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":2564,"t":"code","b":[133,34],"m":"sta","o":"TERM_DATA_PTR","oa":34},{"a":2566,"t":"code","b":[200],"m":"iny"},{"a":2567,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":2569,"t":"code","b":[133,35],"m":"sta","o":"zpa_23","oa":35},{"a":2571,"t":"code","b":[76,14,10],"m":"jmp","o":"PROCESS_TERM","oa":2574},{"a":2574,"l":"PROCESS_TERM","c":"PROCESS_TERM ($0A0E)\nPurpose: Interpret one compressed term stream with word wrapping until the '@' terminator. Bytes with bit 7 set are dictionary tokens and are expanded; other bytes begin a literal word whose length is measured before printing so that a word which would cross column 40 is preceded by a line break.\nInputs: TERM_DATA_PTR ($22/$23) points at the stream; CURRENT_COLUMN ($24) is the live column; UPPERCASE_LETTER_FLAG ($0AFF) selects capitalisation of the next letter.\nOutputs: The stream is rendered to the terminal with word wrapping and inter-word spaces; returns when the terminator is consumed.\nAssumptions: The wrap threshold is a hard-coded 41 ($29) compared against column plus word length. A word longer than forty characters would still overflow. The routine is not re-entered: PROCESS_TOKEN saves TERM_DATA_PTR on the stack, prints the dictionary word with PRINT_WORD, restores the pointer and rejoins this loop at TEST_ADD_SPACE.\nClobbers: A, X, Y, flags, WORD_REMAINING_LEN ($25), TERM_DATA_PTR, WORK_PTR ($0C/$0D), UPPERCASE_LETTER_FLAG, the terminal cursors, CURRENT_COLUMN, and, when the screen scrolls, MEMCPY_SOURCE ($0A/$0B), WORK_PTR ($0C/$0D), SCRATCH_BYTE_2 ($04) and the byte at $079E.\nHardware changes: Writes screen RAM at $CC00-$CFFF and colour RAM at $D800-$DBFF through PRINT_CHARACTER.","s":"WORD_REMAINING_LEN = 1","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[2516,2571,2640,2644,2651,3002,4214,4357]},{"a":2576,"t":"code","b":[133,37],"m":"sta","o":"WORD_REMAINING_LEN","oa":37},{"a":2578,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":2580,"s":"read next term byte","t":"code","b":[177,34],"m":"lda","o":"(TERM_DATA_PTR),y","oa":34},{"a":2582,"s":"'@' end of sentence?","t":"code","b":[201,64],"m":"cmp","o":"#$40"},{"a":2584,"t":"code","b":[208,1],"m":"bne","o":"TOKEN_TEST","oa":2587},{"a":2586,"t":"code","b":[96],"m":"rts"},{"a":2587,"l":"TOKEN_TEST","s":"bit7 set -> token","t":"code","b":[41,128],"m":"and","o":"#$80","x":[2584]},{"a":2589,"t":"code","b":[208,84],"m":"bne","o":"PROCESS_TOKEN","oa":2675},{"a":2591,"s":"scan literal word, measuring its length","t":"code","b":[200],"m":"iny"},{"a":2592,"l":"DISPATCH_CHARACTER","t":"code","b":[177,34],"m":"lda","o":"(TERM_DATA_PTR),y","oa":34,"x":[2616]},{"a":2594,"s":"Sentence terminator","t":"code","b":[201,64],"m":"cmp","o":"#$40"},{"a":2596,"t":"code","b":[240,56],"m":"beq","o":"TEST_WORD_FITS_SCREEN_2","oa":2654},{"a":2598,"s":"Before capital `A`?","t":"code","b":[201,65],"m":"cmp","o":"#$41"},{"a":2600,"t":"code","b":[144,7],"m":"bcc","o":"CONTINUE_WORD_SCAN","oa":2609},{"a":2602,"s":"Past capital `Z`? (lower case $61-$7A continues the word)","t":"code","b":[201,91],"m":"cmp","o":"#$5B"},{"a":2604,"t":"code","b":[176,3],"m":"bcs","o":"CONTINUE_WORD_SCAN","oa":2609},{"a":2606,"t":"code","b":[76,59,10],"m":"jmp","o":"TEST_WORD_FITS_SCREEN_1","oa":2619},{"a":2609,"l":"CONTINUE_WORD_SCAN","t":"code","b":[41,128],"m":"and","o":"#$80","x":[2600,2604]},{"a":2611,"t":"code","b":[208,6],"m":"bne","o":"TEST_WORD_FITS_SCREEN_1","oa":2619},{"a":2613,"s":"WORD_REMAINING_LEN++","t":"code","b":[230,37],"m":"inc","o":"WORD_REMAINING_LEN","oa":37},{"a":2615,"t":"code","b":[200],"m":"iny"},{"a":2616,"t":"code","b":[76,32,10],"m":"jmp","o":"DISPATCH_CHARACTER","oa":2592},{"a":2619,"l":"TEST_WORD_FITS_SCREEN_1","c":"If CURRENT_COLUMN + WORD_REMAINING_LEN >= $29 (41), emit a newline (PRINT_EMPTY_LINE) before\nprinting the word (PRINT_WORD). Then TEST_ADD_SPACE adds a separating space unless the next\nchar is a '.' or we're at column 0.","t":"code","b":[165,37],"m":"lda","o":"WORD_REMAINING_LEN","oa":37,"x":[2606,2611]},{"a":2621,"t":"code","b":[24],"m":"clc"},{"a":2622,"s":"column + word length","t":"code","b":[101,36],"m":"adc","o":"CURRENT_COLUMN","oa":36},{"a":2624,"s":">= 41, past the 40-column width -> wrap","t":"code","b":[201,41],"m":"cmp","o":"#$29"},{"a":2626,"t":"code","b":[144,3],"m":"bcc","o":"CALL_PRINT_WORD","oa":2631},{"a":2628,"s":"newline","t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":2631,"l":"CALL_PRINT_WORD","s":"print the word","t":"code","b":[32,219,10],"m":"jsr","o":"PRINT_WORD","oa":2779,"x":[2626]},{"a":2634,"l":"TEST_ADD_SPACE","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[2776]},{"a":2636,"t":"code","b":[177,34],"m":"lda","o":"(TERM_DATA_PTR),y","oa":34},{"a":2638,"s":"next char '.'? -> no space","t":"code","b":[201,46],"m":"cmp","o":"#$2E"},{"a":2640,"t":"code","b":[240,188],"m":"beq","o":"PROCESS_TERM","oa":2574},{"a":2642,"s":"If column 0, don't print a space","t":"code","b":[165,36],"m":"lda","o":"CURRENT_COLUMN","oa":36},{"a":2644,"t":"code","b":[240,184],"m":"beq","o":"PROCESS_TERM","oa":2574},{"a":2646,"s":"add separating space","t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":2648,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2651,"t":"code","b":[76,14,10],"m":"jmp","o":"PROCESS_TERM","oa":2574},{"a":2654,"l":"TEST_WORD_FITS_SCREEN_2","t":"code","b":[165,37],"m":"lda","o":"WORD_REMAINING_LEN","oa":37,"x":[2596]},{"a":2656,"t":"code","b":[24],"m":"clc"},{"a":2657,"t":"code","b":[101,36],"m":"adc","o":"CURRENT_COLUMN","oa":36},{"a":2659,"s":"overflow screen?","t":"code","b":[201,41],"m":"cmp","o":"#$29"},{"a":2661,"t":"code","b":[144,3],"m":"bcc","o":"PRINT_WORD_AND_SPACE","oa":2666},{"a":2663,"t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":2666,"l":"PRINT_WORD_AND_SPACE","t":"code","b":[32,219,10],"m":"jsr","o":"PRINT_WORD","oa":2779,"x":[2661]},{"a":2669,"s":"Space","t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":2671,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2674,"t":"code","b":[96],"m":"rts"},{"a":2675,"l":"PROCESS_TOKEN","c":"Token id has bit7 set; (id & $7F)*2 indexes TOKEN_POINTERS_BASE_ADDR ($25DD) to get a pointer\nto the token's text. Saves the current TERM_DATA_PTR, points it at the token text, PRINT_WORDs\nthe expansion with UPPERCASE_LETTER_FLAG forced to 1 ($0ABF), so the word keeps the case it is\nstored in, then clears the flag, restores TERM_DATA_PTR and resumes the sentence. Tokens encode\nfrequently-used words to compress the text.","t":"code","b":[177,34],"m":"lda","o":"(TERM_DATA_PTR),y","oa":34,"x":[2589]},{"a":2677,"t":"code","b":[168],"m":"tay"},{"a":2678,"s":"push current TERM_DATA_PTR","t":"code","b":[165,34],"m":"lda","o":"TERM_DATA_PTR","oa":34},{"a":2680,"t":"code","b":[72],"m":"pha"},{"a":2681,"t":"code","b":[165,35],"m":"lda","o":"zpa_23","oa":35},{"a":2683,"t":"code","b":[72],"m":"pha"},{"a":2684,"s":"Restore token","t":"code","b":[152],"m":"tya"},{"a":2685,"s":"drop token bit7","t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":2687,"s":"id * 2 (word table entries)","t":"code","b":[10],"m":"asl","o":"a"},{"a":2688,"s":"Store processed token","t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":2690,"s":"Can't reach, because `AND 7Fh` clears the high bit.","t":"code","b":[176,7],"m":"bcs","o":"STORE_HIGH_BYTE","oa":2699},{"a":2692,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2694,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2696,"t":"code","b":[76,143,10],"m":"jmp","o":"COMPUTE_TOKEN_ADDR","oa":2703},{"a":2699,"l":"STORE_HIGH_BYTE","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[2690]},{"a":2701,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2703,"l":"COMPUTE_TOKEN_ADDR","s":"Load processed token","t":"code","b":[165,12],"m":"lda","o":"WORK_PTR","oa":12,"x":[2696]},{"a":2705,"s":"Compute token address\u2026","t":"code","b":[24],"m":"clc"},{"a":2706,"s":"+ TOKEN_POINTERS_BASE_ADDR ($25DD)","t":"code","b":[109,103,28],"m":"adc","o":"TOKEN_POINTERS_BASE_ADDR","oa":7271},{"a":2709,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":2711,"t":"code","b":[165,13],"m":"lda","o":"zpa_0D","oa":13},{"a":2713,"t":"code","b":[109,104,28],"m":"adc","o":"a_1C68","oa":7272},{"a":2716,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2718,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":2720,"s":"read token text ptr -> TERM_DATA_PTR","t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":2722,"s":"\u2026and store into TERM_DATA_PTR","t":"code","b":[133,34],"m":"sta","o":"TERM_DATA_PTR","oa":34},{"a":2724,"t":"code","b":[200],"m":"iny"},{"a":2725,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":2727,"t":"code","b":[133,35],"m":"sta","o":"zpa_23","oa":35},{"a":2729,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":2731,"s":"token length (first byte)","t":"code","b":[161,34],"m":"lda","o":"(TERM_DATA_PTR,x)","oa":34},{"a":2733,"t":"code","b":[133,37],"m":"sta","o":"WORD_REMAINING_LEN","oa":37},{"a":2735,"t":"code","b":[24],"m":"clc"},{"a":2736,"t":"code","b":[101,36],"m":"adc","o":"CURRENT_COLUMN","oa":36},{"a":2738,"s":"would overflow width? -> newline","t":"code","b":[201,41],"m":"cmp","o":"#$29"},{"a":2740,"t":"code","b":[144,3],"m":"bcc","o":"MOVE_POINTER_TO_CHARS","oa":2745},{"a":2742,"t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":2745,"l":"MOVE_POINTER_TO_CHARS","s":"skip length byte -> token chars","t":"code","b":[230,34],"m":"inc","o":"TERM_DATA_PTR","oa":34,"x":[2740]},{"a":2747,"t":"code","b":[208,2],"m":"bne","o":"PRINT_TERM","oa":2751},{"a":2749,"t":"code","b":[230,35],"m":"inc","o":"zpa_23","oa":35},{"a":2751,"l":"PRINT_TERM","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[2747]},{"a":2753,"t":"code","b":[141,255,10],"m":"sta","o":"UPPERCASE_LETTER_FLAG","oa":2815},{"a":2756,"s":"print the token expansion","t":"code","b":[32,219,10],"m":"jsr","o":"PRINT_WORD","oa":2779},{"a":2759,"s":"restore TERM_DATA_PTR (resume sentence)","t":"code","b":[104],"m":"pla"},{"a":2760,"t":"code","b":[133,35],"m":"sta","o":"zpa_23","oa":35},{"a":2762,"t":"code","b":[104],"m":"pla"},{"a":2763,"t":"code","b":[133,34],"m":"sta","o":"TERM_DATA_PTR","oa":34},{"a":2765,"t":"code","b":[230,34],"m":"inc","o":"TERM_DATA_PTR","oa":34},{"a":2767,"t":"code","b":[208,2],"m":"bne","o":"RESUME_SENTENCE","oa":2771},{"a":2769,"t":"code","b":[230,35],"m":"inc","o":"zpa_23","oa":35},{"a":2771,"l":"RESUME_SENTENCE","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[2767]},{"a":2773,"t":"code","b":[141,255,10],"m":"sta","o":"UPPERCASE_LETTER_FLAG","oa":2815},{"a":2776,"t":"code","b":[76,74,10],"m":"jmp","o":"TEST_ADD_SPACE","oa":2634},{"a":2779,"l":"PRINT_WORD","c":"PRINT_WORD ($0ADB)\nPurpose: Emit the characters of one literal word or expanded token, applying the inline control codes: '.' prints a full stop and arms capitalisation, '<' emits a line break, $FF takes the following byte as a new text colour, and, while UPPERCASE_FILTER_ENABLED ($0AF5) is nonzero, A-Z are folded to lowercase unless the capitalisation flag is set. The filter is zero in the opening, so the title and credits $1580 prints through here keep their stored case; $076A turns it on when play begins.\nInputs: TERM_DATA_PTR ($22/$23) points at the first character; WORD_REMAINING_LEN ($25) is the character count; UPPERCASE_LETTER_FLAG ($0AFF) selects the case of the next letter.\nOutputs: The characters are printed, TERM_DATA_PTR is advanced past them, WORD_REMAINING_LEN reaches zero, and the capitalisation flag is cleared once it has been consumed.\nAssumptions: The $FF colour escape consumes one extra byte and decrements the length accordingly, so a stream that ends immediately after $FF would read past the word. Colour values are written straight to CURRENT_CHAR_COLOR without masking.\nClobbers: A, X, flags, TERM_DATA_PTR, WORD_REMAINING_LEN, UPPERCASE_LETTER_FLAG, CURRENT_CHAR_COLOR ($0286), the terminal cursors, CURRENT_COLUMN, and, when the screen scrolls, Y, MEMCPY_SOURCE ($0A/$0B), WORK_PTR ($0C/$0D), SCRATCH_BYTE_2 ($04) and the byte at $079E.\nHardware changes: Writes screen RAM at $CC00-$CFFF and colour RAM at $D800-$DBFF through PRINT_CHARACTER.","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[2631,2666,2756,2852,4890,5533,5551]},{"a":2781,"s":"read char","t":"code","b":[161,34],"m":"lda","o":"(TERM_DATA_PTR,x)","oa":34},{"a":2783,"s":"'.'?","t":"code","b":[201,46],"m":"cmp","o":"#$2E"},{"a":2785,"t":"code","b":[240,47],"m":"beq","o":"HANDLE_DOT","oa":2834},{"a":2787,"s":"'<' newline?","t":"code","b":[201,60],"m":"cmp","o":"#$3C"},{"a":2789,"t":"code","b":[240,80],"m":"beq","o":"HANDLE_NEWLINE","oa":2871},{"a":2791,"s":"$FF colour-change escape?","t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":2793,"t":"code","b":[240,60],"m":"beq","o":"NEXT_CHAR_COLOR_ESCAPE","oa":2855},{"a":2795,"s":"< 'A' -> print as-is","t":"code","b":[201,65],"m":"cmp","o":"#$41"},{"a":2797,"t":"code","b":[144,42],"m":"bcc","o":"PRINT_CHAR_AND_CONTINUE","oa":2841},{"a":2799,"s":"> 'Z' -> print as-is","t":"code","b":[201,91],"m":"cmp","o":"#$5B"},{"a":2801,"t":"code","b":[176,38],"m":"bcs","o":"PRINT_CHAR_AND_CONTINUE","oa":2841},{"a":2803,"s":"letter: check UPPERCASE_LETTER_FLAG","t":"code","b":[72],"m":"pha"},{"a":2804,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2805,"t":"note","l":"UPPERCASE_FILTER_ENABLED","c":"Immediate enable byte for the uppercase filter, initialized to one by $076A. Zero preserves letter case; nonzero checks UPPERCASE_LETTER_FLAG at $0AFF, retains one requested capital and clears that flag, or adds $20 to fold an uppercase ASCII letter to lowercase.","note":"inside the item at $0AF4","x":[1898]},{"a":2806,"t":"code","b":[208,4],"m":"bne","o":"CONTINUE_UPPERCASE_LETTER","oa":2812},{"a":2808,"t":"code","b":[104],"m":"pla"},{"a":2809,"t":"code","b":[76,25,11],"m":"jmp","o":"PRINT_CHAR_AND_CONTINUE","oa":2841},{"a":2812,"l":"CONTINUE_UPPERCASE_LETTER","t":"code","b":[104],"m":"pla","x":[2806]},{"a":2813,"t":"code","b":[72],"m":"pha"},{"a":2814,"s":"flag set -> keep uppercase, clear flag","t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":2815,"t":"note","l":"UPPERCASE_LETTER_FLAG","c":"Immediate one-shot capitalization flag for LDA $0AFE. When nonzero, an uppercase letter is retained and the flag is cleared at $0B04; when zero, the renderer adds $20 to lowercase the letter. The subsequent control-token path sets this flag to capitalize the next letter.","note":"inside the item at $0AFE","x":[2467,2522,2753,2773,2820,2836,4153]},{"a":2816,"t":"code","b":[240,9],"m":"beq","o":"CONTINUE_LOWERCASE_LETTER","oa":2827},{"a":2818,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2820,"t":"code","b":[141,255,10],"m":"sta","o":"UPPERCASE_LETTER_FLAG","oa":2815},{"a":2823,"t":"code","b":[104],"m":"pla"},{"a":2824,"t":"code","b":[76,15,11],"m":"jmp","o":"CONTINUE_ANY_LETTER","oa":2831},{"a":2827,"l":"CONTINUE_LOWERCASE_LETTER","t":"code","b":[104],"m":"pla","x":[2816]},{"a":2828,"t":"code","b":[24],"m":"clc"},{"a":2829,"s":"else fold to lowercase (+$20)","t":"code","b":[105,32],"m":"adc","o":"#$20"},{"a":2831,"l":"CONTINUE_ANY_LETTER","t":"code","b":[76,25,11],"m":"jmp","o":"PRINT_CHAR_AND_CONTINUE","oa":2841,"x":[2824]},{"a":2834,"l":"HANDLE_DOT","c":"Sets UPPERCASE_LETTER_FLAG, prints '.', advances the term pointer, and continues the word.","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[2785]},{"a":2836,"s":"UPPERCASE_LETTER_FLAG = 1","t":"code","b":[141,255,10],"m":"sta","o":"UPPERCASE_LETTER_FLAG","oa":2815},{"a":2839,"s":"print '.'","t":"code","b":[169,46],"m":"lda","o":"#$2E"},{"a":2841,"l":"PRINT_CHAR_AND_CONTINUE","t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267,"x":[2797,2801,2809,2831]},{"a":2844,"l":"INCREMENT_TERM_PTR","t":"code","b":[230,34],"m":"inc","o":"TERM_DATA_PTR","oa":34,"x":[2868,2874]},{"a":2846,"t":"code","b":[208,2],"m":"bne","o":"PROCEED_TO_NEXT_CHAR","oa":2850},{"a":2848,"t":"code","b":[230,35],"m":"inc","o":"zpa_23","oa":35},{"a":2850,"l":"PROCEED_TO_NEXT_CHAR","s":"WORD_REMAINING_LEN-- ; loop","t":"code","b":[198,37],"m":"dec","o":"WORD_REMAINING_LEN","oa":37,"x":[2846]},{"a":2852,"t":"code","b":[208,181],"m":"bne","o":"PRINT_WORD","oa":2779},{"a":2854,"t":"code","b":[96],"m":"rts"},{"a":2855,"l":"NEXT_CHAR_COLOR_ESCAPE","t":"code","b":[230,34],"m":"inc","o":"TERM_DATA_PTR","oa":34,"x":[2793]},{"a":2857,"t":"code","b":[208,2],"m":"bne","o":"NEXT_CHAR_SET_COLOR","oa":2861},{"a":2859,"t":"code","b":[230,35],"m":"inc","o":"zpa_23","oa":35},{"a":2861,"l":"NEXT_CHAR_SET_COLOR","t":"code","b":[198,37],"m":"dec","o":"WORD_REMAINING_LEN","oa":37,"x":[2857]},{"a":2863,"s":"$FF: read next byte as new colour","t":"code","b":[161,34],"m":"lda","o":"(TERM_DATA_PTR,x)","oa":34},{"a":2865,"t":"code","b":[141,134,2],"m":"sta","o":"C64_WORKSPACE_TEXT_COLOR","oa":646},{"a":2868,"t":"code","b":[76,28,11],"m":"jmp","o":"INCREMENT_TERM_PTR","oa":2844},{"a":2871,"l":"HANDLE_NEWLINE","t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891,"x":[2789]},{"a":2874,"t":"code","b":[76,28,11],"m":"jmp","o":"INCREMENT_TERM_PTR","oa":2844},{"a":2877,"l":"PRINT_PARAGRAPH_INDENT","c":"PRINT_PARAGRAPH_INDENT ($0B3D)\nPurpose: Advance to the start of a fresh line and emit a two-space indent, the standard prefix for an inventory item or an event paragraph.\nInputs: None in registers; the terminal cursors and CURRENT_COLUMN ($24) must be valid.\nOutputs: The cursor is at column 2 of a new line.\nAssumptions: PRINT_EMPTY_LINE reaches column zero by padding with spaces, so this also clears the remainder of the current line.\nClobbers: A, X, Y, flags, the terminal cursors, CURRENT_COLUMN, and MEMCPY state if a scroll occurs.\nHardware changes: Writes screen and colour RAM through PRINT_CHARACTER.","t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891,"x":[2525,4132,4148,4332]},{"a":2880,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":2882,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2885,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":2887,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2890,"t":"code","b":[96],"m":"rts"},{"a":2891,"l":"PRINT_EMPTY_LINE","c":"PRINT_EMPTY_LINE ($0B4B)\nPurpose: Advance the cursor to the start of the next line by printing spaces until the column wraps to zero. If the cursor is already at column zero it still emits a whole blank line.\nInputs: CURRENT_COLUMN ($24) and the terminal cursors.\nOutputs: The cursor sits at column zero of a new line; the remainder of the previous line has been overwritten with spaces in the current text colour.\nAssumptions: The loop is written as a self tail-jump rather than a counted loop, so it relies on PRINT_CHARACTER resetting the column exactly at 39.\nClobbers: A, X, Y, flags, the terminal cursors, CURRENT_COLUMN, and MEMCPY state if a scroll occurs.\nHardware changes: Writes screen RAM at $CC00-$CFFF and colour RAM at $D800-$DBFF through PRINT_CHARACTER.","s":"Space","t":"code","b":[169,32],"m":"lda","o":"#$20","x":[1081,1098,2064,2067,2263,2460,2628,2663,2742,2871,2877,2900,2905,4044,4057,4067,4075,4140,4474,4485,4898,5049,5342]},{"a":2893,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2896,"s":"reached column 0? -> done","t":"code","b":[165,36],"m":"lda","o":"CURRENT_COLUMN","oa":36},{"a":2898,"t":"code","b":[240,3],"m":"beq","o":"PRINTING_COMPLETED","oa":2903},{"a":2900,"t":"code","b":[76,75,11],"m":"jmp","o":"PRINT_EMPTY_LINE","oa":2891},{"a":2903,"l":"PRINTING_COMPLETED","t":"code","b":[96],"m":"rts","x":[2898]},{"a":2904,"l":"PRINT_ROOM_TEXT","c":"PRINT_ROOM_TEXT ($0B58)\nPurpose: Print one room description: end the line the cursor is on, convert the global room id to a part-relative index, resolve it through the room-text pointer table, emit two leading spaces, draw the first letter as a drop capital, then render the rest of the stream.\nInputs: A = global room id. CURRENT_PART_NO ($2940) selects the base in PART_ROOM_BASE_IDS ($0DCC); the room-text pointer table base is the word at $2F00.\nOutputs: The room description printed with its two-by-two initial; TERM_DATA_PTR advanced past the leading letter. Tail-jumps to PROCESS_TERM.\nAssumptions: The description's first character is an uppercase A-Z letter, because the drop-cap glyph index is computed as $7B + 4*(char - 'A'). The base table is in the engine; the pointer table, found through the word at $2F00, is part of each part's data.\nClobbers: A, X, Y, flags, SCRATCH_BYTE ($02), SCRATCH_INDEX ($03), SCRATCH_BYTE_2 ($04), SAVED_CHAR_COLOR ($05), WORK_PTR ($0C/$0D), TERM_DATA_PTR ($22/$23), WORD_REMAINING_LEN ($25), UPPERCASE_LETTER_FLAG ($0AFF), CURRENT_CHAR_COLOR ($0286) which is left at 6, the terminal cursors and CURRENT_COLUMN, and, when the screen scrolls, MEMCPY_SOURCE ($0A/$0B) and the byte at $079E.\nHardware changes: Writes screen and colour RAM through the renderer.","t":"code","b":[72],"m":"pha","x":[4238]},{"a":2905,"t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":2908,"t":"code","b":[104],"m":"pla"},{"a":2909,"t":"code","b":[133,2],"m":"sta","o":"SCRATCH_BYTE","oa":2},{"a":2911,"s":"base = PART_ROOM_BASE_IDS[CURRENT_PART_NO], the part's first room","t":"code","b":[172,64,41],"m":"ldy","o":"CURRENT_PART_NO","oa":10560},{"a":2914,"t":"code","b":[185,204,13],"m":"lda","o":"PART_ROOM_BASE_IDS,y","oa":3532},{"a":2917,"t":"code","b":[133,4],"m":"sta","o":"SCRATCH_BYTE_2","oa":4},{"a":2919,"t":"code","b":[165,2],"m":"lda","o":"SCRATCH_BYTE","oa":2},{"a":2921,"t":"code","b":[56],"m":"sec"},{"a":2922,"s":"id -= base (part-relative)","t":"code","b":[229,4],"m":"sbc","o":"SCRATCH_BYTE_2","oa":4},{"a":2924,"s":"* 2 (word table entries)","t":"code","b":[10],"m":"asl","o":"a"},{"a":2925,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":2927,"t":"code","b":[176,7],"m":"bcs","o":"ROOM_TEXT_INDEX_HIGH","oa":2936},{"a":2929,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":2931,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2933,"t":"code","b":[76,124,11],"m":"jmp","o":"ROOM_TEXT_ADD_TABLE_BASE","oa":2940},{"a":2936,"l":"ROOM_TEXT_INDEX_HIGH","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[2927]},{"a":2938,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2940,"l":"ROOM_TEXT_ADD_TABLE_BASE","t":"code","b":[165,12],"m":"lda","o":"WORK_PTR","oa":12,"x":[2933]},{"a":2942,"t":"code","b":[24],"m":"clc"},{"a":2943,"s":"+ the part's ROOM_TEXT_TABLE_PTR ($2F00)","t":"code","b":[109,0,47],"m":"adc","o":"$2F00","oa":12032},{"a":2946,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":2948,"t":"code","b":[165,13],"m":"lda","o":"zpa_0D","oa":13},{"a":2950,"t":"code","b":[109,1,47],"m":"adc","o":"$2F01","oa":12033},{"a":2953,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":2955,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":2957,"s":"read string ptr -> TERM_DATA_PTR","t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":2959,"t":"code","b":[133,34],"m":"sta","o":"TERM_DATA_PTR","oa":34},{"a":2961,"t":"code","b":[200],"m":"iny"},{"a":2962,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":2964,"t":"code","b":[133,35],"m":"sta","o":"zpa_23","oa":35},{"a":2966,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":2968,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2971,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":2973,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":2976,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":2978,"s":"first char -> glyph index","t":"code","b":[161,34],"m":"lda","o":"(TERM_DATA_PTR,x)","oa":34},{"a":2980,"t":"code","b":[56],"m":"sec"},{"a":2981,"t":"code","b":[233,65],"m":"sbc","o":"#$41"},{"a":2983,"t":"code","b":[10],"m":"asl","o":"a"},{"a":2984,"t":"code","b":[10],"m":"asl","o":"a"},{"a":2985,"t":"code","b":[24],"m":"clc"},{"a":2986,"t":"code","b":[105,123],"m":"adc","o":"#$7B"},{"a":2988,"s":"draw the room description's first letter as a 2x2 drop capital","t":"code","b":[32,87,9],"m":"jsr","o":"PRINT_ROOM_TEXT_DROPCAP","oa":2391},{"a":2991,"t":"code","b":[230,34],"m":"inc","o":"TERM_DATA_PTR","oa":34},{"a":2993,"t":"code","b":[208,2],"m":"bne","o":"ROOM_TEXT_SET_BODY_COLOR","oa":2997},{"a":2995,"t":"code","b":[230,35],"m":"inc","o":"zpa_23","oa":35},{"a":2997,"l":"ROOM_TEXT_SET_BODY_COLOR","t":"code","b":[169,6],"m":"lda","o":"#$06","x":[2993]},{"a":2999,"t":"code","b":[141,134,2],"m":"sta","o":"C64_WORKSPACE_TEXT_COLOR","oa":646},{"a":3002,"s":"render the string","t":"code","b":[76,14,10],"m":"jmp","o":"PROCESS_TERM","oa":2574},{"a":3005,"l":"BITMAP_ROW_ADDR_TABLE","c":"Bitmap destination base address for each of the ten illustration character rows.","t":"byte","b":[0,224,64,225,128,226,192,227],"x":[1500,1506]},{"a":3013,"t":"byte","b":[0,229,64,230,128,231,192,232]},{"a":3021,"t":"byte","b":[0,234,64,235]},{"a":3025,"l":"SCREEN_ROW_ADDR_TABLE","c":"SCREEN_ROW_ADDR_TABLE ($0BD1-$0BE4): the screen-RAM address of each of the ten picture rows, ten little-endian words from $CC00 (row 0) to $CD68 (row 9), 40 bytes apart. BLIT_ROOM_GRAPHIC reads it at $0616 and $061C, indexed by twice the row, and adds the column.","t":"byte","b":[0,204],"x":[1558,1564]},{"a":3027,"c":"Second word of SCREEN_ROW_ADDR_TABLE ($0BD1): $CC28, screen row one. The remaining words are $CC50, $CC78, $CCA0, $CCC8, $CCF0, $CD18, $CD40 and $CD68.","t":"byte","b":[40,204,80,204,120,204,160,204]},{"a":3035,"t":"byte","b":[200,204,240,204,24,205,64,205]},{"a":3043,"t":"byte","b":[104,205]},{"a":3045,"l":"COLOR_ROW_ADDR_TABLE","c":"Color-RAM destination base address for each of the ten illustration character rows.","t":"byte","b":[0,216,40,216,80,216,120,216],"x":[1602,1608]},{"a":3053,"t":"byte","b":[160,216,200,216,240,216,24,217]},{"a":3061,"t":"byte","b":[64,217,104,217]},{"a":3065,"l":"ROOM_GRAPHIC_TABLE","c":"ROOM_GRAPHIC_TABLE \u2014 57 fixed six-byte room-illustration descriptors at $0BF9-$0D4E.\nRoomGraphicRecord layout, stride 6:\n+0 start_row\n+1 start_column\n+2 source_ptr, little endian\n+4 height_rows\n+5 width_columns\nBLIT_ROOM_GRAPHIC copies these fields into zero-page blit state, then invokes COPY_BLIT_ROW three times per character row. Each source row is interleaved as width*8 bitmap bytes, width screen-matrix bytes, then width colour-RAM bytes. A record therefore consumes height*width*10 bytes. BITMAP_ROW_ADDR_TABLE, SCREEN_ROW_ADDR_TABLE, and COLOR_ROW_ADDR_TABLE select the ten destination rows in bitmap $E000, screen $CC00, and colour RAM $D800.\nPicture 0 is the shared picture at $A100, always in memory. Pictures 1-20 point into part 1's data, 21-36 into part 2's and 37-56 into part 3's, each set starting at $4300 inside $2F00-$95FF, which a part's load replaces, so only the loaded part's pictures are valid. The table ends at $0D4E: OBJ_ROOM_TABLE follows at $0D4F, and the highest picture it names is $38 (56).","t":"byte","b":[1,3,0,161,8,14,1,5]},{"a":3073,"t":"byte","b":[0,67,8,9,0,4,208,69]},{"a":3081,"t":"byte","b":[10,12,1,4,128,74,8,12]},{"a":3089,"t":"byte","b":[1,4,64,78,7,12,2,3]},{"a":3097,"t":"byte","b":[136,81,6,13,3,1,148,84]},{"a":3105,"t":"byte","b":[4,17,1,5,60,87,8,10]},{"a":3113,"t":"byte","b":[1,1,92,90,8,19,1,4]},{"a":3121,"t":"byte","b":[76,96,9,11,1,1,42,100]},{"a":3129,"t":"byte","b":[8,19,0,4,26,106,10,11]},{"a":3137,"t":"byte","b":[3,4,102,110,5,12,1,5]},{"a":3145,"t":"byte","b":[190,112,8,10,2,2,222,115]},{"a":3153,"t":"byte","b":[7,15,1,5,248,119,9,10]},{"a":3161,"t":"byte","b":[0,1,124,123,10,17,2,2]},{"a":3169,"t":"byte","b":[32,130,6,16,0,6,224,133]},{"a":3177,"t":"byte","b":[10,8,1,2,0,137,9,16]},{"a":3185,"t":"byte","b":[1,2,160,142,9,15,2,5]},{"a":3193,"t":"byte","b":[0,67,7,10,1,5,188,69]},{"a":3201,"t":"byte","b":[8,10,1,2,220,72,8,15]},{"a":3209,"t":"byte","b":[1,5,140,77,8,10,1,2]},{"a":3217,"t":"byte","b":[172,80,8,15,2,3,92,85]},{"a":3225,"t":"byte","b":[6,13,1,5,104,88,9,10]},{"a":3233,"t":"byte","b":[0,5,236,91,10,10,2,5]},{"a":3241,"t":"byte","b":[212,95,6,10,1,4,44,98]},{"a":3249,"t":"byte","b":[8,12,0,5,236,101,10,10]},{"a":3257,"t":"byte","b":[0,5,212,105,10,10,0,5]},{"a":3265,"t":"byte","b":[188,109,10,9,2,3,64,113]},{"a":3273,"t":"byte","b":[6,13,1,5,76,116,8,10]},{"a":3281,"t":"byte","b":[1,5,108,119,8,10,1,5]},{"a":3289,"t":"byte","b":[0,67,8,10,0,6,32,70]},{"a":3297,"t":"byte","b":[10,8,0,6,64,73,10,8]},{"a":3305,"t":"byte","b":[1,3,96,76,7,13,1,3]},{"a":3313,"t":"byte","b":[238,79,7,13,1,3,124,83]},{"a":3321,"t":"byte","b":[7,13,0,5,10,87,10,10]},{"a":3329,"t":"byte","b":[0,5,242,90,10,10,0,5]},{"a":3337,"t":"byte","b":[218,94,10,10,0,4,194,98]},{"a":3345,"t":"byte","b":[10,12,0,1,114,103,10,17]},{"a":3353,"t":"byte","b":[0,5,22,110,10,10,1,5]},{"a":3361,"t":"byte","b":[254,113,9,10,0,5,130,117]},{"a":3369,"t":"byte","b":[10,10,1,6,106,121,9,8]},{"a":3377,"t":"byte","b":[1,5,58,124,8,10,1,5]},{"a":3385,"t":"byte","b":[90,127,8,10,1,5,122,130]},{"a":3393,"t":"byte","b":[8,10,1,5,154,133,8,10]},{"a":3401,"t":"byte","b":[0,3,186,136,10,13]},{"a":3407,"l":"OBJ_ROOM_TABLE","c":"OBJ_ROOM_TABLE ($0D4F-$0DCB) \u2014 125 resident bytes indexed by global room id $00-$7C; each byte selects a RoomGraphicRecord in ROOM_GRAPHIC_TABLE.\nAt $10A5 the engine indexes this table with CURRENT_ROOM, compares the result with CURRENT_ROOM_GRAPHIC_ID, and repaints when it changes. Rooms $00-$28 are part 1's, $29-$4C part 2's and $4D-$7C part 3's (PART_ROOM_BASE_IDS); each byte is a picture from that part's set, or 0 for picture 0, the shared picture at $A100.","t":"byte","b":[0,0,0,0,18,0,5,0],"x":[4261]},{"a":3415,"t":"byte","b":[19,0,0,0,0,0,7,7]},{"a":3423,"t":"byte","b":[7,9,7,7,7,7,0,0]},{"a":3431,"t":"byte","b":[0,18,0,0,0,0,0,0]},{"a":3439,"t":"byte","b":[0,0,0,0,13,14,0,11]},{"a":3447,"t":"byte","b":[15,30,0,32,0,0,0,0]},{"a":3455,"t":"byte","b":[0,0,25,0,0,0,0,0]},{"a":3463,"t":"byte","b":[0,0,0,33,0,0,0,0]},{"a":3471,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":3479,"t":"byte","b":[35,34,0,0,21,38,38,0]},{"a":3487,"t":"byte","b":[39,52,0,0,38,0,42,42]},{"a":3495,"t":"byte","b":[55,42,45,45,42,42,45,42]},{"a":3503,"t":"byte","b":[42,42,54,50,54,41,41,44]},{"a":3511,"t":"byte","b":[41,54,41,48,41,54,40,40]},{"a":3519,"t":"byte","b":[40,53,40,43,40,43,43,43]},{"a":3527,"t":"byte","b":[0,53,51,56,46]},{"a":3532,"l":"PART_ROOM_BASE_IDS","c":"The first room of each part: $00 for part 1, $29 for part 2 and $4D for part 3. The engine subtracts the one for CURRENT_PART_NO from a room number to index the part's own room tables.","t":"byte","b":[0,41,77],"x":[2914,5277]},{"a":3535,"l":"PART_INIT_SCRIPT_POINTERS","c":"The start scripts of the three parts, indexed by CURRENT_PART_NO: $2968, $296E and $297E. All three are in the engine; the event texts and pictures they name are the loaded part's.","t":"byte","b":[104,41,110,41,126,41]},{"a":3541,"l":"FILENAME_PTR","c":"Pointer to the eight-byte save/load filename buffer.","t":"word","b":[215,13],"d":[3543],"x":[1303]},{"a":3542,"t":"note","l":"a_0DD6","c":"High byte $0D of FILENAME_PTR, the little-endian pointer at $0DD5 which holds $0DD7. Low byte and pointer purpose are described at $0DD5.","note":"inside the item at $0DD5","x":[1306]},{"a":3543,"l":"FILENAME_BUF","c":"FILENAME_BUF \u2014 eight-byte mutable KERNAL save/load filename buffer, initialized to `FILENAME`. The save and load code that uses it, which nothing reaches, hardcodes its eight-byte capacity; the following word UNUSED_FILENAME_BUFFER_SIZE is redundant metadata and is never read.","t":"byte","b":[70,73,76,69,78,65,77,69],"x":[1250,1263]},{"a":3551,"l":"UNUSED_FILENAME_BUFFER_SIZE","c":"UNUSED_FILENAME_BUFFER_SIZE \u2014 shipped little-endian constant $0008 immediately after the eight-byte FILENAME_BUF.\nREAD_FILENAME hardcodes CPY #$08 and SETUP_KERNAL_FILE hardcodes LDA #$08, so neither reads this word. No instruction operand, pointer, table entry, or recorded reference consumes it. It is redundant assembler metadata retained with the disabled save/load subsystem.","t":"word","b":[8,0],"d":[8]},{"a":3553,"l":"ACTION_DISPATCH_TABLE_PTR","c":"Little-endian pointer to ACTION_DISPATCH_TABLE; RUN_SCRIPT adds twice the action opcode to this base and reads a two-byte handler address before patching JSR $1699.","t":"word","b":[227,13],"d":[3555],"x":[5760]},{"a":3554,"t":"note","l":"ACTION_DISPATCH_TABLE_PTR_HI","c":"High byte of the little-endian action dispatch pointer at $0DE1, used by RUN_SCRIPT to locate handler addresses.","note":"inside the item at $0DE1","x":[5767]},{"a":3555,"l":"ACTION_DISPATCH_TABLE","c":"ACTION_DISPATCH_TABLE \u2014 33 little-endian action-handler pointers indexed by bytecode opcode. Confirmed targets include ACTION_MOVE_DIRECTION, SCRIPT_SET_OBJECT_LOCATION, ACTION_DROP_OBJECT ($0EB0), ACTION_TAKE_OBJECT ($0F02), counter/flag handlers, inventory, DESCRIBE_CURRENT_ROOM, and other $11xx handlers.","t":"byte","b":[63,14,148,14,176,14,2,15]},{"a":3563,"t":"byte","b":[139,15,181,15,191,15,201,15]},{"a":3571,"t":"byte","b":[1,16,8,16,126,16,37,17]},{"a":3579,"t":"byte","b":[41,17,153,15,168,15,143,17]},{"a":3587,"t":"byte","b":[45,17,97,17,137,17,140,17]},{"a":3595,"t":"byte","b":[221,15,104,17,110,17,61,17]},{"a":3603,"t":"byte","b":[141,14,116,17,122,17,166,14]},{"a":3611,"t":"byte","b":[171,14,51,14,37,14,241,15]},{"a":3619,"t":"byte","b":[204,15]},{"a":3621,"l":"SCRIPT_GOTO_ACTION_SCRIPT_NOUN","c":"SCRIPT_GOTO_ACTION_SCRIPT_NOUN ($0E25)\nPurpose: Action opcode $1E: redirect the running script to the ordinary action stream of the direction the player named. Used by contextual verbs such as FLY and RIDE, which take a direction as their noun.\nInputs: NOUN_ID ($4D) holds the parsed direction token; valid values are $01-$0A.\nOutputs: On a valid direction, SCRIPT_PC is replaced with that direction's action stream through RUN_DIRECTION_ACTION_SCRIPT, so the current VM loop resumes there. On zero or a value of $0B or above, sentence $25 is printed and the handler returns.\nAssumptions: Direction tokens are one-based and dense; the check is a single unsigned comparison against $0B, so any token below $0B other than zero is treated as a direction.\nClobbers: A, flags, VERB_ID ($4C), SCRIPT_PC ($4E/$4F), and on a valid direction Y and WORK_PTR ($0C/$0D) (RUN_ACTION_SCRIPT); on the error path, X, Y and renderer scratch.\nHardware changes: None directly; the error path writes screen and colour RAM through the renderer.","s":"NOUN_ID is a direction word id for FLY/RIDE <direction>.","t":"code","b":[165,77],"m":"lda","o":"NOUN_ID","oa":77},{"a":3623,"s":"0 -> error $25","t":"code","b":[240,4],"m":"beq","o":"SCRIPT_MOVE_NOUN_BAD_DIRECTION","oa":3629},{"a":3625,"s":">= $0B ?","t":"code","b":[201,11],"m":"cmp","o":"#$0B"},{"a":3627,"t":"code","b":[144,9],"m":"bcc","o":"RUN_DIRECTION_ACTION_SCRIPT","oa":3638},{"a":3629,"l":"SCRIPT_MOVE_NOUN_BAD_DIRECTION","s":"A=$25 error sentence","t":"code","b":[169,37],"m":"lda","o":"#$25","x":[3623]},{"a":3631,"t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":3634,"t":"code","b":[96],"m":"rts"},{"a":3635,"l":"SCRIPT_GOTO_ACTION_SCRIPT","c":"SCRIPT_GOTO_ACTION_SCRIPT ($0E33)\nPurpose: Action opcode $1D: read one literal direction id from the bytecode stream and redirect the running script to that direction's ordinary action stream. Used by ENTER, CLIMB and OUT rules so that a contextual command inherits the real direction's barriers and room transition.\nInputs: One operand byte at SCRIPT_PC; every genuine emission site supplies $01-$0A.\nOutputs: SCRIPT_PC advanced past the operand, then replaced with the selected direction's action stream; the current VM loop resumes there.\nAssumptions: Unlike opcode $1E this path performs no range validation. The action-script pointer table at $2986 has one entry for each of the 70 rules and the directions are its first ten, so an operand of 11-70 would run another rule's action script, and 0 or one above 70 would read past the table.\nClobbers: A, X (0, from FETCH_SCRIPT_BYTE), Y (1), flags, VERB_ID ($4C), SCRIPT_PC ($4E/$4F), WORK_PTR ($0C/$0D).\nHardware changes: None.","s":"Fetch one-based direction id ($01-$0A) from action bytecode.","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":3638,"l":"RUN_DIRECTION_ACTION_SCRIPT","c":"RUN_DIRECTION_ACTION_SCRIPT ($0E36)\nPurpose: Shared tail of action opcodes $1D and $1E: cache a one-based direction id as the current verb and point SCRIPT_PC at that direction's action script.\nInputs: A = one-based direction id $01-$0A.\nOutputs: VERB_ID ($4C) = A; SCRIPT_PC ($4E/$4F) loaded from ACTION_SCRIPT_POINTERS entry A-1. It does not recursively run the VM; the caller's interpreter loop continues at the new address.\nAssumptions: The ten direction verbs occupy the first ten action-script slots, so subtracting one converts the verb id to a table index.\nClobbers: A, Y (left at 1), flags, VERB_ID, SCRIPT_PC, WORK_PTR ($0C/$0D).\nHardware changes: None.","s":"VERB_ID ($4C) = the direction id","t":"code","b":[133,76],"m":"sta","o":"VERB_ID","oa":76,"x":[3627]},{"a":3640,"t":"code","b":[56],"m":"sec"},{"a":3641,"s":"direction id - 1 = index of its action script","t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":3643,"s":"call RUN_ACTION_SCRIPT ($1452)","t":"code","b":[32,82,20],"m":"jsr","o":"RUN_ACTION_SCRIPT","oa":5202},{"a":3646,"t":"code","b":[96],"m":"rts"},{"a":3647,"l":"ACTION_MOVE_DIRECTION","c":"ACTION_MOVE_DIRECTION ($0E3F)\nPurpose: The movement handler. Selects one of ten sorted exit tables from the current verb, scans it for an entry whose from-room matches CURRENT_ROOM, and on a match moves the player and describes the destination; otherwise it prints the refusal sentence 2.\nInputs: VERB_ID ($4C) holds a one-based direction id; DIRECTION_EXIT_POINTERS (base word at $16B4) selects the table; CURRENT_ROOM ($293F).\nOutputs: On success CURRENT_ROOM is replaced by the destination and control tail-jumps to DESCRIBE_CURRENT_ROOM. On failure it tail-jumps to PRINT_SENTENCE with sentence 2. VERB_ID is decremented and re-incremented, so it is unchanged on exit.\nAssumptions: Each exit table is a list of two-byte from/to pairs sorted by from-room and terminated implicitly: the scan stops as soon as an entry's from-room is greater than or equal to CURRENT_ROOM, so the sort order is load bearing.\nClobbers: A, Y, flags, WORK_PTR ($0C/$0D), AUX_PTR ($0E/$0F), CURRENT_ROOM on success, and all renderer and graphics scratch through the tail call.\nHardware changes: None directly; the tail calls write screen, colour and bitmap memory.","s":"index = $4C - 1 (then restored)","t":"code","b":[198,76],"m":"dec","o":"VERB_ID","oa":76},{"a":3649,"t":"code","b":[165,76],"m":"lda","o":"VERB_ID","oa":76},{"a":3651,"t":"code","b":[230,76],"m":"inc","o":"VERB_ID","oa":76},{"a":3653,"s":"*2 (word table entries)","t":"code","b":[10],"m":"asl","o":"a"},{"a":3654,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":3656,"t":"code","b":[176,7],"m":"bcs","o":"MOVE_DIR_INDEX_HIGH","oa":3665},{"a":3658,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":3660,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":3662,"t":"code","b":[76,85,14],"m":"jmp","o":"MOVE_DIR_ADD_TABLE_BASE","oa":3669},{"a":3665,"l":"MOVE_DIR_INDEX_HIGH","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[3656]},{"a":3667,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":3669,"l":"MOVE_DIR_ADD_TABLE_BASE","t":"code","b":[165,12],"m":"lda","o":"WORK_PTR","oa":12,"x":[3662]},{"a":3671,"t":"code","b":[24],"m":"clc"},{"a":3672,"s":"Add the low byte of DIRECTION_EXIT_POINTERS.","t":"code","b":[109,180,22],"m":"adc","o":"DIRECTION_EXIT_TABLE_PTR","oa":5812},{"a":3675,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":3677,"t":"code","b":[165,13],"m":"lda","o":"zpa_0D","oa":13},{"a":3679,"s":"Complete the selected RoomExit-table pointer.","t":"code","b":[109,181,22],"m":"adc","o":"a_16B5","oa":5813},{"a":3682,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":3684,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":3686,"s":"record address low -> $0E","t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":3688,"t":"code","b":[133,14],"m":"sta","o":"AUX_PTR","oa":14},{"a":3690,"t":"code","b":[200],"m":"iny"},{"a":3691,"s":"record address high -> $0F","t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":3693,"t":"code","b":[133,15],"m":"sta","o":"zpa_0F","oa":15},{"a":3695,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":3697,"l":"MOVE_DIR_SCAN_EXITS","s":"Read this entry's from_room.","t":"code","b":[177,14],"m":"lda","o":"(AUX_PTR),y","oa":14,"x":[3708]},{"a":3699,"s":"Match the exit record whose from_room equals CURRENT_ROOM.","t":"code","b":[205,63,41],"m":"cmp","o":"CURRENT_ROOM","oa":10559},{"a":3702,"s":"match","t":"code","b":[240,7],"m":"beq","o":"MOVE_DIR_TAKE_EXIT","oa":3711},{"a":3704,"s":"passed target -> not found","t":"code","b":[176,14],"m":"bcs","o":"MOVE_DIR_NO_EXIT","oa":3720},{"a":3706,"t":"code","b":[200],"m":"iny"},{"a":3707,"s":"next entry (step 2)","t":"code","b":[200],"m":"iny"},{"a":3708,"t":"code","b":[76,113,14],"m":"jmp","o":"MOVE_DIR_SCAN_EXITS","oa":3697},{"a":3711,"l":"MOVE_DIR_TAKE_EXIT","t":"code","b":[200],"m":"iny","x":[3702]},{"a":3712,"s":"Read the matched entry's to_room.","t":"code","b":[177,14],"m":"lda","o":"(AUX_PTR),y","oa":14},{"a":3714,"s":"Enter the matched exit record's to_room.","t":"code","b":[141,63,41],"m":"sta","o":"CURRENT_ROOM","oa":10559},{"a":3717,"s":"Describe the destination room.","t":"code","b":[76,126,16],"m":"jmp","o":"DESCRIBE_CURRENT_ROOM","oa":4222},{"a":3720,"l":"MOVE_DIR_NO_EXIT","s":"A=$2 'not found' sentence","t":"code","b":[169,2],"m":"lda","o":"#$02","x":[3704]},{"a":3722,"t":"code","b":[76,155,9],"m":"jmp","o":"PRINT_SENTENCE","oa":2459},{"a":3725,"l":"SCRIPT_SET_CURRENT_ROOM","c":"SCRIPT_SET_CURRENT_ROOM ($0E8D)\nPurpose: Action opcode: teleport the player by storing one literal room id into CURRENT_ROOM without running any exit table or description.\nInputs: One operand byte at SCRIPT_PC.\nOutputs: SCRIPT_PC advanced by one; CURRENT_ROOM ($293F) = operand.\nAssumptions: No description or repaint happens here. Four of its six uses follow with DESCRIBE_CURRENT_ROOM (rules 39 and 40, Part 2's rooms $2D and $39); Part 1's room $15 script follows SETROOM($16) and SETROOM($14) with an event text only.\nClobbers: A, X (0, from FETCH_SCRIPT_BYTE), flags, SCRIPT_PC.\nHardware changes: None.","s":"read byte from script","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":3728,"s":"CURRENT_ROOM = next script byte.","t":"code","b":[141,63,41],"m":"sta","o":"CURRENT_ROOM","oa":10559},{"a":3731,"t":"code","b":[96],"m":"rts"},{"a":3732,"l":"SCRIPT_SET_OBJECT_LOCATION","c":"SCRIPT_SET_OBJECT_LOCATION ($0E94)\nPurpose: Action opcode: assign an object's location or state. Reads a slot index and a value; the marker $FA is replaced by the current room, which lets one script move an object to wherever the player is.\nInputs: Two operand bytes at SCRIPT_PC: object slot index, then value or the $FA marker.\nOutputs: SCRIPT_PC advanced by two; OBJECT_LOCATIONS[slot] ($28BF + slot) set to the value, or to CURRENT_ROOM when the value was $FA.\nAssumptions: The slot index is not range checked against OBJECT_COUNT ($22A3). Values $FC (carried) and $FD (absent) are reserved states, not room numbers.\nClobbers: A, X (0, from FETCH_SCRIPT_BYTE), Y, flags, SCRIPT_PC.\nHardware changes: None.","s":"read slot index","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":3735,"s":"-> Y","t":"code","b":[168],"m":"tay"},{"a":3736,"s":"read value","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":3739,"s":"marker $FA?","t":"code","b":[201,250],"m":"cmp","o":"#$FA"},{"a":3741,"t":"code","b":[208,3],"m":"bne","o":"SET_OBJ_LOC_STORE","oa":3746},{"a":3743,"s":"Marker $FA means use CURRENT_ROOM as the object location.","t":"code","b":[173,63,41],"m":"lda","o":"CURRENT_ROOM","oa":10559},{"a":3746,"l":"SET_OBJ_LOC_STORE","s":"Store the selected location/state in OBJECT_LOCATIONS[slot].","t":"code","b":[153,191,40],"m":"sta","o":"OBJECT_LOCATIONS,y","oa":10431,"x":[3741]},{"a":3749,"t":"code","b":[96],"m":"rts"},{"a":3750,"l":"SET_VERBOSE_OFF","c":"SET_VERBOSE_OFF ($0EA6)\nPurpose: Action opcode: suppress the short confirmation sentences that TAKE and DROP print after a successful action.\nInputs: None.\nOutputs: VERBOSE_FLAG ($63) = 0. Returns with A=0 and Z set.\nAssumptions: The flag only gates confirmations; refusals and error sentences are printed regardless.\nClobbers: A, flags.\nHardware changes: None.","s":"VERBOSE_FLAG = 0","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":3752,"t":"code","b":[133,99],"m":"sta","o":"VERBOSE_FLAG","oa":99},{"a":3754,"t":"code","b":[96],"m":"rts"},{"a":3755,"l":"SET_VERBOSE_ON","c":"SET_VERBOSE_ON ($0EAB)\nPurpose: Action opcode: re-enable the short confirmation sentences. Also called directly at the end of SETUP_CURRENT_ROOM so that a freshly initialised part starts verbose.\nInputs: None.\nOutputs: VERBOSE_FLAG ($63) = 1. Returns with A=1 and Z clear.\nAssumptions: Scripts use the off/on pair around a scripted sequence so that its internal object moves stay silent.\nClobbers: A, flags.\nHardware changes: None.","s":"VERBOSE_FLAG = 1","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[5500]},{"a":3757,"t":"code","b":[133,99],"m":"sta","o":"VERBOSE_FLAG","oa":99},{"a":3759,"t":"code","b":[96],"m":"rts"},{"a":3760,"l":"ACTION_DROP_OBJECT","c":"ACTION_DROP_OBJECT ($0EB0)\nPurpose: The DROP handler. Requires NOUN_ID to be nonzero and the resolved noun to be currently carried; moves the object into the current room, decrements the carried count, clears its icon from the visible-record table, and repaints.\nInputs: NOUN_ID ($4D) must be non-zero and must resolve through RESOLVE_NOUN; VERBOSE_FLAG ($63) selects the confirmation.\nOutputs: OBJECT_LOCATIONS[slot] set to CURRENT_ROOM; OBJ_COUNTERS[0] decremented; the source pointer (bytes 2-3) of the matching record in VISIBLE_OBJECT_RECORDS ($2943) zeroed and the picture repainted. Sentence $19 ('There is no noun in that sentence!') when NOUN_ID is 0, sentence $0A when the object is not carried, sentence $0D as confirmation. The parser stores $FA, not 0, for a missing noun, so a DROP without an object noun gets sentence $0A.\nAssumptions: The record search matches on the object's computed $A560 graphics pointer, so an object whose icon is not currently installed simply falls out of the loop and no repaint occurs.\nClobbers: A, X, Y, flags, CURRENT_OBJECT_INDEX ($5C), GRAPHIC_RECORD_PTR ($5A/$5B), the visible-record table, and all renderer and blitter scratch.\nHardware changes: Writes colour RAM, screen RAM and bitmap memory through RENDER_ROOM_GRAPHICS when a record was cleared.","s":"noun given? (NOUN_ID $4D nonzero)","t":"code","b":[165,77],"m":"lda","o":"NOUN_ID","oa":77},{"a":3762,"t":"code","b":[208,5],"m":"bne","o":"DROP_OBJ_RESOLVE","oa":3769},{"a":3764,"s":"A=$19 refusal sentence","t":"code","b":[169,25],"m":"lda","o":"#$19"},{"a":3766,"s":"print & return","t":"code","b":[76,155,9],"m":"jmp","o":"PRINT_SENTENCE","oa":2459},{"a":3769,"l":"DROP_OBJ_RESOLVE","s":"map the noun to its object: A = location, Y = slot, $5C = icon slot","t":"code","b":[32,227,21],"m":"jsr","o":"RESOLVE_NOUN","oa":5603,"x":[3762]},{"a":3772,"s":"object marker $FC?","t":"code","b":[201,252],"m":"cmp","o":"#$FC"},{"a":3774,"t":"code","b":[240,5],"m":"beq","o":"DROP_OBJ_PLACE_IN_ROOM","oa":3781},{"a":3776,"s":"A=$0A \"You're not carrying it!\"","t":"code","b":[169,10],"m":"lda","o":"#$0A"},{"a":3778,"t":"code","b":[76,155,9],"m":"jmp","o":"PRINT_SENTENCE","oa":2459},{"a":3781,"l":"DROP_OBJ_PLACE_IN_ROOM","s":"The drop destination is CURRENT_ROOM.","t":"code","b":[173,63,41],"m":"lda","o":"CURRENT_ROOM","oa":10559,"x":[3774]},{"a":3784,"s":"Move this carried object into the current room.","t":"code","b":[153,191,40],"m":"sta","o":"OBJECT_LOCATIONS,y","oa":10431},{"a":3787,"s":"One fewer object is carried.","t":"code","b":[32,104,17],"m":"jsr","o":"DEC_CARRIED_COUNT","oa":4456},{"a":3790,"s":"verbose flag?","t":"code","b":[165,99],"m":"lda","o":"VERBOSE_FLAG","oa":99},{"a":3792,"t":"code","b":[240,5],"m":"beq","o":"DROP_OBJ_FIND_RECORD","oa":3799},{"a":3794,"s":"A=$0D confirmation sentence","t":"code","b":[169,13],"m":"lda","o":"#$0D"},{"a":3796,"t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":3799,"l":"DROP_OBJ_FIND_RECORD","s":"Locate the selected object's $A560 graphics block.","t":"code","b":[32,112,15],"m":"jsr","o":"CALC_OBJECT_GRAPHIC_PTR","oa":3952,"x":[3792]},{"a":3802,"s":"Scan VISIBLE_OBJECT_RECORDS by source pointer.","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":3804,"l":"DROP_OBJ_SCAN_RECORDS","t":"code","b":[189,67,41],"m":"lda","o":"VISIBLE_OBJECT_RECORDS,x","oa":10563,"x":[3827]},{"a":3807,"s":"entry low == icon ptr low?","t":"code","b":[197,90],"m":"cmp","o":"GRAPHIC_RECORD_PTR","oa":90},{"a":3809,"t":"code","b":[208,9],"m":"bne","o":"DROP_OBJ_NEXT_RECORD","oa":3820},{"a":3811,"t":"code","b":[232],"m":"inx"},{"a":3812,"t":"code","b":[189,67,41],"m":"lda","o":"VISIBLE_OBJECT_RECORDS,x","oa":10563},{"a":3815,"s":"entry high == icon ptr high?","t":"code","b":[197,91],"m":"cmp","o":"zpa_5B","oa":91},{"a":3817,"s":"match -> remove entry","t":"code","b":[240,11],"m":"beq","o":"DROP_OBJ_CLEAR_RECORD","oa":3830},{"a":3819,"t":"code","b":[202],"m":"dex"},{"a":3820,"l":"DROP_OBJ_NEXT_RECORD","t":"code","b":[138],"m":"txa","x":[3809]},{"a":3821,"t":"code","b":[24],"m":"clc"},{"a":3822,"s":"next 6-byte record","t":"code","b":[105,6],"m":"adc","o":"#$06"},{"a":3824,"t":"code","b":[170],"m":"tax"},{"a":3825,"s":"end of table?","t":"code","b":[224,32],"m":"cpx","o":"#$20"},{"a":3827,"t":"code","b":[208,231],"m":"bne","o":"DROP_OBJ_SCAN_RECORDS","oa":3804},{"a":3829,"t":"code","b":[96],"m":"rts"},{"a":3830,"l":"DROP_OBJ_CLEAR_RECORD","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[3817]},{"a":3832,"s":"zero the matched record's source pointer (takes the icon off the band)","t":"code","b":[157,67,41],"m":"sta","o":"VISIBLE_OBJECT_RECORDS,x","oa":10563},{"a":3835,"t":"code","b":[202],"m":"dex"},{"a":3836,"t":"code","b":[157,67,41],"m":"sta","o":"VISIBLE_OBJECT_RECORDS,x","oa":10563},{"a":3839,"s":"Redraw after removing the dropped object's icon.","t":"code","b":[76,112,5],"m":"jmp","o":"RENDER_ROOM_GRAPHICS","oa":1392},{"a":3842,"l":"ACTION_TAKE_OBJECT","c":"ACTION_TAKE_OBJECT ($0F02)\nPurpose: The TAKE handler. Requires NOUN_ID to be nonzero, the noun to resolve, the object to be in the current room, and the carry capacity not to be exhausted; marks the object carried, increments the count, installs its icon in the first free visible record, and repaints.\nInputs: NOUN_ID ($4D); RESOLVE_NOUN supplies the slot, the location and the graphics index; OBJ_COUNTERS[0] ($292F) is the carried count and also the capacity gate.\nOutputs: OBJECT_LOCATIONS[slot] set to $FC; OBJ_COUNTERS[0] incremented; the icon pointer installed in a free record of VISIBLE_OBJECT_RECORDS and the picture repainted. Refusals use sentence $19 when NOUN_ID is 0 ('There is no noun in that sentence!'), $03 when the noun names no object ('You can't do that.'; a missing noun is stored as $FA, so it lands here too), $09 (already carried), $08 (not here) and $0B (hands full at count 5).\nAssumptions: The capacity test compares OBJ_COUNTERS[0] against the literal 5 before the increment, so the practical limit is five carried objects. If every visible record is occupied the icon is silently not installed and no repaint occurs.\nClobbers: A, X, Y, flags, CURRENT_OBJECT_INDEX ($5C), GRAPHIC_RECORD_PTR ($5A/$5B), the visible-record table, and all renderer and blitter scratch.\nHardware changes: Writes colour RAM, screen RAM and bitmap memory through RENDER_ROOM_GRAPHICS.","s":"noun given? (NOUN_ID $4D nonzero)","t":"code","b":[165,77],"m":"lda","o":"NOUN_ID","oa":77},{"a":3844,"t":"code","b":[208,5],"m":"bne","o":"TAKE_OBJ_RESOLVE","oa":3851},{"a":3846,"s":"A=$19 refusal","t":"code","b":[169,25],"m":"lda","o":"#$19"},{"a":3848,"t":"code","b":[76,155,9],"m":"jmp","o":"PRINT_SENTENCE","oa":2459},{"a":3851,"l":"TAKE_OBJ_RESOLVE","s":"map the noun to its object (carry set if it names one)","t":"code","b":[32,227,21],"m":"jsr","o":"RESOLVE_NOUN","oa":5603,"x":[3844]},{"a":3854,"s":"valid noun? (carry set)","t":"code","b":[176,3],"m":"bcs","o":"TAKE_OBJ_CHECK_STATE","oa":3859},{"a":3856,"s":"no noun -> sentence $3","t":"code","b":[76,107,15],"m":"jmp","o":"TAKE_OBJ_NO_NOUN","oa":3947},{"a":3859,"l":"TAKE_OBJ_CHECK_STATE","s":"marker $FC?","t":"code","b":[201,252],"m":"cmp","o":"#$FC","x":[3854]},{"a":3861,"t":"code","b":[240,69],"m":"beq","o":"TAKE_OBJ_ALREADY_CARRIED","oa":3932},{"a":3863,"s":"marker $FD?","t":"code","b":[201,253],"m":"cmp","o":"#$FD"},{"a":3865,"t":"code","b":[240,70],"m":"beq","o":"TAKE_OBJ_NOT_HERE","oa":3937},{"a":3867,"s":"Is this object located in CURRENT_ROOM?","t":"code","b":[205,63,41],"m":"cmp","o":"CURRENT_ROOM","oa":10559},{"a":3870,"s":"no -> sentence $8","t":"code","b":[208,65],"m":"bne","o":"TAKE_OBJ_NOT_HERE","oa":3937},{"a":3872,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":3874,"s":"OBJ_COUNTERS[0]","t":"code","b":[189,47,41],"m":"lda","o":"OBJ_COUNTERS,x","oa":10543},{"a":3877,"s":"== 5 (hands full)?","t":"code","b":[201,5],"m":"cmp","o":"#$05"},{"a":3879,"s":"yes -> sentence $B","t":"code","b":[240,61],"m":"beq","o":"TAKE_OBJ_BLOCKED","oa":3942},{"a":3881,"s":"$FC is the carried-object state.","t":"code","b":[169,252],"m":"lda","o":"#$FC"},{"a":3883,"s":"Mark the selected object as carried.","t":"code","b":[153,191,40],"m":"sta","o":"OBJECT_LOCATIONS,y","oa":10431},{"a":3886,"s":"One more object is carried.","t":"code","b":[32,110,17],"m":"jsr","o":"INC_CARRIED_COUNT","oa":4462},{"a":3889,"s":"verbose flag?","t":"code","b":[165,99],"m":"lda","o":"VERBOSE_FLAG","oa":99},{"a":3891,"t":"code","b":[240,5],"m":"beq","o":"SHOW_OBJECT_ICON","oa":3898},{"a":3893,"s":"A=$0C confirmation sentence","t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":3895,"t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":3898,"l":"SHOW_OBJECT_ICON","s":"Find an unused visible-object graphic record.","t":"code","b":[162,3],"m":"ldx","o":"#$03","x":[3891]},{"a":3900,"l":"SHOW_ICON_SCAN_FREE_SLOT","t":"code","b":[189,67,41],"m":"lda","o":"VISIBLE_OBJECT_RECORDS,x","oa":10563,"x":[3912]},{"a":3903,"s":"empty entry?","t":"code","b":[240,10],"m":"beq","o":"SHOW_ICON_INSTALL_POINTER","oa":3915},{"a":3905,"t":"code","b":[138],"m":"txa"},{"a":3906,"t":"code","b":[24],"m":"clc"},{"a":3907,"t":"code","b":[105,6],"m":"adc","o":"#$06"},{"a":3909,"t":"code","b":[170],"m":"tax"},{"a":3910,"s":"end of table?","t":"code","b":[224,33],"m":"cpx","o":"#$21"},{"a":3912,"t":"code","b":[208,242],"m":"bne","o":"SHOW_ICON_SCAN_FREE_SLOT","oa":3900},{"a":3914,"t":"code","b":[96],"m":"rts"},{"a":3915,"l":"SHOW_ICON_INSTALL_POINTER","s":"Locate the selected object's $A560 graphics block.","t":"code","b":[32,112,15],"m":"jsr","o":"CALC_OBJECT_GRAPHIC_PTR","oa":3952,"x":[3903]},{"a":3918,"t":"code","b":[165,91],"m":"lda","o":"zpa_5B","oa":91},{"a":3920,"s":"store ptr high into entry","t":"code","b":[157,67,41],"m":"sta","o":"VISIBLE_OBJECT_RECORDS,x","oa":10563},{"a":3923,"t":"code","b":[165,90],"m":"lda","o":"GRAPHIC_RECORD_PTR","oa":90},{"a":3925,"t":"code","b":[202],"m":"dex"},{"a":3926,"s":"Install the object graphic pointer in the free record.","t":"code","b":[157,67,41],"m":"sta","o":"VISIBLE_OBJECT_RECORDS,x","oa":10563},{"a":3929,"s":"Redraw after installing the taken object's icon.","t":"code","b":[76,112,5],"m":"jmp","o":"RENDER_ROOM_GRAPHICS","oa":1392},{"a":3932,"l":"TAKE_OBJ_ALREADY_CARRIED","s":"A=$9 sentence","t":"code","b":[169,9],"m":"lda","o":"#$09","x":[3861]},{"a":3934,"t":"code","b":[76,155,9],"m":"jmp","o":"PRINT_SENTENCE","oa":2459},{"a":3937,"l":"TAKE_OBJ_NOT_HERE","s":"A=$8 sentence","t":"code","b":[169,8],"m":"lda","o":"#$08","x":[3865,3870]},{"a":3939,"t":"code","b":[76,155,9],"m":"jmp","o":"PRINT_SENTENCE","oa":2459},{"a":3942,"l":"TAKE_OBJ_BLOCKED","s":"A=$B sentence","t":"code","b":[169,11],"m":"lda","o":"#$0B","x":[3879]},{"a":3944,"t":"code","b":[76,155,9],"m":"jmp","o":"PRINT_SENTENCE","oa":2459},{"a":3947,"l":"TAKE_OBJ_NO_NOUN","s":"A=$3 sentence","t":"code","b":[169,3],"m":"lda","o":"#$03","x":[3856]},{"a":3949,"t":"code","b":[76,155,9],"m":"jmp","o":"PRINT_SENTENCE","oa":2459},{"a":3952,"l":"CALC_OBJECT_GRAPHIC_PTR","c":"CALC_OBJECT_GRAPHIC_PTR ($0F70)\nPurpose: Compute the address of an object icon: GRAPHIC_RECORD_PTR = $A560 + CURRENT_OBJECT_INDEX * $A0, using repeated sixteen-bit addition rather than a multiply.\nInputs: CURRENT_OBJECT_INDEX ($5C) = icon slot index.\nOutputs: GRAPHIC_RECORD_PTR ($5A/$5B) points at the selected 160-byte icon record. Index 0 returns the base unchanged.\nAssumptions: The $A0 stride is the fixed icon record size; the table holds 36 slots from $A560 to $BBDF. The routine does not bound the index.\nClobbers: A, Y, flags, GRAPHIC_RECORD_PTR. X is preserved.\nHardware changes: None.","s":"Start at the object graphics base $A560.","t":"code","b":[169,96],"m":"lda","o":"#$60","x":[3799,3915,4433]},{"a":3954,"t":"code","b":[133,90],"m":"sta","o":"GRAPHIC_RECORD_PTR","oa":90},{"a":3956,"t":"code","b":[169,165],"m":"lda","o":"#$A5"},{"a":3958,"t":"code","b":[133,91],"m":"sta","o":"zpa_5B","oa":91},{"a":3960,"s":"Scale CURRENT_OBJECT_INDEX by $A0 to select its graphics block.","t":"code","b":[164,92],"m":"ldy","o":"CURRENT_OBJECT_INDEX","oa":92},{"a":3962,"s":"Object graphic index 0 already selects the base block.","t":"code","b":[240,14],"m":"beq","o":"CALC_OBJ_GFX_DONE","oa":3978},{"a":3964,"l":"CALC_OBJ_GFX_ADD_BLOCK","s":"add record size $A0 (160) ...","t":"code","b":[169,160],"m":"lda","o":"#$A0","x":[3976]},{"a":3966,"t":"code","b":[24],"m":"clc"},{"a":3967,"t":"code","b":[101,90],"m":"adc","o":"GRAPHIC_RECORD_PTR","oa":90},{"a":3969,"t":"code","b":[133,90],"m":"sta","o":"GRAPHIC_RECORD_PTR","oa":90},{"a":3971,"t":"code","b":[144,2],"m":"bcc","o":"CALC_OBJ_GFX_LOOP_TAIL","oa":3975},{"a":3973,"s":"... carry into high byte","t":"code","b":[230,91],"m":"inc","o":"zpa_5B","oa":91},{"a":3975,"l":"CALC_OBJ_GFX_LOOP_TAIL","t":"code","b":[136],"m":"dey","x":[3971]},{"a":3976,"s":"Advance one $A0-byte block per object graphic index.","t":"code","b":[208,242],"m":"bne","o":"CALC_OBJ_GFX_ADD_BLOCK","oa":3964},{"a":3978,"l":"CALC_OBJ_GFX_DONE","t":"code","b":[96],"m":"rts","x":[3962]},{"a":3979,"l":"STATE_SET_COUNTER","c":"STATE_SET_COUNTER ($0F8B)\nPurpose: Action opcode: assign a counter. Reads an index and a value from the bytecode and stores the value into OBJ_COUNTERS[index].\nInputs: Two operand bytes at SCRIPT_PC: index, then value.\nOutputs: SCRIPT_PC advanced by two; OBJ_COUNTERS[index] ($292F + index) = value.\nAssumptions: Counters share the 48-byte state block with flags; the index is not range checked.\nClobbers: A, X, flags, SCRATCH_INDEX ($03), SCRIPT_PC.\nHardware changes: None.","s":"read index byte","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":3982,"s":"save index","t":"code","b":[133,3],"m":"sta","o":"SCRATCH_INDEX","oa":3},{"a":3984,"s":"read value byte","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":3987,"t":"code","b":[166,3],"m":"ldx","o":"SCRATCH_INDEX","oa":3},{"a":3989,"s":"OBJ_COUNTERS[index] = value","t":"code","b":[157,47,41],"m":"sta","o":"OBJ_COUNTERS,x","oa":10543},{"a":3992,"t":"code","b":[96],"m":"rts"},{"a":3993,"l":"STATE_INC_COUNTER","c":"STATE_INC_COUNTER ($0F99)\nPurpose: Action opcode: increment a counter, saturating at $FF so a long-running tally cannot wrap to zero.\nInputs: One operand byte at SCRIPT_PC: the counter index.\nOutputs: SCRIPT_PC advanced by one; OBJ_COUNTERS[index] incremented unless it was already $FF.\nAssumptions: Saturation is explicit, which matters because several scripts test counters for exact values.\nClobbers: A, X, flags, SCRIPT_PC.\nHardware changes: None.","s":"read index byte","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":3996,"t":"code","b":[170],"m":"tax"},{"a":3997,"s":"current counter value","t":"code","b":[189,47,41],"m":"lda","o":"OBJ_COUNTERS,x","oa":10543},{"a":4000,"s":"already $FF?","t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":4002,"t":"code","b":[240,3],"m":"beq","o":"INC_COUNTER_DONE","oa":4007},{"a":4004,"s":"OBJ_COUNTERS[index]++","t":"code","b":[254,47,41],"m":"inc","o":"OBJ_COUNTERS,x","oa":10543},{"a":4007,"l":"INC_COUNTER_DONE","t":"code","b":[96],"m":"rts","x":[4002]},{"a":4008,"l":"STATE_DEC_COUNTER","c":"STATE_DEC_COUNTER ($0FA8)\nPurpose: Action opcode: decrement a counter, flooring at zero so it cannot wrap to $FF.\nInputs: One operand byte at SCRIPT_PC: the counter index.\nOutputs: SCRIPT_PC advanced by one; OBJ_COUNTERS[index] decremented unless it was already zero.\nAssumptions: The floor is explicit and is the mirror of the saturating increment.\nClobbers: A, X, flags, SCRIPT_PC.\nHardware changes: None.","s":"read index byte","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4011,"t":"code","b":[170],"m":"tax"},{"a":4012,"s":"current counter value","t":"code","b":[189,47,41],"m":"lda","o":"OBJ_COUNTERS,x","oa":10543},{"a":4015,"s":"already 0?","t":"code","b":[240,3],"m":"beq","o":"DEC_COUNTER_DONE","oa":4020},{"a":4017,"s":"OBJ_COUNTERS[index]--","t":"code","b":[222,47,41],"m":"dec","o":"OBJ_COUNTERS,x","oa":10543},{"a":4020,"l":"DEC_COUNTER_DONE","t":"code","b":[96],"m":"rts","x":[4015]},{"a":4021,"l":"STATE_SET_FLAG","c":"STATE_SET_FLAG ($0FB5)\nPurpose: Action opcode: set a Boolean progression flag to one.\nInputs: One operand byte at SCRIPT_PC: the flag index.\nOutputs: SCRIPT_PC advanced by one; OBJ_FLAGS[index] ($290F + index) = 1.\nAssumptions: Flags occupy $290F-$292E (32 bytes; the counters follow at $292F); index 7 is the room-lit flag consulted by DESCRIBE_CURRENT_ROOM. The index is not range checked.\nClobbers: A, X, flags, SCRIPT_PC.\nHardware changes: None.","s":"read index byte","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4024,"t":"code","b":[170],"m":"tax"},{"a":4025,"s":"A = 1","t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":4027,"s":"OBJ_FLAGS[index] = 1","t":"code","b":[157,15,41],"m":"sta","o":"OBJ_FLAGS,x","oa":10511},{"a":4030,"t":"code","b":[96],"m":"rts"},{"a":4031,"l":"STATE_CLEAR_FLAG","c":"STATE_CLEAR_FLAG ($0FBF)\nPurpose: Action opcode: clear a Boolean progression flag to zero.\nInputs: One operand byte at SCRIPT_PC: the flag index.\nOutputs: SCRIPT_PC advanced by one; OBJ_FLAGS[index] = 0.\nAssumptions: Clearing index 7 makes the room dark, which suppresses the whole room description.\nClobbers: A, X, flags, SCRIPT_PC.\nHardware changes: None.","s":"read index byte","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4034,"t":"code","b":[170],"m":"tax"},{"a":4035,"s":"A = 0","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4037,"s":"OBJ_FLAGS[index] = 0","t":"code","b":[157,15,41],"m":"sta","o":"OBJ_FLAGS,x","oa":10511},{"a":4040,"t":"code","b":[96],"m":"rts"},{"a":4041,"l":"RETURN_SKIP_CALLER","c":"RETURN_SKIP_CALLER ($0FC9)\nPurpose: Action opcode: a one-level non-local exit. Discards the immediate caller's return address so the following RTS lands in the caller's caller, unwinding out of the interpreter loop that invoked the handler.\nInputs: The stack must hold this handler's return address on top of the return address to be skipped.\nOutputs: Two bytes popped, then RTS. A holds the last byte popped and N/Z reflect it; X, Y and the other flags are preserved.\nAssumptions: The handler is invoked through the self-modified JSR at $1699, so the address discarded is always RUN_SCRIPT's, and control resumes in whatever called RUN_SCRIPT.\nClobbers: A, N and Z, and two bytes of stack depth.\nHardware changes: None.","s":"drop caller return address (2 bytes)","t":"code","b":[104],"m":"pla"},{"a":4042,"t":"code","b":[104],"m":"pla"},{"a":4043,"s":"return to caller's caller","t":"code","b":[96],"m":"rts"},{"a":4044,"l":"ACTION_QUIT","c":"ACTION_QUIT ($0FCC)\nPurpose: The QUIT handler: print the confirmation prompt, read one key, and either branch to the non-returning restart or return quietly.\nInputs: None in registers; the terminal and keyboard must be usable.\nOutputs: Sentence $34 printed. On uppercase 'Y' control branches to RESTART_GAME and does not return; on any other key the line is ended and the handler returns normally.\nAssumptions: CHECK_YES_KEY only accepts uppercase 'Y'. The yes path is the BCS at $0FD7, which skips the no path's PRINT_EMPTY_LINE and RTS to reach RESTART_GAME, placed directly after them at $0FDD.\nClobbers: A, X, Y, flags, keyboard workspace and renderer scratch.\nHardware changes: Reads the CIA 1 keyboard matrix through KERNAL SCNKEY and GETIN; writes screen and colour RAM.","s":"end the line","t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":4047,"s":"A=$34 = 'are you sure?' sentence","t":"code","b":[169,52],"m":"lda","o":"#$34"},{"a":4049,"s":"print prompt","t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":4052,"s":"read Y/N (carry set = yes)","t":"code","b":[32,101,5],"m":"jsr","o":"CHECK_YES_KEY","oa":1381},{"a":4055,"s":"yes -> RESTART_GAME","t":"code","b":[176,4],"m":"bcs","o":"RESTART_GAME","oa":4061},{"a":4057,"s":"no: end the line and return","t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":4060,"t":"code","b":[96],"m":"rts"},{"a":4061,"l":"RESTART_GAME","c":"RESTART_GAME ($0FDD)\nPurpose: Abandon the current turn entirely and restart the adventure. Pops three return addresses (the handler's into RUN_SCRIPT, RUN_SCRIPT's into its caller, and that caller's), prints \"Game over!\", and jumps to the initialisation entry.\nInputs: Entered at an action handler's depth: as action opcode $14 through RUN_SCRIPT's self-modified JSR at $1699, or by ACTION_QUIT's BCS at $0FD7. Most of its scripts run from RUN_TURN_SCRIPTS (the resident and Part 1 turn scripts' deaths, and the room scripts of Part 1 room $0D, Part 2 rooms $29 and $49 and Part 3 room $7C), where the three frames are exactly those above MAIN_LOOP; the rule 4 (SOUTH) action script and QUIT run from DISPATCH_COMMAND, one frame deeper under PARSE_INPUT, so PARSE_INPUT's return address stays on the stack.\nOutputs: Six bytes popped from the stack; sentence $35, \"Game over!\", printed; control transferred to CALL_INIT_GAME. Non-returning.\nAssumptions: Nothing returns through the popped frames, so the depth only decides how much stack is reclaimed. No instruction in the engine resets the stack pointer, so each restart from a command leaves two bytes behind.\nClobbers: A, X, Y, flags, six bytes of stack, and all game state through the reinitialisation.\nHardware changes: None directly; the reinitialisation path writes screen, colour and bitmap memory.","s":"discard 3 nested return addresses (6 bytes)","t":"code","b":[104],"m":"pla","x":[4055]},{"a":4062,"t":"code","b":[104],"m":"pla"},{"a":4063,"t":"code","b":[104],"m":"pla"},{"a":4064,"t":"code","b":[104],"m":"pla"},{"a":4065,"t":"code","b":[104],"m":"pla"},{"a":4066,"t":"code","b":[104],"m":"pla"},{"a":4067,"s":"end the line","t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":4070,"s":"A=$35 = 'Game over!' sentence","t":"code","b":[169,53],"m":"lda","o":"#$35"},{"a":4072,"s":"print","t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":4075,"t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":4078,"s":"re-init game (-> INIT_GAME + main loop)","t":"code","b":[76,6,4],"m":"jmp","o":"CALL_INIT_GAME","oa":1030},{"a":4081,"l":"ACTION_NEXT_PART","c":"ACTION_NEXT_PART ($0FF1)\nPurpose: The story-advance handler: unwind the turn-script calls, clear flag 2 so that the new part's turn script runs its first-turn setup, and jump into the multipart loader path.\nInputs: Entered as action opcode $1F through RUN_SCRIPT's self-modified JSR at $1699; both uses are room scripts (Part 1 room $28, Part 2 room $36), run by RUN_TURN_SCRIPTS from MAIN_LOOP, so the three frames popped are the handler's, RUN_SCRIPT's and RUN_TURN_SCRIPTS'; the replacement disk part must be available.\nOutputs: Six bytes popped; OBJ_FLAGS[2] ($2911) cleared; control transferred to SWITCH_TO_NEXT_PART, which ends in JMP MAIN_LOOP. Non-returning.\nAssumptions: The three frames are exactly those above MAIN_LOOP, so the stack is balanced when MAIN_LOOP resumes. Every part's turn script begins NOFLAG(02) SETFLAG(02), the clause that sets up its first turn. The load replaces $2F00-$95FF, the part's own tables, scripts, texts and pictures.\nClobbers: A, X, flags, six bytes of stack, and, through the callees, the part's data, display, IRQ, CIA and banking state.\nHardware changes: Through SHOW_PART_LOAD_SCREEN: VIC-II display enable ($D011), $D01A, CIA 1 timer A ($DC0E), and the serial bus through the KERNAL's LOAD.","s":"discard 3 nested return addresses (6 bytes)","t":"code","b":[104],"m":"pla"},{"a":4082,"t":"code","b":[104],"m":"pla"},{"a":4083,"t":"code","b":[104],"m":"pla"},{"a":4084,"t":"code","b":[104],"m":"pla"},{"a":4085,"t":"code","b":[104],"m":"pla"},{"a":4086,"t":"code","b":[104],"m":"pla"},{"a":4087,"s":"A=0","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4089,"s":"X=2","t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":4091,"s":"OBJ_FLAGS[2] = 0","t":"code","b":[157,15,41],"m":"sta","o":"OBJ_FLAGS,x","oa":10511},{"a":4094,"s":"load next part","t":"code","b":[76,21,4],"m":"jmp","o":"SWITCH_TO_NEXT_PART","oa":1045},{"a":4097,"l":"ACTION_PRINT_MESSAGE","c":"ACTION_PRINT_MESSAGE ($1001)\nPurpose: Action opcode: fetch one event-text id from the bytecode stream and render that event paragraph.\nInputs: One operand byte at SCRIPT_PC: the event-text id.\nOutputs: SCRIPT_PC advanced by one; the event paragraph printed on a new line with a two-space indent.\nAssumptions: The event pointer table is found through the word at $2F02, part of each part's data, so the same id selects different prose after a part change.\nClobbers: A, X, Y, flags, SCRIPT_PC, TERM_DATA_PTR ($22/$23), WORK_PTR ($0C/$0D), UPPERCASE_LETTER_FLAG and terminal state.\nHardware changes: Writes screen and colour RAM through the renderer.","s":"read message index byte","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4100,"s":"print that string","t":"code","b":[32,215,9],"m":"jsr","o":"PRINT_EVENT_TEXT","oa":2519},{"a":4103,"t":"code","b":[96],"m":"rts"},{"a":4104,"l":"CMD_INVENTORY","c":"CMD_INVENTORY ($1008)\nPurpose: The INVENTORY handler: print the header sentence, then walk the object table and print the description of every object whose location byte is the carried marker $FC. If nothing is carried it prints the 'nothing' sentence instead.\nInputs: OBJECT_LOCATIONS ($28BF) and OBJECT_COUNT ($22A3); the object-description pointer table base is the word at $1C6B.\nOutputs: Sentence $0E, then one indented paragraph per carried object, or sentence $0F when none; finally the line is ended through PRINT_EMPTY_LINE.\nAssumptions: The scan bound is OBJECT_COUNT, 54, in the engine and the same for every part. Each description starts with a prefix byte, the one DESCRIBE_CURRENT_ROOM uses (0, or sentence 4, 5 or 6 printed before the text, or $40 for an object it does not list); the inventory skips that byte unread and renders the text after it.\nClobbers: A, X, Y, flags, LOOP_COUNTER ($4B), WORK_PTR ($0C/$0D), AUX_PTR ($0E/$0F), TERM_DATA_PTR ($22/$23), UPPERCASE_LETTER_FLAG, and terminal state; the loop index is preserved across each item on the stack.\nHardware changes: Writes screen and colour RAM through the renderer.","s":"A=$0E = 'you are carrying' sentence","t":"code","b":[169,14],"m":"lda","o":"#$0E"},{"a":4106,"t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":4109,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4111,"s":"item count = 0","t":"code","b":[133,75],"m":"sta","o":"LOOP_COUNTER","oa":75},{"a":4113,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":4115,"l":"INVENTORY_SCAN_LOOP","s":"Read this object's location/state.","t":"code","b":[185,191,40],"m":"lda","o":"OBJECT_LOCATIONS,y","oa":10431,"x":[4126]},{"a":4118,"s":"$FC means the object is carried.","t":"code","b":[201,252],"m":"cmp","o":"#$FC"},{"a":4120,"s":"yes -> print this item","t":"code","b":[240,22],"m":"beq","o":"INVENTORY_PRINT_ITEM","oa":4144},{"a":4122,"l":"INVENTORY_NEXT_OBJECT","t":"code","b":[200],"m":"iny","x":[4219]},{"a":4123,"s":"Stop after OBJECT_COUNT entries.","t":"code","b":[204,163,34],"m":"cpy","o":"OBJECT_COUNT","oa":8867},{"a":4126,"t":"code","b":[208,243],"m":"bne","o":"INVENTORY_SCAN_LOOP","oa":4115},{"a":4128,"s":"any items printed?","t":"code","b":[165,75],"m":"lda","o":"LOOP_COUNTER","oa":75},{"a":4130,"s":"yes -> skip 'nothing'","t":"code","b":[208,8],"m":"bne","o":"INVENTORY_DONE","oa":4140},{"a":4132,"t":"code","b":[32,61,11],"m":"jsr","o":"PRINT_PARAGRAPH_INDENT","oa":2877},{"a":4135,"s":"A=$0F = 'nothing' sentence","t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":4137,"s":"print","t":"code","b":[32,170,9],"m":"jsr","o":"COMPUTE_SENTENCE_PTR_OFS","oa":2474},{"a":4140,"l":"INVENTORY_DONE","t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891,"x":[4130]},{"a":4143,"t":"code","b":[96],"m":"rts"},{"a":4144,"l":"INVENTORY_PRINT_ITEM","s":"count this item","t":"code","b":[230,75],"m":"inc","o":"LOOP_COUNTER","oa":75,"x":[4120]},{"a":4146,"t":"code","b":[152],"m":"tya"},{"a":4147,"t":"code","b":[72],"m":"pha"},{"a":4148,"s":"new line, two-space indent","t":"code","b":[32,61,11],"m":"jsr","o":"PRINT_PARAGRAPH_INDENT","oa":2877},{"a":4151,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4153,"s":"clear print flag $0AFF","t":"code","b":[141,255,10],"m":"sta","o":"UPPERCASE_LETTER_FLAG","oa":2815},{"a":4156,"t":"code","b":[104],"m":"pla"},{"a":4157,"t":"code","b":[72],"m":"pha"},{"a":4158,"s":"index*2 (word entries)","t":"code","b":[10],"m":"asl","o":"a"},{"a":4159,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":4161,"t":"code","b":[176,7],"m":"bcs","o":"INVENTORY_INDEX_HIGH","oa":4170},{"a":4163,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4165,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":4167,"t":"code","b":[76,78,16],"m":"jmp","o":"INVENTORY_ADD_TABLE_BASE","oa":4174},{"a":4170,"l":"INVENTORY_INDEX_HIGH","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[4161]},{"a":4172,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":4174,"l":"INVENTORY_ADD_TABLE_BASE","t":"code","b":[165,12],"m":"lda","o":"WORK_PTR","oa":12,"x":[4167]},{"a":4176,"t":"code","b":[24],"m":"clc"},{"a":4177,"s":"+ OBJECT_DESCRIPTION_TABLE_PTR ($1C6B) low","t":"code","b":[109,107,28],"m":"adc","o":"OBJECT_DESCRIPTION_TABLE_PTR","oa":7275},{"a":4180,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":4182,"t":"code","b":[165,13],"m":"lda","o":"zpa_0D","oa":13},{"a":4184,"s":"+ OBJECT_DESCRIPTION_TABLE_PTR high","t":"code","b":[109,108,28],"m":"adc","o":"a_1C6C","oa":7276},{"a":4187,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":4189,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":4191,"s":"read description ptr low ...","t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":4193,"t":"code","b":[133,14],"m":"sta","o":"AUX_PTR","oa":14},{"a":4195,"t":"code","b":[200],"m":"iny"},{"a":4196,"s":"read description ptr high","t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":4198,"t":"code","b":[133,15],"m":"sta","o":"zpa_0F","oa":15},{"a":4200,"s":"skip the prefix byte; $22/$23 = description text","t":"code","b":[230,14],"m":"inc","o":"AUX_PTR","oa":14},{"a":4202,"t":"code","b":[208,2],"m":"bne","o":"INVENTORY_SET_TERM_PTR","oa":4206},{"a":4204,"t":"code","b":[230,15],"m":"inc","o":"zpa_0F","oa":15},{"a":4206,"l":"INVENTORY_SET_TERM_PTR","t":"code","b":[165,14],"m":"lda","o":"AUX_PTR","oa":14,"x":[4202]},{"a":4208,"t":"code","b":[133,34],"m":"sta","o":"TERM_DATA_PTR","oa":34},{"a":4210,"t":"code","b":[165,15],"m":"lda","o":"zpa_0F","oa":15},{"a":4212,"t":"code","b":[133,35],"m":"sta","o":"zpa_23","oa":35},{"a":4214,"s":"print the object's description","t":"code","b":[32,14,10],"m":"jsr","o":"PROCESS_TERM","oa":2574},{"a":4217,"t":"code","b":[104],"m":"pla"},{"a":4218,"t":"code","b":[168],"m":"tay"},{"a":4219,"s":"continue scanning carried list","t":"code","b":[76,26,16],"m":"jmp","o":"INVENTORY_NEXT_OBJECT","oa":4122},{"a":4222,"l":"DESCRIBE_CURRENT_ROOM","c":"DESCRIBE_CURRENT_ROOM ($107E)\nPurpose: Enter a room for presentation purposes: refuse everything if the room-lit flag is clear, otherwise print the room text, list the objects lying here, and synchronise the illustration with the room's default picture, repainting only if it changed.\nInputs: OBJ_FLAGS[7] ($2916) is the room-lit flag; CURRENT_ROOM ($293F); OBJ_ROOM_TABLE ($0D4F) maps room id to default picture id; CURRENT_ROOM_GRAPHIC_ID ($2942).\nOutputs: Either sentence $3F alone when dark, or the room description, the list of present objects, and a possibly updated CURRENT_ROOM_GRAPHIC_ID with a repaint.\nAssumptions: Darkness is checked before anything else, so a dark room hides both prose and object list but leaves the previous illustration on screen. The picture is only redrawn when the default id differs from CURRENT_ROOM_GRAPHIC_ID, which saves a redundant repaint; a picture a script set with SCRIPT_SET_ROOM_GRAPHIC is replaced by the room's default whenever this routine runs.\nClobbers: A, X, Y, flags, WORK_PTR ($0C/$0D), AUX_PTR ($0E/$0F), TERM_DATA_PTR ($22/$23), the self-modified operand at $1109, renderer and blitter scratch.\nHardware changes: Writes screen RAM, colour RAM and bitmap memory through the renderer and RENDER_ROOM_GRAPHICS.","t":"code","b":[162,7],"m":"ldx","o":"#$07","x":[1162,3717,5497]},{"a":4224,"s":"OBJ_FLAGS[7] = room lit?","t":"code","b":[189,15,41],"m":"lda","o":"OBJ_FLAGS,x","oa":10511},{"a":4227,"t":"code","b":[208,6],"m":"bne","o":"DESCRIBE_ROOM_LIT","oa":4235},{"a":4229,"s":"dark -> sentence $3F","t":"code","b":[169,63],"m":"lda","o":"#$3F"},{"a":4231,"t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":4234,"t":"code","b":[96],"m":"rts"},{"a":4235,"l":"DESCRIBE_ROOM_LIT","s":"Select CURRENT_ROOM's location text.","t":"code","b":[173,63,41],"m":"lda","o":"CURRENT_ROOM","oa":10559,"x":[4227]},{"a":4238,"t":"code","b":[32,88,11],"m":"jsr","o":"PRINT_ROOM_TEXT","oa":2904},{"a":4241,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":4243,"l":"DESCRIBE_ROOM_SCAN_OBJECTS","s":"Read this object's location/state.","t":"code","b":[185,191,40],"m":"lda","o":"OBJECT_LOCATIONS,y","oa":10431,"x":[4255]},{"a":4246,"s":"List it when its location equals CURRENT_ROOM.","t":"code","b":[205,63,41],"m":"cmp","o":"CURRENT_ROOM","oa":10559},{"a":4249,"t":"code","b":[240,25],"m":"beq","o":"DESCRIBE_ROOM_PRINT_OBJECT","oa":4276},{"a":4251,"l":"DESCRIBE_ROOM_NEXT_OBJECT","t":"code","b":[200],"m":"iny","x":[4386]},{"a":4252,"s":"Stop after OBJECT_COUNT entries.","t":"code","b":[204,163,34],"m":"cpy","o":"OBJECT_COUNT","oa":8867},{"a":4255,"t":"code","b":[208,242],"m":"bne","o":"DESCRIBE_ROOM_SCAN_OBJECTS","oa":4243},{"a":4257,"l":"DESCRIBE_ROOM_UPDATE_GRAPHIC","t":"code","b":[173,63,41],"m":"lda","o":"CURRENT_ROOM","oa":10559,"x":[4410]},{"a":4260,"t":"code","b":[168],"m":"tay"},{"a":4261,"s":"room's default picture from OBJ_ROOM_TABLE","t":"code","b":[185,79,13],"m":"lda","o":"OBJ_ROOM_TABLE,y","oa":3407},{"a":4264,"t":"code","b":[205,66,41],"m":"cmp","o":"CURRENT_ROOM_GRAPHIC_ID","oa":10562},{"a":4267,"t":"code","b":[240,6],"m":"beq","o":"DESCRIBE_ROOM_DONE","oa":4275},{"a":4269,"s":"changed -> update + repaint","t":"code","b":[141,66,41],"m":"sta","o":"CURRENT_ROOM_GRAPHIC_ID","oa":10562},{"a":4272,"t":"code","b":[76,112,5],"m":"jmp","o":"RENDER_ROOM_GRAPHICS","oa":1392},{"a":4275,"l":"DESCRIBE_ROOM_DONE","t":"code","b":[96],"m":"rts","x":[4267]},{"a":4276,"l":"DESCRIBE_ROOM_PRINT_OBJECT","t":"code","b":[152],"m":"tya","x":[4249]},{"a":4277,"t":"code","b":[72],"m":"pha"},{"a":4278,"t":"code","b":[10],"m":"asl","o":"a"},{"a":4279,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":4281,"t":"code","b":[176,7],"m":"bcs","o":"DESCRIBE_ROOM_INDEX_HIGH","oa":4290},{"a":4283,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4285,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":4287,"t":"code","b":[76,198,16],"m":"jmp","o":"DESCRIBE_ROOM_ADD_TABLE_BASE","oa":4294},{"a":4290,"l":"DESCRIBE_ROOM_INDEX_HIGH","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[4281]},{"a":4292,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":4294,"l":"DESCRIBE_ROOM_ADD_TABLE_BASE","t":"code","b":[165,12],"m":"lda","o":"WORK_PTR","oa":12,"x":[4287]},{"a":4296,"t":"code","b":[24],"m":"clc"},{"a":4297,"s":"+ OBJECT_DESCRIPTION_TABLE_PTR ($1C6B) -> description","t":"code","b":[109,107,28],"m":"adc","o":"OBJECT_DESCRIPTION_TABLE_PTR","oa":7275},{"a":4300,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":4302,"t":"code","b":[165,13],"m":"lda","o":"zpa_0D","oa":13},{"a":4304,"t":"code","b":[109,108,28],"m":"adc","o":"a_1C6C","oa":7276},{"a":4307,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":4309,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":4311,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":4313,"t":"code","b":[133,14],"m":"sta","o":"AUX_PTR","oa":14},{"a":4315,"t":"code","b":[200],"m":"iny"},{"a":4316,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":4318,"t":"code","b":[133,15],"m":"sta","o":"zpa_0F","oa":15},{"a":4320,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":4322,"t":"code","b":[161,14],"m":"lda","o":"(AUX_PTR,x)","oa":14},{"a":4324,"t":"code","b":[201,64],"m":"cmp","o":"#$40"},{"a":4326,"t":"code","b":[240,56],"m":"beq","o":"DESCRIBE_ROOM_RESUME_SCAN","oa":4384},{"a":4328,"t":"code","b":[141,9,17],"m":"sta","o":"DESCRIBE_ROOM_SAVED_PREFIX","oa":4361},{"a":4331,"t":"code","b":[72],"m":"pha"},{"a":4332,"t":"code","b":[32,61,11],"m":"jsr","o":"PRINT_PARAGRAPH_INDENT","oa":2877},{"a":4335,"t":"code","b":[104],"m":"pla"},{"a":4336,"t":"code","b":[201,0],"m":"cmp","o":"#$00"},{"a":4338,"t":"code","b":[240,3],"m":"beq","o":"DESCRIBE_ROOM_SKIP_PREFIX","oa":4343},{"a":4340,"t":"code","b":[32,170,9],"m":"jsr","o":"COMPUTE_SENTENCE_PTR_OFS","oa":2474},{"a":4343,"l":"DESCRIBE_ROOM_SKIP_PREFIX","t":"code","b":[230,14],"m":"inc","o":"AUX_PTR","oa":14,"x":[4338]},{"a":4345,"t":"code","b":[208,2],"m":"bne","o":"DESCRIBE_ROOM_SET_TERM_PTR","oa":4349},{"a":4347,"t":"code","b":[230,15],"m":"inc","o":"zpa_0F","oa":15},{"a":4349,"l":"DESCRIBE_ROOM_SET_TERM_PTR","t":"code","b":[165,14],"m":"lda","o":"AUX_PTR","oa":14,"x":[4345]},{"a":4351,"t":"code","b":[133,34],"m":"sta","o":"TERM_DATA_PTR","oa":34},{"a":4353,"t":"code","b":[165,15],"m":"lda","o":"zpa_0F","oa":15},{"a":4355,"t":"code","b":[133,35],"m":"sta","o":"zpa_23","oa":35},{"a":4357,"t":"code","b":[32,14,10],"m":"jsr","o":"PROCESS_TERM","oa":2574},{"a":4360,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4361,"t":"note","l":"DESCRIBE_ROOM_SAVED_PREFIX","c":"Saved immediate prefix id, written by $10E8 and restored by LDA at $1108 after processing an object description. Zero appends sentence $10; value six appends nothing; other nonzero values append sentence seven. The routine restores the object-scan index from the stack and resumes at $109B.","note":"inside the item at $1108","x":[4328]},{"a":4362,"t":"code","b":[240,7],"m":"beq","o":"DESCRIBE_ROOM_SUFFIX_10","oa":4371},{"a":4364,"t":"code","b":[201,6],"m":"cmp","o":"#$06"},{"a":4366,"t":"code","b":[208,11],"m":"bne","o":"DESCRIBE_ROOM_SUFFIX_07","oa":4379},{"a":4368,"t":"code","b":[76,32,17],"m":"jmp","o":"DESCRIBE_ROOM_RESUME_SCAN","oa":4384},{"a":4371,"l":"DESCRIBE_ROOM_SUFFIX_10","t":"code","b":[169,16],"m":"lda","o":"#$10","x":[4362]},{"a":4373,"t":"code","b":[32,170,9],"m":"jsr","o":"COMPUTE_SENTENCE_PTR_OFS","oa":2474},{"a":4376,"t":"code","b":[76,32,17],"m":"jmp","o":"DESCRIBE_ROOM_RESUME_SCAN","oa":4384},{"a":4379,"l":"DESCRIBE_ROOM_SUFFIX_07","t":"code","b":[169,7],"m":"lda","o":"#$07","x":[4366]},{"a":4381,"t":"code","b":[32,170,9],"m":"jsr","o":"COMPUTE_SENTENCE_PTR_OFS","oa":2474},{"a":4384,"l":"DESCRIBE_ROOM_RESUME_SCAN","t":"code","b":[104],"m":"pla","x":[4326,4368,4376]},{"a":4385,"t":"code","b":[168],"m":"tay"},{"a":4386,"t":"code","b":[76,155,16],"m":"jmp","o":"DESCRIBE_ROOM_NEXT_OBJECT","oa":4251},{"a":4389,"l":"NOOP_ACTION_11","c":"NOOP_ACTION_11 ($1125)\nPurpose: Action opcode $0B: a deliberate no-op verb body. Calls the RTS stub NOOP_0699 and returns, leaving whatever follows in the enclosing script to act.\nInputs: None.\nOutputs: No semantic state change. Returns to the interpreter.\nAssumptions: A census of the 118 scripts the tables reach (1,892 bytes, 871 opcode emissions; 119, 1,909 and 882 with the unreferenced script at $2B2F) finds two emissions of $0B: $2B25 as '0B 11 1F FF', meaning no-op, print sentence $1F, end, and Part 3 room $7C's script, where PAUSE and RESTART follow it. The distinct opcode and stub are deliberate, not dead code.\nClobbers: Nothing beyond the JSR/RTS stack cycle; A, X, Y and flags are preserved.\nHardware changes: None.","s":"call RTS stub (no-op)","t":"code","b":[32,153,6],"m":"jsr","o":"NOOP_0699","oa":1689},{"a":4392,"t":"code","b":[96],"m":"rts"},{"a":4393,"l":"NOOP_ACTION_12","c":"NOOP_ACTION_12 ($1129)\nPurpose: Action opcode $0C: a second deliberate no-op verb body, calling its own RTS stub NOOP_069A.\nInputs: None.\nOutputs: No semantic state change. Returns to the interpreter.\nAssumptions: Emitted exactly once, at $2B29 as '0C 11 1F FF'. The existence of two adjacent one-byte RTS stubs at $0699 and $069A is explained by this one-stub-per-opcode allocation.\nClobbers: Nothing beyond the JSR/RTS stack cycle; A, X, Y and flags are preserved.\nHardware changes: None.","s":"call RTS stub (no-op)","t":"code","b":[32,154,6],"m":"jsr","o":"NOOP_069A","oa":1690},{"a":4396,"t":"code","b":[96],"m":"rts"},{"a":4397,"l":"SCRIPT_SET_ROOM_GRAPHIC","c":"SCRIPT_SET_ROOM_GRAPHIC ($112D)\nPurpose: Action opcode: override the room illustration. Stores the operand into CURRENT_ROOM_GRAPHIC_ID and repaints; the marker $FA instead re-runs the default-picture synchronisation inside DESCRIBE_CURRENT_ROOM.\nInputs: One operand byte at SCRIPT_PC: a picture id or the $FA marker.\nOutputs: SCRIPT_PC advanced by one; CURRENT_ROOM_GRAPHIC_ID ($2942) updated and the band repainted, or the default picture restored via the $10A1 tail.\nAssumptions: Picture ids index the 57-entry RoomGraphicRecord table; only picture 0 and the loaded part's pictures have data in memory.\nClobbers: A, X, Y, flags, SCRIPT_PC, CURRENT_ROOM_GRAPHIC_ID, and all blitter and copy scratch.\nHardware changes: Writes colour RAM, screen RAM and bitmap memory through RENDER_ROOM_GRAPHICS.","s":"read byte from script","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4400,"s":"marker $FA?","t":"code","b":[201,250],"m":"cmp","o":"#$FA"},{"a":4402,"t":"code","b":[240,6],"m":"beq","o":"SET_ROOM_GFX_USE_ROOM_DEFAULT","oa":4410},{"a":4404,"s":"$2942 = byte","t":"code","b":[141,66,41],"m":"sta","o":"CURRENT_ROOM_GRAPHIC_ID","oa":10562},{"a":4407,"s":"Redraw using the new room graphic id.","t":"code","b":[76,112,5],"m":"jmp","o":"RENDER_ROOM_GRAPHICS","oa":1392},{"a":4410,"l":"SET_ROOM_GFX_USE_ROOM_DEFAULT","s":"$FA -> handler at $10A1","t":"code","b":[76,161,16],"m":"jmp","o":"DESCRIBE_ROOM_UPDATE_GRAPHIC","oa":4257,"x":[4402]},{"a":4413,"l":"SCRIPT_SET_OBJECT_GRAPHIC","c":"SCRIPT_SET_OBJECT_GRAPHIC ($113D)\nPurpose: Action opcode: install or clear the sixth visible-object record directly by icon slot index, bypassing the noun-to-object map. The marker $FA clears the record.\nInputs: One operand byte at SCRIPT_PC: an icon slot index or the $FA marker.\nOutputs: SCRIPT_PC advanced by one; the sixth record's source pointer at $2963/$2964 either zeroed or set to $A560 + index*$A0; the band repainted.\nAssumptions: Because the operand is a direct slot index, this opcode can display artwork that no vocabulary noun can select. The GET FALKOR action script, rule 14's at $2B6C in the engine's resident scripts, passes $17 and renders the Falkor icon at $B3C0.\nClobbers: A, X, Y, flags, SCRIPT_PC, CURRENT_OBJECT_INDEX ($5C), GRAPHIC_RECORD_PTR ($5A/$5B), the sixth visible record, and blitter scratch.\nHardware changes: Writes colour RAM, screen RAM and bitmap memory through RENDER_ROOM_GRAPHICS.","s":"read icon slot index (or $FA) from script","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4416,"s":"marker $FA?","t":"code","b":[201,250],"m":"cmp","o":"#$FA"},{"a":4418,"t":"code","b":[208,11],"m":"bne","o":"SET_OBJ_GFX_INSTALL","oa":4431},{"a":4420,"s":"Marker $FA clears the sixth visible graphic pointer.","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":4422,"t":"code","b":[141,99,41],"m":"sta","o":"COMPANION_SOURCE_PTR","oa":10595},{"a":4425,"t":"code","b":[141,100,41],"m":"sta","o":"COMPANION_SOURCE_HI","oa":10596},{"a":4428,"s":"Redraw after clearing the selected object graphic.","t":"code","b":[76,112,5],"m":"jmp","o":"RENDER_ROOM_GRAPHICS","oa":1392},{"a":4431,"l":"SET_OBJ_GFX_INSTALL","s":"Cache the selected object graphics-block index.","t":"code","b":[133,92],"m":"sta","o":"CURRENT_OBJECT_INDEX","oa":92,"x":[4418]},{"a":4433,"s":"Compute its $A560 object graphics pointer.","t":"code","b":[32,112,15],"m":"jsr","o":"CALC_OBJECT_GRAPHIC_PTR","oa":3952},{"a":4436,"t":"code","b":[165,90],"m":"lda","o":"GRAPHIC_RECORD_PTR","oa":90},{"a":4438,"s":"Install the low byte in COMPANION_SOURCE_PTR.","t":"code","b":[141,99,41],"m":"sta","o":"COMPANION_SOURCE_PTR","oa":10595},{"a":4441,"t":"code","b":[165,91],"m":"lda","o":"zpa_5B","oa":91},{"a":4443,"s":"Install the high byte in COMPANION_SOURCE_HI.","t":"code","b":[141,100,41],"m":"sta","o":"COMPANION_SOURCE_HI","oa":10596},{"a":4446,"s":"Redraw with the selected object graphic.","t":"code","b":[76,112,5],"m":"jmp","o":"RENDER_ROOM_GRAPHICS","oa":1392},{"a":4449,"l":"SCRIPT_PRINT_SENTENCE","c":"SCRIPT_PRINT_SENTENCE ($1161)\nPurpose: Action opcode: fetch one common-sentence id from the bytecode stream and print it.\nInputs: One operand byte at SCRIPT_PC: the sentence id.\nOutputs: SCRIPT_PC advanced by one; the selected sentence printed on a new line.\nAssumptions: The sentence table is resident engine data rather than overlay data, so these ids mean the same thing in every part.\nClobbers: A, X, Y, flags, SCRIPT_PC, TERM_DATA_PTR ($22/$23), WORK_PTR ($0C/$0D), UPPERCASE_LETTER_FLAG and terminal state.\nHardware changes: Writes screen and colour RAM through the renderer.","s":"read sentence id","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4452,"s":"print sentence","t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":4455,"t":"code","b":[96],"m":"rts"},{"a":4456,"l":"DEC_CARRIED_COUNT","c":"DEC_CARRIED_COUNT ($1168)\nPurpose: Decrement OBJ_COUNTERS[0], the number of objects the player is carrying.\nInputs: None; operates on the fixed counter slot 0.\nOutputs: OBJ_COUNTERS[0] ($292F) decremented. Returns with X=0 and flags reflecting the DEC.\nAssumptions: There is no floor: the count is expected to be kept consistent by TAKE and DROP. ACTION_DROP_OBJECT calls this directly at $0ECB, so the code is live; it is also installed as action opcode $15, but the full shipped-script census finds no $15 emission, so the dispatch-table role is redundant.\nClobbers: X and flags.\nHardware changes: None.","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[3787]},{"a":4458,"t":"code","b":[222,47,41],"m":"dec","o":"OBJ_COUNTERS,x","oa":10543},{"a":4461,"t":"code","b":[96],"m":"rts"},{"a":4462,"l":"INC_CARRIED_COUNT","c":"INC_CARRIED_COUNT ($116E)\nPurpose: Increment OBJ_COUNTERS[0], the number of objects the player is carrying.\nInputs: None; operates on the fixed counter slot 0.\nOutputs: OBJ_COUNTERS[0] ($292F) incremented. Returns with X=0 and flags reflecting the INC.\nAssumptions: There is no saturation; the capacity test lives in ACTION_TAKE_OBJECT. Called directly at $0F2E; also installed as action opcode $16, which the shipped-script census shows is never emitted.\nClobbers: X and flags.\nHardware changes: None.","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[3886]},{"a":4464,"t":"code","b":[254,47,41],"m":"inc","o":"OBJ_COUNTERS,x","oa":10543},{"a":4467,"t":"code","b":[96],"m":"rts"},{"a":4468,"l":"SCRIPT_SET_NOUN_ID","c":"SCRIPT_SET_NOUN_ID ($1174)\nPurpose: Action opcode $19: overwrite NOUN_ID ($4D), the parsed noun, with a noun token from the script, so that the TAKE or DROP action after it moves that object rather than the one the player named.\nInputs: One operand byte at SCRIPT_PC: a noun token.\nOutputs: SCRIPT_PC advanced by one; NOUN_ID ($4D) set to the operand.\nAssumptions: All 16 uses in the scripts are followed at once by TAKE (4) or DROP (12), with operands from $32 to $59, the noun tokens; for example $2B40 tests INROOM(11), sets $43 and takes that object. The parser sets NOUN_ID afresh for every command ($13A2, $13ED).\nClobbers: A, X, flags, SCRIPT_PC, and NOUN_ID ($4D).\nHardware changes: None.","s":"read byte from script","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4471,"s":"$4D = byte","t":"code","b":[133,77],"m":"sta","o":"NOUN_ID","oa":77},{"a":4473,"t":"code","b":[96],"m":"rts"},{"a":4474,"l":"SHOW_PAUSED_MESSAGE","c":"SHOW_PAUSED_MESSAGE ($117A)\nPurpose: Action opcode: pause the narrative. Ends the line, prints sentence $1D, \"Paused - hit space to continue!\", waits for Space, then ends that line.\nInputs: None in registers; terminal and keyboard must be usable.\nOutputs: Sentence $1D printed, the player has pressed Space, and the cursor is at the start of a fresh line.\nAssumptions: The wait is a busy KERNAL keyboard scan, so the raster-split interrupt continues to run and the display stays correct while the engine blocks here.\nClobbers: A, X, Y, flags, keyboard workspace, terminal cursors, CURRENT_COLUMN, WORK_PTR ($0C/$0D), TERM_DATA_PTR ($22/$23), WORD_REMAINING_LEN ($25) and UPPERCASE_LETTER_FLAG ($0AFF) through PRINT_SENTENCE, and, when the screen scrolls, MEMCPY_SOURCE ($0A/$0B), SCRATCH_BYTE_2 ($04) and the byte at $079E.\nHardware changes: Reads the CIA 1 keyboard matrix through KERNAL SCNKEY ($FF9F) and GETIN ($FFE4); writes screen and colour RAM.","s":"end the line","t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":4477,"s":"A=$1D prompt sentence","t":"code","b":[169,29],"m":"lda","o":"#$1D"},{"a":4479,"s":"print","t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":4482,"l":"WAIT_FOR_SPACE","s":"wait for SPACE","t":"code","b":[32,93,5],"m":"jsr","o":"WAIT_FOR_SPACE_KEY","oa":1373},{"a":4485,"s":"end the line","t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":4488,"t":"code","b":[96],"m":"rts"},{"a":4489,"l":"ACTION_SAVE_DISABLED","c":"ACTION_SAVE_DISABLED ($1189)\nPurpose: Action opcode $12: the shipped handler for the SAVE verb. It jumps straight to the RTS stub at $0491 and performs no disk operation.\nInputs: None. Reached only from the two-byte action script '12 FF'.\nOutputs: Immediate return; nothing is written to disk and no state changes.\nAssumptions: The parser still accepts the SAVE stem, so the feature is disabled at the action layer rather than in the vocabulary. The full KERNAL implementation survives at DISK_SAVE_GAME but has no incoming edge.\nClobbers: Nothing beyond the jump.\nHardware changes: None.","s":"-> RTS at $0491 (no-op)","t":"code","b":[76,145,4],"m":"jmp","o":"SAVE_DISABLED_RTS","oa":1169},{"a":4492,"l":"ACTION_LOAD_DISABLED","c":"ACTION_LOAD_DISABLED ($118C)\nPurpose: Action opcode $13: the shipped handler for the LOAD verb. It jumps straight to the RTS stub at $045F and performs no disk operation.\nInputs: None. Reached only from the two-byte action script '13 FF'.\nOutputs: Immediate return; nothing is read from disk and no state changes.\nAssumptions: As with SAVE, the vocabulary still accepts the stem; the surviving implementation at DISK_LOAD_GAME is unreachable.\nClobbers: Nothing beyond the jump.\nHardware changes: None.","s":"-> RTS at $045F (no-op)","t":"code","b":[76,95,4],"m":"jmp","o":"LOAD_DISABLED_RTS","oa":1119},{"a":4495,"l":"NOOP_ACTION_15","c":"NOOP_ACTION_15 ($118F)\nPurpose: Action opcode $0F: a verb body that does nothing at all, not even print. NOP followed by RTS.\nInputs: None.\nOutputs: Immediate return with no state change.\nAssumptions: Emitted exactly once, at $2B2D as '0F FF', giving a verb the parser accepts and that silently does nothing.\nClobbers: Nothing; A, X, Y, flags, memory and devices are preserved.\nHardware changes: None.","s":"no-op","t":"code","b":[234],"m":"nop"},{"a":4496,"t":"code","b":[96],"m":"rts"},{"a":4497,"l":"COND_TABLE_PTR","c":"Pointer to the condition-opcode handler table.","t":"word","b":[147,17],"d":[4499],"x":[5672]},{"a":4498,"t":"note","l":"a_1192","c":"High byte $11 of COND_TABLE_PTR, the little-endian pointer at $1191 which holds $1193. Low byte and pointer purpose are described at $1191.","note":"inside the item at $1191","x":[5679]},{"a":4499,"l":"CONDITION_DISPATCH_TABLE","c":"Ten condition handlers for opcodes $80-$89, low byte first, which RUN_SCRIPT calls: COND_OBJECT_IN_ROOM ($11B2), COND_OBJECT_CARRIED, COND_FLAG_SET, COND_FLAG_CLEAR, COND_COUNTER_ZERO, COND_COUNTER_EQ, COND_OBJECT_PRESENT, COND_OBJECT_ABSENT, COND_RANDOM ($1222) and COND_CURRENT_ROOM_IS ($11A7).","t":"byte","b":[178,17,194,17,208,17,220,17]},{"a":4507,"t":"byte","b":[232,17,244,17,6,18,20,18]},{"a":4515,"t":"byte","b":[34,18,167,17]},{"a":4519,"l":"COND_CURRENT_ROOM_IS","c":"COND_CURRENT_ROOM_IS ($11A7)\nPurpose: Condition opcode $89: true when the operand equals the room the player is in.\nInputs: One operand byte at SCRIPT_PC: a room id.\nOutputs: SCRIPT_PC advanced by one; carry set iff operand == CURRENT_ROOM ($293F).\nAssumptions: Invoked through the self-modified JSR at $1641, whose target is loaded from CONDITION_DISPATCH_TABLE ($1193). Carry is the entire return protocol: the interpreter continues the rule on carry set and skips to the next $FE or $FF on carry clear.\nClobbers: A, X, flags, SCRIPT_PC.\nHardware changes: None.","s":"read operand byte (a room id) from script","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4522,"t":"code","b":[205,63,41],"m":"cmp","o":"CURRENT_ROOM","oa":10559},{"a":4525,"s":"operand == CURRENT_ROOM -> TRUE","t":"code","b":[240,17],"m":"beq","o":"COND_TRUE","oa":4544},{"a":4527,"s":"else -> FALSE","t":"code","b":[76,190,17],"m":"jmp","o":"COND_FALSE","oa":4542},{"a":4530,"l":"COND_OBJECT_IN_ROOM","c":"COND_OBJECT_IN_ROOM ($11B2)\nPurpose: Condition opcode $80: true when the named object's location byte equals the current room.\nInputs: One operand byte at SCRIPT_PC: an object slot index.\nOutputs: SCRIPT_PC advanced by one; carry set iff OBJECT_LOCATIONS[slot] == CURRENT_ROOM. Falls through into COND_FALSE when not equal.\nAssumptions: Invoked through the self-modified JSR at $1641, whose target is loaded from CONDITION_DISPATCH_TABLE ($1193). Carry is the entire return protocol: the interpreter continues the rule on carry set and skips to the next $FE or $FF on carry clear. The slot index is not range checked.\nClobbers: A, X, Y, flags, SCRIPT_PC.\nHardware changes: None.","s":"read object slot index from script","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4533,"t":"code","b":[168],"m":"tay"},{"a":4534,"s":"A = OBJECT_LOCATIONS[slot] (object's current room/state)","t":"code","b":[185,191,40],"m":"lda","o":"OBJECT_LOCATIONS,y","oa":10431},{"a":4537,"t":"code","b":[205,63,41],"m":"cmp","o":"CURRENT_ROOM","oa":10559},{"a":4540,"s":"object in CURRENT_ROOM -> TRUE, else fall through to COND_FALSE","t":"code","b":[240,2],"m":"beq","o":"COND_TRUE","oa":4544},{"a":4542,"l":"COND_FALSE","c":"COND_FALSE ($11BE)\nPurpose: Shared Boolean-false return used by nine of the ten condition handlers (all but COND_RANDOM, which returns the carry of its own compare): clear carry and return.\nInputs: None. Entered by branch or jump from eight different condition handlers, and by falling through from COND_OBJECT_IN_ROOM.\nOutputs: Carry clear; A, X, Y and the other flags are whatever the calling handler left.\nAssumptions: Reached from outside its textual neighbours, so it is a genuine shared exit as well as COND_OBJECT_IN_ROOM's fall-through.\nClobbers: Carry only.\nHardware changes: None.","s":"return FALSE (carry clear)","t":"code","b":[24],"m":"clc","x":[4527,4557,4567,4581,4593,4611,4623,4639]},{"a":4543,"t":"code","b":[96],"m":"rts"},{"a":4544,"l":"COND_TRUE","c":"COND_TRUE ($11C0)\nPurpose: Shared Boolean-true return used by nine of the ten condition handlers (all but COND_RANDOM, which returns the carry of its own compare): set carry and return.\nInputs: None. Entered by branch or jump from nine different condition handlers.\nOutputs: Carry set; A, X, Y and the other flags are whatever the calling handler left.\nAssumptions: Reached from outside its textual neighbours, so it is a genuine shared exit.\nClobbers: Carry only.\nHardware changes: None.","s":"return TRUE (carry set)","t":"code","b":[56],"m":"sec","x":[4525,4540,4555,4569,4579,4591,4609,4625,4637]},{"a":4545,"t":"code","b":[96],"m":"rts"},{"a":4546,"l":"COND_OBJECT_CARRIED","c":"COND_OBJECT_CARRIED ($11C2)\nPurpose: Condition opcode $81: true when the named object is in the player's hands, i.e. its location byte holds the reserved carried marker $FC.\nInputs: One operand byte at SCRIPT_PC: an object slot index.\nOutputs: SCRIPT_PC advanced by one; carry set iff OBJECT_LOCATIONS[slot] == $FC.\nAssumptions: Invoked through the self-modified JSR at $1641, whose target is loaded from CONDITION_DISPATCH_TABLE ($1193). Carry is the entire return protocol: the interpreter continues the rule on carry set and skips to the next $FE or $FF on carry clear.\nClobbers: A, X, Y, flags, SCRIPT_PC.\nHardware changes: None.","s":"read slot index","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4549,"t":"code","b":[168],"m":"tay"},{"a":4550,"s":"Read this object's location/state.","t":"code","b":[185,191,40],"m":"lda","o":"OBJECT_LOCATIONS,y","oa":10431},{"a":4553,"s":"$FC means carried.","t":"code","b":[201,252],"m":"cmp","o":"#$FC"},{"a":4555,"s":"yes -> true","t":"code","b":[240,243],"m":"beq","o":"COND_TRUE","oa":4544},{"a":4557,"s":"no -> false","t":"code","b":[76,190,17],"m":"jmp","o":"COND_FALSE","oa":4542},{"a":4560,"l":"COND_FLAG_SET","c":"COND_FLAG_SET ($11D0)\nPurpose: Condition opcode $82: true when the named progression flag is non-zero.\nInputs: One operand byte at SCRIPT_PC: a flag index.\nOutputs: SCRIPT_PC advanced by one; carry set iff OBJ_FLAGS[index] ($290F + index) != 0.\nAssumptions: Invoked through the self-modified JSR at $1641, whose target is loaded from CONDITION_DISPATCH_TABLE ($1193). Carry is the entire return protocol: the interpreter continues the rule on carry set and skips to the next $FE or $FF on carry clear.\nClobbers: A, X, flags, SCRIPT_PC.\nHardware changes: None.","s":"read flag index","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4563,"t":"code","b":[170],"m":"tax"},{"a":4564,"s":"OBJ_FLAGS[idx]","t":"code","b":[189,15,41],"m":"lda","o":"OBJ_FLAGS,x","oa":10511},{"a":4567,"s":"== 0 -> false","t":"code","b":[240,229],"m":"beq","o":"COND_FALSE","oa":4542},{"a":4569,"s":"else -> true","t":"code","b":[76,192,17],"m":"jmp","o":"COND_TRUE","oa":4544},{"a":4572,"l":"COND_FLAG_CLEAR","c":"COND_FLAG_CLEAR ($11DC)\nPurpose: Condition opcode $83: true when the named progression flag is zero.\nInputs: One operand byte at SCRIPT_PC: a flag index.\nOutputs: SCRIPT_PC advanced by one; carry set iff OBJ_FLAGS[index] == 0.\nAssumptions: Invoked through the self-modified JSR at $1641, whose target is loaded from CONDITION_DISPATCH_TABLE ($1193). Carry is the entire return protocol: the interpreter continues the rule on carry set and skips to the next $FE or $FF on carry clear.\nClobbers: A, X, flags, SCRIPT_PC.\nHardware changes: None.","s":"read flag index","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4575,"t":"code","b":[170],"m":"tax"},{"a":4576,"s":"OBJ_FLAGS[idx]","t":"code","b":[189,15,41],"m":"lda","o":"OBJ_FLAGS,x","oa":10511},{"a":4579,"s":"== 0 -> true","t":"code","b":[240,219],"m":"beq","o":"COND_TRUE","oa":4544},{"a":4581,"s":"else -> false","t":"code","b":[76,190,17],"m":"jmp","o":"COND_FALSE","oa":4542},{"a":4584,"l":"COND_COUNTER_ZERO","c":"COND_COUNTER_ZERO ($11E8)\nPurpose: Condition opcode $84: true when the named counter has reached zero.\nInputs: One operand byte at SCRIPT_PC: a counter index.\nOutputs: SCRIPT_PC advanced by one; carry set iff OBJ_COUNTERS[index] ($292F + index) == 0.\nAssumptions: Invoked through the self-modified JSR at $1641, whose target is loaded from CONDITION_DISPATCH_TABLE ($1193). Carry is the entire return protocol: the interpreter continues the rule on carry set and skips to the next $FE or $FF on carry clear.\nClobbers: A, X, flags, SCRIPT_PC.\nHardware changes: None.","s":"read counter index","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4587,"t":"code","b":[170],"m":"tax"},{"a":4588,"s":"OBJ_COUNTERS[idx]","t":"code","b":[189,47,41],"m":"lda","o":"OBJ_COUNTERS,x","oa":10543},{"a":4591,"s":"== 0 -> true","t":"code","b":[240,207],"m":"beq","o":"COND_TRUE","oa":4544},{"a":4593,"s":"else -> false","t":"code","b":[76,190,17],"m":"jmp","o":"COND_FALSE","oa":4542},{"a":4596,"l":"COND_COUNTER_EQ","c":"COND_COUNTER_EQ ($11F4)\nPurpose: Condition opcode $85: true when the named counter holds exactly the given value.\nInputs: Two operand bytes at SCRIPT_PC: the counter index first, then the value.\nOutputs: SCRIPT_PC advanced by two; carry set iff OBJ_COUNTERS[index] == value.\nAssumptions: Invoked through the self-modified JSR at $1641, whose target is loaded from CONDITION_DISPATCH_TABLE ($1193). Carry is the entire return protocol: the interpreter continues the rule on carry set and skips to the next $FE or $FF on carry clear. The operand order, index then value, is the same as STATE_SET_COUNTER's.\nClobbers: A, X, flags, SCRATCH_INDEX ($03), SCRIPT_PC.\nHardware changes: None.","s":"read counter index","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4599,"s":"save counter index","t":"code","b":[133,3],"m":"sta","o":"SCRATCH_INDEX","oa":3},{"a":4601,"s":"read value","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4604,"t":"code","b":[166,3],"m":"ldx","o":"SCRATCH_INDEX","oa":3},{"a":4606,"s":"value == OBJ_COUNTERS[idx]?","t":"code","b":[221,47,41],"m":"cmp","o":"OBJ_COUNTERS,x","oa":10543},{"a":4609,"s":"yes -> true","t":"code","b":[240,189],"m":"beq","o":"COND_TRUE","oa":4544},{"a":4611,"s":"no -> false","t":"code","b":[76,190,17],"m":"jmp","o":"COND_FALSE","oa":4542},{"a":4614,"l":"COND_OBJECT_PRESENT","c":"COND_OBJECT_PRESENT ($1206)\nPurpose: Condition opcode $86: true when the named object still exists in the world, i.e. its location byte is not the reserved absent marker $FD.\nInputs: One operand byte at SCRIPT_PC: an object slot index.\nOutputs: SCRIPT_PC advanced by one; carry set iff OBJECT_LOCATIONS[slot] != $FD.\nAssumptions: Invoked through the self-modified JSR at $1641, whose target is loaded from CONDITION_DISPATCH_TABLE ($1193). Carry is the entire return protocol: the interpreter continues the rule on carry set and skips to the next $FE or $FF on carry clear. 'Present' means not destroyed, not 'in this room'.\nClobbers: A, X, flags, SCRIPT_PC.\nHardware changes: None.","s":"read slot index","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4617,"t":"code","b":[170],"m":"tax"},{"a":4618,"s":"Read this object's location/state.","t":"code","b":[189,191,40],"m":"lda","o":"OBJECT_LOCATIONS,x","oa":10431},{"a":4621,"s":"$FD means absent or disabled.","t":"code","b":[201,253],"m":"cmp","o":"#$FD"},{"a":4623,"s":"yes -> false","t":"code","b":[240,173],"m":"beq","o":"COND_FALSE","oa":4542},{"a":4625,"s":"no -> true","t":"code","b":[76,192,17],"m":"jmp","o":"COND_TRUE","oa":4544},{"a":4628,"l":"COND_OBJECT_ABSENT","c":"COND_OBJECT_ABSENT ($1214)\nPurpose: Condition opcode $87: true when the named object has been removed from the world, i.e. its location byte is the reserved absent marker $FD.\nInputs: One operand byte at SCRIPT_PC: an object slot index.\nOutputs: SCRIPT_PC advanced by one; carry set iff OBJECT_LOCATIONS[slot] == $FD.\nAssumptions: Invoked through the self-modified JSR at $1641, whose target is loaded from CONDITION_DISPATCH_TABLE ($1193). Carry is the entire return protocol: the interpreter continues the rule on carry set and skips to the next $FE or $FF on carry clear.\nClobbers: A, X, flags, SCRIPT_PC.\nHardware changes: None.","s":"read slot index","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4631,"t":"code","b":[170],"m":"tax"},{"a":4632,"s":"Read this object's location/state.","t":"code","b":[189,191,40],"m":"lda","o":"OBJECT_LOCATIONS,x","oa":10431},{"a":4635,"s":"$FD means absent or disabled.","t":"code","b":[201,253],"m":"cmp","o":"#$FD"},{"a":4637,"s":"yes -> true","t":"code","b":[240,161],"m":"beq","o":"COND_TRUE","oa":4544},{"a":4639,"s":"no -> false","t":"code","b":[76,190,17],"m":"jmp","o":"COND_FALSE","oa":4542},{"a":4642,"l":"COND_RANDOM","c":"COND_RANDOM ($1222)\nPurpose: Condition opcode $88, the engine's one test of chance. Compares an operand threshold against the low eight bits of the VIC-II raster counter and returns the resulting carry, so the outcome depends on when in the frame the script happens to run.\nInputs: One operand byte at SCRIPT_PC: the threshold.\nOutputs: SCRIPT_PC advanced by one; carry set iff threshold >= the sampled raster value. A PAL frame is 312 lines, so the low bytes 0-55 come round twice a frame and the rest once: a threshold n passes on n + 1 + min(n, 55) + 1 of the 312 lines, 257 for 200 and 102 for 50, when the test is equally likely to fall anywhere in the frame.\nAssumptions: Invoked through the self-modified JSR at $1641, whose target is loaded from CONDITION_DISPATCH_TABLE ($1193). Carry is the entire return protocol: the interpreter continues the rule on carry set and skips to the next $FE or $FF on carry clear. The stack is used for one balanced PHA/PLA, so the stack pointer is restored. Two tests in one script read the raster a few hundred cycles apart, so their results are not independent.\nClobbers: A, X (set to 0 by FETCH_SCRIPT_BYTE), flags, SCRATCH_BYTE ($02), SCRIPT_PC.\nHardware changes: Reads the VIC-II raster register $D012 through READ_RASTER_LINE. Nothing is written.","s":"read threshold byte","t":"code","b":[32,216,21],"m":"jsr","o":"FETCH_SCRIPT_BYTE","oa":5592},{"a":4645,"s":"save it","t":"code","b":[72],"m":"pha"},{"a":4646,"s":"A = current raster line ($D012)","t":"code","b":[32,149,6],"m":"jsr","o":"READ_RASTER_LINE","oa":1685},{"a":4649,"s":"-> temp $02","t":"code","b":[133,2],"m":"sta","o":"SCRATCH_BYTE","oa":2},{"a":4651,"t":"code","b":[104],"m":"pla"},{"a":4652,"s":"carry = threshold >= raster line","t":"code","b":[197,2],"m":"cmp","o":"SCRATCH_BYTE","oa":2},{"a":4654,"t":"code","b":[96],"m":"rts"},{"a":4655,"l":"PARSE_INPUT","c":"PARSE_INPUT ($122F)\nPurpose: Turn one edited command line into an executed command. Splits the line into words and records each word's start offset in an even byte of PARSED_TOKENS, then looks each word up and stores its vocabulary token id in the odd byte after the offset, then resolves the verb and noun and dispatches the matching rule, once for each command on the line.\nInputs: INPUT_TEXT_BUFFER ($CBA0) holds the lowercased line and INPUT_LEN ($26) its length. An empty line returns immediately.\nOutputs: PARSED_TOKENS ($28-$47) holds, for up to fifteen words, each word's start offset and token id (the byte after the last word's id holds the offset just past that word, plus one); WORD_COUNT ($27) holds twice the number of words; and the action script of each command on the line has been run, so any game state may have changed. An unknown word ends the line after its message ($12F6), before any command is dispatched.\nAssumptions: The token table is sixteen two-byte slots and the tokenizer stops when it fills. Vocabulary matching uses only the first three characters of each word; the block at $1325 inspects characters four to six only after NOR and SOU, to tell NORTHEAST, NORTHWEST, SOUTHEAST and SOUTHWEST from NORTH and SOUTH; other stems that share three letters (the three TRE entries) always give the first entry.\nClobbers: A, X, Y, flags, WORD_COUNT, PARSED_TOKENS, LOOP_COUNTER ($4B), SCRATCH_BYTE ($02), SCRATCH_INDEX ($03), SCRATCH_BYTE_2 ($04), WORD_BUFFER ($64-$69), MEMCPY_SOURCE ($0A/$0B), WORK_PTR ($0C/$0D), VERB_ID ($4C), NOUN_ID ($4D), SAVED_PARSE_INDEX ($6A), the self-modified operand at $13B1, and all VM and renderer state through dispatch.\nHardware changes: None directly; the renderer writes screen and colour RAM, and an executed command may reach the disk and display paths.","s":"input length","t":"code","b":[165,38],"m":"lda","o":"INPUT_LEN","oa":38,"x":[1039]},{"a":4657,"s":"empty line -> return","t":"code","b":[208,1],"m":"bne","o":"PARSE_CLEAR_TOKENS","oa":4660},{"a":4659,"t":"code","b":[96],"m":"rts"},{"a":4660,"l":"PARSE_CLEAR_TOKENS","s":"WORD_COUNT = 0","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[4657]},{"a":4662,"t":"code","b":[133,39],"m":"sta","o":"WORD_COUNT","oa":39},{"a":4664,"s":"clear PARSED_TOKENS offset table (32 bytes)","t":"code","b":[162,31],"m":"ldx","o":"#$1F"},{"a":4666,"l":"PARSE_CLEAR_LOOP","t":"code","b":[149,40],"m":"sta","o":"PARSED_TOKENS,x","oa":40,"x":[4669]},{"a":4668,"t":"code","b":[202],"m":"dex"},{"a":4669,"t":"code","b":[16,251],"m":"bpl","o":"PARSE_CLEAR_LOOP","oa":4666},{"a":4671,"s":"src ptr = INPUT_TEXT_BUFFER ($CBA0)","t":"code","b":[169,160],"m":"lda","o":"#$A0"},{"a":4673,"t":"code","b":[133,10],"m":"sta","o":"MEMCPY_SOURCE","oa":10},{"a":4675,"t":"code","b":[169,203],"m":"lda","o":"#$CB"},{"a":4677,"t":"code","b":[133,11],"m":"sta","o":"zpa_0B","oa":11},{"a":4679,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":4681,"s":"X = PARSED_TOKENS index","t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":4683,"l":"PARSE_SKIP_SPACES","s":"skip leading spaces","t":"code","b":[177,10],"m":"lda","o":"(MEMCPY_SOURCE),y","oa":10,"x":[4692]},{"a":4685,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":4687,"t":"code","b":[208,6],"m":"bne","o":"PARSE_WORD_START","oa":4695},{"a":4689,"t":"code","b":[200],"m":"iny"},{"a":4690,"s":"end of input?","t":"code","b":[196,38],"m":"cpy","o":"INPUT_LEN","oa":38},{"a":4692,"t":"code","b":[208,245],"m":"bne","o":"PARSE_SKIP_SPACES","oa":4683},{"a":4694,"t":"code","b":[96],"m":"rts"},{"a":4695,"l":"PARSE_WORD_START","s":"record word start offset -> PARSED_TOKENS[X]","t":"code","b":[148,40],"m":"sty","o":"PARSED_TOKENS,x","oa":40,"x":[4687]},{"a":4697,"t":"code","b":[232],"m":"inx"},{"a":4698,"t":"code","b":[232],"m":"inx"},{"a":4699,"l":"PARSE_SCAN_WORD","s":"scan to end of word (next space)","t":"code","b":[177,10],"m":"lda","o":"(MEMCPY_SOURCE),y","oa":10,"x":[4708,4749]},{"a":4701,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":4703,"t":"code","b":[240,13],"m":"beq","o":"PARSE_SAVE_WORD_END","oa":4718},{"a":4705,"t":"code","b":[200],"m":"iny"},{"a":4706,"t":"code","b":[196,38],"m":"cpy","o":"INPUT_LEN","oa":38},{"a":4708,"t":"code","b":[208,245],"m":"bne","o":"PARSE_SCAN_WORD","oa":4699},{"a":4710,"l":"PARSE_LAST_WORD_END","s":"WORD_COUNT++","t":"code","b":[230,39],"m":"inc","o":"WORD_COUNT","oa":39,"x":[4736]},{"a":4712,"t":"code","b":[200],"m":"iny"},{"a":4713,"t":"code","b":[148,40],"m":"sty","o":"PARSED_TOKENS,x","oa":40},{"a":4715,"t":"code","b":[76,144,18],"m":"jmp","o":"PARSE_BEGIN_LOOKUP","oa":4752},{"a":4718,"l":"PARSE_SAVE_WORD_END","t":"code","b":[132,4],"m":"sty","o":"SCRATCH_BYTE_2","oa":4,"x":[4703]},{"a":4720,"l":"PARSE_SKIP_GAP","t":"code","b":[200],"m":"iny","x":[4729]},{"a":4721,"t":"code","b":[196,38],"m":"cpy","o":"INPUT_LEN","oa":38},{"a":4723,"t":"code","b":[240,9],"m":"beq","o":"PARSE_RESTORE_WORD_END","oa":4734},{"a":4725,"t":"code","b":[177,10],"m":"lda","o":"(MEMCPY_SOURCE),y","oa":10},{"a":4727,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":4729,"t":"code","b":[240,245],"m":"beq","o":"PARSE_SKIP_GAP","oa":4720},{"a":4731,"t":"code","b":[76,131,18],"m":"jmp","o":"PARSE_RECORD_WORD_END","oa":4739},{"a":4734,"l":"PARSE_RESTORE_WORD_END","t":"code","b":[164,4],"m":"ldy","o":"SCRATCH_BYTE_2","oa":4,"x":[4723]},{"a":4736,"t":"code","b":[76,102,18],"m":"jmp","o":"PARSE_LAST_WORD_END","oa":4710},{"a":4739,"l":"PARSE_RECORD_WORD_END","s":"record next word's start offset, advance token slot","t":"code","b":[148,40],"m":"sty","o":"PARSED_TOKENS,x","oa":40,"x":[4731]},{"a":4741,"t":"code","b":[230,39],"m":"inc","o":"WORD_COUNT","oa":39},{"a":4743,"t":"code","b":[232],"m":"inx"},{"a":4744,"t":"code","b":[232],"m":"inx"},{"a":4745,"s":"table full (16 start offsets)? Then WORD_COUNT is 15 and the 16th word is dropped","t":"code","b":[224,32],"m":"cpx","o":"#$20"},{"a":4747,"t":"code","b":[240,3],"m":"beq","o":"PARSE_BEGIN_LOOKUP","oa":4752},{"a":4749,"t":"code","b":[76,91,18],"m":"jmp","o":"PARSE_SCAN_WORD","oa":4699},{"a":4752,"l":"PARSE_BEGIN_LOOKUP","c":"For each parsed word: blank WORD_BUFFER (6 spaces), copy up to 6 chars of the word from\nINPUT_TEXT_BUFFER into WORD_BUFFER, then fall into VOCAB_LOOKUP.","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[4715,4747]},{"a":4754,"s":"WORD_COUNT -> $4B (words remaining)","t":"code","b":[165,39],"m":"lda","o":"WORD_COUNT","oa":39},{"a":4756,"t":"code","b":[133,75],"m":"sta","o":"LOOP_COUNTER","oa":75},{"a":4758,"l":"PARSE_NEXT_WORD","t":"code","b":[134,3],"m":"stx","o":"SCRATCH_INDEX","oa":3,"x":[5011]},{"a":4760,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":4762,"s":"blank WORD_BUFFER (6 spaces)","t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":4764,"l":"PARSE_BLANK_WORD_BUFFER","t":"code","b":[149,100],"m":"sta","o":"WORD_BUFFER,x","oa":100,"x":[4769]},{"a":4766,"t":"code","b":[232],"m":"inx"},{"a":4767,"t":"code","b":[224,6],"m":"cpx","o":"#$06"},{"a":4769,"t":"code","b":[208,249],"m":"bne","o":"PARSE_BLANK_WORD_BUFFER","oa":4764},{"a":4771,"t":"code","b":[166,3],"m":"ldx","o":"SCRATCH_INDEX","oa":3},{"a":4773,"s":"Y = this word's start offset","t":"code","b":[180,40],"m":"ldy","o":"PARSED_TOKENS,x","oa":40},{"a":4775,"t":"code","b":[232],"m":"inx"},{"a":4776,"t":"code","b":[134,3],"m":"stx","o":"SCRATCH_INDEX","oa":3},{"a":4778,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":4780,"l":"PARSE_COPY_WORD_CHARS","s":"copy word chars into WORD_BUFFER (max 6)","t":"code","b":[177,10],"m":"lda","o":"(MEMCPY_SOURCE),y","oa":10,"x":[4792]},{"a":4782,"t":"code","b":[201,32],"m":"cmp","o":"#$20"},{"a":4784,"t":"code","b":[240,8],"m":"beq","o":"PARSE_LOAD_VOCAB_PTR","oa":4794},{"a":4786,"t":"code","b":[149,100],"m":"sta","o":"WORD_BUFFER,x","oa":100},{"a":4788,"t":"code","b":[200],"m":"iny"},{"a":4789,"t":"code","b":[232],"m":"inx"},{"a":4790,"t":"code","b":[224,6],"m":"cpx","o":"#$06"},{"a":4792,"t":"code","b":[208,242],"m":"bne","o":"PARSE_COPY_WORD_CHARS","oa":4780},{"a":4794,"l":"PARSE_LOAD_VOCAB_PTR","s":"VOCAB_TABLE_PTR -> vocab pointer $0C/$0D","t":"code","b":[173,156,25],"m":"lda","o":"VOCAB_TABLE_PTR","oa":6556,"x":[4784]},{"a":4797,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":4799,"t":"code","b":[173,157,25],"m":"lda","o":"a_199D","oa":6557},{"a":4802,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":4804,"l":"VOCAB_LOOKUP","c":"The vocabulary is a list of 4-byte entries [char1,char2,char3,id], terminated by '@' ($40).\nMatches the word's first 3 chars against each entry; on a full match reads the id byte\n(-> $02) and goes on to VOCAB_READ_TOKEN_ID ($1325), which tells the four diagonal directions from NORTH and SOUTH. A '@' terminator means the word\nis unknown -> WORD_NOT_FOUND.","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[4825,4829]},{"a":4806,"t":"code","b":[162,0],"m":"ldx","o":"#$00"},{"a":4808,"s":"vocab entry char","t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":4810,"s":"'@' end-of-vocab -> not found","t":"code","b":[201,64],"m":"cmp","o":"#$40"},{"a":4812,"t":"code","b":[240,40],"m":"beq","o":"WORD_NOT_FOUND","oa":4854},{"a":4814,"s":"compare to WORD_BUFFER[0]","t":"code","b":[213,100],"m":"cmp","o":"WORD_BUFFER,x","oa":100},{"a":4816,"t":"code","b":[240,14],"m":"beq","o":"VOCAB_MATCH_CHAR_2","oa":4832},{"a":4818,"l":"VOCAB_NEXT_ENTRY","s":"no match: advance to next 4-byte entry","t":"code","b":[169,4],"m":"lda","o":"#$04","x":[4840,4851]},{"a":4820,"t":"code","b":[24],"m":"clc"},{"a":4821,"t":"code","b":[101,12],"m":"adc","o":"WORK_PTR","oa":12},{"a":4823,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":4825,"t":"code","b":[144,233],"m":"bcc","o":"VOCAB_LOOKUP","oa":4804},{"a":4827,"t":"code","b":[230,13],"m":"inc","o":"zpa_0D","oa":13},{"a":4829,"t":"code","b":[76,196,18],"m":"jmp","o":"VOCAB_LOOKUP","oa":4804},{"a":4832,"l":"VOCAB_MATCH_CHAR_2","s":"match char 2 ...","t":"code","b":[200],"m":"iny","x":[4816]},{"a":4833,"t":"code","b":[232],"m":"inx"},{"a":4834,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":4836,"t":"code","b":[213,100],"m":"cmp","o":"WORD_BUFFER,x","oa":100},{"a":4838,"t":"code","b":[240,3],"m":"beq","o":"VOCAB_MATCH_CHAR_3","oa":4843},{"a":4840,"t":"code","b":[76,210,18],"m":"jmp","o":"VOCAB_NEXT_ENTRY","oa":4818},{"a":4843,"l":"VOCAB_MATCH_CHAR_3","s":"match char 3 -> token found","t":"code","b":[200],"m":"iny","x":[4838]},{"a":4844,"t":"code","b":[232],"m":"inx"},{"a":4845,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":4847,"t":"code","b":[213,100],"m":"cmp","o":"WORD_BUFFER,x","oa":100},{"a":4849,"t":"code","b":[240,50],"m":"beq","o":"VOCAB_READ_TOKEN_ID","oa":4901},{"a":4851,"t":"code","b":[76,210,18],"m":"jmp","o":"VOCAB_NEXT_ENTRY","oa":4818},{"a":4854,"l":"WORD_NOT_FOUND","c":"Prints sentence $0 (\"I don't understand ...\") then echoes the offending word in quotes:\ncomputes its length (WORD_REMAINING_LEN) and pointer (TERM_DATA_PTR = $CBA0 + offset) and\nprints it via PRINT_WORD, then ends the line.","s":"A=$0 'don't understand' sentence","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[4812]},{"a":4856,"t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":4859,"s":"print '\"'","t":"code","b":[169,34],"m":"lda","o":"#$22"},{"a":4861,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":4864,"t":"code","b":[166,3],"m":"ldx","o":"SCRATCH_INDEX","oa":3},{"a":4866,"t":"code","b":[232],"m":"inx"},{"a":4867,"s":"word length = next slot's offset (next word's start, or the last word's end + 1) - start offset - 1; extra spaces between words are counted in","t":"code","b":[181,40],"m":"lda","o":"PARSED_TOKENS,x","oa":40},{"a":4869,"t":"code","b":[202],"m":"dex"},{"a":4870,"t":"code","b":[202],"m":"dex"},{"a":4871,"t":"code","b":[56],"m":"sec"},{"a":4872,"t":"code","b":[245,40],"m":"sbc","o":"PARSED_TOKENS,x","oa":40},{"a":4874,"t":"code","b":[56],"m":"sec"},{"a":4875,"t":"code","b":[233,1],"m":"sbc","o":"#$01"},{"a":4877,"s":"-> WORD_REMAINING_LEN","t":"code","b":[133,37],"m":"sta","o":"WORD_REMAINING_LEN","oa":37},{"a":4879,"s":"TERM_DATA_PTR = $CBA0 + word start offset","t":"code","b":[181,40],"m":"lda","o":"PARSED_TOKENS,x","oa":40},{"a":4881,"t":"code","b":[24],"m":"clc"},{"a":4882,"t":"code","b":[105,160],"m":"adc","o":"#$A0"},{"a":4884,"t":"code","b":[133,34],"m":"sta","o":"TERM_DATA_PTR","oa":34},{"a":4886,"t":"code","b":[169,203],"m":"lda","o":"#$CB"},{"a":4888,"t":"code","b":[133,35],"m":"sta","o":"zpa_23","oa":35},{"a":4890,"s":"print the word","t":"code","b":[32,219,10],"m":"jsr","o":"PRINT_WORD","oa":2779},{"a":4893,"s":"print '\"'","t":"code","b":[169,34],"m":"lda","o":"#$22"},{"a":4895,"t":"code","b":[32,219,8],"m":"jsr","o":"PRINT_CHARACTER","oa":2267},{"a":4898,"s":"end the line and return","t":"code","b":[76,75,11],"m":"jmp","o":"PRINT_EMPTY_LINE","oa":2891},{"a":4901,"l":"VOCAB_READ_TOKEN_ID","c":"Reads the matched vocab entry's id byte into $02. For ambiguous stems (id type 1 or 5) it\ninspects WORD_BUFFER[3..5] to pick the exact word \u2014 e.g. \"th e\"/\"th w\" variants map to\ndifferent ids ($2,$4,$6,$8). Only these two stems are told apart: NORTHEAST, NORTHWEST, SOUTHEAST and SOUTHWEST\nget ids 2, 8, 4 and 6, and other stems that share three letters (the three TRE entries)\nalways give the first entry.","s":"read id byte -> $02","t":"code","b":[200],"m":"iny","x":[4849]},{"a":4902,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":4904,"t":"code","b":[133,2],"m":"sta","o":"SCRATCH_BYTE","oa":2},{"a":4906,"s":"type 1? -> disambiguate","t":"code","b":[201,1],"m":"cmp","o":"#$01"},{"a":4908,"t":"code","b":[240,7],"m":"beq","o":"VOCAB_DISAMBIGUATE_TYPE_1","oa":4917},{"a":4910,"s":"type 5? -> disambiguate","t":"code","b":[201,5],"m":"cmp","o":"#$05"},{"a":4912,"t":"code","b":[240,46],"m":"beq","o":"VOCAB_DISAMBIGUATE_TYPE_5","oa":4960},{"a":4914,"t":"code","b":[76,136,19],"m":"jmp","o":"VOCAB_STORE_TOKEN_ID","oa":5000},{"a":4917,"l":"VOCAB_DISAMBIGUATE_TYPE_1","t":"code","b":[162,3],"m":"ldx","o":"#$03","x":[4908]},{"a":4919,"s":"check WORD_BUFFER[3..5] for exact word","t":"code","b":[181,100],"m":"lda","o":"WORD_BUFFER,x","oa":100},{"a":4921,"t":"code","b":[201,116],"m":"cmp","o":"#$74"},{"a":4923,"t":"code","b":[208,75],"m":"bne","o":"VOCAB_STORE_TOKEN_ID","oa":5000},{"a":4925,"t":"code","b":[232],"m":"inx"},{"a":4926,"t":"code","b":[181,100],"m":"lda","o":"WORD_BUFFER,x","oa":100},{"a":4928,"t":"code","b":[201,104],"m":"cmp","o":"#$68"},{"a":4930,"t":"code","b":[208,68],"m":"bne","o":"VOCAB_STORE_TOKEN_ID","oa":5000},{"a":4932,"t":"code","b":[232],"m":"inx"},{"a":4933,"t":"code","b":[181,100],"m":"lda","o":"WORD_BUFFER,x","oa":100},{"a":4935,"t":"code","b":[201,101],"m":"cmp","o":"#$65"},{"a":4937,"t":"code","b":[240,14],"m":"beq","o":"VOCAB_TYPE_1_EAST","oa":4953},{"a":4939,"t":"code","b":[201,119],"m":"cmp","o":"#$77"},{"a":4941,"t":"code","b":[240,3],"m":"beq","o":"VOCAB_TYPE_1_WEST","oa":4946},{"a":4943,"t":"code","b":[76,136,19],"m":"jmp","o":"VOCAB_STORE_TOKEN_ID","oa":5000},{"a":4946,"l":"VOCAB_TYPE_1_WEST","t":"code","b":[169,8],"m":"lda","o":"#$08","x":[4941]},{"a":4948,"t":"code","b":[133,2],"m":"sta","o":"SCRATCH_BYTE","oa":2},{"a":4950,"t":"code","b":[76,136,19],"m":"jmp","o":"VOCAB_STORE_TOKEN_ID","oa":5000},{"a":4953,"l":"VOCAB_TYPE_1_EAST","t":"code","b":[169,2],"m":"lda","o":"#$02","x":[4937]},{"a":4955,"t":"code","b":[133,2],"m":"sta","o":"SCRATCH_BYTE","oa":2},{"a":4957,"t":"code","b":[76,136,19],"m":"jmp","o":"VOCAB_STORE_TOKEN_ID","oa":5000},{"a":4960,"l":"VOCAB_DISAMBIGUATE_TYPE_5","t":"code","b":[162,3],"m":"ldx","o":"#$03","x":[4912]},{"a":4962,"t":"code","b":[181,100],"m":"lda","o":"WORD_BUFFER,x","oa":100},{"a":4964,"t":"code","b":[201,116],"m":"cmp","o":"#$74"},{"a":4966,"t":"code","b":[208,32],"m":"bne","o":"VOCAB_STORE_TOKEN_ID","oa":5000},{"a":4968,"t":"code","b":[232],"m":"inx"},{"a":4969,"t":"code","b":[181,100],"m":"lda","o":"WORD_BUFFER,x","oa":100},{"a":4971,"t":"code","b":[201,104],"m":"cmp","o":"#$68"},{"a":4973,"t":"code","b":[208,25],"m":"bne","o":"VOCAB_STORE_TOKEN_ID","oa":5000},{"a":4975,"t":"code","b":[232],"m":"inx"},{"a":4976,"t":"code","b":[181,100],"m":"lda","o":"WORD_BUFFER,x","oa":100},{"a":4978,"t":"code","b":[201,101],"m":"cmp","o":"#$65"},{"a":4980,"t":"code","b":[240,14],"m":"beq","o":"VOCAB_TYPE_5_EAST","oa":4996},{"a":4982,"t":"code","b":[201,119],"m":"cmp","o":"#$77"},{"a":4984,"t":"code","b":[240,3],"m":"beq","o":"VOCAB_TYPE_5_WEST","oa":4989},{"a":4986,"t":"code","b":[76,136,19],"m":"jmp","o":"VOCAB_STORE_TOKEN_ID","oa":5000},{"a":4989,"l":"VOCAB_TYPE_5_WEST","t":"code","b":[169,6],"m":"lda","o":"#$06","x":[4984]},{"a":4991,"t":"code","b":[133,2],"m":"sta","o":"SCRATCH_BYTE","oa":2},{"a":4993,"t":"code","b":[76,136,19],"m":"jmp","o":"VOCAB_STORE_TOKEN_ID","oa":5000},{"a":4996,"l":"VOCAB_TYPE_5_EAST","t":"code","b":[169,4],"m":"lda","o":"#$04","x":[4980]},{"a":4998,"t":"code","b":[133,2],"m":"sta","o":"SCRATCH_BYTE","oa":2},{"a":5000,"l":"VOCAB_STORE_TOKEN_ID","c":"Stores the resolved id ($02) in PARSED_TOKENS[X], the odd byte after the word's start offset, and loops to the next word (via\n$1296) until WORD_COUNT words are done. RESOLVE_VERB_NOUN ($1396) then rescans the odd bytes: WORD_COUNT is doubled to\na byte length, and the first token that is nonzero, below $32 and has bit 7 clear becomes the verb; tokens with bit 7 set\nare skipped. NOUN_ID defaults to $FA (none). A scan that finds no verb prints sentence $1 (\"There is no verb in that\nsentence.\") unless a command on the line has already been dispatched (COMMAND_UNHANDLED_FLAG, $13B1).","s":"store resolved id -> PARSED_TOKENS[X]","t":"code","b":[165,2],"m":"lda","o":"SCRATCH_BYTE","oa":2,"x":[4914,4923,4930,4943,4950,4957,4966,4973,4986,4993]},{"a":5002,"t":"code","b":[166,3],"m":"ldx","o":"SCRATCH_INDEX","oa":3},{"a":5004,"t":"code","b":[149,40],"m":"sta","o":"PARSED_TOKENS,x","oa":40},{"a":5006,"t":"code","b":[232],"m":"inx"},{"a":5007,"s":"words remaining--","t":"code","b":[198,75],"m":"dec","o":"LOOP_COUNTER","oa":75},{"a":5009,"s":"all done -> RESOLVE_VERB_NOUN","t":"code","b":[240,3],"m":"beq","o":"RESOLVE_VERB_NOUN","oa":5014},{"a":5011,"s":"next word","t":"code","b":[76,150,18],"m":"jmp","o":"PARSE_NEXT_WORD","oa":4758},{"a":5014,"l":"RESOLVE_VERB_NOUN","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[5009]},{"a":5016,"t":"code","b":[141,177,19],"m":"sta","o":"COMMAND_UNHANDLED_FLAG","oa":5041},{"a":5019,"t":"code","b":[165,39],"m":"lda","o":"WORD_COUNT","oa":39},{"a":5021,"s":"WORD_COUNT *= 2 (byte length)","t":"code","b":[10],"m":"asl","o":"a"},{"a":5022,"t":"code","b":[133,39],"m":"sta","o":"WORD_COUNT","oa":39},{"a":5024,"t":"code","b":[162,1],"m":"ldx","o":"#$01"},{"a":5026,"l":"RESOLVE_VN_RESTART_SCAN","s":"scan tokens for the verb","t":"code","b":[169,250],"m":"lda","o":"#$FA","x":[5120]},{"a":5028,"s":"NOUN_ID = $FA (none)","t":"code","b":[133,77],"m":"sta","o":"NOUN_ID","oa":77},{"a":5030,"l":"RESOLVE_VN_SCAN_VERB","t":"code","b":[181,40],"m":"lda","o":"PARSED_TOKENS,x","oa":40,"x":[5038]},{"a":5032,"t":"code","b":[208,19],"m":"bne","o":"RESOLVE_VN_TEST_CANDIDATE","oa":5053},{"a":5034,"l":"RESOLVE_VN_NEXT_VERB_SLOT","t":"code","b":[232],"m":"inx","x":[5065]},{"a":5035,"t":"code","b":[232],"m":"inx"},{"a":5036,"t":"code","b":[228,39],"m":"cpx","o":"WORD_COUNT","oa":39},{"a":5038,"t":"code","b":[144,246],"m":"bcc","o":"RESOLVE_VN_SCAN_VERB","oa":5030},{"a":5040,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5041,"t":"note","l":"COMMAND_UNHANDLED_FLAG","c":"Immediate operand of LDA at $13B0, patched by $1398/$1405 to record whether a command remained unhandled. Zero takes BEQ $13BC without printing; one prints sentence 1 and an empty line. Following resolver code selects a verb id below $32 and scans the noun tokens before dispatch.","note":"inside the item at $13B0","x":[5016,5125]},{"a":5042,"t":"code","b":[240,8],"m":"beq","o":"RESOLVE_VN_DONE","oa":5052},{"a":5044,"s":"no verb -> sentence $1","t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5046,"t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":5049,"t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":5052,"l":"RESOLVE_VN_DONE","t":"code","b":[96],"m":"rts","x":[5042]},{"a":5053,"l":"RESOLVE_VN_TEST_CANDIDATE","s":"candidate token","t":"code","b":[133,2],"m":"sta","o":"SCRATCH_BYTE","oa":2,"x":[5032]},{"a":5055,"s":"bit 7 set -> skip this token; it is not a verb candidate","t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":5057,"t":"code","b":[208,6],"m":"bne","o":"RESOLVE_VN_SKIP_TOKEN","oa":5065},{"a":5059,"t":"code","b":[165,2],"m":"lda","o":"SCRATCH_BYTE","oa":2},{"a":5061,"s":"bit 7 clear and id < $32 -> accept as the verb","t":"code","b":[201,50],"m":"cmp","o":"#$32"},{"a":5063,"t":"code","b":[144,3],"m":"bcc","o":"RESOLVE_VN_ACCEPT_VERB","oa":5068},{"a":5065,"l":"RESOLVE_VN_SKIP_TOKEN","t":"code","b":[76,170,19],"m":"jmp","o":"RESOLVE_VN_NEXT_VERB_SLOT","oa":5034,"x":[5057]},{"a":5068,"l":"RESOLVE_VN_ACCEPT_VERB","s":"VERB_ID = token","t":"code","b":[133,76],"m":"sta","o":"VERB_ID","oa":76,"x":[5063]},{"a":5070,"t":"code","b":[232],"m":"inx"},{"a":5071,"t":"code","b":[232],"m":"inx"},{"a":5072,"t":"code","b":[228,39],"m":"cpx","o":"WORD_COUNT","oa":39},{"a":5074,"t":"code","b":[144,4],"m":"bcc","o":"RESOLVE_VN_SCAN_NOUN","oa":5080},{"a":5076,"t":"code","b":[32,3,20],"m":"jsr","o":"DISPATCH_COMMAND","oa":5123},{"a":5079,"t":"code","b":[96],"m":"rts"},{"a":5080,"l":"RESOLVE_VN_SCAN_NOUN","s":"scan for the noun token","t":"code","b":[181,40],"m":"lda","o":"PARSED_TOKENS,x","oa":40,"x":[5074,5095]},{"a":5082,"t":"code","b":[240,7],"m":"beq","o":"RESOLVE_VN_NEXT_NOUN_SLOT","oa":5091},{"a":5084,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":5086,"t":"code","b":[240,25],"m":"beq","o":"RESOLVE_VN_MULTI_COMMAND","oa":5113},{"a":5088,"t":"code","b":[76,237,19],"m":"jmp","o":"RESOLVE_VN_ACCEPT_NOUN","oa":5101},{"a":5091,"l":"RESOLVE_VN_NEXT_NOUN_SLOT","t":"code","b":[232],"m":"inx","x":[5082]},{"a":5092,"t":"code","b":[232],"m":"inx"},{"a":5093,"t":"code","b":[228,39],"m":"cpx","o":"WORD_COUNT","oa":39},{"a":5095,"t":"code","b":[144,239],"m":"bcc","o":"RESOLVE_VN_SCAN_NOUN","oa":5080},{"a":5097,"t":"code","b":[32,3,20],"m":"jsr","o":"DISPATCH_COMMAND","oa":5123},{"a":5100,"t":"code","b":[96],"m":"rts"},{"a":5101,"l":"RESOLVE_VN_ACCEPT_NOUN","s":"NOUN_ID = token","t":"code","b":[133,77],"m":"sta","o":"NOUN_ID","oa":77,"x":[5088]},{"a":5103,"t":"code","b":[232],"m":"inx"},{"a":5104,"t":"code","b":[232],"m":"inx"},{"a":5105,"t":"code","b":[228,39],"m":"cpx","o":"WORD_COUNT","oa":39},{"a":5107,"t":"code","b":[144,4],"m":"bcc","o":"RESOLVE_VN_MULTI_COMMAND","oa":5113},{"a":5109,"t":"code","b":[32,3,20],"m":"jsr","o":"DISPATCH_COMMAND","oa":5123},{"a":5112,"t":"code","b":[96],"m":"rts"},{"a":5113,"l":"RESOLVE_VN_MULTI_COMMAND","s":"$FF token, or words left after the noun: run this command, then scan on for the next one","t":"code","b":[134,106],"m":"stx","o":"SAVED_PARSE_INDEX","oa":106,"x":[5086,5107]},{"a":5115,"t":"code","b":[32,3,20],"m":"jsr","o":"DISPATCH_COMMAND","oa":5123},{"a":5118,"t":"code","b":[166,106],"m":"ldx","o":"SAVED_PARSE_INDEX","oa":106},{"a":5120,"t":"code","b":[76,162,19],"m":"jmp","o":"RESOLVE_VN_RESTART_SCAN","oa":5026},{"a":5123,"l":"DISPATCH_COMMAND","c":"DISPATCH_COMMAND ($1403)\nPurpose: Find the rule matching the current verb and noun and run its action script. Scans the two-byte verb-rule table for the verb, then requires the following byte to be the any-noun wildcard $FB or to equal the parsed noun; on a match it loads the script and runs the interpreter.\nInputs: VERB_ID ($4C), NOUN_ID ($4D); the verb-rule table base is the word at $199E; ACTION_SCRIPT_COUNT ($2A12) bounds the rule index.\nOutputs: On a match, RUN_ACTION_SCRIPT sets SCRIPT_PC and RUN_SCRIPT executes the bytecode. On no match, sentence $03 is printed and the resolver's return address is discarded, so the RTS leaves PARSE_INPUT for MAIN_LOOP ($0412) and any later commands on the line are dropped. A rule index at or above the count returns silently.\nAssumptions: The rule index doubles as the action-script index, so the table order and the script table order must agree. The bit-7 test on the index rejects indices above 127 before the count comparison.\nClobbers: A, X, Y, flags, MEMCPY_SOURCE ($0A/$0B), LOOP_COUNTER ($4B), the self-modified operand at $13B1, WORK_PTR ($0C/$0D) and SCRIPT_PC ($4E/$4F) through RUN_ACTION_SCRIPT, the text printer's state through PRINT_SENTENCE on the no-match path, and everything the executed script touches.\nHardware changes: None directly; scripts may reach the display, disk and banking paths.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[5076,5097,5109,5115]},{"a":5125,"t":"code","b":[141,177,19],"m":"sta","o":"COMMAND_UNHANDLED_FLAG","oa":5041},{"a":5128,"s":"rule table ptr = $19A0","t":"code","b":[173,158,25],"m":"lda","o":"VERB_RULE_TABLE_PTR","oa":6558},{"a":5131,"t":"code","b":[133,10],"m":"sta","o":"MEMCPY_SOURCE","oa":10},{"a":5133,"t":"code","b":[173,159,25],"m":"lda","o":"a_199F","oa":6559},{"a":5136,"t":"code","b":[133,11],"m":"sta","o":"zpa_0B","oa":11},{"a":5138,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":5140,"s":"rule index = 0","t":"code","b":[132,75],"m":"sty","o":"LOOP_COUNTER","oa":75},{"a":5142,"l":"DISPATCH_SCAN_RULES","s":"rule's verb byte","t":"code","b":[177,10],"m":"lda","o":"(MEMCPY_SOURCE),y","oa":10,"x":[5156]},{"a":5144,"s":"== VERB_ID?","t":"code","b":[197,76],"m":"cmp","o":"VERB_ID","oa":76},{"a":5146,"t":"code","b":[240,11],"m":"beq","o":"DISPATCH_CHECK_NOUN","oa":5159},{"a":5148,"s":"$FF -> end of table (not found)","t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":5150,"t":"code","b":[240,42],"m":"beq","o":"VERB_NOT_FOUND","oa":5194},{"a":5152,"s":"next 2-byte rule","t":"code","b":[200],"m":"iny"},{"a":5153,"l":"DISPATCH_NEXT_RULE","t":"code","b":[200],"m":"iny","x":[5170]},{"a":5154,"t":"code","b":[230,75],"m":"inc","o":"LOOP_COUNTER","oa":75},{"a":5156,"t":"code","b":[76,22,20],"m":"jmp","o":"DISPATCH_SCAN_RULES","oa":5142},{"a":5159,"l":"DISPATCH_CHECK_NOUN","t":"code","b":[200],"m":"iny","x":[5146]},{"a":5160,"s":"rule's noun byte","t":"code","b":[177,10],"m":"lda","o":"(MEMCPY_SOURCE),y","oa":10},{"a":5162,"s":"$FB = any-noun wildcard","t":"code","b":[201,251],"m":"cmp","o":"#$FB"},{"a":5164,"t":"code","b":[240,7],"m":"beq","o":"DISPATCH_CHECK_INDEX","oa":5173},{"a":5166,"s":"or == NOUN_ID","t":"code","b":[197,77],"m":"cmp","o":"NOUN_ID","oa":77},{"a":5168,"t":"code","b":[240,3],"m":"beq","o":"DISPATCH_CHECK_INDEX","oa":5173},{"a":5170,"t":"code","b":[76,33,20],"m":"jmp","o":"DISPATCH_NEXT_RULE","oa":5153},{"a":5173,"l":"DISPATCH_CHECK_INDEX","t":"code","b":[165,75],"m":"lda","o":"LOOP_COUNTER","oa":75,"x":[5164,5168]},{"a":5175,"t":"code","b":[41,128],"m":"and","o":"#$80"},{"a":5177,"t":"code","b":[208,7],"m":"bne","o":"DISPATCH_NO_MATCH","oa":5186},{"a":5179,"t":"code","b":[165,75],"m":"lda","o":"LOOP_COUNTER","oa":75},{"a":5181,"s":"rule index within ACTION_SCRIPT_COUNT?","t":"code","b":[205,18,42],"m":"cmp","o":"ACTION_SCRIPT_COUNT","oa":10770},{"a":5184,"t":"code","b":[144,1],"m":"bcc","o":"DISPATCH_RUN_RULE","oa":5187},{"a":5186,"l":"DISPATCH_NO_MATCH","t":"code","b":[96],"m":"rts","x":[5177]},{"a":5187,"l":"DISPATCH_RUN_RULE","s":"point SCRIPT_PC at the rule's action script","t":"code","b":[32,82,20],"m":"jsr","o":"RUN_ACTION_SCRIPT","oa":5202,"x":[5184]},{"a":5190,"s":"run the action script","t":"code","b":[32,5,22],"m":"jsr","o":"RUN_SCRIPT","oa":5637},{"a":5193,"t":"code","b":[96],"m":"rts"},{"a":5194,"l":"VERB_NOT_FOUND","t":"code","b":[169,3],"m":"lda","o":"#$03","x":[5150]},{"a":5196,"t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":5199,"t":"code","b":[104],"m":"pla"},{"a":5200,"t":"code","b":[104],"m":"pla"},{"a":5201,"t":"code","b":[96],"m":"rts"},{"a":5202,"l":"RUN_ACTION_SCRIPT","c":"RUN_ACTION_SCRIPT ($1452)\nPurpose: Point the bytecode program counter at action script number A, resolved through the action-script pointer table.\nInputs: A = zero-based action-script index; the pointer table base is the word at $2984.\nOutputs: SCRIPT_PC ($4E/$4F) loaded with the script's address. The interpreter is not started here.\nAssumptions: The index is doubled with a carry test so indices above 127 still address correctly, but no upper bound is applied here; the bound lives in DISPATCH_COMMAND.\nClobbers: A, Y, flags, WORK_PTR ($0C/$0D), SCRIPT_PC.\nHardware changes: None.","s":"index * 2","t":"code","b":[10],"m":"asl","o":"a","x":[3643,5187]},{"a":5203,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":5205,"t":"code","b":[176,7],"m":"bcs","o":"RUN_ACTION_INDEX_HIGH","oa":5214},{"a":5207,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5209,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5211,"t":"code","b":[76,98,20],"m":"jmp","o":"RUN_ACTION_ADD_TABLE_BASE","oa":5218},{"a":5214,"l":"RUN_ACTION_INDEX_HIGH","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[5205]},{"a":5216,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5218,"l":"RUN_ACTION_ADD_TABLE_BASE","t":"code","b":[165,12],"m":"lda","o":"WORK_PTR","oa":12,"x":[5211]},{"a":5220,"t":"code","b":[24],"m":"clc"},{"a":5221,"s":"+ ACTION_SCRIPT_TABLE_PTR ($2984)","t":"code","b":[109,132,41],"m":"adc","o":"ACTION_SCRIPT_TABLE_PTR","oa":10628},{"a":5224,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":5226,"t":"code","b":[165,13],"m":"lda","o":"zpa_0D","oa":13},{"a":5228,"t":"code","b":[109,133,41],"m":"adc","o":"a_2985","oa":10629},{"a":5231,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5233,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":5235,"s":"load SCRIPT_PC from table entry","t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":5237,"t":"code","b":[133,78],"m":"sta","o":"SCRIPT_PC","oa":78},{"a":5239,"t":"code","b":[200],"m":"iny"},{"a":5240,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":5242,"t":"code","b":[133,79],"m":"sta","o":"zpa_4F","oa":79},{"a":5244,"t":"code","b":[96],"m":"rts"},{"a":5245,"l":"RUN_TURN_SCRIPTS","c":"RUN_TURN_SCRIPTS ($147D)\nPurpose: The per-turn narrative pass. Sets the ordinary text colour, then runs three bytecode programs in order: the resident global turn script, the part's own turn script at $2F06, and the script belonging to the current room.\nInputs: CURRENT_PART_NO ($2940) and CURRENT_ROOM ($293F); the global turn script pointer is the word at $1C6D, and the room-script pointer table base is the word at $2F04.\nOutputs: The three scripts have run, so any daemon behaviour and room-local events have been applied. RUN_TURN_SCRIPTS does not print the room's text, which MOVE ($0E85) and SETUP_CURRENT_ROOM ($1579) print; of the scripts it runs, only Part 2's room scripts for rooms $2D and $39 print it, after moving Atreyu (SETROOM, then action $0A). A script that restarts the game (RESTART_GAME $0FDD) or ends the part (ACTION_NEXT_PART $0FF1, in the room scripts of rooms $28 and $36) leaves without returning here.\nAssumptions: The room index is made part-relative by subtracting PART_ROOM_BASE_IDS[CURRENT_PART_NO] ($0DCC), so a part's first room is entry 0 of its table; rooms are numbered across the game, so each room number belongs to one part. Both the $2F06 script and the room table are part of each part's data.\nClobbers: A, X, Y, flags, CURRENT_CHAR_COLOR ($0286), SCRIPT_PC ($4E/$4F), WORK_PTR ($0C/$0D), SCRATCH_BYTE ($02), and all VM, parser and renderer scratch.\nHardware changes: Writes screen RAM, colour RAM and, when a script changes the picture, bitmap memory; reads the keyboard when a script pauses; when a room script ends the part, SHOW_PART_LOAD_SCREEN blanks the display, rewrites $D01A, stops CIA 1 timer A and drives the serial bus.","s":"char color = 6","t":"code","b":[169,6],"m":"lda","o":"#$06","x":[1033]},{"a":5247,"t":"code","b":[141,134,2],"m":"sta","o":"C64_WORKSPACE_TEXT_COLOR","oa":646},{"a":5250,"s":"SCRIPT_PC = header script ($1C6D)","t":"code","b":[173,109,28],"m":"lda","o":"GLOBAL_TURN_SCRIPT_PTR","oa":7277},{"a":5253,"t":"code","b":[133,78],"m":"sta","o":"SCRIPT_PC","oa":78},{"a":5255,"t":"code","b":[173,110,28],"m":"lda","o":"a_1C6E","oa":7278},{"a":5258,"t":"code","b":[133,79],"m":"sta","o":"zpa_4F","oa":79},{"a":5260,"s":"run it","t":"code","b":[32,5,22],"m":"jsr","o":"RUN_SCRIPT","oa":5637},{"a":5263,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":5265,"t":"code","b":[133,78],"m":"sta","o":"SCRIPT_PC","oa":78},{"a":5267,"t":"code","b":[169,47],"m":"lda","o":"#$2F"},{"a":5269,"t":"code","b":[133,79],"m":"sta","o":"zpa_4F","oa":79},{"a":5271,"s":"run script at $2F06","t":"code","b":[32,5,22],"m":"jsr","o":"RUN_SCRIPT","oa":5637},{"a":5274,"t":"code","b":[172,64,41],"m":"ldy","o":"CURRENT_PART_NO","oa":10560},{"a":5277,"s":"base = PART_ROOM_BASE_IDS[CURRENT_PART_NO], the part's first room","t":"code","b":[185,204,13],"m":"lda","o":"PART_ROOM_BASE_IDS,y","oa":3532},{"a":5280,"t":"code","b":[133,2],"m":"sta","o":"SCRATCH_BYTE","oa":2},{"a":5282,"t":"code","b":[173,63,41],"m":"lda","o":"CURRENT_ROOM","oa":10559},{"a":5285,"t":"code","b":[56],"m":"sec"},{"a":5286,"t":"code","b":[229,2],"m":"sbc","o":"SCRATCH_BYTE","oa":2},{"a":5288,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5289,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":5291,"t":"code","b":[176,7],"m":"bcs","o":"ROOM_SCRIPT_INDEX_HIGH","oa":5300},{"a":5293,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5295,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5297,"t":"code","b":[76,184,20],"m":"jmp","o":"ROOM_SCRIPT_ADD_TABLE_BASE","oa":5304},{"a":5300,"l":"ROOM_SCRIPT_INDEX_HIGH","c":"High byte of the offset into the part's room-script table when the doubled part-relative room number carries past $FF.","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[5291]},{"a":5302,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5304,"l":"ROOM_SCRIPT_ADD_TABLE_BASE","c":"Add the part's room-script table pointer ($2F04) to the doubled part-relative room number and load that room's script address into SCRIPT_PC.","t":"code","b":[165,12],"m":"lda","o":"WORK_PTR","oa":12,"x":[5297]},{"a":5306,"t":"code","b":[24],"m":"clc"},{"a":5307,"s":"+ the part's room-script table pointer ($2F04)","t":"code","b":[109,4,47],"m":"adc","o":"$2F04","oa":12036},{"a":5310,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":5312,"t":"code","b":[165,13],"m":"lda","o":"zpa_0D","oa":13},{"a":5314,"t":"code","b":[109,5,47],"m":"adc","o":"$2F05","oa":12037},{"a":5317,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5319,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":5321,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":5323,"t":"code","b":[133,78],"m":"sta","o":"SCRIPT_PC","oa":78},{"a":5325,"t":"code","b":[200],"m":"iny"},{"a":5326,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":5328,"t":"code","b":[133,79],"m":"sta","o":"zpa_4F","oa":79},{"a":5330,"s":"run the room's script","t":"code","b":[32,5,22],"m":"jsr","o":"RUN_SCRIPT","oa":5637},{"a":5333,"t":"code","b":[96],"m":"rts"},{"a":5334,"l":"INIT_GAME","c":"INIT_GAME ($14D6)\nPurpose: Entry point for a new game, called at $0406 (CALL_INIT_GAME, which the opening falls into and RESTART_GAME jumps to at $0FEE) and jumped to from $14FA in RESTORE_SAVED_GAME, which nothing reaches. A bare jump to INIT_GAME_RUN ($14E6), over the question at $14D9 that would ask whether to restore a saved game; nothing else reaches it.\nInputs: None.\nOutputs: Control transferred to INIT_GAME_RUN; no ordinary return from this instruction.\nClobbers: Through INIT_GAME_RUN, the whole game state.\nHardware changes: None here.","t":"code","b":[76,230,20],"m":"jmp","o":"INIT_GAME_RUN","oa":5350,"x":[1030,5370]},{"a":5337,"l":"ASK_RESTORE_GAME","c":"ASK_RESTORE_GAME ($14D9)\nPurpose: Asks \"Restore a saved game?\" (sentence $2E) and reads one key ($0565). Y goes to $14F3, which calls the LOAD action's stub at $045F; any other key falls into INIT_GAME_RUN for a new game. INIT_GAME's JMP at $14D6 skips it, and no instruction or pointer names $14D9, so the question is never asked.\nInputs: None in registers.\nOutputs: Sentence $2E printed and a key read; then either $14F3 or INIT_GAME_RUN.\nClobbers: A, X, Y, flags, keyboard workspace and renderer scratch.\nHardware changes: Reads the keyboard through the KERNAL; writes screen and colour RAM.","s":"A = $2E, \"Restore a saved game?\"","t":"code","b":[169,46],"m":"lda","o":"#$2E"},{"a":5339,"t":"code","b":[32,155,9],"m":"jsr","o":"PRINT_SENTENCE","oa":2459},{"a":5342,"t":"code","b":[32,75,11],"m":"jsr","o":"PRINT_EMPTY_LINE","oa":2891},{"a":5345,"s":"read Y/N","t":"code","b":[32,101,5],"m":"jsr","o":"CHECK_YES_KEY","oa":1381},{"a":5348,"s":"Y -> restore a saved game","t":"code","b":[176,13],"m":"bcs","o":"RESTORE_SAVED_GAME","oa":5363},{"a":5350,"l":"INIT_GAME_RUN","c":"INIT_GAME_RUN ($14E6)\nPurpose: The real initialisation body: reset the whole state block, load a part unless Part 1 is already in memory, and then set up the starting room.\nInputs: LOADED_PART_NO ($5E), the part in memory: 0 for Part 1, 1 or 2 for a later part, $FF after the opening, when none is.\nOutputs: State arrays reset by INIT_GAME_STATE; SHOW_PART_LOAD_SCREEN called if LOADED_PART_NO is non-zero: it asks for Part one but loads the next file by name, PART 1 after the opening and PART 3 or the missing PART 4 after a later part; control tail-jumps to SETUP_CURRENT_ROOM, which describes the room and returns to the caller of INIT_GAME.\nAssumptions: Entered by jump from INIT_GAME and by fall-through from the unreferenced confirmation block, so it is a genuine shared entry. The display, IRQ and banking are assumed already established.\nClobbers: A, X, Y, flags, the whole state block, SCRIPT_PC, and all renderer and blitter scratch.\nHardware changes: Indirect only: a part load drives the display, CIA, interrupt and banking registers through SHOW_PART_LOAD_SCREEN.","s":"reset game state","t":"code","b":[32,254,20],"m":"jsr","o":"INIT_GAME_STATE","oa":5374,"x":[5334]},{"a":5353,"s":"Part 1 in memory (LOADED_PART_NO = 0)? -> skip the load","t":"code","b":[165,94],"m":"lda","o":"LOADED_PART_NO","oa":94},{"a":5355,"t":"code","b":[240,3],"m":"beq","o":"INIT_RUN_SETUP_ROOM","oa":5360},{"a":5357,"t":"code","b":[32,57,4],"m":"jsr","o":"SHOW_PART_LOAD_SCREEN","oa":1081},{"a":5360,"l":"INIT_RUN_SETUP_ROOM","s":"set up current room","t":"code","b":[76,68,21],"m":"jmp","o":"SETUP_CURRENT_ROOM","oa":5444,"x":[5355]},{"a":5363,"l":"RESTORE_SAVED_GAME","c":"RESTORE_SAVED_GAME: the Y answer to ASK_RESTORE_GAME. Calls $045F, the LOAD action's one-byte return, so nothing loads; if DISK_ERROR_FLAG ($5F) is set it starts again at INIT_GAME, otherwise it returns to INIT_GAME's caller with the game as it stood. Never reached ($14D9).","t":"code","b":[32,95,4],"m":"jsr","o":"LOAD_DISABLED_RTS","oa":1119,"x":[5348]},{"a":5366,"s":"load failed (DISK_ERROR_FLAG $5F)?","t":"code","b":[165,95],"m":"lda","o":"DISK_ERROR_FLAG","oa":95},{"a":5368,"t":"code","b":[240,3],"m":"beq","o":"RESTORE_DONE","oa":5373},{"a":5370,"s":"-> INIT_GAME, a new game","t":"code","b":[76,214,20],"m":"jmp","o":"INIT_GAME","oa":5334},{"a":5373,"l":"RESTORE_DONE","t":"code","b":[96],"m":"rts","x":[5368]},{"a":5374,"l":"INIT_GAME_STATE","c":"INIT_GAME_STATE ($14FE)\nPurpose: Reset the serialized adventure state to its initial values: clear the runtime illustration records, select part 0 and room 1, copy the initial object-location template over the live array, clear all flags and counters, and light the starting room.\nInputs: INITIAL_OBJECT_LOCATIONS ($226C) and OBJECT_COUNT ($22A3).\nOutputs: $2941 and CURRENT_ROOM_GRAPHIC_ID ($2942) cleared; the six visible-record source-pointer high bytes at $2946, $294C, $2952, $2958, $295E and $2964 cleared, which deactivates all six records without touching their other fields; CURRENT_PART_NO ($2940) = 0; CURRENT_ROOM ($293F) = 1; OBJECT_COUNT location bytes copied; the 32 flags (OBJ_FLAGS, $290F-$292E) and 16 counters (OBJ_COUNTERS, $292F-$293E), 48 bytes, cleared; OBJ_FLAGS[7] set to 1 so the first room is lit.\nAssumptions: Only the high byte of each visible record's source pointer is cleared, because that byte is the record's enable flag; the row, column, height and width fields keep whatever they held. The flag clear loop covers $30 bytes, which spans both the flag and counter regions.\nClobbers: A, X, Y, flags, and the whole state block.\nHardware changes: None; ordinary RAM only.","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[5350]},{"a":5376,"s":"clear $29xx state bytes","t":"code","b":[141,65,41],"m":"sta","o":"UNUSED_SAVE_STATE_2941","oa":10561},{"a":5379,"t":"code","b":[141,66,41],"m":"sta","o":"CURRENT_ROOM_GRAPHIC_ID","oa":10562},{"a":5382,"t":"code","b":[141,70,41],"m":"sta","o":"OBJECT_RECORD_0_SOURCE_HI","oa":10566},{"a":5385,"t":"code","b":[141,76,41],"m":"sta","o":"OBJECT_RECORD_1_SOURCE_HI","oa":10572},{"a":5388,"t":"code","b":[141,82,41],"m":"sta","o":"OBJECT_RECORD_2_SOURCE_HI","oa":10578},{"a":5391,"t":"code","b":[141,88,41],"m":"sta","o":"OBJECT_RECORD_3_SOURCE_HI","oa":10584},{"a":5394,"t":"code","b":[141,94,41],"m":"sta","o":"OBJECT_RECORD_4_SOURCE_HI","oa":10590},{"a":5397,"t":"code","b":[141,100,41],"m":"sta","o":"COMPANION_SOURCE_HI","oa":10596},{"a":5400,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5402,"s":"CURRENT_PART_NO = 0","t":"code","b":[141,64,41],"m":"sta","o":"CURRENT_PART_NO","oa":10560},{"a":5405,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5407,"s":"CURRENT_ROOM = 1, the initial starting room.","t":"code","b":[141,63,41],"m":"sta","o":"CURRENT_ROOM","oa":10559},{"a":5410,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":5412,"l":"INIT_STATE_COPY_LOCATIONS","s":"Copy INITIAL_OBJECT_LOCATIONS to OBJECT_LOCATIONS.","t":"code","b":[185,108,34],"m":"lda","o":"INITIAL_OBJECT_LOCATIONS,y","oa":8812,"x":[5422]},{"a":5415,"s":"Initialize this object's location/state.","t":"code","b":[153,191,40],"m":"sta","o":"OBJECT_LOCATIONS,y","oa":10431},{"a":5418,"t":"code","b":[200],"m":"iny"},{"a":5419,"s":"Copy OBJECT_COUNT entries.","t":"code","b":[204,163,34],"m":"cpy","o":"OBJECT_COUNT","oa":8867},{"a":5422,"t":"code","b":[208,244],"m":"bne","o":"INIT_STATE_COPY_LOCATIONS","oa":5412},{"a":5424,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":5426,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5428,"l":"INIT_STATE_CLEAR_FLAGS","s":"clear OBJ_FLAGS[0..$2F]","t":"code","b":[153,15,41],"m":"sta","o":"OBJ_FLAGS,y","oa":10511,"x":[5434]},{"a":5431,"t":"code","b":[200],"m":"iny"},{"a":5432,"t":"code","b":[192,48],"m":"cpy","o":"#$30"},{"a":5434,"t":"code","b":[208,248],"m":"bne","o":"INIT_STATE_CLEAR_FLAGS","oa":5428},{"a":5436,"t":"code","b":[162,7],"m":"ldx","o":"#$07"},{"a":5438,"s":"OBJ_FLAGS[7] = 1","t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":5440,"t":"code","b":[157,15,41],"m":"sta","o":"OBJ_FLAGS,x","oa":10511},{"a":5443,"t":"code","b":[96],"m":"rts"},{"a":5444,"l":"SETUP_CURRENT_ROOM","c":"SETUP_CURRENT_ROOM ($1544)\nPurpose: Prepare a freshly started or freshly loaded part for play: run that part's initialisation bytecode, describe the current room, and switch confirmation messages back on.\nInputs: CURRENT_PART_NO ($2940); the per-part initialisation pointer table base is the word at $0437, pointing at $0DCF.\nOutputs: The part's initialisation script has run, the room has been described and painted, and VERBOSE_FLAG ($63) is 1.\nAssumptions: The pointer table at $0DCF and the three scripts it points at ($2968, $296E, $297E) are in the engine; the texts and pictures the scripts name are the loaded part's.\nClobbers: A, X, Y, flags, CURRENT_CHAR_COLOR ($0286), WORK_PTR ($0C/$0D), SCRIPT_PC ($4E/$4F), VERBOSE_FLAG, and all VM, renderer and blitter scratch.\nHardware changes: Writes screen RAM, colour RAM and bitmap memory through the description and repaint.","t":"code","b":[169,6],"m":"lda","o":"#$06","x":[1071,5360]},{"a":5446,"t":"code","b":[141,134,2],"m":"sta","o":"C64_WORKSPACE_TEXT_COLOR","oa":646},{"a":5449,"t":"code","b":[173,64,41],"m":"lda","o":"CURRENT_PART_NO","oa":10560},{"a":5452,"s":"CURRENT_PART_NO * 2","t":"code","b":[10],"m":"asl","o":"a"},{"a":5453,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":5455,"t":"code","b":[176,7],"m":"bcs","o":"SETUP_ROOM_INDEX_HIGH","oa":5464},{"a":5457,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5459,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5461,"t":"code","b":[76,92,21],"m":"jmp","o":"SETUP_ROOM_ADD_TABLE_BASE","oa":5468},{"a":5464,"l":"SETUP_ROOM_INDEX_HIGH","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[5455]},{"a":5466,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5468,"l":"SETUP_ROOM_ADD_TABLE_BASE","t":"code","b":[165,12],"m":"lda","o":"WORK_PTR","oa":12,"x":[5461]},{"a":5470,"t":"code","b":[24],"m":"clc"},{"a":5471,"s":"+ PART_INIT_SCRIPT_TABLE_PTR ($0437)","t":"code","b":[109,55,4],"m":"adc","o":"PART_INIT_SCRIPT_TABLE_PTR","oa":1079},{"a":5474,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":5476,"t":"code","b":[165,13],"m":"lda","o":"zpa_0D","oa":13},{"a":5478,"t":"code","b":[109,56,4],"m":"adc","o":"a_0438","oa":1080},{"a":5481,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5483,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":5485,"s":"SCRIPT_PC = part init script","t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":5487,"t":"code","b":[133,78],"m":"sta","o":"SCRIPT_PC","oa":78},{"a":5489,"t":"code","b":[200],"m":"iny"},{"a":5490,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":5492,"t":"code","b":[133,79],"m":"sta","o":"zpa_4F","oa":79},{"a":5494,"l":"SETUP_ROOM_RUN_INIT_SCRIPT","s":"run it","t":"code","b":[32,5,22],"m":"jsr","o":"RUN_SCRIPT","oa":5637},{"a":5497,"t":"code","b":[32,126,16],"m":"jsr","o":"DESCRIBE_CURRENT_ROOM","oa":4222},{"a":5500,"t":"code","b":[32,171,14],"m":"jsr","o":"SET_VERBOSE_ON","oa":3755},{"a":5503,"t":"code","b":[96],"m":"rts"},{"a":5504,"l":"SHOW_OPENING_NARRATIVE_AND_ENTER_PLAY","c":"Shows the opening's two texts, waits for a key and switches to the play screen. Sets the background to $0C and the border to $0B, and prints the title and the credits with PRINT_WORD ($0ADB), from the pointers at $B780/$B782 and the lengths at $B784/$B785. Puts screen codes $5E/$5F at $CFC0/$CFE7 in colour $0B ($DBC0/$DBE7). WAIT_FOR_KEY ($0552) waits for a key; then, with interrupts masked and $01 = $05, MUSIC_STOP silences the tune, $01 goes back to $06, and ENTER_GAMEPLAY_DISPLAY ($070F) installs the play screen's interrupt at $A7E0.","t":"code","b":[169,12],"m":"lda","o":"#$0C","x":[1027]},{"a":5506,"t":"code","b":[141,33,208],"m":"sta","o":"vic_background0"},{"a":5509,"t":"code","b":[169,11],"m":"lda","o":"#$0B"},{"a":5511,"t":"code","b":[141,32,208],"m":"sta","o":"vic_border"},{"a":5514,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5516,"t":"code","b":[133,36],"m":"sta","o":"CURRENT_COLUMN","oa":36},{"a":5518,"t":"code","b":[173,132,183],"m":"lda","o":"OPENING_TITLE_LENGTH","oa":46980},{"a":5521,"t":"code","b":[133,37],"m":"sta","o":"WORD_REMAINING_LEN","oa":37},{"a":5523,"t":"code","b":[173,128,183],"m":"lda","o":"OPENING_TITLE_ADDRESS_LOW","oa":46976},{"a":5526,"t":"code","b":[133,34],"m":"sta","o":"TERM_DATA_PTR","oa":34},{"a":5528,"t":"code","b":[173,129,183],"m":"lda","o":"OPENING_TITLE_ADDRESS_HIGH","oa":46977},{"a":5531,"t":"code","b":[133,35],"m":"sta","o":"zpa_23","oa":35},{"a":5533,"t":"code","b":[32,219,10],"m":"jsr","o":"PRINT_WORD","oa":2779},{"a":5536,"t":"code","b":[173,133,183],"m":"lda","o":"OPENING_CREDITS_LENGTH","oa":46981},{"a":5539,"t":"code","b":[133,37],"m":"sta","o":"WORD_REMAINING_LEN","oa":37},{"a":5541,"t":"code","b":[173,130,183],"m":"lda","o":"OPENING_CREDITS_ADDRESS_LOW","oa":46978},{"a":5544,"t":"code","b":[133,34],"m":"sta","o":"TERM_DATA_PTR","oa":34},{"a":5546,"t":"code","b":[173,131,183],"m":"lda","o":"OPENING_CREDITS_ADDRESS_HIGH","oa":46979},{"a":5549,"t":"code","b":[133,35],"m":"sta","o":"zpa_23","oa":35},{"a":5551,"t":"code","b":[32,219,10],"m":"jsr","o":"PRINT_WORD","oa":2779},{"a":5554,"t":"code","b":[169,94],"m":"lda","o":"#$5E"},{"a":5556,"t":"code","b":[141,192,207],"m":"sta","o":"a_CFC0","oa":53184},{"a":5559,"t":"code","b":[169,95],"m":"lda","o":"#$5F"},{"a":5561,"t":"code","b":[141,231,207],"m":"sta","o":"a_CFE7","oa":53223},{"a":5564,"t":"code","b":[169,11],"m":"lda","o":"#$0B"},{"a":5566,"t":"code","b":[141,192,219],"m":"sta","o":"$DBC0"},{"a":5569,"t":"code","b":[141,231,219],"m":"sta","o":"$DBE7"},{"a":5572,"t":"code","b":[32,82,5],"m":"jsr","o":"WAIT_FOR_KEY","oa":1362},{"a":5575,"t":"code","b":[120],"m":"sei"},{"a":5576,"t":"code","b":[169,5],"m":"lda","o":"#$05"},{"a":5578,"t":"code","b":[133,1],"m":"sta","o":"C64_CPU_PROCESSOR_PORT","oa":1},{"a":5580,"t":"code","b":[32,161,150],"m":"jsr","o":"MUSIC_STOP","oa":38561},{"a":5583,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":5585,"t":"code","b":[133,1],"m":"sta","o":"C64_CPU_PROCESSOR_PORT","oa":1},{"a":5587,"t":"code","b":[88],"m":"cli"},{"a":5588,"t":"code","b":[32,15,7],"m":"jsr","o":"ENTER_GAMEPLAY_DISPLAY","oa":1807},{"a":5591,"t":"code","b":[96],"m":"rts"},{"a":5592,"l":"FETCH_SCRIPT_BYTE","c":"FETCH_SCRIPT_BYTE ($15D8)\nPurpose: Read the next bytecode operand and advance the sixteen-bit program counter. Every operand-taking opcode handler begins with a call to this routine.\nInputs: SCRIPT_PC ($4E/$4F) points at the byte to read.\nOutputs: A = the byte; SCRIPT_PC incremented across the page boundary; flags reflect the load.\nAssumptions: The fetch uses (SCRIPT_PC,X) with X held at zero, which is the cheapest way to dereference a zero-page pointer without disturbing Y. There is no end-of-stream check; termination is the interpreter's job.\nClobbers: A, X (set to 0), flags, SCRIPT_PC.\nHardware changes: None.","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[3635,3725,3732,3736,3979,3984,3993,4008,4021,4031,4097,4397,4413,4449,4468,4519,4530,4546,4560,4572,4584,4596,4601,4614,4628,4642]},{"a":5594,"s":"A = *SCRIPT_PC","t":"code","b":[161,78],"m":"lda","o":"(SCRIPT_PC,x)","oa":78},{"a":5596,"s":"SCRIPT_PC++ (16-bit)","t":"code","b":[230,78],"m":"inc","o":"SCRIPT_PC","oa":78},{"a":5598,"t":"code","b":[208,2],"m":"bne","o":"FETCH_SCRIPT_DONE","oa":5602},{"a":5600,"t":"code","b":[230,79],"m":"inc","o":"zpa_4F","oa":79},{"a":5602,"l":"FETCH_SCRIPT_DONE","t":"code","b":[96],"m":"rts","x":[5598]},{"a":5603,"l":"RESOLVE_NOUN","c":"RESOLVE_NOUN ($15E3)\nPurpose: Map a parsed noun token to the object it names. Subtracts the noun token base $32, scans the noun-to-object map for that value, and returns the object's current location together with its icon slot index.\nInputs: A = parsed noun token; NOUN_TO_OBJECT_INDEX ($22A4) is an $FF-terminated map from icon slot (the position) to object index (the value, noun token - $32).\nOutputs: On success carry is set, A holds OBJECT_LOCATIONS[slot], Y holds the object slot index and CURRENT_OBJECT_INDEX ($5C) holds the icon slot index. On failure carry is clear and A is meaningless.\nAssumptions: Carry is part of the API: callers must not treat A as a location when carry is clear. The object index searched for is also the index into OBJECT_LOCATIONS, and the icon slot is the position where it is found; the first match wins, so object 0, listed at positions 0, 4, 5, 23, 24, 27, 29, 30 and 31, always gets position 0, and an object not in the map cannot be resolved.\nClobbers: A, Y, flags, SCRATCH_BYTE ($02), CURRENT_OBJECT_INDEX.\nHardware changes: None.","t":"code","b":[56],"m":"sec","x":[3769,3851]},{"a":5604,"s":"index = token - $32","t":"code","b":[233,50],"m":"sbc","o":"#$32"},{"a":5606,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":5608,"t":"code","b":[133,2],"m":"sta","o":"SCRATCH_BYTE","oa":2},{"a":5610,"l":"RESOLVE_NOUN_SCAN","s":"scan NOUN_TO_OBJECT_INDEX for the object index","t":"code","b":[185,164,34],"m":"lda","o":"NOUN_TO_OBJECT_INDEX,y","oa":8868,"x":[5622]},{"a":5613,"t":"code","b":[197,2],"m":"cmp","o":"SCRATCH_BYTE","oa":2},{"a":5615,"t":"code","b":[240,10],"m":"beq","o":"RESOLVE_NOUN_FOUND","oa":5627},{"a":5617,"t":"code","b":[201,255],"m":"cmp","o":"#$FF"},{"a":5619,"t":"code","b":[240,4],"m":"beq","o":"RESOLVE_NOUN_NOT_FOUND","oa":5625},{"a":5621,"t":"code","b":[200],"m":"iny"},{"a":5622,"t":"code","b":[76,234,21],"m":"jmp","o":"RESOLVE_NOUN_SCAN","oa":5610},{"a":5625,"l":"RESOLVE_NOUN_NOT_FOUND","t":"code","b":[24],"m":"clc","x":[5619]},{"a":5626,"t":"code","b":[96],"m":"rts"},{"a":5627,"l":"RESOLVE_NOUN_FOUND","s":"Cache the map position, the object's icon slot, as CURRENT_OBJECT_INDEX.","t":"code","b":[132,92],"m":"sty","o":"CURRENT_OBJECT_INDEX","oa":92,"x":[5615]},{"a":5629,"t":"code","b":[165,2],"m":"lda","o":"SCRATCH_BYTE","oa":2},{"a":5631,"t":"code","b":[168],"m":"tay"},{"a":5632,"s":"Return this resolved object's current location/state.","t":"code","b":[185,191,40],"m":"lda","o":"OBJECT_LOCATIONS,y","oa":10431},{"a":5635,"t":"code","b":[56],"m":"sec"},{"a":5636,"t":"code","b":[96],"m":"rts"},{"a":5637,"l":"RUN_SCRIPT","c":"RUN_SCRIPT ($1605)\nPurpose: The bytecode interpreter. Reads opcodes at SCRIPT_PC: values $80 and above are conditions dispatched through the condition table, values below $80 are actions dispatched through the action table, $FE separates rules and $FF ends the script. A false condition skips forward to the next separator.\nInputs: SCRIPT_PC ($4E/$4F) points at a script; the condition table base is the word at $1191 and the action table base is the word at $0DE1.\nOutputs: The script has been executed to its terminator, or control has left through one of the non-local exits ($0FC9, $0FDD, $0FF1). Any game state, display state or disk state may have changed.\nAssumptions: Both dispatches work by writing the handler address into the operand bytes of a JSR instruction ($1642/$1643 for conditions, $169A/$169B for actions), so the interpreter is self-modifying and not reentrant. Interrupts do not enter it, and handlers that unwind must do so through the documented non-local exits. When an action opcode of $80 or above is encountered in the action position, the interpreter backs SCRIPT_PC up by one and re-reads it as a condition.\nClobbers: A, X, Y, flags, WORK_PTR ($0C/$0D), SCRIPT_PC, the four self-modified operand bytes, and everything the invoked handlers clobber.\nHardware changes: None directly; handlers reach the VIC-II, CIA, colour RAM, keyboard and disk.","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[5190,5260,5271,5330,5494,5700,5738,5809]},{"a":5639,"s":"read opcode at SCRIPT_PC","t":"code","b":[161,78],"m":"lda","o":"(SCRIPT_PC,x)","oa":78},{"a":5641,"s":">= $80 -> condition opcode","t":"code","b":[201,128],"m":"cmp","o":"#$80"},{"a":5643,"t":"code","b":[144,60],"m":"bcc","o":"SCRIPT_READ_ACTION_OPCODE","oa":5705},{"a":5645,"t":"code","b":[230,78],"m":"inc","o":"SCRIPT_PC","oa":78},{"a":5647,"t":"code","b":[208,2],"m":"bne","o":"SCRIPT_CONDITION_INDEX","oa":5651},{"a":5649,"t":"code","b":[230,79],"m":"inc","o":"zpa_4F","oa":79},{"a":5651,"l":"SCRIPT_CONDITION_INDEX","s":"(op & $7F) * 2","t":"code","b":[41,127],"m":"and","o":"#$7F","x":[5647]},{"a":5653,"t":"code","b":[10],"m":"asl","o":"a"},{"a":5654,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":5656,"t":"code","b":[176,7],"m":"bcs","o":"SCRIPT_CONDITION_INDEX_HIGH","oa":5665},{"a":5658,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5660,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5662,"t":"code","b":[76,37,22],"m":"jmp","o":"SCRIPT_CONDITION_ADD_TABLE_BASE","oa":5669},{"a":5665,"l":"SCRIPT_CONDITION_INDEX_HIGH","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[5656]},{"a":5667,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5669,"l":"SCRIPT_CONDITION_ADD_TABLE_BASE","t":"code","b":[165,12],"m":"lda","o":"WORK_PTR","oa":12,"x":[5662]},{"a":5671,"t":"code","b":[24],"m":"clc"},{"a":5672,"s":"+ COND_TABLE_PTR -> handler addr","t":"code","b":[109,145,17],"m":"adc","o":"COND_TABLE_PTR","oa":4497},{"a":5675,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":5677,"t":"code","b":[165,13],"m":"lda","o":"zpa_0D","oa":13},{"a":5679,"t":"code","b":[109,146,17],"m":"adc","o":"a_1192","oa":4498},{"a":5682,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5684,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":5686,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":5688,"s":"patch JSR target (self-modify)","t":"code","b":[141,66,22],"m":"sta","o":"CONDITION_HANDLER_TARGET_LO","oa":5698},{"a":5691,"t":"code","b":[200],"m":"iny"},{"a":5692,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":5694,"t":"code","b":[141,67,22],"m":"sta","o":"CONDITION_HANDLER_TARGET_HI","oa":5699},{"a":5697,"s":"call condition handler -> carry","t":"code","b":[32,0,0],"m":"jsr","o":"$0000"},{"a":5698,"t":"note","l":"CONDITION_HANDLER_TARGET_LO","c":"Low operand byte of the condition-handler JSR at $1641; $1638 writes it from CONDITION_DISPATCH_TABLE. $1643 is the high byte, written at $163E. Handler carry selects continuation or skip-actions. Following code reads action opcodes: $FF ends, $FE starts the next rule, and $80-$FD backs the script pointer up for condition processing.","note":"inside the item at $1641","x":[5688]},{"a":5699,"t":"note","l":"CONDITION_HANDLER_TARGET_HI","c":"High operand byte of the self-modifying condition-handler JSR at $1641, written by $163E after reading the dispatch table. The carry result branches at $1644: set continues RUN_SCRIPT; clear skips actions. See $1642 for the low byte and subsequent action-opcode interpreter.","note":"inside the item at $1641","x":[5694]},{"a":5700,"s":"TRUE -> keep running","t":"code","b":[176,191],"m":"bcs","o":"RUN_SCRIPT","oa":5637},{"a":5702,"s":"FALSE -> skip this rule's actions","t":"code","b":[76,159,22],"m":"jmp","o":"SCRIPT_SKIP_ACTIONS","oa":5791},{"a":5705,"l":"SCRIPT_READ_ACTION_OPCODE","s":"ACTION: read opcode","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[5643,5788]},{"a":5707,"t":"code","b":[161,78],"m":"lda","o":"(SCRIPT_PC,x)","oa":78},{"a":5709,"t":"code","b":[230,78],"m":"inc","o":"SCRIPT_PC","oa":78},{"a":5711,"t":"code","b":[208,2],"m":"bne","o":"SCRIPT_TEST_END_MARKER","oa":5715},{"a":5713,"t":"code","b":[230,79],"m":"inc","o":"zpa_4F","oa":79},{"a":5715,"l":"SCRIPT_TEST_END_MARKER","s":"$FF -> end of script","t":"code","b":[201,255],"m":"cmp","o":"#$FF","x":[5711]},{"a":5717,"t":"code","b":[208,1],"m":"bne","o":"SCRIPT_TEST_RULE_SEPARATOR","oa":5720},{"a":5719,"l":"SCRIPT_END","t":"code","b":[96],"m":"rts","x":[5803]},{"a":5720,"l":"SCRIPT_TEST_RULE_SEPARATOR","s":"$FE -> rule separator (continue)","t":"code","b":[201,254],"m":"cmp","o":"#$FE","x":[5717]},{"a":5722,"t":"code","b":[240,14],"m":"beq","o":"SCRIPT_NEXT_RULE","oa":5738},{"a":5724,"s":"$80+ here = back up (condition follows)","t":"code","b":[201,128],"m":"cmp","o":"#$80"},{"a":5726,"t":"code","b":[144,13],"m":"bcc","o":"SCRIPT_ACTION_INDEX","oa":5741},{"a":5728,"t":"code","b":[198,78],"m":"dec","o":"SCRIPT_PC","oa":78},{"a":5730,"t":"code","b":[169,255],"m":"lda","o":"#$FF"},{"a":5732,"t":"code","b":[197,78],"m":"cmp","o":"SCRIPT_PC","oa":78},{"a":5734,"t":"code","b":[208,2],"m":"bne","o":"SCRIPT_NEXT_RULE","oa":5738},{"a":5736,"t":"code","b":[198,79],"m":"dec","o":"zpa_4F","oa":79},{"a":5738,"l":"SCRIPT_NEXT_RULE","t":"code","b":[76,5,22],"m":"jmp","o":"RUN_SCRIPT","oa":5637,"x":[5722,5734]},{"a":5741,"l":"SCRIPT_ACTION_INDEX","s":"op*2 + ACTION table -> handler","t":"code","b":[10],"m":"asl","o":"a","x":[5726]},{"a":5742,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":5744,"t":"code","b":[176,7],"m":"bcs","o":"SCRIPT_ACTION_INDEX_HIGH","oa":5753},{"a":5746,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":5748,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5750,"t":"code","b":[76,125,22],"m":"jmp","o":"SCRIPT_ACTION_ADD_TABLE_BASE","oa":5757},{"a":5753,"l":"SCRIPT_ACTION_INDEX_HIGH","t":"code","b":[169,1],"m":"lda","o":"#$01","x":[5744]},{"a":5755,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5757,"l":"SCRIPT_ACTION_ADD_TABLE_BASE","t":"code","b":[165,12],"m":"lda","o":"WORK_PTR","oa":12,"x":[5750]},{"a":5759,"t":"code","b":[24],"m":"clc"},{"a":5760,"t":"code","b":[109,225,13],"m":"adc","o":"ACTION_DISPATCH_TABLE_PTR","oa":3553},{"a":5763,"t":"code","b":[133,12],"m":"sta","o":"WORK_PTR","oa":12},{"a":5765,"t":"code","b":[165,13],"m":"lda","o":"zpa_0D","oa":13},{"a":5767,"t":"code","b":[109,226,13],"m":"adc","o":"ACTION_DISPATCH_TABLE_PTR_HI","oa":3554},{"a":5770,"t":"code","b":[133,13],"m":"sta","o":"zpa_0D","oa":13},{"a":5772,"t":"code","b":[160,0],"m":"ldy","o":"#$00"},{"a":5774,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":5776,"t":"code","b":[141,154,22],"m":"sta","o":"ACTION_HANDLER_TARGET_LO","oa":5786},{"a":5779,"t":"code","b":[200],"m":"iny"},{"a":5780,"t":"code","b":[177,12],"m":"lda","o":"(WORK_PTR),y","oa":12},{"a":5782,"t":"code","b":[141,155,22],"m":"sta","o":"ACTION_HANDLER_TARGET_HI","oa":5787},{"a":5785,"l":"SCRIPT_CALL_ACTION_HANDLER","s":"call action handler (self-modified JSR)","t":"code","b":[32,0,0],"m":"jsr","o":"$0000"},{"a":5786,"t":"note","l":"ACTION_HANDLER_TARGET_LO","c":"Low operand byte of the action-handler JSR at $1699, written by $1690 from the action dispatch table. $169B is the high byte, written at $1696. After the handler returns, $169C goes back to read the next action opcode ($1649); after a false condition, SCRIPT_SKIP_ACTIONS ($169F) skips bytes up to the next $FE (next rule) or $FF (end of script).","note":"inside the item at $1699","x":[5776]},{"a":5787,"t":"note","l":"ACTION_HANDLER_TARGET_HI","c":"High operand byte of the action-handler JSR at $1699, written at $1696; see $169A for dispatch. The subsequent interpreter branch resumes RUN_SCRIPT or scans past actions when a condition fails.","note":"inside the item at $1699","x":[5782]},{"a":5788,"t":"code","b":[76,73,22],"m":"jmp","o":"SCRIPT_READ_ACTION_OPCODE","oa":5705},{"a":5791,"l":"SCRIPT_SKIP_ACTIONS","s":"skip actions until next $FE/$FF (condition was false)","t":"code","b":[162,0],"m":"ldx","o":"#$00","x":[5702]},{"a":5793,"l":"SCRIPT_SKIP_LOOP","t":"code","b":[161,78],"m":"lda","o":"(SCRIPT_PC,x)","oa":78,"x":[5807]},{"a":5795,"t":"code","b":[230,78],"m":"inc","o":"SCRIPT_PC","oa":78},{"a":5797,"t":"code","b":[208,2],"m":"bne","o":"SCRIPT_SKIP_TEST_MARKER","oa":5801},{"a":5799,"t":"code","b":[230,79],"m":"inc","o":"zpa_4F","oa":79},{"a":5801,"l":"SCRIPT_SKIP_TEST_MARKER","t":"code","b":[201,255],"m":"cmp","o":"#$FF","x":[5797]},{"a":5803,"t":"code","b":[240,170],"m":"beq","o":"SCRIPT_END","oa":5719},{"a":5805,"t":"code","b":[201,254],"m":"cmp","o":"#$FE"},{"a":5807,"t":"code","b":[208,240],"m":"bne","o":"SCRIPT_SKIP_LOOP","oa":5793},{"a":5809,"t":"code","b":[76,5,22],"m":"jmp","o":"RUN_SCRIPT","oa":5637},{"a":5812,"l":"DIRECTION_EXIT_TABLE_PTR","c":"Pointer to ten directional room-transition tables, indexed by movement verb id minus one.","t":"word","b":[182,22],"d":[5814],"x":[3672]},{"a":5813,"t":"note","l":"a_16B5","c":"High byte $16 of DIRECTION_EXIT_TABLE_PTR, the little-endian pointer at $16B4 which holds $16B6. Low byte and pointer purpose are described at $16B4.","note":"inside the item at $16B4","x":[3679]},{"a":5814,"l":"DIRECTION_EXIT_POINTERS","c":"Pointers for NORTH, NORTHEAST, EAST, SOUTHEAST, SOUTH, SOUTHWEST, WEST, NORTHWEST, UP, and DOWN transition tables.","t":"byte","b":[202,22,21,23,72,23,217,23]},{"a":5822,"t":"byte","b":[14,24,91,24,144,24,35,25]},{"a":5830,"t":"byte","b":[86,25,117,25]},{"a":5834,"l":"ROOM_EXITS_NORTH","c":"37 sorted room-transition pairs for NORTH; followed by a $FF terminator.","t":"byte","b":[3,12,6,10,7,9,12,14]},{"a":5842,"t":"byte","b":[14,17,15,16,16,22,21,23]},{"a":5850,"t":"byte","b":[23,8,26,3,28,6,29,7]},{"a":5858,"t":"byte","b":[30,24,31,25,36,35,38,37]},{"a":5866,"t":"byte","b":[39,38,40,39,42,46,46,47]},{"a":5874,"t":"byte","b":[47,41,49,48,50,42,53,50]},{"a":5882,"t":"byte","b":[61,56,62,57,65,60,76,74]},{"a":5890,"t":"byte","b":[78,81,79,82,80,84,82,85]},{"a":5898,"t":"byte","b":[89,94,99,104,104,108,110,117]},{"a":5906,"t":"byte","b":[116,120]},{"a":5908,"l":"ROOM_EXITS_NORTH_END","c":"$FF terminator for ROOM_EXITS_NORTH.","t":"byte","b":[255]},{"a":5909,"l":"ROOM_EXITS_NORTHEAST","c":"25 sorted room-transition pairs for NORTHEAST; followed by a $FF terminator.","t":"byte","b":[0,6,1,2,3,11,13,18]},{"a":5917,"t":"byte","b":[17,22,25,3,29,8,31,26]},{"a":5925,"t":"byte","b":[43,44,46,41,47,41,48,46]},{"a":5933,"t":"byte","b":[51,41,54,41,71,67,74,69]},{"a":5941,"t":"byte","b":[77,80,87,91,90,95,98,103]},{"a":5949,"t":"byte","b":[99,105,105,109,110,114,113,116]},{"a":5957,"t":"byte","b":[116,121]},{"a":5959,"l":"ROOM_EXITS_NORTHEAST_END","c":"$FF terminator for ROOM_EXITS_NORTHEAST.","t":"byte","b":[255]},{"a":5960,"l":"ROOM_EXITS_EAST","c":"72 sorted room-transition pairs for EAST; followed by a $FF terminator.","t":"byte","b":[2,3,3,4,4,5,5,6]},{"a":5968,"t":"byte","b":[6,7,7,8,10,9,11,10]},{"a":5976,"t":"byte","b":[17,16,18,17,19,20,26,27]},{"a":5984,"t":"byte","b":[28,29,30,31,34,35,36,37]},{"a":5992,"t":"byte","b":[42,43,44,45,46,44,47,41]},{"a":6000,"t":"byte","b":[48,42,49,50,50,51,51,41]},{"a":6008,"t":"byte","b":[52,53,53,54,54,41,59,60]},{"a":6016,"t":"byte","b":[60,61,61,62,63,64,64,65]},{"a":6024,"t":"byte","b":[65,66,67,68,69,70,72,73]},{"a":6032,"t":"byte","b":[73,74,74,75,77,78,80,81]},{"a":6040,"t":"byte","b":[81,82,82,83,86,87,88,86]},{"a":6048,"t":"byte","b":[89,90,90,91,91,92,92,93]},{"a":6056,"t":"byte","b":[93,89,95,96,96,97,97,94]},{"a":6064,"t":"byte","b":[100,101,101,102,102,98,103,104]},{"a":6072,"t":"byte","b":[104,105,106,107,107,108,108,109]},{"a":6080,"t":"byte","b":[109,106,110,111,111,112,112,113]},{"a":6088,"t":"byte","b":[113,110,114,115,117,118,118,119]},{"a":6096,"t":"byte","b":[120,121,121,117,122,123,123,124]},{"a":6104,"l":"ROOM_EXITS_EAST_END","c":"$FF terminator for ROOM_EXITS_EAST.","t":"byte","b":[255]},{"a":6105,"l":"ROOM_EXITS_SOUTHEAST","c":"26 sorted room-transition pairs for SOUTHEAST; followed by a $FF terminator.","t":"byte","b":[3,27,9,8,10,7,15,11]},{"a":6113,"t":"byte","b":[17,15,19,18,30,33,46,43]},{"a":6121,"t":"byte","b":[47,41,51,41,52,41,53,41]},{"a":6129,"t":"byte","b":[54,41,55,60,62,67,80,78]},{"a":6137,"t":"byte","b":[84,81,91,88,94,90,95,91]},{"a":6145,"t":"byte","b":[105,100,106,103,108,105,114,111]},{"a":6153,"t":"byte","b":[115,112,117,114]},{"a":6157,"l":"ROOM_EXITS_SOUTHEAST_END","c":"$FF terminator for ROOM_EXITS_SOUTHEAST.","t":"byte","b":[255]},{"a":6158,"l":"ROOM_EXITS_SOUTH","c":"38 sorted room-transition pairs for SOUTH; followed by a $FF terminator.","t":"byte","b":[3,26,6,28,7,29,9,7]},{"a":6166,"t":"byte","b":[10,6,12,3,14,12,16,15]},{"a":6174,"t":"byte","b":[17,14,22,16,23,21,24,30]},{"a":6182,"t":"byte","b":[25,31,35,36,37,38,38,39]},{"a":6190,"t":"byte","b":[39,40,42,50,46,42,47,46]},{"a":6198,"t":"byte","b":[48,49,50,53,52,41,53,41]},{"a":6206,"t":"byte","b":[54,41,56,61,57,62,60,65]},{"a":6214,"t":"byte","b":[74,76,81,78,82,79,84,80]},{"a":6222,"t":"byte","b":[85,82,94,89,104,99,108,104]},{"a":6230,"t":"byte","b":[117,110,120,116]},{"a":6234,"l":"ROOM_EXITS_SOUTH_END","c":"$FF terminator for ROOM_EXITS_SOUTH.","t":"byte","b":[255]},{"a":6235,"l":"ROOM_EXITS_SOUTHWEST","c":"26 sorted room-transition pairs for SOUTHWEST; followed by a $FF terminator.","t":"byte","b":[2,1,3,25,6,0,8,29]},{"a":6243,"t":"byte","b":[11,3,18,13,22,17,26,31]},{"a":6251,"t":"byte","b":[44,43,46,48,47,41,49,41]},{"a":6259,"t":"byte","b":[52,41,53,41,54,41,67,71]},{"a":6267,"t":"byte","b":[69,74,80,77,91,87,95,90]},{"a":6275,"t":"byte","b":[103,98,105,99,109,105,114,110]},{"a":6283,"t":"byte","b":[116,113,121,116]},{"a":6287,"l":"ROOM_EXITS_SOUTHWEST_END","c":"$FF terminator for ROOM_EXITS_SOUTHWEST.","t":"byte","b":[255]},{"a":6288,"l":"ROOM_EXITS_WEST","c":"73 sorted room-transition pairs for WEST; followed by a $FF terminator.","t":"byte","b":[3,2,4,3,5,4,6,5]},{"a":6296,"t":"byte","b":[7,6,8,7,9,10,10,11]},{"a":6304,"t":"byte","b":[16,17,17,18,20,19,27,26]},{"a":6312,"t":"byte","b":[29,28,31,30,35,34,37,36]},{"a":6320,"t":"byte","b":[42,48,43,42,44,46,45,44]},{"a":6328,"t":"byte","b":[46,41,47,41,49,41,50,49]},{"a":6336,"t":"byte","b":[51,50,52,41,53,52,54,53]},{"a":6344,"t":"byte","b":[60,59,61,60,62,61,64,63]},{"a":6352,"t":"byte","b":[65,64,66,65,68,67,70,69]},{"a":6360,"t":"byte","b":[73,72,74,73,75,74,78,77]},{"a":6368,"t":"byte","b":[81,80,82,81,83,82,86,88]},{"a":6376,"t":"byte","b":[87,86,89,93,90,89,91,90]},{"a":6384,"t":"byte","b":[92,91,93,92,94,97,96,95]},{"a":6392,"t":"byte","b":[97,96,98,102,101,100,102,101]},{"a":6400,"t":"byte","b":[104,103,105,104,106,109,107,106]},{"a":6408,"t":"byte","b":[108,107,109,108,110,113,111,110]},{"a":6416,"t":"byte","b":[112,111,113,112,115,114,117,121]},{"a":6424,"t":"byte","b":[118,117,119,118,121,120,123,122]},{"a":6432,"t":"byte","b":[124,123]},{"a":6434,"l":"ROOM_EXITS_WEST_END","c":"$FF terminator for ROOM_EXITS_WEST.","t":"byte","b":[255]},{"a":6435,"l":"ROOM_EXITS_NORTHWEST","c":"25 sorted room-transition pairs for NORTHWEST; followed by a $FF terminator.","t":"byte","b":[7,10,8,9,11,15,15,17]},{"a":6443,"t":"byte","b":[18,19,27,3,33,30,43,46]},{"a":6451,"t":"byte","b":[46,41,47,41,49,41,52,41]},{"a":6459,"t":"byte","b":[60,55,67,62,78,80,81,84]},{"a":6467,"t":"byte","b":[88,91,90,94,91,95,100,105]},{"a":6475,"t":"byte","b":[103,106,105,108,111,114,112,115]},{"a":6483,"t":"byte","b":[114,117]},{"a":6485,"l":"ROOM_EXITS_NORTHWEST_END","c":"$FF terminator for ROOM_EXITS_NORTHWEST.","t":"byte","b":[255]},{"a":6486,"l":"ROOM_EXITS_UP","c":"15 sorted room-transition pairs for UP; followed by a $FF terminator.","t":"byte","b":[23,8,35,32,55,46,58,59]},{"a":6494,"t":"byte","b":[70,71,83,88,90,98,91,109]},{"a":6502,"t":"byte","b":[94,100,103,121,105,113,115,91]},{"a":6510,"t":"byte","b":[117,98,118,90,119,122]},{"a":6516,"l":"ROOM_EXITS_UP_END","c":"$FF terminator for ROOM_EXITS_UP.","t":"byte","b":[255]},{"a":6517,"l":"ROOM_EXITS_DOWN","c":"19 sorted room-transition pairs for DOWN; followed by a $FF terminator.","t":"byte","b":[8,23,32,35,45,68,46,55]},{"a":6525,"t":"byte","b":[58,75,59,58,71,70,75,58]},{"a":6533,"t":"byte","b":[88,83,98,90,100,94,105,113]},{"a":6541,"t":"byte","b":[109,91,113,105,115,91,117,98]},{"a":6549,"t":"byte","b":[118,90,121,103,122,119]},{"a":6555,"l":"ROOM_EXITS_DOWN_END","c":"$FF terminator for ROOM_EXITS_DOWN.","t":"byte","b":[255]},{"a":6556,"l":"VOCAB_TABLE_PTR","c":"Pointer to the fixed-size vocabulary entries.","t":"word","b":[46,26],"d":[6702],"x":[4794]},{"a":6557,"t":"note","l":"a_199D","c":"High byte $1A of VOCAB_TABLE_PTR, the little-endian pointer at $199C which holds $1A2E. Low byte and pointer purpose are described at $199C.","note":"inside the item at $199C","x":[4799]},{"a":6558,"l":"VERB_RULE_TABLE_PTR","c":"Pointer to the ordered verb/noun command-rule pairs.","t":"word","b":[160,25],"d":[6560],"x":[5128]},{"a":6559,"t":"note","l":"a_199F","c":"High byte $19 of VERB_RULE_TABLE_PTR, the little-endian pointer at $199E which holds $19A0. Low byte and pointer purpose are described at $199E.","note":"inside the item at $199E","x":[5133]},{"a":6560,"l":"VERB_RULE_TABLE","c":"Seventy ordered verb/noun pairs, then the end mark. The pair index selects the corresponding ACTION_SCRIPT_POINTERS entry; $FB is the any-noun rule and $FF/$FF terminates the table.\n$19BA: verb rule pair 13: verb id $15 (GET), noun id $57 (ARTAX). Selects ACTION_SCRIPT_GET_ARTAX_PTR at $29A0.\n$19BC: verb rule pair 14: verb id $15 (GET), noun id $37 (FALKOR). The pair selects ACTION_SCRIPT_GET_FALKOR_PTR at $29A2. Confirmed dynamically by entering \"get falkor\".","t":"byte","b":[1,250,2,250,3,250,4,250]},{"a":6568,"t":"byte","b":[5,250,6,250,7,250,8,250]},{"a":6576,"t":"byte","b":[9,250,10,250,22,250,21,97]},{"a":6584,"t":"byte","b":[21,201]},{"a":6586,"l":"VERB_RULE_GET_ARTAX","c":"Verb/noun rule pair 13: GET ($15) and ARTAX ($57). Following two-byte pairs continue VERB_RULE_TABLE at $19A0; their pair positions select action pointers at $2986. $FF/$FF terminates the rule scan.","t":"byte","b":[21,87]},{"a":6588,"l":"VERB_RULE_GET_FALKOR","c":"Verb/noun rule pair 14: ids $15/$37. The matching pair position indexes ACTION_SCRIPT_POINTERS; following pairs continue through the $FF/$FF terminator at $1A2C.","t":"byte","b":[21,55,21,81,21,70,21,77]},{"a":6596,"t":"byte","b":[21,251,12,255,12,201,12,87]},{"a":6604,"t":"byte","b":[12,55,12,84,12,255,12,251]},{"a":6612,"t":"byte","b":[20,81,20,250,23,250,24,250]},{"a":6620,"t":"byte","b":[49,250]},{"a":6622,"l":"VERB_RULE_SAVE","c":"Verb/noun rule pair 31: ids $0E/$FA. The matching pair position indexes ACTION_SCRIPT_POINTERS; following pairs continue through the $FF/$FF terminator at $1A2C.","t":"byte","b":[14,250]},{"a":6624,"l":"VERB_RULE_LOAD","c":"Verb/noun rule pair 32: ids $0F/$FA. The matching pair position indexes ACTION_SCRIPT_POINTERS; following pairs continue through the $FF/$FF terminator at $1A2C.","t":"byte","b":[15,250,25,89,25,65,25,251]},{"a":6632,"t":"byte","b":[16,54,16,79,18,251,26,5]},{"a":6640,"t":"byte","b":[26,1,26,251,27,251,28,96]},{"a":6648,"t":"byte","b":[13,51,13,70,13,251,29,251]},{"a":6656,"t":"byte","b":[30,86,30,251,31,250,32,250]},{"a":6664,"t":"byte","b":[11,250,19,54,33,251,37,70]},{"a":6672,"t":"byte","b":[37,89,34,83,34,91,34,251]},{"a":6680,"t":"byte","b":[35,102,36,95,40,95,38,204]},{"a":6688,"t":"byte","b":[39,204,41,77,36,200,42,205]},{"a":6696,"t":"byte","b":[42,251,38,200,255,255]},{"a":6702,"l":"VOCAB_TABLE","c":"One hundred forty-two vocabulary entries: a three-character lowercase stem plus the parsed word id.\n$1C2A: Vocabulary entry \"art\", parsed noun id $57: ARTAX.\n$1C36: Vocabulary entry \"cru\", parsed noun id $5A: CRUCIFIX. Matching artwork survives in UNUSED_ICON_CRUCIFIX, but no resolver key or action script can select it.","t":"byte","b":[115,111,117,5,115,32,32,5]},{"a":6710,"t":"byte","b":[110,111,114,1,110,32,32,1]},{"a":6718,"t":"byte","b":[101,97,115,3,101,32,32,3]},{"a":6726,"t":"byte","b":[119,101,115,7,119,32,32,7]},{"a":6734,"t":"byte","b":[110,101,32,2,115,101,32,4]},{"a":6742,"t":"byte","b":[115,119,32,6,110,119,32,8]},{"a":6750,"t":"byte","b":[117,112,32,9,117,32,32,9]},{"a":6758,"t":"byte","b":[100,111,119,10,100,32,32,10]},{"a":6766,"t":"byte","b":[113,117,105,11,100,114,111,12]},{"a":6774,"t":"byte","b":[112,117,116,12,103,105,118,12]},{"a":6782,"t":"byte","b":[97,116,116,13,107,105,108,13]},{"a":6790,"t":"byte","b":[112,117,110,13,115,116,97,13]},{"a":6798,"l":"VOCAB_SAVE","c":"Vocabulary entry 24: lowercase stem sav followed by verb id $0E (SAVE). The following four-byte records continue VOCAB_TABLE at $1A2E: three stem bytes then parsed id, through $1C65; $1C66 contains the $40 terminator.","t":"byte","b":[115,97,118,14]},{"a":6802,"l":"VOCAB_LOAD","c":"Vocabulary entry 25: three-character stem 'loa' followed by parsed id $0F. Entries continue every four bytes through $1C65; the parser compares the stems and uses the id to resolve commands.","t":"byte","b":[108,111,97,15,108,105,103,16]},{"a":6810,"t":"byte","b":[46,46,46,17,101,110,116,18]},{"a":6818,"t":"byte","b":[105,110,32,18,112,117,108,19]},{"a":6826,"t":"byte","b":[108,111,111,20,108,32,32,20]},{"a":6834,"t":"byte","b":[103,101,116,21,116,97,107,21]},{"a":6842,"t":"byte","b":[105,110,118,22,105,32,32,22]},{"a":6850,"t":"byte","b":[109,117,115,23,110,111,109,24]},{"a":6858,"t":"byte","b":[101,97,116,25,102,108,121,26]},{"a":6866,"t":"byte","b":[99,108,105,27,98,108,111,28]},{"a":6874,"t":"byte","b":[114,105,100,29,115,109,97,30]},{"a":6882,"t":"byte","b":[104,105,116,30,107,105,99,30]},{"a":6890,"t":"byte","b":[119,97,105,31,112,97,117,32]},{"a":6898,"t":"byte","b":[111,117,116,33,114,101,97,34]},{"a":6906,"t":"byte","b":[114,101,109,35,111,112,101,36]},{"a":6914,"t":"byte","b":[99,117,116,37,117,110,108,38]},{"a":6922,"t":"byte","b":[108,111,99,39,99,108,111,40]},{"a":6930,"t":"byte","b":[116,105,101,41,102,97,115,41]},{"a":6938,"t":"byte","b":[115,97,121,42,115,104,111,42]},{"a":6946,"t":"byte","b":[116,32,32,49,116,101,115,49]},{"a":6954,"t":"byte","b":[116,104,101,0,103,111,32,0]},{"a":6962,"t":"byte","b":[97,116,32,0,116,104,114,0]},{"a":6970,"t":"byte","b":[115,101,116,0,111,110,32,0]},{"a":6978,"t":"byte","b":[111,102,102,0,103,108,97,0]},{"a":6986,"t":"byte","b":[103,114,97,0,104,117,116,0]},{"a":6994,"t":"byte","b":[114,117,110,0,112,105,101,0]},{"a":7002,"t":"byte","b":[111,102,32,0,115,105,108,0]},{"a":7010,"t":"byte","b":[114,117,115,0,104,111,111,0]},{"a":7018,"t":"byte","b":[116,111,32,0,103,105,97,0]},{"a":7026,"t":"byte","b":[97,110,100,255,100,111,111,200]},{"a":7034,"t":"byte","b":[107,101,121,201,116,117,110,202]},{"a":7042,"t":"byte","b":[116,114,101,203,99,101,108,204]},{"a":7050,"t":"byte","b":[112,108,101,205,97,117,114,50]},{"a":7058,"t":"byte","b":[103,109,111,51,116,114,101,52]},{"a":7066,"t":"byte","b":[105,118,111,53,116,111,119,53]},{"a":7074,"t":"byte","b":[116,104,111,54,98,117,115,54]},{"a":7082,"t":"byte","b":[102,97,108,55,108,117,99,55]},{"a":7090,"t":"byte","b":[100,114,97,55,101,110,103,56]},{"a":7098,"t":"byte","b":[117,114,103,57,116,101,108,58]},{"a":7106,"t":"byte","b":[99,114,121,59,110,105,103,60]},{"a":7114,"t":"byte","b":[114,111,99,61,116,101,101,62]},{"a":7122,"t":"byte","b":[102,111,114,63,115,119,97,64]},{"a":7130,"t":"byte","b":[102,111,111,65,103,111,108,67]},{"a":7138,"t":"byte","b":[107,110,105,68,103,108,111,69]},{"a":7146,"t":"byte","b":[119,101,98,70,115,112,105,70]},{"a":7154,"t":"byte","b":[105,114,111,71,115,97,112,73]},{"a":7162,"t":"byte","b":[100,105,97,74,114,117,98,75]},{"a":7170,"t":"byte","b":[99,97,112,76,114,111,112,77]},{"a":7178,"t":"byte","b":[102,105,114,78,98,114,97,79]},{"a":7186,"t":"byte","b":[98,117,114,80,102,114,97,81]},{"a":7194,"t":"byte","b":[111,114,110,82,112,97,112,83]},{"a":7202,"t":"byte","b":[108,101,97,84,98,111,120,86]},{"a":7210,"l":"VOCAB_ARTAX","c":"Vocabulary entry 127: three-character stem 'art' followed by parsed id $57. Entries continue every four bytes through $1C65; the parser compares the stems and uses the id to resolve commands.","t":"byte","b":[97,114,116,87,115,116,111,88]},{"a":7218,"t":"byte","b":[97,112,112,89]},{"a":7222,"l":"VOCAB_CRUCIFIX","c":"Vocabulary entry 130: three-character stem 'cru' followed by parsed id $5A. Entries continue every four bytes through $1C65; the parser compares the stems and uses the id to resolve commands.","t":"byte","b":[99,114,117,90,98,111,111,91]},{"a":7230,"t":"byte","b":[116,105,110,95,104,111,114,96]},{"a":7238,"t":"byte","b":[112,111,117,97,99,111,105,98]},{"a":7246,"t":"byte","b":[102,111,103,99,116,114,101,100]},{"a":7254,"t":"byte","b":[99,97,115,101,106,101,119,101]},{"a":7262,"t":"byte","b":[112,108,97,102,114,97,116,103]},{"a":7270,"l":"VOCAB_TABLE_END","c":"$40 sentinel terminating the vocabulary scan.","t":"byte","b":[64]},{"a":7271,"l":"TOKEN_POINTERS_BASE_ADDR","c":"Pointer to TOKEN_POINTERS_TABLE.","t":"word","b":[221,37],"d":[9693],"x":[2706]},{"a":7272,"t":"note","l":"a_1C68","c":"High byte $25 of TOKEN_POINTERS_BASE_ADDR, the little-endian pointer at $1C67 which holds $25DD. Low byte and pointer purpose are described at $1C67.","note":"inside the item at $1C67","x":[2713]},{"a":7273,"l":"SENTENCE_POINTERS_BASE_ADDR","c":"Pointer to SENTENCE_POINTERS.","t":"word","b":[176,28],"d":[7344],"x":[2493]},{"a":7274,"t":"note","l":"a_1C6A","c":"High byte $1C of SENTENCE_POINTERS_BASE_ADDR, the little-endian pointer at $1C69 which holds $1CB0. Low byte and pointer purpose are described at $1C69.","note":"inside the item at $1C69","x":[2500]},{"a":7275,"l":"OBJECT_DESCRIPTION_TABLE_PTR","c":"Pointer to OBJECT_DESCRIPTION_POINTERS.","t":"word","b":[201,34],"d":[8905],"x":[4177,4297]},{"a":7276,"t":"note","l":"a_1C6C","c":"High byte $22 of OBJECT_DESCRIPTION_TABLE_PTR, the little-endian pointer at $1C6B which holds $22C9. Low byte and pointer purpose are described at $1C6B.","note":"inside the item at $1C6B","x":[4184,4304]},{"a":7277,"l":"GLOBAL_TURN_SCRIPT_PTR","c":"Pointer to the resident every-turn housekeeping bytecode at GLOBAL_TURN_SCRIPT.","t":"word","b":[111,28],"d":[7279],"x":[5250]},{"a":7278,"t":"note","l":"a_1C6E","c":"High byte $1C of GLOBAL_TURN_SCRIPT_PTR, the little-endian pointer at $1C6D which holds $1C6F. Low byte and pointer purpose are described at $1C6D.","note":"inside the item at $1C6D","x":[5255]},{"a":7279,"l":"GLOBAL_TURN_SCRIPT","c":"GLOBAL_TURN_SCRIPT ($1C6F-$1CAF) - resident every-turn housekeeping bytecode, the first\nscript RUN_TURN_SCRIPTS runs ($148C) on each pass of MAIN_LOOP ($0409).\nThis is interpreted data, not 6510 code. RUN_SCRIPT ($1605) walks it through SCRIPT_PC\n($4E/$4F). Opcodes $80-$89 are conditions, dispatched through CONDITION_DISPATCH_TABLE\n($1193); each returns carry, and a false condition jumps to the skip loop at $169F, so\nconsecutive conditions AND together. Opcodes $00-$7F are actions via ACTION_DISPATCH_TABLE\n($0DE3). $FE separates rules, $FF ends the script.\nWhat it does each turn:\n- once only (OBJ_FLAGS[6]), sets Atreyu's strength OBJ_COUNTERS[1] = 50 and lights flag 7\n- at strength 10 takes a point and warns (sentence $1B); kills at 0 (sentence $1C, pause, RESTART)\n- sets OBJ_FLAGS[$11] the first time the Black Velvet Cape (object $1A) is carried; nothing clears\nit, and nothing but this rule's own test reads it\n- keeps flag 7 set while the Glowglobe (object $13) is carried; flag 7 is the same \"room\nlit\" flag DESCRIBE_CURRENT_ROOM ($107E) tests before printing anything\n- counts turns in the dark in OBJ_COUNTERS[6] and kills at 4 (sentence $41)\n- drains strength each turn while poisoned (OBJ_FLAGS[8], sentence $40)\nIt ends with action $07 (RETURN_SKIP_CALLER), which pops the interpreter's self-modified JSR\nframe and returns straight to RUN_TURN_SCRIPTS, so the trailing $FF is unreachable.\nBeing below $2F00, it survives every part load: each part's file covers $2F00-$95FF\nonly.","t":"byte","b":[131,6,5,6,5,7,4,1]},{"a":7287,"t":"byte","b":[50,254,133,1,10,14,1,17]},{"a":7295,"t":"byte","b":[27,254,132,1,17,28,26,20]},{"a":7303,"t":"byte","b":[254,129,26,131,17,5,17,254]},{"a":7311,"t":"byte","b":[129,19,5,7,254,130,7,4]},{"a":7319,"t":"byte","b":[6,0,254,131,7,13,6,254]},{"a":7327,"t":"byte","b":[133,6,4,17,65,26,20,254]},{"a":7335,"t":"byte","b":[130,8,14,1,17,64,254,7]},{"a":7343,"t":"byte","b":[255]},{"a":7344,"l":"SENTENCE_POINTERS","c":"Sixty-eight pointers to compressed, $40-terminated sentence data beginning at $1D38.","t":"byte","b":[56,29,78,29,98,29,119,29]},{"a":7352,"t":"byte","b":[130,29,133,29,136,29,151,29]},{"a":7360,"t":"byte","b":[157,29,172,29,196,29,216,29]},{"a":7368,"t":"byte","b":[243,29,250,29,3,30,25,30]},{"a":7376,"t":"byte","b":[29,30,33,30,56,30,63,30]},{"a":7384,"t":"byte","b":[70,30,81,30,92,30,102,30]},{"a":7392,"t":"byte","b":[116,30,145,30,165,30,186,30]},{"a":7400,"t":"byte","b":[198,30,234,30,4,31,17,31]},{"a":7408,"t":"byte","b":[21,31,26,31,44,31,54,31]},{"a":7416,"t":"byte","b":[64,31,82,31,101,31,117,31]},{"a":7424,"t":"byte","b":[141,31,165,31,206,31,11,32]},{"a":7432,"t":"byte","b":[25,32,53,32,68,32,87,32]},{"a":7440,"t":"byte","b":[101,32,110,32,119,32,130,32]},{"a":7448,"t":"byte","b":[139,32,149,32,159,32,182,32]},{"a":7456,"t":"byte","b":[188,32,200,32,224,32,44,33]},{"a":7464,"t":"byte","b":[168,33,185,33,204,33,230,33]},{"a":7472,"t":"byte","b":[255,33,21,34,66,34,87,34]},{"a":7480,"l":"SENTENCE_00","c":"Sentence $00: \"I don't understand the word\" Ends with @ at $1D4D. Printed by the code at $12F6.","t":"byte","b":[73,68,111,110,39,116,85,110]},{"a":7488,"t":"byte","b":[100,101,114,115,116,97,110,100]},{"a":7496,"t":"byte","b":[128,87,111,114,100,64]},{"a":7502,"l":"SENTENCE_01","c":"Sentence $01: \"There is no verb in that sentence.\" Ends with @ at $1D61. Printed by the code at $13B4.","t":"byte","b":[131,132,78,111,86,101,114,98]},{"a":7510,"t":"byte","b":[134,133,83,101,110,116,101,110]},{"a":7518,"t":"byte","b":[99,101,46,64]},{"a":7522,"l":"SENTENCE_02","c":"Sentence $02: \"You can't go in that direction.\" Ends with @ at $1D76. Printed by the code at $0E88, action script for EAST, action script for WEST, action script for UP, action script for DOWN and action script for ENTER anything.","t":"byte","b":[139,67,97,110,39,116,71,111]},{"a":7530,"t":"byte","b":[134,133,68,105,114,101,99,116]},{"a":7538,"t":"byte","b":[105,111,110,46,64]},{"a":7543,"l":"SENTENCE_03","c":"Sentence $03: \"You can't do that.\" Ends with @ at $1D81. Printed by the code at $0F6B, the code at $144A, action script for GET ARTAX, action script for PULL THORN BUSHES, action script for OUT anything, action script for TIE ROPE and 1 more.","t":"byte","b":[139,67,97,110,39,116,68,111]},{"a":7551,"t":"byte","b":[133,46,64]},{"a":7554,"l":"SENTENCE_04","c":"Sentence $04: \"There is\" Ends with @ at $1D84. Printed by the room listing ($10F4), for each object present whose description starts with 4.","t":"byte","b":[131,132,64]},{"a":7557,"l":"SENTENCE_05","c":"Sentence $05: \"There are\" Ends with @ at $1D87. Printed by the room listing ($10F4), for each object present whose description starts with 5.","t":"byte","b":[131,140,64]},{"a":7560,"l":"SENTENCE_06","c":"Sentence $06: \"Lying on the ground is\" Ends with @ at $1D96. Printed by the room listing ($10F4), for each object present whose description starts with 6.","t":"byte","b":[76,121,105,110,103,157,128,71]},{"a":7568,"t":"byte","b":[114,111,117,110,100,132,64]},{"a":7575,"l":"SENTENCE_07","c":"Sentence $07: \"here.\" Ends with @ at $1D9C. Printed by the code at $111B.","t":"byte","b":[104,101,114,101,46,64]},{"a":7581,"l":"SENTENCE_08","c":"Sentence $08: \"I don't see it here!\" Ends with @ at $1DAB. Printed by the code at $0F61, action script for GET KEY, action script for GET SPIDER'S WEB, action script for HIT GLASS BOX, action script for CUT SPIDER'S WEB, action script for UNLOCK CELL and 1 more.","t":"byte","b":[73,68,111,110,39,116,152,73]},{"a":7589,"t":"byte","b":[116,72,101,114,101,33,64]},{"a":7596,"l":"SENTENCE_09","c":"Sentence $09: \"You're already carrying it !\" Ends with @ at $1DC3. Printed by the code at $0F5C.","t":"byte","b":[89,111,117,39,114,101,65,108]},{"a":7604,"t":"byte","b":[114,101,97,100,121,67,97,114]},{"a":7612,"t":"byte","b":[114,121,105,110,103,193,33,64]},{"a":7620,"l":"SENTENCE_0A","c":"Sentence $0A: \"You're not carrying it !\" Ends with @ at $1DD7. Printed by the code at $0EC0, action script for DROP KEY, action script for EAT APPLE, action script for EAT FOOD, action script for LIGHT BRANCH, action script for BLOW HORN and 6 more.","t":"byte","b":[89,111,117,39,114,101,78,111]},{"a":7628,"t":"byte","b":[116,67,97,114,114,121,105,110]},{"a":7636,"t":"byte","b":[103,193,33,64]},{"a":7640,"l":"SENTENCE_0B","c":"Sentence $0B: \"You've got a full load already!\" Ends with @ at $1DF2. Printed by the code at $0F66.","t":"byte","b":[89,111,117,39,118,101,71,111]},{"a":7648,"t":"byte","b":[116,65,70,117,108,108,76,111]},{"a":7656,"t":"byte","b":[97,100,65,108,114,101,97,100]},{"a":7664,"t":"byte","b":[121,33,64]},{"a":7667,"l":"SENTENCE_0C","c":"Sentence $0C: \"Taken!\" Ends with @ at $1DF9. Printed by the code at $0F35.","t":"byte","b":[84,97,107,101,110,33,64]},{"a":7674,"l":"SENTENCE_0D","c":"Sentence $0D: \"Dropped!\" Ends with @ at $1E02. Printed by the code at $0ED2.","t":"byte","b":[68,114,111,112,112,101,100,33]},{"a":7682,"t":"byte","b":[64]},{"a":7683,"l":"SENTENCE_0E","c":"Sentence $0E: \"You are carrying the following:\" Ends with @ at $1E18. Printed by the code at $1008.","t":"byte","b":[139,140,67,97,114,114,121,105]},{"a":7691,"t":"byte","b":[110,103,128,70,111,108,108,111]},{"a":7699,"t":"byte","b":[119,105,110,103,58,64]},{"a":7705,"l":"SENTENCE_0F","c":"Sentence $0F: \"Nothing at all\" Ends with @ at $1E1C. Printed by the code at $1027.","t":"byte","b":[175,158,153,64]},{"a":7709,"l":"SENTENCE_10","c":"Sentence $10: \"is here.\" Ends with @ at $1E20. Printed by the code at $1113.","t":"byte","b":[132,172,46,64]},{"a":7713,"l":"SENTENCE_11","c":"Sentence $11: \"Error! - hit space to retry.\" Ends with @ at $1E37. Nothing prints it.","t":"byte","b":[69,114,114,111,114,33,209,72]},{"a":7721,"t":"byte","b":[105,116,83,112,97,99,101,141]},{"a":7729,"t":"byte","b":[82,101,116,114,121,46,64]},{"a":7736,"l":"SENTENCE_12","c":"Sentence $12: \"Error!\" Ends with @ at $1E3E. Printed by the code at $04BD, reached only from the disk load and save code, which nothing calls, so it never appears.","t":"byte","b":[69,114,114,111,114,33,64]},{"a":7743,"l":"SENTENCE_13","c":"Sentence $13: \"You wait!\" Ends with @ at $1E45. Printed by the code at $08C7 and action script for WAIT.","t":"byte","b":[139,87,97,105,116,33,64]},{"a":7750,"l":"SENTENCE_14","c":"Sentence $14: \"Artax is with you.\" Ends with @ at $1E50. Printed by action script for INVENTORY and action script for GET ARTAX.","t":"byte","b":[218,132,87,105,116,104,89,111]},{"a":7758,"t":"byte","b":[117,46,64]},{"a":7761,"l":"SENTENCE_15","c":"Sentence $15: \"Falkor is with you.\" Ends with @ at $1E5B. Printed by action script for INVENTORY and action script for GET FALKOR.","t":"byte","b":[130,132,87,105,116,104,89,111]},{"a":7769,"t":"byte","b":[117,46,64]},{"a":7772,"l":"SENTENCE_16","c":"Sentence $16: \"He's not here !\" Ends with @ at $1E65. Printed by action script for GET ARTAX and action script for GET FALKOR.","t":"byte","b":[72,101,39,115,78,111,116,172]},{"a":7780,"t":"byte","b":[33,64]},{"a":7782,"l":"SENTENCE_17","c":"Sentence $17: \"He's not with you !\" Ends with @ at $1E73. Printed by action script for DROP ARTAX, action script for DROP FALKOR, action script for FLY SOU, action script for FLY NOR and action script for FLY anything.","t":"byte","b":[72,101,39,115,78,111,116,87]},{"a":7790,"t":"byte","b":[105,116,104,221,33,64]},{"a":7796,"l":"SENTENCE_18","c":"Sentence $18: \"The food restores Atreyu to full strength!\" Ends with @ at $1E90. Printed by action script for EAT FOOD.","t":"byte","b":[182,70,111,111,100,82,101,115]},{"a":7804,"t":"byte","b":[116,111,114,101,115,129,141,70]},{"a":7812,"t":"byte","b":[117,108,108,83,116,114,101,110]},{"a":7820,"t":"byte","b":[103,116,104,33,64]},{"a":7825,"l":"SENTENCE_19","c":"Sentence $19: \"There is no noun in that sentence!\" Ends with @ at $1EA4. Printed by the code at $0EB4 and the code at $0F06 when NOUN_ID is 0, which never happens (the parser leaves $FA or a nonzero token, and no script sets 0), so it never appears.","t":"byte","b":[131,132,78,111,78,111,117,110]},{"a":7833,"t":"byte","b":[134,133,83,101,110,116,101,110]},{"a":7841,"t":"byte","b":[99,101,33,64]},{"a":7845,"l":"SENTENCE_1A","c":"Sentence $1A: \"You'll have to go alone!\" Ends with @ at $1EB9. Printed by action script for DOWN and action script for ENTER anything.","t":"byte","b":[89,111,117,39,108,108,72,97]},{"a":7853,"t":"byte","b":[118,101,84,111,71,111,65,108]},{"a":7861,"t":"byte","b":[111,110,101,33,64]},{"a":7866,"l":"SENTENCE_1B","c":"Sentence $1B: \"Atreyu is very weak!\" Ends with @ at $1EC5. Printed by resident turn script.","t":"byte","b":[129,132,86,101,114,121,87,101]},{"a":7874,"t":"byte","b":[97,107,33,64]},{"a":7878,"l":"SENTENCE_1C","c":"Sentence $1C: \"Atreyu is just too weak to go on. Now Fantasia is sure to be consumed!\" Ends with @ at $1EE9. Printed by resident turn script.","t":"byte","b":[129,132,212,84,111,111,87,101]},{"a":7886,"t":"byte","b":[97,107,141,71,111,157,46,78]},{"a":7894,"t":"byte","b":[111,119,202,132,83,117,114,101]},{"a":7902,"t":"byte","b":[141,156,67,111,110,115,117,109]},{"a":7910,"t":"byte","b":[101,100,33,64]},{"a":7914,"l":"SENTENCE_1D","c":"Sentence $1D: \"Paused - hit space to continue!\" Ends with @ at $1F03. Printed by the code at $117D.","t":"byte","b":[80,97,117,115,101,100,209,72]},{"a":7922,"t":"byte","b":[105,116,83,112,97,99,101,141]},{"a":7930,"t":"byte","b":[67,111,110,116,105,110,117,101]},{"a":7938,"t":"byte","b":[33,64]},{"a":7940,"l":"SENTENCE_1E","c":"Sentence $1E: \"They're not here !\" Ends with @ at $1F10. Printed by action script for LIGHT THORN BUSHES and action script for REMOVE PLANKS.","t":"byte","b":[84,104,101,121,39,114,101,78]},{"a":7948,"t":"byte","b":[111,116,172,33,64]},{"a":7953,"l":"SENTENCE_1F","c":"Sentence $1F: \"Ok!\" Ends with @ at $1F14. Printed by action script for DROP ARTAX, action script for DROP FALKOR, action script for MUS..., action script for NOM..., action script for LIGHT BRANCH, action script for CLIMB anything and 6 more.","t":"byte","b":[79,107,33,64]},{"a":7957,"l":"SENTENCE_20","c":"Sentence $20: \"How?\" Ends with @ at $1F19. Printed by action script for LIGHT BRANCH, action script for UNLOCK CELL and action script for LOCK CELL.","t":"byte","b":[72,111,119,63,64]},{"a":7962,"l":"SENTENCE_21","c":"Sentence $21: \"Not very effective!\" Ends with @ at $1F2B. Printed by action script for ATTACK anything and action script for HIT anything.","t":"byte","b":[78,111,116,86,101,114,121,69]},{"a":7970,"t":"byte","b":[102,102,101,99,116,105,118,101]},{"a":7978,"t":"byte","b":[33,64]},{"a":7980,"l":"SENTENCE_22","c":"Sentence $22: \"Nothing happens!\" Ends with @ at $1F35. Printed by action script for EAT APPLE, action script for BLOW HORN, action script for CUT APPLE, action script for SAY PLEASE and action script for SAY anything.","t":"byte","b":[175,72,97,112,112,101,110,115]},{"a":7988,"t":"byte","b":[33,64]},{"a":7990,"l":"SENTENCE_23","c":"Sentence $23: \"Falkor appears!\" Ends with @ at $1F3F. Printed by action script for BLOW HORN.","t":"byte","b":[130,65,112,112,101,97,114,115]},{"a":7998,"t":"byte","b":[33,64]},{"a":8000,"l":"SENTENCE_24","c":"Sentence $24: \"There is nothing here to climb!\" Ends with @ at $1F51. Printed by action script for CLIMB anything.","t":"byte","b":[131,132,78,111,116,104,105,110]},{"a":8008,"t":"byte","b":[103,172,141,67,108,105,109,98]},{"a":8016,"t":"byte","b":[33,64]},{"a":8018,"l":"SENTENCE_25","c":"Sentence $25: \"I don't understand that !\" Ends with @ at $1F64. Printed by the code at $0E2D.","t":"byte","b":[73,68,111,110,39,116,85,110]},{"a":8026,"t":"byte","b":[100,101,114,115,116,97,110,100]},{"a":8034,"t":"byte","b":[133,33,64]},{"a":8037,"l":"SENTENCE_26","c":"Sentence $26: \"You can't fly on Artax !\" Ends with @ at $1F74. Printed by action script for FLY anything.","t":"byte","b":[89,111,117,67,97,110,39,116]},{"a":8045,"t":"byte","b":[70,108,121,79,110,218,33,64]},{"a":8053,"l":"SENTENCE_27","c":"Sentence $27: \"You've got nothing to ride on !\" Ends with @ at $1F8C. Printed by action script for RIDE anything.","t":"byte","b":[89,111,117,39,118,101,71,111]},{"a":8061,"t":"byte","b":[116,78,111,116,104,105,110,103]},{"a":8069,"t":"byte","b":[141,82,105,100,101,157,33,64]},{"a":8077,"l":"SENTENCE_28","c":"Sentence $28: \"You'll have to smash it first!\" Ends with @ at $1FA4. Printed by action script for GET GLASS FRAGMENT.","t":"byte","b":[89,111,117,39,108,108,72,97]},{"a":8085,"t":"byte","b":[118,101,141,83,109,97,115,104]},{"a":8093,"t":"byte","b":[193,70,105,114,115,116,33,64]},{"a":8101,"l":"SENTENCE_29","c":"Sentence $29: \"The fragment is very sharp and it slips out of your hands!\" Ends with @ at $1FCD. Printed by action script for GET GLASS FRAGMENT and action script for DROP LEATHER.","t":"byte","b":[182,70,114,97,103,109,101,110]},{"a":8109,"t":"byte","b":[116,132,86,101,114,121,83,104]},{"a":8117,"t":"byte","b":[97,114,112,186,193,83,108,105]},{"a":8125,"t":"byte","b":[112,115,79,117,116,136,89,111]},{"a":8133,"t":"byte","b":[117,114,72,97,110,100,115,33]},{"a":8141,"t":"byte","b":[64]},{"a":8142,"l":"SENTENCE_2A","c":"Sentence $2A: \"The box shatters into powdered glass apart from one small fragment and the crystal itself!\" Ends with @ at $200A. Printed by action script for HIT GLASS BOX.","t":"byte","b":[182,66,111,120,83,104,97,116]},{"a":8150,"t":"byte","b":[116,101,114,115,204,80,111,119]},{"a":8158,"t":"byte","b":[100,101,114,101,100,71,108,97]},{"a":8166,"t":"byte","b":[115,115,65,112,97,114,116,194]},{"a":8174,"t":"byte","b":[79,110,101,166,70,114,97,103]},{"a":8182,"t":"byte","b":[109,101,110,116,186,128,67,114]},{"a":8190,"t":"byte","b":[121,115,116,97,108,73,116,115]},{"a":8198,"t":"byte","b":[101,108,102,33,64]},{"a":8203,"l":"SENTENCE_2B","c":"Sentence $2B: \"It's too tough!\" Ends with @ at $2018. Printed by action script for HIT GLASS BOX.","t":"byte","b":[73,116,39,115,84,111,111,84]},{"a":8211,"t":"byte","b":[111,117,103,104,33,64]},{"a":8217,"l":"SENTENCE_2C","c":"Sentence $2C: \"Falkor flies you safely across the desert!\" Ends with @ at $2034. Printed by action script for FLY SOU and action script for FLY NOR.","t":"byte","b":[130,70,108,105,101,115,221,83]},{"a":8225,"t":"byte","b":[97,102,101,108,121,65,99,114]},{"a":8233,"t":"byte","b":[111,115,115,128,68,101,115,101]},{"a":8241,"t":"byte","b":[114,116,33,64]},{"a":8245,"l":"SENTENCE_2D","c":"Sentence $2D: \"You just cut yourself!\" Ends with @ at $2043. Printed by action script for PULL THORN BUSHES.","t":"byte","b":[139,212,67,117,116,89,111,117]},{"a":8253,"t":"byte","b":[114,115,101,108,102,33,64]},{"a":8260,"l":"SENTENCE_2E","c":"Sentence $2E: \"Restore a saved game?\" Ends with @ at $2056. Printed by the code at $14D9, which nothing reaches (INIT_GAME jumps over it), so it never appears.","t":"byte","b":[82,101,115,116,111,114,101,65]},{"a":8268,"t":"byte","b":[83,97,118,101,100,71,97,109]},{"a":8276,"t":"byte","b":[101,63,64]},{"a":8279,"l":"SENTENCE_2F","c":"Sentence $2F: \"Hit space to load\" Ends with @ at $2064. Printed by the code at $043C.","t":"byte","b":[72,105,116,83,112,97,99,101]},{"a":8287,"t":"byte","b":[141,76,111,97,100,64]},{"a":8293,"l":"SENTENCE_30","c":"Sentence $30: \"Part one!\" Ends with @ at $206D. Printed by the code at $0447 (sentence $30 + CURRENT_PART_NO, when that is 0).","t":"byte","b":[80,97,114,116,79,110,101,33]},{"a":8301,"t":"byte","b":[64]},{"a":8302,"l":"SENTENCE_31","c":"Sentence $31: \"Part two!\" Ends with @ at $2076. Printed by the code at $0447 (sentence $30 + CURRENT_PART_NO, when that is 1).","t":"byte","b":[80,97,114,116,84,119,111,33]},{"a":8310,"t":"byte","b":[64]},{"a":8311,"l":"SENTENCE_32","c":"Sentence $32: \"Part three!\" Ends with @ at $2081. Printed by the code at $0447 (sentence $30 + CURRENT_PART_NO, when that is 2).","t":"byte","b":[80,97,114,116,84,104,114,101]},{"a":8319,"t":"byte","b":[101,33,64]},{"a":8322,"l":"SENTENCE_33","c":"Sentence $33: \"Old game!\" Ends with @ at $208A. Nothing prints it.","t":"byte","b":[79,108,100,71,97,109,101,33]},{"a":8330,"t":"byte","b":[64]},{"a":8331,"l":"SENTENCE_34","c":"Sentence $34: \"Are you sure?\" Ends with @ at $2094. Printed by the code at $0FCF.","t":"byte","b":[65,114,101,221,83,117,114,101]},{"a":8339,"t":"byte","b":[63,64]},{"a":8341,"l":"SENTENCE_35","c":"Sentence $35: \"Game over!\" Ends with @ at $209E. Printed by the code at $0FE6.","t":"byte","b":[71,97,109,101,79,118,101,114]},{"a":8349,"t":"byte","b":[33,64]},{"a":8351,"l":"SENTENCE_36","c":"Sentence $36: \"The apple destroys the poison!\" Ends with @ at $20B5. Printed by action script for EAT APPLE.","t":"byte","b":[182,65,112,112,108,101,68,101]},{"a":8359,"t":"byte","b":[115,116,114,111,121,115,128,80]},{"a":8367,"t":"byte","b":[111,105,115,111,110,33,64]},{"a":8374,"l":"SENTENCE_37","c":"Sentence $37: \"Huh!!\" Ends with @ at $20BB. Printed by action script for DOWN, action script for EAT anything, action script for READ anything and action script for TIE ROPE.","t":"byte","b":[72,117,104,33,33,64]},{"a":8380,"l":"SENTENCE_38","c":"Sentence $38: \"Not a chance!\" Ends with @ at $20C7. Printed by action script for ATTACK GMORK.","t":"byte","b":[78,111,116,65,67,104,97,110]},{"a":8388,"t":"byte","b":[99,101,33,64]},{"a":8392,"l":"SENTENCE_39","c":"Sentence $39: \"You've nothing to cut it with!\" Ends with @ at $20DF. Printed by action script for CUT SPIDER'S WEB and action script for CUT APPLE.","t":"byte","b":[89,111,117,39,118,101,78,111]},{"a":8400,"t":"byte","b":[116,104,105,110,103,141,67,117]},{"a":8408,"t":"byte","b":[116,193,87,105,116,104,33,64]},{"a":8416,"l":"SENTENCE_3A","c":"Sentence $3A: \"The paper looks like a piece of an old advert. The only readable part is the slogan , Fantasia glass is the only true glass!\" Ends with @ at $212B. Printed by action script for READ PAPER.","t":"byte","b":[182,80,97,112,101,114,76,111]},{"a":8424,"t":"byte","b":[111,107,115,76,105,107,101,65]},{"a":8432,"t":"byte","b":[80,105,101,99,101,136,170,79]},{"a":8440,"t":"byte","b":[108,100,65,100,118,101,114,116]},{"a":8448,"t":"byte","b":[46,182,184,82,101,97,100,97]},{"a":8456,"t":"byte","b":[98,108,101,80,97,114,116,132]},{"a":8464,"t":"byte","b":[128,83,108,111,103,97,110,203]},{"a":8472,"t":"byte","b":[202,71,108,97,115,115,132,128]},{"a":8480,"t":"byte","b":[184,84,114,117,101,71,108,97]},{"a":8488,"t":"byte","b":[115,115,33,64]},{"a":8492,"l":"SENTENCE_3B","c":"Sentence $3B: \"The book is about the history of the Ivory Tower. It explains that the only way to gain entrance to the tower if it doesn't wish you to enter is with the ancient golden key , but that this has been lost for centuries.\" Ends with @ at $21A7. Printed by action script for READ BOOK.","t":"byte","b":[182,66,111,111,107,132,65,98]},{"a":8500,"t":"byte","b":[111,117,116,128,72,105,115,116]},{"a":8508,"t":"byte","b":[111,114,121,136,128,196,46,73]},{"a":8516,"t":"byte","b":[116,69,120,112,108,97,105,110]},{"a":8524,"t":"byte","b":[115,133,128,184,87,97,121,141]},{"a":8532,"t":"byte","b":[71,97,105,110,208,141,128,84]},{"a":8540,"t":"byte","b":[111,119,101,114,73,102,193,68]},{"a":8548,"t":"byte","b":[111,101,115,110,39,116,87,105]},{"a":8556,"t":"byte","b":[115,104,89,111,117,141,69,110]},{"a":8564,"t":"byte","b":[116,101,114,132,87,105,116,104]},{"a":8572,"t":"byte","b":[128,65,110,99,105,101,110,116]},{"a":8580,"t":"byte","b":[71,111,108,100,101,110,75,101]},{"a":8588,"t":"byte","b":[121,203,154,133,169,187,66,101]},{"a":8596,"t":"byte","b":[101,110,76,111,115,116,70,111]},{"a":8604,"t":"byte","b":[114,67,101,110,116,117,114,105]},{"a":8612,"t":"byte","b":[101,115,46,64]},{"a":8616,"l":"SENTENCE_3C","c":"Sentence $3C: \"It's already open!\" Ends with @ at $21B8. Printed by action script for OPEN TIN, action script for UNLOCK CELL and action script for SAY PLEASE.","t":"byte","b":[73,116,39,115,65,108,114,101]},{"a":8624,"t":"byte","b":[97,100,121,79,112,101,110,33]},{"a":8632,"t":"byte","b":[64]},{"a":8633,"l":"SENTENCE_3D","c":"Sentence $3D: \"It's already closed!\" Ends with @ at $21CB. Printed by action script for CLOSE TIN and action script for LOCK CELL.","t":"byte","b":[73,116,39,115,65,108,114,101]},{"a":8641,"t":"byte","b":[97,100,121,67,108,111,115,101]},{"a":8649,"t":"byte","b":[100,33,64]},{"a":8652,"l":"SENTENCE_3E","c":"Sentence $3E: \"The tin contains a white powder.\" Ends with @ at $21E5. Printed by action script for OPEN TIN.","t":"byte","b":[182,84,105,110,67,111,110,116]},{"a":8660,"t":"byte","b":[97,105,110,115,65,87,104,105]},{"a":8668,"t":"byte","b":[116,101,80,111,119,100,101,114]},{"a":8676,"t":"byte","b":[46,64]},{"a":8678,"l":"SENTENCE_3F","c":"Sentence $3F: \"It's too dark to see anything!\" Ends with @ at $21FE. Printed by the code at $1085.","t":"byte","b":[73,116,39,115,84,111,111,68]},{"a":8686,"t":"byte","b":[97,114,107,141,83,101,101,65]},{"a":8694,"t":"byte","b":[110,121,116,104,105,110,103,33]},{"a":8702,"t":"byte","b":[64]},{"a":8703,"l":"SENTENCE_40","c":"Sentence $40: \"The poison is weakening you!\" Ends with @ at $2214. Printed by resident turn script.","t":"byte","b":[182,80,111,105,115,111,110,132]},{"a":8711,"t":"byte","b":[87,101,97,107,101,110,105,110]},{"a":8719,"t":"byte","b":[103,89,111,117,33,64]},{"a":8725,"l":"SENTENCE_41","c":"Sentence $41: \"Something grabs you out of the darkness and strangles you!\" Ends with @ at $2241. Printed by resident turn script.","t":"byte","b":[83,111,109,101,116,104,105,110]},{"a":8733,"t":"byte","b":[103,71,114,97,98,115,89,111]},{"a":8741,"t":"byte","b":[117,79,117,116,136,128,68,97]},{"a":8749,"t":"byte","b":[114,107,110,101,115,115,186,83]},{"a":8757,"t":"byte","b":[116,114,97,110,103,108,101,115]},{"a":8765,"t":"byte","b":[89,111,117,33,64]},{"a":8770,"l":"SENTENCE_42","c":"Sentence $42: \"Falkor will only help the bearer of Auryn !\" Ends with @ at $2256. Printed by action script for GET FALKOR.","t":"byte","b":[130,87,105,108,108,184,72,101]},{"a":8778,"t":"byte","b":[108,112,128,66,101,97,114,101]},{"a":8786,"t":"byte","b":[114,136,162,33,64]},{"a":8791,"l":"SENTENCE_43","c":"Sentence $43: \"Please enter the filename\" Ends with @ at $226B. Printed by the code at $04C8, called only from DISK_LOAD_GAME ($0463), which nothing calls, so it never appears.","t":"byte","b":[80,108,101,97,115,101,69,110]},{"a":8799,"t":"byte","b":[116,101,114,128,70,105,108,101]},{"a":8807,"t":"byte","b":[110,97,109,101,64]},{"a":8812,"l":"INITIAL_OBJECT_LOCATIONS","c":"Initial 54-byte per-object location/state image copied to OBJECT_LOCATIONS when starting a new game.","t":"byte","b":[253,253,17,3,8,251,36,36],"x":[5412]},{"a":8820,"t":"byte","b":[37,253,3,1,2,253,253,0]},{"a":8828,"t":"byte","b":[253,72,65,51,70,57,253,107]},{"a":8836,"t":"byte","b":[107,107,13,48,1,24,253,253]},{"a":8844,"t":"byte","b":[122,47,0,253,23,6,25,42]},{"a":8852,"t":"byte","b":[253,44,253,253,253,66,31,75]},{"a":8860,"t":"byte","b":[253,51,35,107,46,57]},{"a":8866,"l":"INITIAL_CARRIED_END","c":"$FF after the initial object-state image; nothing reads it, because the copy stops at the count stored separately at $22A3.","t":"byte","b":[255]},{"a":8867,"l":"OBJECT_COUNT","c":"Number of valid per-object entries in INITIAL_OBJECT_LOCATIONS and OBJECT_LOCATIONS.","t":"byte","b":[54],"x":[4123,4252,5419]},{"a":8868,"l":"NOUN_TO_OBJECT_INDEX","c":"Maps icon slots to objects: the byte at position n is the object index (noun token - $32) whose icon is slot n, $FF-terminated; RESOLVE_NOUN ($15E3) searches it linearly for an object and takes the first position that holds it as the icon slot, so object 0, at positions 0, 4, 5, 23, 24, 27, 29, 30 and 31, always gets slot 0.","t":"byte","b":[0,8,9,15,0,0,17,18],"x":[5610]},{"a":8876,"t":"byte","b":[19,20,21,22,23,25,24,26]},{"a":8884,"t":"byte","b":[27,29,30,31,33,34,36,0]},{"a":8892,"t":"byte","b":[0,38,39,0,41,0,0,0]},{"a":8900,"t":"byte","b":[45,46,47,48]},{"a":8904,"l":"NOUN_TO_OBJECT_END","c":"$FF terminator for NOUN_TO_OBJECT_INDEX.","t":"byte","b":[255]},{"a":8905,"l":"OBJECT_DESCRIPTION_POINTERS","c":"One compressed object-description pointer for each of the 54 object-state slots.","t":"byte","b":[53,35,56,35,56,35,56,35]},{"a":8913,"t":"byte","b":[56,35,57,35,56,35,56,35]},{"a":8921,"t":"byte","b":[77,35,103,35,122,35,132,35]},{"a":8929,"t":"byte","b":[135,35,56,35,56,35,147,35]},{"a":8937,"t":"byte","b":[56,35,154,35,167,35,176,35]},{"a":8945,"t":"byte","b":[188,35,216,35,230,35,248,35]},{"a":8953,"t":"byte","b":[11,36,38,36,52,36,70,36]},{"a":8961,"t":"byte","b":[56,35,88,36,109,36,138,36]},{"a":8969,"t":"byte","b":[56,35,162,36,187,36,56,35]},{"a":8977,"t":"byte","b":[205,36,241,36,244,36,11,37]},{"a":8985,"t":"byte","b":[56,35,24,37,56,35,56,35]},{"a":8993,"t":"byte","b":[56,35,39,37,77,37,103,37]},{"a":9001,"t":"byte","b":[117,37,129,37,56,35,154,37]},{"a":9009,"t":"byte","b":[173,37,199,37]},{"a":9013,"l":"OBJECT_DESCRIPTION_00","c":"Description of object 0 (Auryn): \"Auryn.\" Ends with @ at $2338. The first byte, 6, is the sentence the room listing wraps it in: \"Lying on the ground is\" before it; INVENTORY skips it.","t":"byte","b":[6,162,46]},{"a":9016,"l":"OBJECT_DESCRIPTION_01","c":"The empty description of objects 1 (Gmork), 2 (TRE (2)), 3 (Ivory Tower), 4 (thorn bushes), 6 (Engywook), 7 (Urgl), 13 (FOR (13)), 14 (SWA (14)), 16 (object 16), 28 (FIR (28)), 32 (ORN (32)), 35 (object 35), 40 (CRU (40)), 42 (object 42), 43 (object 43), 44 (object 44), 50 (TRE (50)): just the @. The room listing skips an object whose description starts with @, so these are never listed; INVENTORY would read on into the next description, but none of them can be carried.","t":"byte","b":[64]},{"a":9017,"l":"OBJECT_DESCRIPTION_05","c":"Description of object 5 (Falkor): \"Falkor the luckdragon\" Ends with @ at $2346. The first byte, 0, is the sentence the room listing wraps it in: none before it, and \"is here.\" after; INVENTORY skips it.","t":"byte","b":[0,130,128,76,117,99,107,100]},{"a":9025,"t":"byte","b":[114,97,103,111,110,64,0,216]},{"a":9033,"t":"byte","b":[64,0,217,64]},{"a":9037,"l":"OBJECT_DESCRIPTION_08","c":"Description of object 8 (telescope): \"A strange looking telescope\" Ends with @ at $2366. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,83,116,114,97,110,103]},{"a":9045,"t":"byte","b":[101,76,111,111,107,105,110,103]},{"a":9053,"t":"byte","b":[84,101,108,101,115,99,111,112]},{"a":9061,"t":"byte","b":[101,64]},{"a":9063,"l":"OBJECT_DESCRIPTION_09","c":"Description of object 9 (crystal): \"A sparkling crystal\" Ends with @ at $2379. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,83,112,97,114,107,108]},{"a":9071,"t":"byte","b":[105,110,103,67,114,121,115,116]},{"a":9079,"t":"byte","b":[97,108,64]},{"a":9082,"l":"OBJECT_DESCRIPTION_0A","c":"Description of object 10 (Nighthob): \"Nighthob\" Ends with @ at $2383. The first byte, 0, is the sentence the room listing wraps it in: none before it, and \"is here.\" after; INVENTORY skips it.","t":"byte","b":[0,78,105,103,104,116,104,111]},{"a":9090,"t":"byte","b":[98,64]},{"a":9092,"l":"OBJECT_DESCRIPTION_0B","c":"Description of object 11 (Rockbiter): \"Rockbiter\" Ends with @ at $2386. The first byte, 0, is the sentence the room listing wraps it in: none before it, and \"is here.\" after; INVENTORY skips it.","t":"byte","b":[0,215,64]},{"a":9095,"l":"OBJECT_DESCRIPTION_0C","c":"Description of object 12 (Teenyweeny): \"Teenyweeny\" Ends with @ at $2392. The first byte, 0, is the sentence the room listing wraps it in: none before it, and \"is here.\" after; INVENTORY skips it.","t":"byte","b":[0,84,101,101,110,121,119,101]},{"a":9103,"t":"byte","b":[101,110,121,64]},{"a":9107,"l":"OBJECT_DESCRIPTION_0F","c":"Description of object 15 (food): \"some food\" Ends with @ at $2399. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,161,70,111,111,100,64]},{"a":9114,"l":"OBJECT_DESCRIPTION_11","c":"Description of object 17 (golden key): \"A large golden key\" Ends with @ at $23A6. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,167,71,111,108,100,101]},{"a":9122,"t":"byte","b":[110,75,101,121,64]},{"a":9127,"l":"OBJECT_DESCRIPTION_12","c":"Description of object 18 (knife): \"A small knife\" Ends with @ at $23AF. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,166,75,110,105,102,101]},{"a":9135,"t":"byte","b":[64]},{"a":9136,"l":"OBJECT_DESCRIPTION_13","c":"Description of object 19 (glowglobe): \"A glowglobe\" Ends with @ at $23BB. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,71,108,111,119,103,108]},{"a":9144,"t":"byte","b":[111,98,101,64]},{"a":9148,"l":"OBJECT_DESCRIPTION_14","c":"Description of object 20 (spider's web): \"An enormous sticky spiders web\" Ends with @ at $23D7. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,110,69,110,111,114,109]},{"a":9156,"t":"byte","b":[111,117,115,83,116,105,99,107]},{"a":9164,"t":"byte","b":[121,83,112,105,100,101,114,115]},{"a":9172,"t":"byte","b":[87,101,98,64]},{"a":9176,"l":"OBJECT_DESCRIPTION_15","c":"Description of object 21 (iron key): \"An old iron key\" Ends with @ at $23E5. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,110,79,108,100,73,114]},{"a":9184,"t":"byte","b":[111,110,75,101,121,64]},{"a":9190,"l":"OBJECT_DESCRIPTION_16","c":"Description of object 22 (padlock): \"An ancient padlock\" Ends with @ at $23F7. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,110,65,110,99,105,101]},{"a":9198,"t":"byte","b":[110,116,80,97,100,108,111,99]},{"a":9206,"t":"byte","b":[107,64]},{"a":9208,"l":"OBJECT_DESCRIPTION_17","c":"Description of object 23 (sapphire): \"A dark blue sapphire\" Ends with @ at $240A. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,68,97,114,107,66,108]},{"a":9216,"t":"byte","b":[117,101,83,97,112,112,104,105]},{"a":9224,"t":"byte","b":[114,101,64]},{"a":9227,"l":"OBJECT_DESCRIPTION_18","c":"Description of object 24 (diamond): \"A brilliant egg sized diamond\" Ends with @ at $2425. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,66,114,105,108,108,105]},{"a":9235,"t":"byte","b":[97,110,116,69,103,103,83,105]},{"a":9243,"t":"byte","b":[122,101,100,68,105,97,109,111]},{"a":9251,"t":"byte","b":[110,100,64]},{"a":9254,"l":"OBJECT_DESCRIPTION_19","c":"Description of object 25 (ruby): \"A wine red ruby\" Ends with @ at $2433. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,87,105,110,101,82,101]},{"a":9262,"t":"byte","b":[100,82,117,98,121,64]},{"a":9268,"l":"OBJECT_DESCRIPTION_1A","c":"Description of object 26 (cape): \"A black velvet cape\" Ends with @ at $2445. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,66,108,97,99,107,86]},{"a":9276,"t":"byte","b":[101,108,118,101,116,67,97,112]},{"a":9284,"t":"byte","b":[101,64]},{"a":9286,"l":"OBJECT_DESCRIPTION_1B","c":"Description of object 27 (rope): \"A coil of strong rope\" Ends with @ at $2457. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,67,111,105,108,136,83]},{"a":9294,"t":"byte","b":[116,114,111,110,103,82,111,112]},{"a":9302,"t":"byte","b":[101,64]},{"a":9304,"l":"OBJECT_DESCRIPTION_1D","c":"Description of object 29 (branch): \"A thick knobbly branch\" Ends with @ at $246C. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,84,104,105,99,107,75]},{"a":9312,"t":"byte","b":[110,111,98,98,108,121,66,114]},{"a":9320,"t":"byte","b":[97,110,99,104,64]},{"a":9325,"l":"OBJECT_DESCRIPTION_1E","c":"Description of object 30 (burning branch): \"A thick , slowly burning , branch\" Ends with @ at $2489. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,84,104,105,99,107,203]},{"a":9333,"t":"byte","b":[83,108,111,119,108,121,66,117]},{"a":9341,"t":"byte","b":[114,110,105,110,103,203,66,114]},{"a":9349,"t":"byte","b":[97,110,99,104,64]},{"a":9354,"l":"OBJECT_DESCRIPTION_1F","c":"Description of object 31 (glass fragment): \"A small jagged fragment of glass\" Ends with @ at $24A1. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,166,74,97,103,103,101]},{"a":9362,"t":"byte","b":[100,70,114,97,103,109,101,110]},{"a":9370,"t":"byte","b":[116,136,71,108,97,115,115,64]},{"a":9378,"l":"OBJECT_DESCRIPTION_21","c":"Description of object 33 (paper): \"An old charred scrap of paper\" Ends with @ at $24BA. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,110,79,108,100,67,104]},{"a":9386,"t":"byte","b":[97,114,114,101,100,83,99,114]},{"a":9394,"t":"byte","b":[97,112,136,80,97,112,101,114]},{"a":9402,"t":"byte","b":[64]},{"a":9403,"l":"OBJECT_DESCRIPTION_22","c":"Description of object 34 (leather): \"A small piece of leather\" Ends with @ at $24CC. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,166,80,105,101,99,101]},{"a":9411,"t":"byte","b":[79,102,76,101,97,116,104,101]},{"a":9419,"t":"byte","b":[114,64]},{"a":9421,"l":"OBJECT_DESCRIPTION_24","c":"Description of object 36 (glass box): \"A solid glass box with a large crystal inside it\" Ends with @ at $24F0. The first byte, 6, is the sentence the room listing wraps it in: \"Lying on the ground is\" before it; INVENTORY skips it.","t":"byte","b":[6,65,83,111,108,105,100,71]},{"a":9429,"t":"byte","b":[108,97,115,115,66,111,120,87]},{"a":9437,"t":"byte","b":[105,116,104,65,167,67,114,121]},{"a":9445,"t":"byte","b":[115,116,97,108,73,110,115,105]},{"a":9453,"t":"byte","b":[100,101,193,64]},{"a":9457,"l":"OBJECT_DESCRIPTION_25","c":"Description of object 37 (Artax): \"Artax\" Ends with @ at $24F3. The first byte, 0, is the sentence the room listing wraps it in: none before it, and \"is here.\" after; INVENTORY skips it.","t":"byte","b":[0,218,64]},{"a":9460,"l":"OBJECT_DESCRIPTION_26","c":"Description of object 38 (stone): \"A heavy fist-sized stone\" Ends with @ at $250A. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,72,101,97,118,121,70]},{"a":9468,"t":"byte","b":[105,115,116,45,115,105,122,101]},{"a":9476,"t":"byte","b":[100,83,116,111,110,101,64]},{"a":9483,"l":"OBJECT_DESCRIPTION_27","c":"Description of object 39 (apple): \"A shiny apple\" Ends with @ at $2517. The first byte, 6, is the sentence the room listing wraps it in: \"Lying on the ground is\" before it; INVENTORY skips it.","t":"byte","b":[6,65,83,104,105,110,121,65]},{"a":9491,"t":"byte","b":[112,112,108,101,64]},{"a":9496,"l":"OBJECT_DESCRIPTION_29","c":"Description of object 41 (book): \"An ancient book\" Ends with @ at $2526. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,110,65,110,99,105,101]},{"a":9504,"t":"byte","b":[110,116,66,111,111,107,64]},{"a":9511,"l":"OBJECT_DESCRIPTION_2D","c":"Description of object 45 (tin): \"An old rusty tin with a stange symbol on the side\" Ends with @ at $254C. The first byte, 6, is the sentence the room listing wraps it in: \"Lying on the ground is\" before it; INVENTORY skips it.","t":"byte","b":[6,65,110,79,108,100,82,117]},{"a":9519,"t":"byte","b":[115,116,121,84,105,110,87,105]},{"a":9527,"t":"byte","b":[116,104,65,83,116,97,110,103]},{"a":9535,"t":"byte","b":[101,83,121,109,98,111,108,157]},{"a":9543,"t":"byte","b":[128,83,105,100,101,64]},{"a":9549,"l":"OBJECT_DESCRIPTION_2E","c":"Description of object 46 (horn): \"A gilt-covered hunting horn\" Ends with @ at $2566. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,71,105,108,116,45,99]},{"a":9557,"t":"byte","b":[111,118,101,114,101,100,72,117]},{"a":9565,"t":"byte","b":[110,116,105,110,103,72,111,114]},{"a":9573,"t":"byte","b":[110,64]},{"a":9575,"l":"OBJECT_DESCRIPTION_2F","c":"Description of object 47 (pouch): \"A small brown pouch\" Ends with @ at $2574. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,166,66,114,111,119,110]},{"a":9583,"t":"byte","b":[80,111,117,99,104,64]},{"a":9589,"l":"OBJECT_DESCRIPTION_30","c":"Description of object 48 (coin): \"A giant coin\" Ends with @ at $2580. The first byte, 6, is the sentence the room listing wraps it in: \"Lying on the ground is\" before it; INVENTORY skips it.","t":"byte","b":[6,65,71,105,97,110,116,67]},{"a":9597,"t":"byte","b":[111,105,110,64]},{"a":9601,"l":"OBJECT_DESCRIPTION_31","c":"Description of object 49 (fog): \"A thick fog swirling around\" Ends with @ at $2599. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,84,104,105,99,107,70]},{"a":9609,"t":"byte","b":[111,103,83,119,105,114,108,105]},{"a":9617,"t":"byte","b":[110,103,65,114,111,117,110,100]},{"a":9625,"t":"byte","b":[64]},{"a":9626,"l":"OBJECT_DESCRIPTION_33","c":"Description of object 51 (casket): \"A large jewellery casket\" Ends with @ at $25AC. The first byte, 4, is the sentence the room listing wraps it in: \"There is\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[4,65,167,74,101,119,101,108]},{"a":9634,"t":"byte","b":[108,101,114,121,67,97,115,107]},{"a":9642,"t":"byte","b":[101,116,64]},{"a":9645,"l":"OBJECT_DESCRIPTION_34","c":"Description of object 52 (planks): \"are some old planks lying on the ground\" Ends with @ at $25C6. The first byte, 5, is the sentence the room listing wraps it in: \"There are\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[5,140,161,79,108,100,80,108]},{"a":9653,"t":"byte","b":[97,110,107,115,76,121,105,110]},{"a":9661,"t":"byte","b":[103,157,128,71,114,111,117,110]},{"a":9669,"t":"byte","b":[100,64]},{"a":9671,"l":"OBJECT_DESCRIPTION_35","c":"Description of object 53 (rats): \"Hundreds of large hungry rats\" Ends with @ at $25DC. The first byte, 5, is the sentence the room listing wraps it in: \"There are\" before it and \"here.\" after; INVENTORY skips it.","t":"byte","b":[5,72,117,110,100,114,101,100]},{"a":9679,"t":"byte","b":[115,136,167,72,117,110,103,114]},{"a":9687,"t":"byte","b":[121,82,97,116,115,64]},{"a":9693,"l":"TOKEN_POINTERS_TABLE","c":"TOKEN_POINTERS_TABLE \u2014 94 little-endian pointers, one per compressed-text dictionary token.\nA prose byte with bit 7 set is a token reference: the renderer clears bit 7, doubles the\nremaining 0..93 id and reads the word at TOKEN_POINTERS_TABLE + 2*id. The pointer addresses a\ndictionary record, so ids $80-$DD are defined and $DE-$FF have no entry.\nThe 94 pointers occupy $25DD-$2698; the records they address begin immediately afterwards at\n$2699 (WORD_THE_LC) and run to $28B8.","t":"byte","b":[153,38,157,38,164,38,171,38]},{"a":9701,"t":"byte","b":[177,38,180,38,185,38,188,38]},{"a":9709,"t":"byte","b":[195,38,198,38,204,38,211,38]},{"a":9717,"t":"byte","b":[215,38,219,38,222,38,226,38]},{"a":9725,"t":"byte","b":[232,38,242,38,247,38,1,39]},{"a":9733,"t":"byte","b":[7,39,17,39,22,39,32,39]},{"a":9741,"t":"byte","b":[36,39,40,39,44,39,48,39]},{"a":9749,"t":"byte","b":[54,39,57,39,60,39,63,39]},{"a":9757,"t":"byte","b":[70,39,78,39,83,39,89,39]},{"a":9765,"t":"byte","b":[92,39,97,39,105,39,111,39]},{"a":9773,"t":"byte","b":[117,39,125,39,130,39,133,39]},{"a":9781,"t":"byte","b":[138,39,143,39,148,39,159,39]},{"a":9789,"t":"byte","b":[167,39,176,39,181,39,188,39]},{"a":9797,"t":"byte","b":[196,39,201,39,207,39,211,39]},{"a":9805,"t":"byte","b":[218,39,223,39,226,39,230,39]},{"a":9813,"t":"byte","b":[234,39,240,39,249,39,254,39]},{"a":9821,"t":"byte","b":[5,40,8,40,11,40,16,40]},{"a":9829,"t":"byte","b":[23,40,35,40,40,40,42,40]},{"a":9837,"t":"byte","b":[48,40,53,40,59,40,68,40]},{"a":9845,"t":"byte","b":[70,40,75,40,80,40,85,40]},{"a":9853,"t":"byte","b":[92,40,101,40,103,40,109,40]},{"a":9861,"t":"byte","b":[114,40,119,40,122,40,130,40]},{"a":9869,"t":"byte","b":[140,40,149,40,155,40,161,40]},{"a":9877,"t":"byte","b":[169,40,181,40]},{"a":9881,"l":"WORD_THE_LC","c":"Compressed-text dictionary records, $2699-$28B8. Each record is one length byte followed by\nexactly that many ASCII characters, with no terminator and no padding; records are packed back\nto back and are reached only through TOKEN_POINTERS_TABLE ($25DD), never by scanning.\nThe dictionary stores case-sensitive duplicates because prose is emitted verbatim: \"the\"\n($2699) and \"The\" ($27CF), \"to\" ($26DB) and \"To\" ($2805), \"There\" ($26AB) and \"there\" ($2730),\n\"You\" ($26D3) and \"you\" ($28B5) are separate tokens. Labels ending _LC or _CAP mark the\nlower-case or capitalised member of such a pair.","t":"byte","b":[3,116,104,101]},{"a":9885,"l":"WORD_ATREYU","c":"Second record of the 94-entry prose dictionary at $2699-$28B8: length 6 followed by ASCII Atreyu. TOKEN_POINTERS_TABLE at $25DD addresses all records; each pointer equals the previous record end plus one. Remaining records through $28B8 use the same length-byte plus verbatim ASCII format; capitalization is retained.","t":"byte","b":[6,65,116,114,101,121,117]},{"a":9892,"l":"WORD_FALKOR","c":"Prose dictionary record: length $06, then 'Falkor' in ASCII, ending at $26AA. The next record begins at $26AB; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[6,70,97,108,107,111,114]},{"a":9899,"l":"WORD_THERE_CAP","c":"Prose dictionary record: length $05, then 'There' in ASCII, ending at $26B0. The next record begins at $26B1; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,84,104,101,114,101]},{"a":9905,"l":"WORD_IS","c":"Prose dictionary record: length $02, then 'is' in ASCII, ending at $26B3. The next record begins at $26B4; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[2,105,115]},{"a":9908,"l":"WORD_THAT","c":"Prose dictionary record: length $04, then 'that' in ASCII, ending at $26B8. The next record begins at $26B9; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,116,104,97,116]},{"a":9913,"l":"WORD_IN","c":"Prose dictionary record: length $02, then 'in' in ASCII, ending at $26BB. The next record begins at $26BC; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[2,105,110]},{"a":9916,"l":"WORD_STANDS","c":"Prose dictionary record: length $06, then 'stands' in ASCII, ending at $26C2. The next record begins at $26C3; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[6,115,116,97,110,100,115]},{"a":9923,"l":"WORD_OF","c":"Prose dictionary record: length $02, then 'of' in ASCII, ending at $26C5. The next record begins at $26C6; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[2,111,102]},{"a":9926,"l":"WORD_GREAT","c":"Prose dictionary record: length $05, then 'Great' in ASCII, ending at $26CB. The next record begins at $26CC; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,71,114,101,97,116]},{"a":9932,"l":"WORD_FOREST","c":"Prose dictionary record: length $06, then 'Forest' in ASCII, ending at $26D2. The next record begins at $26D3; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[6,70,111,114,101,115,116]},{"a":9939,"l":"WORD_YOU_CAP","c":"Prose dictionary record: length $03, then 'You' in ASCII, ending at $26D6. The next record begins at $26D7; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[3,89,111,117]},{"a":9943,"l":"WORD_ARE","c":"Prose dictionary record: length $03, then 'are' in ASCII, ending at $26DA. The next record begins at $26DB; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[3,97,114,101]},{"a":9947,"l":"WORD_TO_LC","c":"Prose dictionary record: length $02, then 'to' in ASCII, ending at $26DD. The next record begins at $26DE; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[2]},{"a":9948,"l":"WORD_TO_LC_TEXT","c":"The two ASCII character bytes to belonging to the length-prefixed prose dictionary record at $26DB. The length byte is two; the next record begins at $26DE.","t":"byte","b":[116,111]},{"a":9950,"l":"WORD_OFF","c":"Prose dictionary record: length $03, then 'off' in ASCII, ending at $26E1. The next record begins at $26E2; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[3,111,102,102]},{"a":9954,"l":"WORD_NORTH","c":"Prose dictionary record: length $05, then 'north' in ASCII, ending at $26E7. The next record begins at $26E8; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,110,111,114,116,104]},{"a":9960,"l":"WORD_NORTHEAST","c":"Prose dictionary record: length $09, then 'northeast' in ASCII, ending at $26F1. The next record begins at $26F2; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[9,110,111,114,116,104,101,97]},{"a":9968,"t":"byte","b":[115,116]},{"a":9970,"l":"WORD_EAST","c":"Prose dictionary record: length $04, then 'east' in ASCII, ending at $26F6. The next record begins at $26F7; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,101,97,115,116]},{"a":9975,"l":"WORD_SOUTHEAST","c":"Prose dictionary record: length $09, then 'southeast' in ASCII, ending at $2700. The next record begins at $2701; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[9,115,111,117,116,104,101,97]},{"a":9983,"t":"byte","b":[115,116]},{"a":9985,"l":"WORD_SOUTH","c":"Prose dictionary record: length $05, then 'south' in ASCII, ending at $2706. The next record begins at $2707; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,115,111,117,116,104]},{"a":9991,"l":"WORD_SOUTHWEST","c":"Prose dictionary record: length $09, then 'southwest' in ASCII, ending at $2710. The next record begins at $2711; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[9,115,111,117,116,104,119,101]},{"a":9999,"t":"byte","b":[115,116]},{"a":10001,"l":"WORD_WEST","c":"Prose dictionary record: length $04, then 'west' in ASCII, ending at $2715. The next record begins at $2716; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,119,101,115,116]},{"a":10006,"l":"WORD_NORTHWEST","c":"Prose dictionary record: length $09, then 'northwest' in ASCII, ending at $271F. The next record begins at $2720; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[9,110,111,114,116,104,119,101]},{"a":10014,"t":"byte","b":[115,116]},{"a":10016,"l":"WORD_CAN","c":"Prose dictionary record: length $03, then 'can' in ASCII, ending at $2723. The next record begins at $2724; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[3,99,97,110]},{"a":10020,"l":"WORD_SEE","c":"Prose dictionary record: length $03, then 'see' in ASCII, ending at $2727. The next record begins at $2728; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[3,115,101,101]},{"a":10024,"l":"WORD_ALL","c":"Prose dictionary record: length $03, then 'all' in ASCII, ending at $272B. The next record begins at $272C; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[3,97,108,108]},{"a":10028,"l":"WORD_BUT","c":"Prose dictionary record: length $03, then 'but' in ASCII, ending at $272F. The next record begins at $2730; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[3,98,117,116]},{"a":10032,"l":"WORD_THERE","c":"Prose dictionary record: length $05, then 'there' in ASCII, ending at $2735. The next record begins at $2736; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,116,104,101,114,101]},{"a":10038,"l":"WORD_BE","c":"Prose dictionary record: length $02, then 'be' in ASCII, ending at $2738. The next record begins at $2739; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[2,98,101]},{"a":10041,"l":"WORD_ON","c":"Prose dictionary record: length $02, then 'on' in ASCII, ending at $273B. The next record begins at $273C; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[2,111,110]},{"a":10044,"l":"WORD_AT","c":"Prose dictionary record: length $02, then 'at' in ASCII, ending at $273E. The next record begins at $273F; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[2,97,116]},{"a":10047,"l":"WORD_SWAMPS","c":"Prose dictionary record: length $06, then 'Swamps' in ASCII, ending at $2745. The next record begins at $2746; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[6,83,119,97,109,112,115]},{"a":10054,"l":"WORD_SADNESS","c":"Prose dictionary record: length $07, then 'Sadness' in ASCII, ending at $274D. The next record begins at $274E; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[7,83,97,100,110,101,115,115]},{"a":10062,"l":"WORD_SOME","c":"Prose dictionary record: length $04, then 'some' in ASCII, ending at $2752. The next record begins at $2753; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,115,111,109,101]},{"a":10067,"l":"WORD_AURYN","c":"Prose dictionary record: length $05, then 'Auryn' in ASCII, ending at $2758. The next record begins at $2759; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,65,117,114,121,110]},{"a":10073,"l":"WORD_UP","c":"Prose dictionary record: length $02, then 'up' in ASCII, ending at $275B. The next record begins at $275C; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[2,117,112]},{"a":10076,"l":"WORD_DOWN","c":"Prose dictionary record: length $04, then 'down' in ASCII, ending at $2760. The next record begins at $2761; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,100,111,119,110]},{"a":10081,"l":"WORD_LEADING","c":"Prose dictionary record: length $07, then 'leading' in ASCII, ending at $2768. The next record begins at $2769; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[7,108,101,97,100,105,110,103]},{"a":10089,"l":"WORD_SMALL","c":"Prose dictionary record: length $05, then 'small' in ASCII, ending at $276E. The next record begins at $276F; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,115,109,97,108,108]},{"a":10095,"l":"WORD_LARGE","c":"Prose dictionary record: length $05, then 'large' in ASCII, ending at $2774. The next record begins at $2775; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,108,97,114,103,101]},{"a":10101,"l":"WORD_REMAINS","c":"Prose dictionary record: length $07, then 'remains' in ASCII, ending at $277C. The next record begins at $277D; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[7,114,101,109,97,105,110,115]},{"a":10109,"l":"WORD_THIS","c":"Prose dictionary record: length $04, then 'this' in ASCII, ending at $2781. The next record begins at $2782; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,116,104,105,115]},{"a":10114,"l":"WORD_AN","c":"Prose dictionary record: length $02, then 'an' in ASCII, ending at $2784. The next record begins at $2785; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[2,97,110]},{"a":10117,"l":"WORD_SIDE","c":"Prose dictionary record: length $04, then 'side' in ASCII, ending at $2789. The next record begins at $278A; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,115,105,100,101]},{"a":10122,"l":"WORD_HERE","c":"Prose dictionary record: length $04, then 'here' in ASCII, ending at $278E. The next record begins at $278F; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,104,101,114,101]},{"a":10127,"l":"WORD_SEEN","c":"Prose dictionary record: length $04, then 'seen' in ASCII, ending at $2793. The next record begins at $2794; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,115,101,101,110]},{"a":10132,"l":"WORD_SPOOK_CITY","c":"Prose dictionary record: length $0A, then 'Spook City' in ASCII, ending at $279E. The next record begins at $279F; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[10,83,112,111,111,107,32,67]},{"a":10140,"t":"byte","b":[105,116,121]},{"a":10143,"l":"WORD_NOTHING","c":"Prose dictionary record: length $07, then 'Nothing' in ASCII, ending at $27A6. The next record begins at $27A7; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[7,78,111,116,104,105,110,103]},{"a":10151,"l":"WORD_CORRIDOR","c":"Prose dictionary record: length $08, then 'corridor' in ASCII, ending at $27AF. The next record begins at $27B0; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[8,99,111,114,114,105,100,111]},{"a":10159,"t":"byte","b":[114]},{"a":10160,"l":"WORD_WELL","c":"Prose dictionary record: length $04, then 'well' in ASCII, ending at $27B4. The next record begins at $27B5; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,119,101,108,108]},{"a":10165,"l":"WORD_STAIRS","c":"Prose dictionary record: length $06, then 'stairs' in ASCII, ending at $27BB. The next record begins at $27BC; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[6,115,116,97,105,114,115]},{"a":10172,"l":"WORD_DUNGEON","c":"Prose dictionary record: length $07, then 'dungeon' in ASCII, ending at $27C3. The next record begins at $27C4; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[7,100,117,110,103,101,111,110]},{"a":10180,"l":"WORD_MAIN","c":"Prose dictionary record: length $04, then 'main' in ASCII, ending at $27C8. The next record begins at $27C9; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,109,97,105,110]},{"a":10185,"l":"WORD_EXITS","c":"Prose dictionary record: length $05, then 'exits' in ASCII, ending at $27CE. The next record begins at $27CF; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,101,120,105,116,115]},{"a":10191,"l":"WORD_THE","c":"Prose dictionary record: length $03, then 'The' in ASCII, ending at $27D2. The next record begins at $27D3; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[3,84,104,101]},{"a":10195,"l":"WORD_RUINED","c":"Prose dictionary record: length $06, then 'ruined' in ASCII, ending at $27D9. The next record begins at $27DA; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[6,114,117,105,110,101,100]},{"a":10202,"l":"WORD_ONLY","c":"Prose dictionary record: length $04, then 'only' in ASCII, ending at $27DE. The next record begins at $27DF; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,111,110,108,121]},{"a":10207,"l":"WORD_AS","c":"Prose dictionary record: length $02, then 'as' in ASCII, ending at $27E1. The next record begins at $27E2; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[2,97,115]},{"a":10210,"l":"WORD_AND","c":"Prose dictionary record: length $03, then 'and' in ASCII, ending at $27E5. The next record begins at $27E6; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[3,97,110,100]},{"a":10214,"l":"WORD_HAS","c":"Prose dictionary record: length $03, then 'has' in ASCII, ending at $27E9. The next record begins at $27EA; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[3,104,97,115]},{"a":10218,"l":"WORD_WHICH","c":"Prose dictionary record: length $05, then 'which' in ASCII, ending at $27EF. The next record begins at $27F0; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,119,104,105,99,104]},{"a":10224,"l":"WORD_PAINTING","c":"Prose dictionary record: length $08, then 'painting' in ASCII, ending at $27F8. The next record begins at $27F9; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[8,112,97,105,110,116,105,110]},{"a":10232,"t":"byte","b":[103]},{"a":10233,"l":"WORD_WALL","c":"Prose dictionary record: length $04, then 'wall' in ASCII, ending at $27FD. The next record begins at $27FE; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,119,97,108,108]},{"a":10238,"l":"WORD_CENTRE","c":"Prose dictionary record: length $06, then 'centre' in ASCII, ending at $2804. The next record begins at $2805; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[6,99,101,110,116,114,101]},{"a":10245,"l":"WORD_TO","c":"Prose dictionary record: length $02, then 'To' in ASCII, ending at $2807. The next record begins at $2808; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[2,84,111]},{"a":10248,"l":"WORD_IT","c":"Prose dictionary record: length $02, then 'it' in ASCII, ending at $280A. The next record begins at $280B; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[2,105,116]},{"a":10251,"l":"WORD_FROM","c":"Prose dictionary record: length $04, then 'from' in ASCII, ending at $280F. The next record begins at $2810; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,102,114,111,109]},{"a":10256,"l":"WORD_THOUGH","c":"Prose dictionary record: length $06, then 'though' in ASCII, ending at $2816. The next record begins at $2817; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[6,116,104,111,117,103,104]},{"a":10263,"l":"WORD_IVORY_TOWER","c":"Prose dictionary record: length $0B, then 'Ivory Tower' in ASCII, ending at $2822. The next record begins at $2823; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[11,73,118,111,114,121,32,84]},{"a":10271,"t":"byte","b":[111,119,101,114]},{"a":10275,"l":"WORD_DEEP","c":"Prose dictionary record: length $04, then 'deep' in ASCII, ending at $2827. The next record begins at $2828; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,100,101,101,112]},{"a":10280,"l":"WORD_A","c":"Prose dictionary record: length $01, then 'a' in ASCII, ending at $2829. The next record begins at $282A; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[1,97]},{"a":10282,"l":"WORD_TRACK","c":"Prose dictionary record: length $05, then 'track' in ASCII, ending at $282F. The next record begins at $2830; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,116,114,97,99,107]},{"a":10288,"l":"WORD_PATH","c":"Prose dictionary record: length $04, then 'path' in ASCII, ending at $2834. The next record begins at $2835; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,112,97,116,104]},{"a":10293,"l":"WORD_MORLA","c":"Prose dictionary record: length $05, then 'Morla' in ASCII, ending at $283A. The next record begins at $283B; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,77,111,114,108,97]},{"a":10299,"l":"WORD_FANTASIA","c":"Prose dictionary record: length $08, then 'Fantasia' in ASCII, ending at $2843. The next record begins at $2844; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[8,70,97,110,116,97,115,105]},{"a":10307,"t":"byte","b":[97,1,44]},{"a":10310,"l":"WORD_INTO","c":"Prose dictionary record: length $04, then 'into' in ASCII, ending at $284A. The next record begins at $284B; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,105,110,116,111]},{"a":10315,"l":"WORD_TINY","c":"Prose dictionary record: length $04, then 'tiny' in ASCII, ending at $284F. The next record begins at $2850; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,116,105,110,121]},{"a":10320,"l":"WORD_OPEN","c":"Prose dictionary record: length $04, then 'open' in ASCII, ending at $2854. The next record begins at $2855; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,111,112,101,110]},{"a":10325,"l":"WORD_CLOSED","c":"Prose dictionary record: length $06, then 'closed' in ASCII, ending at $285B. The next record begins at $285C; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[6,99,108,111,115,101,100]},{"a":10332,"l":"WORD_ENTRANCE","c":"Prose dictionary record: length $08, then 'entrance' in ASCII, ending at $2864. The next record begins at $2865; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[8,101,110,116,114,97,110,99]},{"a":10340,"t":"byte","b":[101,1,45]},{"a":10343,"l":"WORD_FLOOR","c":"Prose dictionary record: length $05, then 'floor' in ASCII, ending at $286C. The next record begins at $286D; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,102,108,111,111,114]},{"a":10349,"l":"WORD_ROOM","c":"Prose dictionary record: length $04, then 'room' in ASCII, ending at $2871. The next record begins at $2872; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,114,111,111,109]},{"a":10354,"l":"WORD_JUST","c":"Prose dictionary record: length $04, then 'just' in ASCII, ending at $2876. The next record begins at $2877; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[4,106,117,115,116]},{"a":10359,"l":"WORD_BY","c":"Prose dictionary record: length $02, then 'by' in ASCII, ending at $2879. The next record begins at $287A; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[2,98,121]},{"a":10362,"l":"WORD_EMPRESS","c":"Prose dictionary record: length $07, then 'Empress' in ASCII, ending at $2881. The next record begins at $2882; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[7,69,109,112,114,101,115,115]},{"a":10370,"l":"WORD_ROCKBITER","c":"Prose dictionary record: length $09, then 'Rockbiter' in ASCII, ending at $288B. The next record begins at $288C; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[9,82,111,99,107,98,105,116]},{"a":10378,"t":"byte","b":[101,114]},{"a":10380,"l":"WORD_ENGYWOOK","c":"Prose dictionary record: length $08, then 'Engywook' in ASCII, ending at $2894. The next record begins at $2895; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[8,69,110,103,121,119,111,111]},{"a":10388,"t":"byte","b":[107]},{"a":10389,"l":"WORD_URGLL","c":"Prose dictionary record: length $05, then 'Urgll' in ASCII, ending at $289A. The next record begins at $289B; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,85,114,103,108,108]},{"a":10395,"l":"WORD_ARTAX","c":"Prose dictionary record: length $05, then 'Artax' in ASCII, ending at $28A0. The next record begins at $28A1; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[5,65,114,116,97,120]},{"a":10401,"l":"WORD_BASTIAN","c":"Prose dictionary record: length $07, then 'Bastian' in ASCII, ending at $28A8. The next record begins at $28A9; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[7,66,97,115,116,105,97,110]},{"a":10409,"l":"WORD_NEVERENDING","c":"Prose dictionary record: length $0B, then 'Neverending' in ASCII, ending at $28B4. The next record begins at $28B5; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[11,78,101,118,101,114,101,110]},{"a":10417,"t":"byte","b":[100,105,110,103]},{"a":10421,"l":"WORD_YOU","c":"Prose dictionary record: length $03, then 'you' in ASCII, ending at $28B8. The next record begins at $28B9; TOKEN_POINTERS_TABLE indexes these packed, case-sensitive records.","t":"byte","b":[3,121,111,117]},{"a":10425,"l":"VISIBLE_OBJECT_RECORDS_PTR","c":"Pointer to the six runtime RoomGraphicRecord overlays at VISIBLE_OBJECT_RECORDS.","t":"word","b":[67,41],"d":[10563],"x":[1399]},{"a":10426,"t":"note","l":"a_28BA","c":"High byte $29 of VISIBLE_OBJECT_RECORDS_PTR, the little-endian pointer at $28B9 which holds $2943. Low byte and pointer purpose are described at $28B9.","note":"inside the item at $28B9","x":[1404]},{"a":10427,"l":"DISK_LOAD_ADDR","c":"Start address of the serialized game-state block, read by the KERNAL LOAD and SAVE code (DISK_LOAD_GAME $046E, DISK_SAVE_GAME $0497), which nothing calls: the SAVE and LOAD actions return at once.","t":"word","b":[191,40],"d":[10431],"x":[1134,1175]},{"a":10428,"t":"note","l":"a_28BC","c":"High byte $28 of DISK_LOAD_ADDR, the little-endian pointer at $28BB which holds $28BF. Low byte and pointer purpose are described at $28BB.","note":"inside the item at $28BB","x":[1137,1180]},{"a":10429,"l":"DISK_SAVE_END_ADDR","c":"Exclusive end address of the serialized game-state block, read only by DISK_SAVE_GAME ($04A6) for KERNAL SAVE; nothing calls that routine.","t":"word","b":[103,41],"d":[10599],"x":[1190]},{"a":10430,"t":"note","l":"a_28BE","c":"High byte $29 of DISK_SAVE_END_ADDR, the little-endian pointer at $28BD which holds $2967. Low byte and pointer purpose are described at $28BD.","note":"inside the item at $28BD","x":[1193]},{"a":10431,"l":"OBJECT_LOCATIONS","c":"Per-object location/state array. Room ids place an object in that room; $FC means carried; $FD means absent or disabled.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[3746,3784,3883,4115,4243,4534,4550,4618,4632,5415,5632]},{"a":10439,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":10447,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":10455,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":10463,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":10471,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":10479,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":10487,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":10495,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":10503,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":10511,"l":"OBJ_FLAGS","c":"Thirty-two mutable boolean/object flags used by action and condition bytecodes.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[4027,4037,4091,4224,4564,4576,5428,5440]},{"a":10519,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":10527,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":10535,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":10543,"l":"OBJ_COUNTERS","c":"Sixteen mutable counters used by action and condition bytecodes.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[3874,3989,3997,4004,4012,4017,4458,4464,4588,4606]},{"a":10551,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":10559,"l":"CURRENT_ROOM","c":"Current global room id. Direction tables compare and replace this value; room text and scripts index from it.","t":"byte","b":[0],"x":[1057,1065,3699,3714,3728,3743,3781,3867,4235,4246,4257,4522,4537,5282,5407]},{"a":10560,"l":"CURRENT_PART_NO","c":"Zero-based game-part number.","t":"byte","b":[0],"x":[1045,1048,1089,1113,1151,1156,2911,5274,5402,5449]},{"a":10561,"l":"UNUSED_SAVE_STATE_2941","c":"Reserved byte in the serialized game-state block. INIT_GAME_STATE explicitly clears it, but no decoded instruction reads it or writes a nonzero value. It separates CURRENT_PART_NO from CURRENT_ROOM_GRAPHIC_ID.","t":"byte","b":[0],"x":[5376]},{"a":10562,"l":"CURRENT_ROOM_GRAPHIC_ID","c":"ROOM_GRAPHIC_TABLE record id for the currently displayed room illustration.","t":"byte","b":[0],"x":[1441,4264,4269,4404,5379]},{"a":10563,"l":"VISIBLE_OBJECT_RECORDS","c":"Six six-byte records for the icons drawn over the backdrop at the right of the picture band: records 0-4 for the objects carried and record 5 for the companion. Each record is row, column, source address (low, high), height and width, in character cells, the layout of the picture records at $0BF9; a source high byte of 0 marks an unused record. TAKE puts the icon of the object taken into the first unused one of records 0-4 ($0F3A) and DROP clears the record that holds the dropped object's icon ($0EDA); RENDER_ROOM_GRAPHICS ($0570) draws every record in use. The records end the block DISK_SAVE_GAME would write ($28BF-$2966), though nothing calls it. Record 0: row 5, column 21 of the picture band, 4 by 4 cells.","t":"byte","b":[5,21,0],"x":[3804,3812,3832,3836,3900,3920,3926]},{"a":10566,"l":"OBJECT_RECORD_0_SOURCE_HI","c":"Record 0's source high byte, then its height and width. INIT_GAME_STATE clears the high byte ($1506), so a new game starts with the record unused.","t":"byte","b":[0,4,4],"x":[5382]},{"a":10569,"l":"OBJECT_RECORD_1","c":"Record 1: row 5, column 35 of the picture band, 4 by 4 cells.","t":"byte","b":[5,35,0]},{"a":10572,"l":"OBJECT_RECORD_1_SOURCE_HI","c":"Record 1's source high byte, then its height and width. INIT_GAME_STATE clears the high byte ($1509), so a new game starts with the record unused.","t":"byte","b":[0,4,4],"x":[5385]},{"a":10575,"l":"OBJECT_RECORD_2","c":"Record 2: row 0, column 21 of the picture band, 4 by 4 cells.","t":"byte","b":[0,21,0]},{"a":10578,"l":"OBJECT_RECORD_2_SOURCE_HI","c":"Record 2's source high byte, then its height and width. INIT_GAME_STATE clears the high byte ($150C), so a new game starts with the record unused.","t":"byte","b":[0,4,4],"x":[5388]},{"a":10581,"l":"OBJECT_RECORD_3","c":"Record 3: row 0, column 35 of the picture band, 4 by 4 cells.","t":"byte","b":[0,35,0]},{"a":10584,"l":"OBJECT_RECORD_3_SOURCE_HI","c":"Record 3's source high byte, then its height and width. INIT_GAME_STATE clears the high byte ($150F), so a new game starts with the record unused.","t":"byte","b":[0,4,4],"x":[5391]},{"a":10587,"l":"OBJECT_RECORD_4","c":"Record 4: row 0, column 28 of the picture band, 4 by 4 cells.","t":"byte","b":[0,28,0]},{"a":10590,"l":"OBJECT_RECORD_4_SOURCE_HI","c":"Record 4's source high byte, then its height and width. INIT_GAME_STATE clears the high byte ($1512), so a new game starts with the record unused.","t":"byte","b":[0,4,4],"x":[5394]},{"a":10593,"l":"COMPANION_RECORD","c":"Record 5, the companion's: row 5, column 28 of the picture band, 4 by 4 cells, in the middle of the lower row. Only the scripts' icon action (SCRIPT_SET_OBJECT_GRAPHIC $113D) fills it, with Artax's or Falkor's icon; that action and INIT_GAME_STATE ($1515) clear it; TAKE and DROP look at records 0-4 only.","t":"byte","b":[5,28]},{"a":10595,"l":"COMPANION_SOURCE_PTR","c":"Record 5's source address, low byte: SCRIPT_SET_OBJECT_GRAPHIC writes the icon's address here ($1156) or clears it ($1146).","t":"byte","b":[0],"x":[4422,4438]},{"a":10596,"l":"COMPANION_SOURCE_HI","c":"Record 5's source high byte ($115B; cleared at $1149, and by INIT_GAME_STATE at $1515), then its height and width.","t":"byte","b":[0,4,4],"x":[4425,4443,5397]},{"a":10599,"l":"SAVE_BLOCK_END","c":"Single pad byte at the exclusive end of the serialized save block.\nDISK_SAVE_END_ADDR ($28BD) holds $2967 and DISK_LOAD_ADDR ($28BB) holds $28BF, so KERNAL SAVE\n($FFD8, called at $04AC in DISK_SAVE_GAME, which nothing calls, with the start address in the zero-page pair $FE/$FF and the end\naddress in X/Y) would write $28BF-$2966 inclusive - ending exactly on the last byte of\nVISIBLE_OBJECT_RECORDS[5]. Not bytecode; PART_1_START_SCRIPT begins at the next byte.","t":"byte","b":[0]},{"a":10600,"l":"PART_1_START_SCRIPT","c":"Part 1's start script, run by SETUP_CURRENT_ROOM through PART_INIT_SCRIPT_POINTERS: 08 1B prints event $1B, Cairon telling the peoples of Fantasia they need a hero; 10 04 shows picture 4, the gathering at the Ivory Tower; 1A prints \"Paused - hit space to continue!\" and waits for Space; FF ends it.","t":"byte","b":[8,27,16,4,26]},{"a":10605,"l":"PART_1_START_SCRIPT_END","c":"The $FF that ends part 1's start script.","t":"byte","b":[255]},{"a":10606,"l":"PART_2_START_SCRIPT","c":"Part 2's start script: event 0 with picture 22 (Falkor in flight), event 1 with picture 23 (Spook City from the air), event 2 with picture 24 (Atreyu falling), each followed by 1A, which prints \"Paused - hit space to continue!\" and waits for Space; FF ends it. The events and pictures are part 2's, in memory once it has loaded.","t":"byte","b":[8,0,16,22,26,8,1,16]},{"a":10614,"t":"byte","b":[23,26,8,2,16,24,26,255]},{"a":10622,"l":"PART_3_START_SCRIPT","c":"Part 3's start script: event 0, the debris of Fantasia around the Ivory Tower, with picture 37 (asteroids drifting in space), then 1A, which prints \"Paused - hit space to continue!\" and waits for Space, and FF.","t":"byte","b":[8,0,16,37,26,255]},{"a":10628,"l":"ACTION_SCRIPT_TABLE_PTR","c":"Pointer to ACTION_SCRIPT_POINTERS.","t":"word","b":[134,41],"d":[10630],"x":[5221]},{"a":10629,"t":"note","l":"a_2985","c":"High byte $29 of ACTION_SCRIPT_TABLE_PTR, the little-endian pointer at $2984 which holds $2986. Low byte and pointer purpose are described at $2984.","note":"inside the item at $2984","x":[5228]},{"a":10630,"l":"ACTION_SCRIPT_POINTERS","c":"Seventy action-bytecode pointers indexed by VERB_RULE_TABLE pair position.\n$29A0: Action-script pointer selected by VERB_RULE_GET_ARTAX (pair index 13); points to ACTION_SCRIPT_GET_ARTAX at $2B55.\n$29A2: Action-script pointer selected by VERB_RULE_GET_FALKOR (pair index 14); points to ACTION_SCRIPT_GET_FALKOR at $2B6C.","t":"byte","b":[19,42,19,42,38,42,19,42]},{"a":10638,"t":"byte","b":[81,42,19,42,113,42,19,42]},{"a":10646,"t":"byte","b":[158,42,200,42,19,43,131,46]},{"a":10654,"t":"byte","b":[64,43]},{"a":10656,"l":"ACTION_SCRIPT_GET_ARTAX_PTR","c":"Action-script pointer for verb/noun rule pair 13 (GET ARTAX), little-endian $2B55. The following words continue ACTION_SCRIPT_POINTERS at $2986, indexed by matching rule pair; GET FALKOR is the next pointer, $2B6C.","t":"byte","b":[85,43]},{"a":10658,"l":"ACTION_SCRIPT_GET_FALKOR_PTR","c":"Action-script pointer 14, little-endian $2B6C, selected by the corresponding verb/noun rule pair. Following words continue the 70-entry table beginning at $2986.","t":"byte","b":[108,43,214,44,134,45,175,46]},{"a":10666,"t":"byte","b":[31,43,33,43,184,43,156,43]},{"a":10674,"t":"byte","b":[169,43,7,45,33,43,33,43]},{"a":10682,"t":"byte","b":[215,46,35,43,37,43,41,43]},{"a":10690,"t":"byte","b":[45,43]},{"a":10692,"l":"ACTION_SCRIPT_SAVE_PTR","c":"Action-script pointer 31, little-endian $2B51, selected by the corresponding verb/noun rule pair. Following words continue the 70-entry table beginning at $2986.","t":"byte","b":[81,43]},{"a":10694,"l":"ACTION_SCRIPT_LOAD_PTR","c":"Action-script pointer 32, little-endian $2B53, selected by the corresponding verb/noun rule pair. Following words continue the 70-entry table beginning at $2986.","t":"byte","b":[83,43,93,45,201,43,128,45]},{"a":10702,"t":"byte","b":[221,43,5,44,39,44,21,45]},{"a":10710,"t":"byte","b":[43,45,86,44,100,44,146,44]},{"a":10718,"t":"byte","b":[131,45,134,45,198,44,201,44]},{"a":10726,"t":"byte","b":[235,44,70,45,65,45,68,45]},{"a":10734,"t":"byte","b":[82,45,73,45,84,45,147,45]},{"a":10742,"t":"byte","b":[177,45,194,45,203,45,212,45]},{"a":10750,"t":"byte","b":[215,45,235,45,0,46,21,46]},{"a":10758,"t":"byte","b":[76,46,145,46,184,46,189,46]},{"a":10766,"t":"byte","b":[210,46,218,46]},{"a":10770,"l":"ACTION_SCRIPT_COUNT","c":"Number of valid action-script entries: 70 ($46).","t":"byte","b":[70],"x":[5181]},{"a":10771,"l":"ACTION_SCRIPT_00","c":"The action for NORTH (rule 0), NE (rule 1), SE (rule 3), SW (rule 5) and NW (rule 7): move the player in the direction named; if Gmork is not gone: add 1 to counter 3; if flag 0 is set: move Artax to the current room; if flag 1 is set: move Falkor to the current room.","t":"byte","b":[0,254,134,1,13,3,254,130]},{"a":10779,"t":"byte","b":[0,1,37,250,254,130,1,1]},{"a":10787,"t":"byte","b":[5,250,255]},{"a":10790,"l":"ACTION_SCRIPT_02","c":"The action for EAST (rule 2): if the player is in room $4A and flag 11 is clear: print event 19 (\"The cell is locked!\"), stop; if the player is in room $7A and flag 19 is clear: print event 7 (\"The door will only open for people it likes. Peo...\"), stop; if the player is in room $51 and flag 20 is clear: print sentence 2 (\"You can't go in that direction.\"), stop; move the player in the direction named; if Gmork is not gone: add 1 to counter 3; if flag 0 is set: move Artax to the current room; if flag 1 is set: move Falkor to the current room.","t":"byte","b":[137,74,131,11,8,19,7,254]},{"a":10798,"t":"byte","b":[137,122,131,19,8,7,7,254]},{"a":10806,"t":"byte","b":[137,81,131,20,17,2,7,254]},{"a":10814,"t":"byte","b":[0,254,134,1,13,3,254,130]},{"a":10822,"t":"byte","b":[0,1,37,250,254,130,1,1]},{"a":10830,"t":"byte","b":[5,250,255]},{"a":10833,"l":"ACTION_SCRIPT_04","c":"The action for SOUTH (rule 4): if the player is in room $27 and flag 5 is clear and the raster line's low byte is 200 or less (257 of the 312 lines in a frame): print event 19 (\"Firey bolts burst forth from the sphinxes eyes a...\"), print \"Paused - hit space to continue!\" and wait for Space, restart the game; if the player is in room $27 and Auryn is carried: print event 20 (\"You just made it !\"), show picture 12 (Atreyu leaping through the sphinxes' fire), print \"Paused - hit space to continue!\" and wait for Space, move the player in the direction named, stop; if the player is in room $27: print event 19 (\"Firey bolts burst forth from the sphinxes eyes a...\"), print \"Paused - hit space to continue!\" and wait for Space, restart the game; move the player in the direction named.","t":"byte","b":[137,39,131,5,136,200,8,19]},{"a":10841,"t":"byte","b":[26,20,254,137,39,129,0,8]},{"a":10849,"t":"byte","b":[20,16,12,26,0,7,254,137]},{"a":10857,"t":"byte","b":[39,8,19,26,20,254,0,255]},{"a":10865,"l":"ACTION_SCRIPT_06","c":"The action for WEST (rule 6): if the player is in room $46 and spider's web is not gone and flag 12 is set: print sentence 2 (\"You can't go in that direction.\"), stop; if the player is in room $49 and flag 16 is clear: print sentence 2 (\"You can't go in that direction.\"), stop; if the player is in room $4B and flag 11 is clear: print event 19 (\"The cell is locked!\"), stop; move the player in the direction named; if Gmork is not gone: add 1 to counter 3; if flag 0 is set: move Artax to the current room; if flag 1 is set: move Falkor to the current room.","t":"byte","b":[137,70,134,20,130,12,17,2]},{"a":10873,"t":"byte","b":[7,254,137,73,131,16,17,2]},{"a":10881,"t":"byte","b":[7,254,137,75,131,11,8,19]},{"a":10889,"t":"byte","b":[7,254,0,254,134,1,13,3]},{"a":10897,"t":"byte","b":[254,130,0,1,37,250,254,130]},{"a":10905,"t":"byte","b":[1,1,5,250,255]},{"a":10910,"l":"ACTION_SCRIPT_08","c":"The action for UP (rule 8): if the player is in room $46 and spider's web is not gone and flag 13 is set: print sentence 2 (\"You can't go in that direction.\"), stop; if the player is in room $3A and flag 14 is clear: print sentence 2 (\"You can't go in that direction.\"), stop; if the player is in room $37: set flag 7; move the player in the direction named; if Gmork is not gone: add 1 to counter 3; if flag 0 is set: move Artax to the current room; if flag 1 is set: move Falkor to the current room.","t":"byte","b":[137,70,134,20,130,13,17,2]},{"a":10918,"t":"byte","b":[7,254,137,58,131,14,17,2]},{"a":10926,"t":"byte","b":[7,254,137,55,5,7,254,0]},{"a":10934,"t":"byte","b":[254,134,1,13,3,254,130,0]},{"a":10942,"t":"byte","b":[1,37,250,254,130,1,1,5]},{"a":10950,"t":"byte","b":[250,255]},{"a":10952,"l":"ACTION_SCRIPT_09","c":"The action for DOWN (rule 9): if the player is in room $08 and thorn bushes is not gone: print event 13 (\"The entrance to the tunnel is blocked by sharp t...\"), stop; if the player is in room $08 and thorn bushes is gone and flag 0 is set: print sentence 26 (\"You'll have to go alone!\"), stop; if the player is in room $08 and thorn bushes is gone and flag 1 is set: print sentence 26 (\"You'll have to go alone!\"), stop; if the player is in room $2E and planks is not gone: print sentence 55 (\"Huh!!\"), stop; if the player is in room $2E: clear flag 7; if the player is in room $2E and glowglobe is carried: set flag 7; if the player is in room $3B and flag 14 is clear: print sentence 2 (\"You can't go in that direction.\"), stop; move the player in the direction named; if Gmork is not gone: add 1 to counter 3; if flag 1 is set: move Falkor to the current room; if flag 0 is set: move Artax to the current room.","t":"byte","b":[137,8,134,4,8,13,7,254]},{"a":10960,"t":"byte","b":[137,8,135,4,130,0,17,26]},{"a":10968,"t":"byte","b":[7,254,137,8,135,4,130,1]},{"a":10976,"t":"byte","b":[17,26,7,254,137,46,134,52]},{"a":10984,"t":"byte","b":[17,55,7,254,137,46,6,7]},{"a":10992,"t":"byte","b":[254,137,46,129,19,5,7,254]},{"a":11000,"t":"byte","b":[137,59,131,14,17,2,7,254]},{"a":11008,"t":"byte","b":[0,254,134,1,13,3,254,130]},{"a":11016,"t":"byte","b":[1,1,5,250,254,130,0,1]},{"a":11024,"t":"byte","b":[37,250,255]},{"a":11027,"l":"ACTION_SCRIPT_0A","c":"The action for INVENTORY (rule 10): list what is carried; if flag 0 is set: print sentence 20 (\"Artax is with you.\"); if flag 1 is set: print sentence 21 (\"Falkor is with you.\").","t":"byte","b":[9,254,130,0,17,20,254,130]},{"a":11035,"t":"byte","b":[1,17,21,255]},{"a":11039,"l":"ACTION_SCRIPT_12","c":"The action for GET anything (rule 18): take the object named.","t":"byte","b":[3,255]},{"a":11041,"l":"ACTION_SCRIPT_13","c":"The action for DROP with noun $FF (rule 19), DROP with noun $FF (rule 24) and DROP anything (rule 25): drop the object named. Rule 19 and rule 24 never match: $FF is the id of \"and\", which the parser takes as the start of a new command ($13DC), and no script sets the noun to it.","t":"byte","b":[2,255]},{"a":11043,"l":"ACTION_SCRIPT_1B","c":"The action for LOOK (rule 27): describe the room again.","t":"byte","b":[10,255]},{"a":11045,"l":"ACTION_SCRIPT_1C","c":"The action for MUS... (rule 28): nothing, print sentence 31 (\"Ok!\").","t":"byte","b":[11,17,31,255]},{"a":11049,"l":"ACTION_SCRIPT_1D","c":"The action for NOM... (rule 29): nothing, print sentence 31 (\"Ok!\").","t":"byte","b":[12,17,31,255]},{"a":11053,"l":"ACTION_SCRIPT_1E","c":"The action for T (rule 30): nothing.","t":"byte","b":[15,255,128,16,25,66,3,7]},{"a":11061,"t":"byte","b":[254,128,35,25,85,3,7,254]},{"a":11069,"t":"byte","b":[17,8,255]},{"a":11072,"l":"ACTION_SCRIPT_0C","c":"The action for GET KEY (rule 12): if golden key is in the room: make the noun golden key, take the object named, stop; if iron key is in the room: make the noun iron key, take the object named, stop; print sentence 8 (\"I don't see it here!\").","t":"byte","b":[128,17,25,67,3,7,254,128]},{"a":11080,"t":"byte","b":[21,25,71,3,7,254,17,8]},{"a":11088,"t":"byte","b":[255]},{"a":11089,"l":"ACTION_SCRIPT_SAVE_DISABLED","c":"The action for SAVE (rule 31): SAVE (disabled).","t":"byte","b":[18,255]},{"a":11091,"l":"ACTION_SCRIPT_LOAD_DISABLED","c":"The action for LOAD (rule 32): LOAD (disabled).","t":"byte","b":[19,255]},{"a":11093,"l":"ACTION_SCRIPT_GET_ARTAX","c":"The action for GET ARTAX (rule 13): if Artax is in the room and flag 0 is clear: set flag 0, clear flag 1, print sentence 20 (\"Artax is with you.\"), show icon 24, stop; if Artax is in the room: print sentence 3 (\"You can't do that.\"), stop; print sentence 22 (\"He's not here !\").","t":"byte","b":[128,37,131,0,5,0,6,1]},{"a":11101,"t":"byte","b":[17,20,23,24,7,254,128,37]},{"a":11109,"t":"byte","b":[17,3,7,254,17,22,255]},{"a":11116,"l":"ACTION_SCRIPT_GET_FALKOR","c":"The action for GET FALKOR (rule 14): if Auryn is carried and Falkor is in the room and flag 1 is clear and flag 0 is set: set flag 1, clear flag 0, move Artax to the current room, print sentence 21 (\"Falkor is with you.\"), show icon 23, stop; if Auryn is carried and Falkor is in the room and flag 1 is clear and flag 0 is clear: set flag 1, clear flag 0, print sentence 21 (\"Falkor is with you.\"), show icon 23, stop; if Falkor is in the room: print sentence 66 (\"Falkor will only help the bearer of Auryn !\"), stop; print sentence 22 (\"He's not here !\").","t":"byte","b":[129,0,128,5,131,1,130,0]},{"a":11124,"t":"byte","b":[5,1,6,0,1,37,250,17]},{"a":11132,"t":"byte","b":[21,23,23,7,254,129,0,128]},{"a":11140,"t":"byte","b":[5,131,1,131,0,5,1,6]},{"a":11148,"t":"byte","b":[0,17,21,23,23,7,254,128]},{"a":11156,"t":"byte","b":[5,17,66,7,254,17,22,255]},{"a":11164,"l":"ACTION_SCRIPT_15","c":"The action for DROP ARTAX (rule 21): if flag 0 is set: clear flag 0, clear the sixth icon, print sentence 31 (\"Ok!\"), stop; print sentence 23 (\"He's not with you !\").","t":"byte","b":[130,0,6,0,23,250,17,31]},{"a":11172,"t":"byte","b":[7,254,17,23,255]},{"a":11177,"l":"ACTION_SCRIPT_16","c":"The action for DROP FALKOR (rule 22): if flag 1 is set: clear flag 1, clear the sixth icon, show the room's own picture, print sentence 31 (\"Ok!\"), stop; print sentence 23 (\"He's not with you !\").","t":"byte","b":[130,1,6,1,23,250,16,250]},{"a":11185,"t":"byte","b":[17,31,7,254,17,23,255]},{"a":11192,"l":"ACTION_SCRIPT_14","c":"The action for DROP KEY (rule 20): if golden key is carried: make the noun golden key, drop the object named, stop; if iron key is carried: make the noun iron key, drop the object named, stop; print sentence 10 (\"You're not carrying it !\").","t":"byte","b":[129,17,25,67,2,7,254,129]},{"a":11200,"t":"byte","b":[21,25,71,2,7,254,17,10]},{"a":11208,"t":"byte","b":[255]},{"a":11209,"l":"ACTION_SCRIPT_22","c":"The action for EAT FOOD (rule 34): if food is carried: set counter 1 to 50, stop confirming takes and drops, make the noun food, drop the object named, confirm takes and drops again, move food to gone, print sentence 24 (\"The food restores Atreyu to full strength!\"), stop; print sentence 10 (\"You're not carrying it !\").","t":"byte","b":[129,15,4,1,50,27,25,65]},{"a":11217,"t":"byte","b":[2,28,1,15,253,17,24,7]},{"a":11225,"t":"byte","b":[254,17,10,255]},{"a":11229,"l":"ACTION_SCRIPT_24","c":"The action for LIGHT THORN BUSHES (rule 36): if the player is in room $08 and burning branch is carried and thorn bushes is not gone: print event 21 (\"The bushes blaze briefly and are gone!\"), print event 22 (\"The branch has burnt completely away.\"), stop confirming takes and drops, make the noun burning branch, drop the object named, confirm takes and drops again, move burning branch to gone, move thorn bushes to gone, stop; if the player is in room $08 and thorn bushes is gone: print sentence 30 (\"They're not here !\"), stop; if the player is in room $08: print event 23 (\"You haven't got anything to light them with!\"), stop; print sentence 30 (\"They're not here !\").","t":"byte","b":[137,8,129,30,134,4,8,21]},{"a":11237,"t":"byte","b":[8,22,27,25,80,2,28,1]},{"a":11245,"t":"byte","b":[30,253,1,4,253,7,254,137]},{"a":11253,"t":"byte","b":[8,135,4,17,30,7,254,137]},{"a":11261,"t":"byte","b":[8,8,23,7,254,17,30,255]},{"a":11269,"l":"ACTION_SCRIPT_25","c":"The action for LIGHT BRANCH (rule 37): if the player is in room $01 and branch is carried: print sentence 31 (\"Ok!\"), stop confirming takes and drops, make the noun branch, drop the object named, move branch to gone, move burning branch to the current room, make the noun burning branch, take the object named, confirm takes and drops again, set counter 4 to 15, stop; if the player is in room $01: print sentence 10 (\"You're not carrying it !\"), stop; print sentence 32 (\"How?\").","t":"byte","b":[137,1,129,29,17,31,27,25]},{"a":11277,"t":"byte","b":[79,2,1,29,253,1,30,250]},{"a":11285,"t":"byte","b":[25,80,3,28,4,4,15,7]},{"a":11293,"t":"byte","b":[254,137,1,17,10,7,254,17]},{"a":11301,"t":"byte","b":[32,255]},{"a":11303,"l":"ACTION_SCRIPT_26","c":"The action for ENTER anything (rule 38): if the player is in room $17: move as if direction 1 had been typed; if the player is in room $06 and flag 1 is clear and flag 0 is clear: move as if direction 6 had been typed; if the player is in room $06: print sentence 26 (\"You'll have to go alone!\"), stop; if the player is in room $23 and flag 1 is clear: move as if direction 5 had been typed; if the player is in room $03: print sentence 2 (\"You can't go in that direction.\"), stop; if the player is in room $08 and thorn bushes is gone and flag 1 is clear and flag 0 is clear: move as if direction 10 had been typed; print sentence 2 (\"You can't go in that direction.\").","t":"byte","b":[137,23,29,1,254,137,6,131]},{"a":11311,"t":"byte","b":[1,131,0,29,6,254,137,6]},{"a":11319,"t":"byte","b":[17,26,7,254,137,35,131,1]},{"a":11327,"t":"byte","b":[29,5,254,137,3,17,2,7]},{"a":11335,"t":"byte","b":[254,137,8,135,4,131,1,131]},{"a":11343,"t":"byte","b":[0,29,10,254,17,2,255]},{"a":11350,"l":"ACTION_SCRIPT_29","c":"The action for FLY anything (rule 41): if flag 1 is set: move in the direction given as the noun, stop; if flag 0 is set: print sentence 38 (\"You can't fly on Artax !\"), stop; print sentence 23 (\"He's not with you !\"). A noun that is not a direction, or none, makes the move print sentence 37 (\"I don't understand that !\") instead.","t":"byte","b":[130,1,30,7,254,130,0,17]},{"a":11358,"t":"byte","b":[38,7,254,17,23,255]},{"a":11364,"l":"ACTION_SCRIPT_2A","c":"The action for CLIMB anything (rule 42): if the player is in room $14: clear flag 0, print sentence 31 (\"Ok!\"), move as if direction 3 had been typed; if the player is in room $16: clear flag 0, print sentence 31 (\"Ok!\"), move as if direction 7 had been typed; if the player is in room $23: clear flag 0, print sentence 31 (\"Ok!\"), move as if direction 9 had been typed; if the player is in room $11: print event 24 (\"The tree is not strong enough to climb!\"), stop; if the player is in room $3A: move as if direction 9 had been typed; if the player is in room $3B: move as if direction 10 had been typed; print sentence 36 (\"There is nothing here to climb!\").","t":"byte","b":[137,20,6,0,17,31,29,3]},{"a":11372,"t":"byte","b":[254,137,22,6,0,17,31,29]},{"a":11380,"t":"byte","b":[7,254,137,35,6,0,17,31]},{"a":11388,"t":"byte","b":[29,9,254,137,17,8,24,7]},{"a":11396,"t":"byte","b":[254,137,58,29,9,254,137,59]},{"a":11404,"t":"byte","b":[29,10,254,17,36,255]},{"a":11410,"l":"ACTION_SCRIPT_2B","c":"The action for BLOW HORN (rule 43): if the player is in room $00: print sentence 34 (\"Nothing happens!\"), stop; if the player is in room $17: print sentence 34 (\"Nothing happens!\"), stop; if the player is in room $24: print sentence 34 (\"Nothing happens!\"), stop; if the player is in room $3A: print sentence 34 (\"Nothing happens!\"), stop; if horn is carried and Falkor is in the room: print sentence 34 (\"Nothing happens!\"), stop; if horn is carried and Falkor is not gone: print sentence 35 (\"Falkor appears!\"), move Falkor to the current room, stop; if horn is carried: print sentence 34 (\"Nothing happens!\"), stop; print sentence 10 (\"You're not carrying it !\").","t":"byte","b":[137,0,17,34,7,254,137,23]},{"a":11418,"t":"byte","b":[17,34,7,254,137,36,17,34]},{"a":11426,"t":"byte","b":[7,254,137,58,17,34,7,254]},{"a":11434,"t":"byte","b":[129,46,128,5,17,34,7,254]},{"a":11442,"t":"byte","b":[129,46,134,5,17,35,1,5]},{"a":11450,"t":"byte","b":[250,7,254,129,46,17,34,7]},{"a":11458,"t":"byte","b":[254,17,10,255]},{"a":11462,"l":"ACTION_SCRIPT_2E","c":"The action for ATTACK anything (rule 46): print sentence 33 (\"Not very effective!\").","t":"byte","b":[17,33,255]},{"a":11465,"l":"ACTION_SCRIPT_2F","c":"The action for RIDE anything (rule 47): if flag 0 is set: move in the direction given as the noun, stop; if flag 1 is set: move in the direction given as the noun, stop; print sentence 39 (\"You've got nothing to ride on !\"). A noun that is not a direction, or none, makes either move print sentence 37 (\"I don't understand that !\") instead.","t":"byte","b":[130,0,30,7,254,130,1,30]},{"a":11473,"t":"byte","b":[7,254,17,39,255]},{"a":11478,"l":"ACTION_SCRIPT_0F","c":"The action for GET GLASS FRAGMENT (rule 15): if glass fragment is gone: print sentence 40 (\"You'll have to smash it first!\"), stop; if glass fragment is in the room and leather is carried: take the object named, stop; if glass fragment is in the room: print sentence 41 (\"The fragment is very sharp and it slips out of y...\"), stop; take the object named.","t":"byte","b":[135,31,17,40,7,254,128,31]},{"a":11486,"t":"byte","b":[129,34,3,7,254,128,31,17]},{"a":11494,"t":"byte","b":[41,7,254,3,255]},{"a":11499,"l":"ACTION_SCRIPT_30","c":"The action for HIT GLASS BOX (rule 48): if glass box is in the room and stone is carried: move glass box to gone, move glass fragment to the current room, move crystal to the current room, show the room's own picture, print sentence 42 (\"The box shatters into powdered glass apart from...\"), stop; if glass box is in the room: print sentence 43 (\"It's too tough!\"), stop; print sentence 8 (\"I don't see it here!\").","t":"byte","b":[128,36,129,38,1,36,253,1]},{"a":11507,"t":"byte","b":[31,250,1,9,250,16,250,17]},{"a":11515,"t":"byte","b":[42,7,254,128,36,17,43,7]},{"a":11523,"t":"byte","b":[254,17,8,255]},{"a":11527,"l":"ACTION_SCRIPT_17","c":"The action for DROP LEATHER (rule 23): if leather is carried and glass fragment is carried: drop the object named, print sentence 41 (\"The fragment is very sharp and it slips out of y...\"), make the noun glass fragment, drop the object named, stop; drop the object named.","t":"byte","b":[129,34,129,31,2,17,41,25]},{"a":11535,"t":"byte","b":[81,2,7,254,2,255]},{"a":11541,"l":"ACTION_SCRIPT_27","c":"The action for FLY SOU (rule 39): if the player is in room $21 and flag 1 is set: print sentence 44 (\"Falkor flies you safely across the desert!\"), put the player in room $22, move Falkor to the current room, describe the new room, $22, stop; if flag 1 is set: move in the direction given as the noun, stop; print sentence 23 (\"He's not with you !\").","t":"byte","b":[137,33,130,1,17,44,24,34]},{"a":11549,"t":"byte","b":[1,5,250,10,7,254,130,1]},{"a":11557,"t":"byte","b":[30,7,254,17,23,255]},{"a":11563,"l":"ACTION_SCRIPT_28","c":"The action for FLY NOR (rule 40): if the player is in room $22 and flag 1 is set: print sentence 44 (\"Falkor flies you safely across the desert!\"), put the player in room $21, move Falkor to the current room, describe the new room, $21, stop; if flag 1 is set: move in the direction given as the noun, stop; print sentence 23 (\"He's not with you !\").","t":"byte","b":[137,34,130,1,17,44,24,33]},{"a":11571,"t":"byte","b":[1,5,250,10,7,254,130,1]},{"a":11579,"t":"byte","b":[30,7,254,17,23,255]},{"a":11585,"l":"ACTION_SCRIPT_32","c":"The action for WAIT (rule 50): print sentence 19 (\"You wait!\").","t":"byte","b":[17,19,255]},{"a":11588,"l":"ACTION_SCRIPT_33","c":"The action for PAUSE (rule 51): print \"Paused - hit space to continue!\" and wait for Space.","t":"byte","b":[26,255]},{"a":11590,"l":"ACTION_SCRIPT_31","c":"The action for HIT anything (rule 49): print sentence 33 (\"Not very effective!\").","t":"byte","b":[17,33,255]},{"a":11593,"l":"ACTION_SCRIPT_35","c":"The action for PULL THORN BUSHES (rule 53): if thorn bushes is in the room: print sentence 45 (\"You just cut yourself!\"), stop; print sentence 3 (\"You can't do that.\").","t":"byte","b":[128,4,17,45,7,254,17,3]},{"a":11601,"t":"byte","b":[255]},{"a":11602,"l":"ACTION_SCRIPT_34","c":"The action for QUIT (rule 52): ask whether to quit.","t":"byte","b":[32,255]},{"a":11604,"l":"ACTION_SCRIPT_36","c":"The action for OUT anything (rule 54): if the player is in room $00: move as if direction 2 had been typed, stop; print sentence 3 (\"You can't do that.\").","t":"byte","b":[137,0,29,2,7,254,17,3]},{"a":11612,"t":"byte","b":[255]},{"a":11613,"l":"ACTION_SCRIPT_21","c":"The action for EAT APPLE (rule 33): if apple is carried and flag 8 is set: print sentence 54 (\"The apple destroys the poison!\"), clear flag 8, stop confirming takes and drops, make the noun apple, drop the object named, confirm takes and drops again, move apple to gone, stop; if apple is carried: print sentence 34 (\"Nothing happens!\"), stop confirming takes and drops, make the noun apple, drop the object named, confirm takes and drops again, move apple to gone, stop; print sentence 10 (\"You're not carrying it !\").","t":"byte","b":[129,39,130,8,17,54,6,8]},{"a":11621,"t":"byte","b":[27,25,89,2,28,1,39,253]},{"a":11629,"t":"byte","b":[7,254,129,39,17,34,27,25]},{"a":11637,"t":"byte","b":[89,2,28,1,39,253,7,254]},{"a":11645,"t":"byte","b":[17,10,255]},{"a":11648,"l":"ACTION_SCRIPT_23","c":"The action for EAT anything (rule 35): print sentence 55 (\"Huh!!\").","t":"byte","b":[17,55,255]},{"a":11651,"l":"ACTION_SCRIPT_2C","c":"The action for ATTACK GMORK (rule 44): print sentence 56 (\"Not a chance!\").","t":"byte","b":[17,56,255]},{"a":11654,"l":"ACTION_SCRIPT_10","c":"The action for GET SPIDER'S WEB (rule 16) and ATTACK SPIDER'S WEB (rule 45): if the player is in room $46 and spider's web is in the room: print event 5 (\"The spider bites you with its poisoned mandibles...\"), set flag 8, stop; print sentence 8 (\"I don't see it here!\").","t":"byte","b":[137,70,128,20,8,5,5,8]},{"a":11662,"t":"byte","b":[7,254,17,8,255]},{"a":11667,"l":"ACTION_SCRIPT_37","c":"The action for CUT SPIDER'S WEB (rule 55): if the player is in room $46 and spider's web is in the room and knife is carried: print event 6 (\"You cut one corner of the web and it collapses i...\"), move spider's web to gone, stop; if the player is in room $46 and knife is carried: print sentence 8 (\"I don't see it here!\"), stop; if the player is in room $46: print sentence 57 (\"You've nothing to cut it with!\"), stop; print sentence 8 (\"I don't see it here!\").","t":"byte","b":[137,70,128,20,129,18,8,6]},{"a":11675,"t":"byte","b":[1,20,253,7,254,137,70,129]},{"a":11683,"t":"byte","b":[18,17,8,7,254,137,70,17]},{"a":11691,"t":"byte","b":[57,7,254,17,8,255]},{"a":11697,"l":"ACTION_SCRIPT_38","c":"The action for CUT APPLE (rule 56): if apple is carried and knife is carried: print sentence 34 (\"Nothing happens!\"), stop; if apple is carried: print sentence 57 (\"You've nothing to cut it with!\"), stop; print sentence 10 (\"You're not carrying it !\").","t":"byte","b":[129,39,129,18,17,34,7,254]},{"a":11705,"t":"byte","b":[129,39,17,57,7,254,17,10]},{"a":11713,"t":"byte","b":[255]},{"a":11714,"l":"ACTION_SCRIPT_39","c":"The action for READ PAPER (rule 57): if paper is carried: print sentence 58 (\"The paper looks like a piece of an old advert. T...\"), stop; print sentence 10 (\"You're not carrying it !\").","t":"byte","b":[129,33,17,58,7,254,17,10]},{"a":11722,"t":"byte","b":[255]},{"a":11723,"l":"ACTION_SCRIPT_3A","c":"The action for READ BOOK (rule 58): if book is carried: print sentence 59 (\"The book is about the history of the Ivory Tower...\"), stop; print sentence 10 (\"You're not carrying it !\").","t":"byte","b":[129,41,17,59,7,254,17,10]},{"a":11731,"t":"byte","b":[255]},{"a":11732,"l":"ACTION_SCRIPT_3B","c":"The action for READ anything (rule 59): print sentence 55 (\"Huh!!\").","t":"byte","b":[17,55,255]},{"a":11735,"l":"ACTION_SCRIPT_3C","c":"The action for REMOVE PLANKS (rule 60): if the player is in room $2E and planks is not gone: print event 7 (\"Underneath the planks are some crumbling stone s...\"), move planks to gone, stop; if the player is in room $2E: print event 8 (\"You already have!\"), stop; print sentence 30 (\"They're not here !\").","t":"byte","b":[137,46,134,52,8,7,1,52]},{"a":11743,"t":"byte","b":[253,7,254,137,46,8,8,7]},{"a":11751,"t":"byte","b":[254,17,30,255]},{"a":11755,"l":"ACTION_SCRIPT_3D","c":"The action for OPEN TIN (rule 61): if tin is carried and flag 10 is clear: set flag 10, print sentence 62 (\"The tin contains a white powder.\"), stop; if tin is carried and flag 10 is set: print sentence 60 (\"It's already open!\"), stop; print sentence 10 (\"You're not carrying it !\").","t":"byte","b":[129,45,131,10,5,10,17,62]},{"a":11763,"t":"byte","b":[7,254,129,45,130,10,17,60]},{"a":11771,"t":"byte","b":[7,254,17,10,255]},{"a":11776,"l":"ACTION_SCRIPT_3E","c":"The action for CLOSE TIN (rule 62): if tin is carried and flag 10 is set: clear flag 10, print sentence 31 (\"Ok!\"), stop; if tin is carried and flag 10 is clear: print sentence 61 (\"It's already closed!\"), stop; print sentence 10 (\"You're not carrying it !\").","t":"byte","b":[129,45,130,10,6,10,17,31]},{"a":11784,"t":"byte","b":[7,254,129,45,131,10,17,61]},{"a":11792,"t":"byte","b":[7,254,17,10,255]},{"a":11797,"l":"ACTION_SCRIPT_3F","c":"The action for UNLOCK CELL (rule 63): if the player is in room $4A and flag 11 is clear and iron key is carried: set flag 11, print sentence 31 (\"Ok!\"), stop; if the player is in room $4A and flag 11 is set: print sentence 60 (\"It's already open!\"), stop; if the player is in room $4A: print sentence 32 (\"How?\"), stop; if the player is in room $4B and flag 11 is clear and iron key is carried: set flag 11, print sentence 31 (\"Ok!\"), stop; if the player is in room $4B and flag 11 is set: print sentence 60 (\"It's already open!\"), stop; if the player is in room $4B: print sentence 32 (\"How?\"), stop; print sentence 8 (\"I don't see it here!\").","t":"byte","b":[137,74,131,11,129,21,5,11]},{"a":11805,"t":"byte","b":[17,31,7,254,137,74,130,11]},{"a":11813,"t":"byte","b":[17,60,7,254,137,74,17,32]},{"a":11821,"t":"byte","b":[7,254,137,75,131,11,129,21]},{"a":11829,"t":"byte","b":[5,11,17,31,7,254,137,75]},{"a":11837,"t":"byte","b":[130,11,17,60,7,254,137,75]},{"a":11845,"t":"byte","b":[17,32,7,254,17,8,255]},{"a":11852,"l":"ACTION_SCRIPT_40","c":"The action for LOCK CELL (rule 64): if the player is in room $4A and flag 11 is set and iron key is carried: set flag 11, print sentence 31 (\"Ok!\"), stop; if the player is in room $4A and flag 11 is clear: print sentence 61 (\"It's already closed!\"), stop; if the player is in room $4A: print sentence 32 (\"How?\"), stop; if the player is in room $4B and flag 11 is set and iron key is carried: set flag 11, print sentence 31 (\"Ok!\"), stop; if the player is in room $4B and flag 11 is clear: print sentence 61 (\"It's already closed!\"), stop; if the player is in room $4B: print sentence 32 (\"How?\"), stop; print sentence 8 (\"I don't see it here!\").","t":"byte","b":[137,74,130,11,129,21,5,11]},{"a":11860,"t":"byte","b":[17,31,7,254,137,74,131,11]},{"a":11868,"t":"byte","b":[17,61,7,254,137,74,17,32]},{"a":11876,"t":"byte","b":[7,254,137,75,130,11,129,21]},{"a":11884,"t":"byte","b":[5,11,17,31,7,254,137,75]},{"a":11892,"t":"byte","b":[131,11,17,61,7,254,137,75]},{"a":11900,"t":"byte","b":[17,32,7,254,17,8,255]},{"a":11907,"l":"ACTION_SCRIPT_0B","c":"The action for GET POUCH (rule 11): if pouch is in the room and coin is gone: take the object named, print event 4 of the loaded part, move coin to the current room, stop; take the object named.","t":"byte","b":[128,47,135,48,3,8,4,1]},{"a":11915,"t":"byte","b":[48,250,7,254,3,255]},{"a":11921,"l":"ACTION_SCRIPT_41","c":"The action for TIE ROPE (rule 65): if the player is in room $3B and rope is carried: set flag 14, print event 12 (\"You tie the rope to the hook and it dangles down...\"), stop confirming takes and drops, make the noun rope, drop the object named, confirm takes and drops again, stop; if the player is in room $3B: print sentence 10 (\"You're not carrying it !\"), stop; if rope is carried: print sentence 55 (\"Huh!!\"), stop; print sentence 3 (\"You can't do that.\").","t":"byte","b":[137,59,129,27,5,14,8,12]},{"a":11929,"t":"byte","b":[27,25,77,2,28,7,254,137]},{"a":11937,"t":"byte","b":[59,17,10,7,254,129,27,17]},{"a":11945,"t":"byte","b":[55,7,254,17,3,255]},{"a":11951,"l":"ACTION_SCRIPT_11","c":"The action for GET ROPE (rule 17): if rope is in the room: take the object named, clear flag 14, stop; take the object named.","t":"byte","b":[128,27,3,6,14,7,254,3]},{"a":11959,"t":"byte","b":[255]},{"a":11960,"l":"ACTION_SCRIPT_42","c":"The action for OPEN DOOR (rule 66): if the player is in room $7A: print event 7 (\"The door will only open for people it likes. Peo...\").","t":"byte","b":[137,122,8,7,255]},{"a":11965,"l":"ACTION_SCRIPT_43","c":"The action for SAY PLEASE (rule 67): if the player is in room $7A and flag 19 is clear: set flag 19, print event 8 (\"The door opens for you !\"), stop; if the player is in room $7A: print sentence 60 (\"It's already open!\"), stop; print sentence 31 (\"Ok!\"), print sentence 34 (\"Nothing happens!\").","t":"byte","b":[137,122,131,19,5,19,8,8]},{"a":11973,"t":"byte","b":[7,254,137,122,17,60,7,254]},{"a":11981,"t":"byte","b":[17,31,17,34,255]},{"a":11986,"l":"ACTION_SCRIPT_44","c":"The action for SAY anything (rule 68): print sentence 31 (\"Ok!\"), print sentence 34 (\"Nothing happens!\").","t":"byte","b":[17,31,17,34,255]},{"a":11991,"l":"ACTION_SCRIPT_1A","c":"The action for LOOK GLASS FRAGMENT (rule 26): set flag 18.","t":"byte","b":[5,18,255]},{"a":11994,"l":"ACTION_SCRIPT_45","c":"The action for UNLOCK DOOR (rule 69): if the player is in room $51 and golden key is carried and flag 20 is clear: set flag 20, print sentence 31 (\"Ok!\"), stop; print sentence 3 (\"You can't do that.\").","t":"byte","b":[137,81,129,17,131,20,5,20]},{"a":12002,"t":"byte","b":[17,31,7,254,17,3,255,255]},{"a":12010,"t":"byte","b":[0,128,255,255,0,0,255,255]},{"a":12018,"t":"byte","b":[0,128,255,255,0,0,255,255]},{"a":12026,"t":"byte","b":[0,0,255,239,0,64]},{"a":12032,"t":"gap","n":26368,"x":[2943]},{"a":38400,"l":"LEFTOVER_9600","c":"Never read or written by the game, and the same in every copy compared. Runs of $FF and $00 with odd bits set, like a C64's RAM at power-on: inferred to be what that memory held on the machine that saved the game.","t":"byte","b":[223,1,223,0,223,0,223,0]},{"a":38408,"t":"byte","b":[255,0,255,0,188,0,255,83]},{"a":38416,"t":"byte","b":[255,19,95,0,255,0,255,0]},{"a":38424,"t":"byte","b":[255,83,251,0,255,0,253,34]},{"a":38432,"t":"byte","b":[255,0,255,0,223,66,223,0]},{"a":38440,"t":"byte","b":[255,3,255,137,255,0,253,32]},{"a":38448,"t":"byte","b":[255,64,91,0,255,0,223,8]},{"a":38456,"t":"byte","b":[255,0,219,123,25,0,91,44]},{"a":38464,"t":"byte","b":[255,1,255,0,223,0,223,0]},{"a":38472,"t":"byte","b":[255,0,223,0,188,8,255,91]},{"a":38480,"t":"byte","b":[255,19,63,67,255,0,255,67]},{"a":38488,"t":"byte","b":[255,91,223,4,219,8,255,0]},{"a":38496,"t":"byte","b":[255,0,255,0,223,0,223,0]},{"a":38504,"t":"byte","b":[251,3,255,0,255,0,223,0]},{"a":38512,"t":"byte","b":[251,64,255,0,119,0,255,8]},{"a":38520,"t":"byte","b":[223,0,87,83,10,0,72,0]},{"a":38528,"l":"MUSIC_FADE","c":"Volume fade, the first thing MUSIC_PLAY does each frame: add the fade speed $F084 to the accumulator $F083. With a positive speed, a carry turns the volume $F082 up one step ($96C7); with a negative speed, no carry turns it down one ($96BF); speed 0 leaves it. Speed $0A raises the volume a step every 25.6 frames, $FB lowers it a step every 51.2.","t":"code","b":[173,131,240],"m":"lda","o":"FADE_ACCUMULATOR","oa":61571,"x":[38549]},{"a":38531,"t":"code","b":[24],"m":"clc"},{"a":38532,"t":"code","b":[109,132,240],"m":"adc","o":"FADE_SPEED","oa":61572},{"a":38535,"t":"code","b":[141,131,240],"m":"sta","o":"FADE_ACCUMULATOR","oa":61571},{"a":38538,"t":"code","b":[44,132,240],"m":"bit","o":"FADE_SPEED","oa":61572},{"a":38541,"t":"code","b":[16,3],"m":"bpl","o":"b_9692","oa":38546},{"a":38543,"t":"code","b":[144,46],"m":"bcc","o":"MUSIC_VOLUME_DOWN","oa":38591},{"a":38545,"t":"code","b":[96],"m":"rts"},{"a":38546,"l":"b_9692","t":"code","b":[176,51],"m":"bcs","o":"MUSIC_VOLUME_UP","oa":38599,"x":[38541]},{"a":38548,"t":"code","b":[96],"m":"rts"},{"a":38549,"l":"MUSIC_PLAY","c":"The tune's once-a-frame entry, called from the opening's interrupt at $A884 with $01 = $05, which shows the RAM under the KERNAL where the tune's data lies: the fade, then voice 1 ($979D), voice 2 ($9A8C) and voice 3 ($9CF2), whose RTS returns to the interrupt.","t":"code","b":[32,128,150],"m":"jsr","o":"MUSIC_FADE","oa":38528,"x":[43140]},{"a":38552,"t":"code","b":[32,157,151],"m":"jsr","o":"V1_TICK","oa":38813},{"a":38555,"t":"code","b":[32,140,154],"m":"jsr","o":"V2_TICK","oa":39564},{"a":38558,"t":"code","b":[76,242,156],"m":"jmp","o":"V3_TICK","oa":40178},{"a":38561,"l":"MUSIC_STOP","c":"Stops the tune: $19 = $38 (no voice reads the tune, all marked cut), fade speed and accumulator 0, the three voices' release counters ($F01D, $F048, $F073) 0 so no effect runs, and 0 in SID registers $D400-$D417; the volume in $D418 stays. Called at $0703 before the tune starts and at $15CC when a key ends the opening. Every command a voice's handler table does not use points here, so such a command would stop the music.","t":"code","b":[169,56],"m":"lda","o":"#$38","x":[1795,5580]},{"a":38563,"t":"code","b":[133,25],"m":"sta","o":"VOICE_FLAGS","oa":25},{"a":38565,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":38567,"t":"code","b":[141,131,240],"m":"sta","o":"FADE_ACCUMULATOR","oa":61571},{"a":38570,"t":"code","b":[141,132,240],"m":"sta","o":"FADE_SPEED","oa":61572},{"a":38573,"t":"code","b":[141,29,240],"m":"sta","o":"V1_RELEASE_TICKS","oa":61469},{"a":38576,"t":"code","b":[141,72,240],"m":"sta","o":"V2_RELEASE_TICKS","oa":61512},{"a":38579,"t":"code","b":[141,115,240],"m":"sta","o":"V3_RELEASE_TICKS","oa":61555},{"a":38582,"t":"code","b":[162,23],"m":"ldx","o":"#$17"},{"a":38584,"l":"b_96B8","t":"code","b":[157,0,212],"m":"sta","o":"sid_v1_freq_lo,x","x":[38588]},{"a":38587,"t":"code","b":[202],"m":"dex"},{"a":38588,"t":"code","b":[16,250],"m":"bpl","o":"b_96B8","oa":38584},{"a":38590,"t":"code","b":[96],"m":"rts"},{"a":38591,"l":"MUSIC_VOLUME_DOWN","c":"The volume one step down, unless it is already 0.","t":"code","b":[174,130,240],"m":"ldx","o":"VOLUME","oa":61570,"x":[38543]},{"a":38594,"t":"code","b":[240,11],"m":"beq","o":"MUSIC_SET_VOLUME","oa":38607},{"a":38596,"t":"code","b":[202],"m":"dex"},{"a":38597,"t":"code","b":[16,8],"m":"bpl","o":"MUSIC_SET_VOLUME","oa":38607},{"a":38599,"l":"MUSIC_VOLUME_UP","c":"The volume one step up, unless it is already 15.","t":"code","b":[174,130,240],"m":"ldx","o":"VOLUME","oa":61570,"x":[38546]},{"a":38602,"t":"code","b":[224,15],"m":"cpx","o":"#$0F"},{"a":38604,"t":"code","b":[240,1],"m":"beq","o":"MUSIC_SET_VOLUME","oa":38607},{"a":38606,"t":"code","b":[232],"m":"inx"},{"a":38607,"l":"MUSIC_SET_VOLUME","c":"X, cut to four bits, becomes the volume $F082 and goes to $D418, which also clears the filter-mode bits.","t":"code","b":[138],"m":"txa","x":[38594,38597,38604]},{"a":38608,"t":"code","b":[41,15],"m":"and","o":"#$0F"},{"a":38610,"t":"code","b":[170],"m":"tax"},{"a":38611,"t":"code","b":[141,130,240],"m":"sta","o":"VOLUME","oa":61570},{"a":38614,"t":"code","b":[141,24,212],"m":"sta","o":"sid_filter_mode_volume"},{"a":38617,"t":"code","b":[96],"m":"rts"},{"a":38618,"l":"MUSIC_INIT","c":"Starts the tune from the top, called at $0706. For voices 3, 2 and 1 (X = 2, 1, 0): $19 = $3F, the voice's ticks ($1A,X) = 1 so it reads its first event next frame, its stack index ($1D,X) = $0F, and in its 84-byte block (offset $F08B,X from $9EF3) transpose 0, vibrato flags 0, pulse flags 0 and $0F in byte $22. The six bytes $F085-$F08A go to $10-$15: the voices start at $F250, $F5F3 and $F6BE. The volume is not set: voice 1's fifth command, after its lengths, envelope and two pokes, runs $F400 (the $9C at $F25C), which fades it in from whatever $F082 holds.","t":"code","b":[162,2],"m":"ldx","o":"#$02","x":[1798]},{"a":38620,"l":"b_96DC","t":"code","b":[169,63],"m":"lda","o":"#$3F","x":[38662]},{"a":38622,"t":"code","b":[133,25],"m":"sta","o":"VOICE_FLAGS","oa":25},{"a":38624,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":38626,"t":"code","b":[149,26],"m":"sta","o":"V1_TICKS,x","oa":26},{"a":38628,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":38630,"t":"code","b":[149,29],"m":"sta","o":"V1_STACK_INDEX,x","oa":29},{"a":38632,"t":"code","b":[188,139,240],"m":"ldy","o":"VOICE_BLOCK_OFFSETS,x","oa":61579},{"a":38635,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":38637,"t":"code","b":[153,70,159],"m":"sta","o":"V1_TRANSPOSE,y","oa":40774},{"a":38640,"t":"code","b":[153,1,159],"m":"sta","o":"V1_BLOCK_VIBRATO_FLAGS,y","oa":40705},{"a":38643,"t":"code","b":[153,10,159],"m":"sta","o":"V1_BLOCK_PULSE_FLAGS,y","oa":40714},{"a":38646,"t":"code","b":[169,15],"m":"lda","o":"#$0F"},{"a":38648,"t":"code","b":[153,21,159],"m":"sta","o":"V1_BLOCK_MODE,y","oa":40725},{"a":38651,"t":"code","b":[189,133,240],"m":"lda","o":"VOICE_STARTS,x","oa":61573},{"a":38654,"t":"code","b":[149,16],"m":"sta","o":"V1_STREAM,x","oa":16},{"a":38656,"l":"LOADER_ENTRY_9700","c":"From here to $98FF the disk loader takes the driver's place when the opening ends ($0730 copies it from $C000), and $0453 calls $9700 to load each part. In the opening it is the middle of MUSIC_INIT: the second half of the start words from $F088,X into $13,X (voice 2's high byte, then voice 3's low and high bytes), then the next voice.","t":"code","b":[189,136,240],"m":"lda","o":"VOICE_STARTS_SECOND_HALF,x","oa":61576,"x":[1107,1843]},{"a":38659,"t":"code","b":[149,19],"m":"sta","o":"zpf_13,x","oa":19},{"a":38661,"t":"code","b":[202],"m":"dex"},{"a":38662,"t":"code","b":[16,212],"m":"bpl","o":"b_96DC","oa":38620},{"a":38664,"l":"LOADER_DIGIT_9708","c":"MUSIC_INIT's RTS. Once the loader is in place this byte is the digit of \"PART n\", which its INC $9708 (at $C009 before the move) advances before each load.","t":"code","b":[96],"m":"rts","x":[49161]},{"a":38665,"l":"V1_PULSE_RESET","c":"Voice 1's pulse sweep starts again from the base width: X/Y = $F018/$F019, then on into the start below.","t":"code","b":[174,24,240],"m":"ldx","o":"V1_PW_BASE_LO","oa":61464,"x":[39500,49152]},{"a":38668,"t":"code","b":[172,25,240],"m":"ldy","o":"V1_PW_BASE_HI","oa":61465},{"a":38671,"l":"V1_PULSE_START","c":"Starts voice 1's pulse sweep at the width in X/Y: current width $F021/$F022 = X/Y, then the counters reload below.","t":"code","b":[142,33,240],"m":"stx","o":"V1_PW_LO","oa":61473,"x":[39019]},{"a":38674,"t":"code","b":[140,34,240],"m":"sty","o":"V1_PW_HI","oa":61474},{"a":38677,"l":"V1_PULSE_RELOAD","c":"Reloads voice 1's pulse counters: phase A steps $F028 = $F013, phase B steps $F029 = $F014, step timer $F02A = $F016.","t":"code","b":[173,19,240],"m":"lda","o":"V1_PW_STEPS1","oa":61459,"x":[39506]},{"a":38680,"t":"code","b":[141,40,240],"m":"sta","o":"V1_PW_LEFT1","oa":61480},{"a":38683,"t":"code","b":[173,20,240],"m":"lda","o":"V1_PW_STEPS2","oa":61460},{"a":38686,"t":"code","b":[141,41,240],"m":"sta","o":"V1_PW_LEFT2","oa":61481},{"a":38689,"t":"code","b":[173,22,240],"m":"lda","o":"V1_PW_PERIOD","oa":61462},{"a":38692,"t":"code","b":[141,42,240],"m":"sta","o":"V1_PW_TIMER","oa":61482},{"a":38695,"t":"code","b":[96],"m":"rts"},{"a":38696,"l":"V3_PULSE_RESET","c":"Voice 3's pulse sweep starts again from the base width: X/Y = $F06E/$F06F, then on into the start below.","t":"code","b":[174,110,240],"m":"ldx","o":"V3_PW_BASE_LO","oa":61550,"x":[40628]},{"a":38699,"t":"code","b":[172,111,240],"m":"ldy","o":"V3_PW_BASE_HI","oa":61551},{"a":38702,"l":"V3_PULSE_START","c":"Starts voice 3's pulse sweep at the width in X/Y: current width $F077/$F078 = X/Y, then the counters reload below.","t":"code","b":[142,119,240],"m":"stx","o":"V3_PW_LO","oa":61559,"x":[40358]},{"a":38705,"t":"code","b":[140,120,240],"m":"sty","o":"V3_PW_HI","oa":61560},{"a":38708,"l":"V3_PULSE_RELOAD","c":"Reloads voice 3's pulse counters: step timer $F080 = $F06C, phase A steps $F07E = $F069, phase B steps $F07F = $F06A.","t":"code","b":[173,108,240],"m":"lda","o":"V3_PW_PERIOD","oa":61548,"x":[40634]},{"a":38711,"t":"code","b":[141,128,240],"m":"sta","o":"V3_PW_TIMER","oa":61568},{"a":38714,"t":"code","b":[173,105,240],"m":"lda","o":"V3_PW_STEPS1","oa":61545},{"a":38717,"t":"code","b":[141,126,240],"m":"sta","o":"V3_PW_LEFT1","oa":61566},{"a":38720,"t":"code","b":[173,106,240],"m":"lda","o":"V3_PW_STEPS2","oa":61546},{"a":38723,"t":"code","b":[141,127,240],"m":"sta","o":"V3_PW_LEFT2","oa":61567},{"a":38726,"t":"code","b":[96],"m":"rts"},{"a":38727,"l":"V1_VIBRATO_RESET","c":"Voice 1's vibrato starts again from the note's own frequency: X/Y = $F01A/$F01B, then on into the start below.","t":"code","b":[174,26,240],"m":"ldx","o":"V1_BASE_FREQ_LO","oa":61466,"x":[39383]},{"a":38730,"t":"code","b":[172,27,240],"m":"ldy","o":"V1_BASE_FREQ_HI","oa":61467},{"a":38733,"l":"V1_VIBRATO_START","c":"Starts voice 1's vibrato at the frequency in X/Y: current frequency $F01F/$F020 = X/Y, then the counters reload below.","t":"code","b":[142,31,240],"m":"stx","o":"V1_FREQ_LO","oa":61471,"x":[39004]},{"a":38736,"t":"code","b":[140,32,240],"m":"sty","o":"V1_FREQ_HI","oa":61472},{"a":38739,"l":"V1_VIBRATO_RELOAD","c":"Reloads voice 1's vibrato counters from its setting: step timer $F027 = $F00D, and the step counts of the four phases ($F023-$F026) from $F008-$F00B.","t":"code","b":[173,13,240],"m":"lda","o":"V1_VIB_PERIOD","oa":61453,"x":[39389]},{"a":38742,"t":"code","b":[141,39,240],"m":"sta","o":"V1_VIB_TIMER","oa":61479},{"a":38745,"t":"code","b":[173,11,240],"m":"lda","o":"V1_VIB_STEPS4","oa":61451},{"a":38748,"t":"code","b":[141,38,240],"m":"sta","o":"V1_VIB_LEFT4","oa":61478},{"a":38751,"t":"code","b":[173,10,240],"m":"lda","o":"V1_VIB_STEPS3","oa":61450},{"a":38754,"t":"code","b":[141,37,240],"m":"sta","o":"V1_VIB_LEFT3","oa":61477},{"a":38757,"t":"code","b":[173,9,240],"m":"lda","o":"V1_VIB_STEPS2","oa":61449},{"a":38760,"t":"code","b":[141,36,240],"m":"sta","o":"V1_VIB_LEFT2","oa":61476},{"a":38763,"t":"code","b":[173,8,240],"m":"lda","o":"V1_VIB_STEPS1","oa":61448},{"a":38766,"t":"code","b":[141,35,240],"m":"sta","o":"V1_VIB_LEFT1","oa":61475},{"a":38769,"t":"code","b":[96],"m":"rts"},{"a":38770,"l":"V2_VIBRATO_RESET","c":"Voice 2's vibrato starts again from the note's own frequency: X/Y = $F045/$F046, then on into the start below.","t":"code","b":[174,69,240],"m":"ldx","o":"V2_BASE_FREQ_LO","oa":61509,"x":[40115]},{"a":38773,"t":"code","b":[172,70,240],"m":"ldy","o":"V2_BASE_FREQ_HI","oa":61510},{"a":38776,"l":"V2_VIBRATO_START","c":"Starts voice 2's vibrato at the frequency in X/Y: current frequency $F04A/$F04B = X/Y, then the counters reload below.","t":"code","b":[142,74,240],"m":"stx","o":"V2_FREQ_LO","oa":61514,"x":[39736]},{"a":38779,"t":"code","b":[140,75,240],"m":"sty","o":"V2_FREQ_HI","oa":61515},{"a":38782,"l":"V2_VIBRATO_RELOAD","c":"Reloads voice 2's vibrato counters from its setting: step timer $F052 = $F038, and the step counts of the four phases ($F04E-$F051) from $F033-$F036.","t":"code","b":[173,56,240],"m":"lda","o":"V2_VIB_PERIOD","oa":61496,"x":[40121]},{"a":38785,"t":"code","b":[141,82,240],"m":"sta","o":"V2_VIB_TIMER","oa":61522},{"a":38788,"t":"code","b":[173,54,240],"m":"lda","o":"V2_VIB_STEPS4","oa":61494},{"a":38791,"t":"code","b":[141,81,240],"m":"sta","o":"V2_VIB_LEFT4","oa":61521},{"a":38794,"t":"code","b":[173,53,240],"m":"lda","o":"V2_VIB_STEPS3","oa":61493},{"a":38797,"t":"code","b":[141,80,240],"m":"sta","o":"V2_VIB_LEFT3","oa":61520},{"a":38800,"t":"code","b":[173,52,240],"m":"lda","o":"V2_VIB_STEPS2","oa":61492},{"a":38803,"t":"code","b":[141,79,240],"m":"sta","o":"V2_VIB_LEFT2","oa":61519},{"a":38806,"t":"code","b":[173,51,240],"m":"lda","o":"V2_VIB_STEPS1","oa":61491},{"a":38809,"t":"code","b":[141,78,240],"m":"sta","o":"V2_VIB_LEFT1","oa":61518},{"a":38812,"t":"code","b":[96],"m":"rts"},{"a":38813,"l":"V1_TICK","c":"Voice 1, once a frame. If bit 0 of $19 is set, count down its ticks $1A, and at 0 read the next event ($97B4); whatever happens, the effects follow ($9931).","t":"code","b":[165,25],"m":"lda","o":"VOICE_FLAGS","oa":25,"x":[38552]},{"a":38815,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":38816,"t":"code","b":[144,4],"m":"bcc","o":"b_97A6","oa":38822},{"a":38818,"t":"code","b":[198,26],"m":"dec","o":"V1_TICKS","oa":26},{"a":38820,"t":"code","b":[240,14],"m":"beq","o":"V1_READ_EVENT","oa":38836},{"a":38822,"l":"b_97A6","t":"code","b":[76,49,153],"m":"jmp","o":"V1_VIBRATO_EFFECT","oa":39217,"x":[38816]},{"a":38825,"l":"V1_SKIP_COMMAND","c":"Moves voice 1's place in the tune past a three-byte command, then reads the next event.","t":"code","b":[169,3],"m":"lda","o":"#$03","x":[39094,39184]},{"a":38827,"t":"code","b":[24],"m":"clc"},{"a":38828,"t":"code","b":[101,16],"m":"adc","o":"V1_STREAM","oa":16},{"a":38830,"t":"code","b":[133,16],"m":"sta","o":"V1_STREAM","oa":16},{"a":38832,"t":"code","b":[144,2],"m":"bcc","o":"V1_READ_EVENT","oa":38836},{"a":38834,"t":"code","b":[230,17],"m":"inc","o":"zpa_11","oa":17},{"a":38836,"l":"V1_READ_EVENT","c":"Reads the event at voice 1's place. A byte with bit 7 set is a command: its low bits index the handler table $9913, whose word is written into the JMP at $97D5; the two bytes after it go to $16/$17, and the index to $20. Any other byte is a note ($97D8).","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[38820,38832,39078,39129]},{"a":38838,"t":"code","b":[177,16],"m":"lda","o":"(V1_STREAM),y","oa":16},{"a":38840,"t":"code","b":[16,30],"m":"bpl","o":"V1_NOTE","oa":38872},{"a":38842,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":38844,"t":"code","b":[170],"m":"tax"},{"a":38845,"t":"code","b":[134,32],"m":"stx","o":"LAST_COMMAND","oa":32},{"a":38847,"t":"code","b":[189,19,153],"m":"lda","o":"V1_COMMANDS,x","oa":39187},{"a":38850,"t":"code","b":[141,214,151],"m":"sta","o":"V1_COMMAND_JUMP_LOW","oa":38870},{"a":38853,"t":"code","b":[189,20,153],"m":"lda","o":"V1_COMMANDS_HIGH,x","oa":39188},{"a":38856,"t":"code","b":[141,215,151],"m":"sta","o":"V1_COMMAND_JUMP_HIGH","oa":38871},{"a":38859,"t":"code","b":[200],"m":"iny"},{"a":38860,"t":"code","b":[177,16],"m":"lda","o":"(V1_STREAM),y","oa":16},{"a":38862,"t":"code","b":[133,22],"m":"sta","o":"COMMAND_POINTER","oa":22},{"a":38864,"t":"code","b":[200],"m":"iny"},{"a":38865,"t":"code","b":[177,16],"m":"lda","o":"(V1_STREAM),y","oa":16},{"a":38867,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":38869,"l":"V1_COMMAND_JUMP","c":"Jumps to the command's handler. $97C2 and $97C8 write the operand before every jump, so the address stored here is whichever handler ran last.","t":"code","b":[76,191,152],"m":"jmp","o":"V1_CMD_VIBRATO","oa":39103},{"a":38870,"t":"note","l":"V1_COMMAND_JUMP_LOW","c":"Low byte of the JMP at $97D5, written at $97C2 with the low byte of the command's handler.","note":"inside the item at $97D5","x":[38850]},{"a":38871,"t":"note","l":"V1_COMMAND_JUMP_HIGH","c":"High byte of the JMP at $97D5, written at $97C8.","note":"inside the item at $97D5","x":[38856]},{"a":38872,"l":"V1_NOTE","c":"A note or a rest. $60 is a rest: it only sets the length ($987F). $5F is taken as note $5F without the transpose; any other note has the transpose $9F46 added (and the carry from the compare, set for $61-$7F) and goes to $18. If voice 1's bit in the enable mask $F081 is clear, the note is silent and only its length is set; otherwise $97F4 starts it.","t":"code","b":[201,96],"m":"cmp","o":"#$60","x":[38840]},{"a":38874,"t":"code","b":[240,15],"m":"beq","o":"b_97EB","oa":38891},{"a":38876,"t":"code","b":[201,95],"m":"cmp","o":"#$5F"},{"a":38878,"t":"code","b":[240,3],"m":"beq","o":"b_97E3","oa":38883},{"a":38880,"t":"code","b":[109,70,159],"m":"adc","o":"V1_TRANSPOSE","oa":40774},{"a":38883,"l":"b_97E3","t":"code","b":[133,24],"m":"sta","o":"NOTE_INDEX","oa":24,"x":[38878]},{"a":38885,"t":"code","b":[173,129,240],"m":"lda","o":"VOICE_ENABLE","oa":61569},{"a":38888,"t":"code","b":[74],"m":"lsr","o":"a"},{"a":38889,"t":"code","b":[176,9],"m":"bcs","o":"V1_START_NOTE","oa":38900},{"a":38891,"l":"b_97EB","t":"code","b":[76,127,152],"m":"jmp","o":"V1_SET_LENGTH","oa":39039,"x":[38874,38898]},{"a":38894,"l":"V1_UNREACHED_CUT_TEST","c":"Never runs: LDA $19 / AND #$08 / BEQ $97EB, a test of voice 1's cut bit that the JMP before it always skips and nothing jumps to.","t":"code","b":[165,25],"m":"lda","o":"VOICE_FLAGS","oa":25},{"a":38896,"t":"code","b":[41,8],"m":"and","o":"#$08"},{"a":38898,"t":"code","b":[240,247],"m":"beq","o":"b_97EB","oa":38891},{"a":38900,"l":"V1_START_NOTE","c":"Starts the note in $18 from voice 1's block at $9EF3. Block bytes $1F-$22 go to the filter, $D415-$D418, with the volume $F082 in place of the mode byte's low four bits. The gate is cleared, then the block's waveform, attack/decay and sustain/release ($1A-$1C) go to $D404-$D406, so the envelope starts again; $F01C keeps the waveform. If the pulse flags (byte $17) are set, the sweep setting (bytes $0F-$19) is copied to $F00F-$F019, and if the vibrato flags (byte $0E) are set, bytes $00-$0E go to $F000-$F00E. The note's frequency from $F0EA (low) and $F08E (high) goes to $D400/$D401 and $F01A/$F01B, and the vibrato starts from it ($974D). The base pulse width (bytes $18/$19) goes to $D402/$D403 and the sweep starts ($970F); the release and gate ticks (bytes $1D/$1E) go to $F01D/$F01E.","t":"code","b":[160,34],"m":"ldy","o":"#$22","x":[38889]},{"a":38902,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":38904,"l":"b_97F8","t":"code","b":[185,243,158],"m":"lda","o":"V1_BLOCK_VIBRATO,y","oa":40691,"x":[38921]},{"a":38907,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":38909,"t":"code","b":[208,5],"m":"bne","o":"b_9804","oa":38916},{"a":38911,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":38912,"t":"note","l":"LOADER_PAGE_9800","c":"$0736 copies the loader's second page here from $C100. In the opening it falls in V1_START_NOTE: the gate is cleared and voice 1's waveform, attack/decay and sustain/release written, then the pulse sweep and vibrato settings copied, the frequency set and the sweep, vibrato and timers started.","note":"inside the item at $97FF","x":[1849]},{"a":38913,"t":"code","b":[13,130,240],"m":"ora","o":"VOLUME","oa":61570},{"a":38916,"l":"b_9804","t":"code","b":[157,21,212],"m":"sta","o":"sid_filter_cutoff_lo,x","x":[38909]},{"a":38919,"t":"code","b":[136],"m":"dey"},{"a":38920,"t":"code","b":[202],"m":"dex"},{"a":38921,"t":"code","b":[16,237],"m":"bpl","o":"b_97F8","oa":38904},{"a":38923,"t":"code","b":[160,28],"m":"ldy","o":"#$1C"},{"a":38925,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":38927,"l":"b_980F","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[38940]},{"a":38929,"t":"code","b":[157,4,212],"m":"sta","o":"sid_v1_control,x"},{"a":38932,"t":"code","b":[185,243,158],"m":"lda","o":"V1_BLOCK_VIBRATO,y","oa":40691},{"a":38935,"t":"code","b":[157,4,212],"m":"sta","o":"sid_v1_control,x"},{"a":38938,"t":"code","b":[136],"m":"dey"},{"a":38939,"t":"code","b":[202],"m":"dex"},{"a":38940,"t":"code","b":[16,241],"m":"bpl","o":"b_980F","oa":38927},{"a":38942,"t":"code","b":[141,28,240],"m":"sta","o":"V1_WAVEFORM","oa":61468},{"a":38945,"t":"code","b":[173,10,159],"m":"lda","o":"V1_BLOCK_PULSE_FLAGS","oa":40714},{"a":38948,"t":"code","b":[141,23,240],"m":"sta","o":"V1_PW_FLAGS","oa":61463},{"a":38951,"t":"code","b":[240,11],"m":"beq","o":"b_9834","oa":38964},{"a":38953,"t":"code","b":[160,10],"m":"ldy","o":"#$0A"},{"a":38955,"l":"b_982B","t":"code","b":[185,2,159],"m":"lda","o":"V1_BLOCK_PULSE,y","oa":40706,"x":[38962]},{"a":38958,"t":"code","b":[153,15,240],"m":"sta","o":"V1_PW_DELTA1_LO,y","oa":61455},{"a":38961,"t":"code","b":[136],"m":"dey"},{"a":38962,"t":"code","b":[16,247],"m":"bpl","o":"b_982B","oa":38955},{"a":38964,"l":"b_9834","t":"code","b":[173,1,159],"m":"lda","o":"V1_BLOCK_VIBRATO_FLAGS","oa":40705,"x":[38951]},{"a":38967,"t":"code","b":[141,14,240],"m":"sta","o":"V1_VIB_FLAGS","oa":61454},{"a":38970,"t":"code","b":[240,11],"m":"beq","o":"b_9847","oa":38983},{"a":38972,"t":"code","b":[160,14],"m":"ldy","o":"#$0E"},{"a":38974,"l":"b_983E","t":"code","b":[185,243,158],"m":"lda","o":"V1_BLOCK_VIBRATO,y","oa":40691,"x":[38981]},{"a":38977,"t":"code","b":[153,0,240],"m":"sta","o":"V1_VIB_DELTA1_LO,y","oa":61440},{"a":38980,"t":"code","b":[136],"m":"dey"},{"a":38981,"t":"code","b":[16,247],"m":"bpl","o":"b_983E","oa":38974},{"a":38983,"l":"b_9847","t":"code","b":[166,24],"m":"ldx","o":"NOTE_INDEX","oa":24,"x":[38970]},{"a":38985,"t":"code","b":[188,142,240],"m":"ldy","o":"FREQUENCY_HIGH,x","oa":61582},{"a":38988,"t":"code","b":[189,234,240],"m":"lda","o":"FREQUENCY_LOW,x","oa":61674},{"a":38991,"t":"code","b":[170],"m":"tax"},{"a":38992,"t":"code","b":[142,26,240],"m":"stx","o":"V1_BASE_FREQ_LO","oa":61466},{"a":38995,"t":"code","b":[140,27,240],"m":"sty","o":"V1_BASE_FREQ_HI","oa":61467},{"a":38998,"t":"code","b":[142,0,212],"m":"stx","o":"sid_v1_freq_lo"},{"a":39001,"t":"code","b":[140,1,212],"m":"sty","o":"sid_v1_freq_hi"},{"a":39004,"t":"code","b":[32,77,151],"m":"jsr","o":"V1_VIBRATO_START","oa":38733},{"a":39007,"t":"code","b":[174,11,159],"m":"ldx","o":"V1_BLOCK_WIDTH_LOW","oa":40715},{"a":39010,"t":"code","b":[172,12,159],"m":"ldy","o":"V1_BLOCK_WIDTH_HIGH","oa":40716},{"a":39013,"t":"code","b":[142,2,212],"m":"stx","o":"sid_v1_pulse_lo"},{"a":39016,"t":"code","b":[140,3,212],"m":"sty","o":"sid_v1_pulse_hi"},{"a":39019,"t":"code","b":[32,15,151],"m":"jsr","o":"V1_PULSE_START","oa":38671},{"a":39022,"t":"code","b":[174,16,159],"m":"ldx","o":"V1_BLOCK_RELEASE_TICKS","oa":40720},{"a":39025,"t":"code","b":[172,17,159],"m":"ldy","o":"V1_BLOCK_GATE_TICKS","oa":40721},{"a":39028,"t":"code","b":[142,29,240],"m":"stx","o":"V1_RELEASE_TICKS","oa":61469},{"a":39031,"t":"code","b":[140,30,240],"m":"sty","o":"V1_GATE_TICKS","oa":61470},{"a":39034,"t":"code","b":[174,28,240],"m":"ldx","o":"V1_WAVEFORM","oa":61468},{"a":39037,"t":"code","b":[134,33],"m":"stx","o":"V1_WAVEFORM_SEEN","oa":33},{"a":39039,"l":"V1_SET_LENGTH","c":"The note's length: its second byte indexes the length values at block byte $22 ($9F15) and the value goes to the ticks $1A. Voice 1's place moves on two bytes, then the effects run.","t":"code","b":[160,1],"m":"ldy","o":"#$01","x":[38891]},{"a":39041,"t":"code","b":[177,16],"m":"lda","o":"(V1_STREAM),y","oa":16},{"a":39043,"t":"code","b":[170],"m":"tax"},{"a":39044,"t":"code","b":[189,21,159],"m":"lda","o":"V1_BLOCK_MODE,x","oa":40725},{"a":39047,"t":"code","b":[133,26],"m":"sta","o":"V1_TICKS","oa":26},{"a":39049,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":39051,"t":"code","b":[24],"m":"clc"},{"a":39052,"t":"code","b":[101,16],"m":"adc","o":"V1_STREAM","oa":16},{"a":39054,"t":"code","b":[133,16],"m":"sta","o":"V1_STREAM","oa":16},{"a":39056,"t":"code","b":[144,2],"m":"bcc","o":"b_9894","oa":39060},{"a":39058,"t":"code","b":[230,17],"m":"inc","o":"zpa_11","oa":17},{"a":39060,"l":"b_9894","t":"code","b":[76,49,153],"m":"jmp","o":"V1_VIBRATO_EFFECT","oa":39217,"x":[39056]},{"a":39063,"l":"V1_CMD_RETURN","c":"Command $80, return: voice 1's place comes back off its stream stack ($9F26/$9F36, index $1D) and the next event is read.","t":"code","b":[166,29],"m":"ldx","o":"V1_STACK_INDEX","oa":29},{"a":39065,"t":"code","b":[232],"m":"inx"},{"a":39066,"t":"code","b":[134,29],"m":"stx","o":"V1_STACK_INDEX","oa":29},{"a":39068,"t":"code","b":[189,38,159],"m":"lda","o":"V1_STACK_LOW,x","oa":40742},{"a":39071,"t":"code","b":[133,16],"m":"sta","o":"V1_STREAM","oa":16},{"a":39073,"t":"code","b":[189,54,159],"m":"lda","o":"V1_STACK_HIGH,x","oa":40758},{"a":39076,"t":"code","b":[133,17],"m":"sta","o":"zpa_11","oa":17},{"a":39078,"t":"code","b":[76,180,151],"m":"jmp","o":"V1_READ_EVENT","oa":38836},{"a":39081,"l":"V1_CMD_ENVELOPE","c":"Command $82: five bytes from the pointer to block bytes $1A-$1E (waveform, attack/decay, sustain/release, release ticks, gate ticks).","t":"code","b":[160,4],"m":"ldy","o":"#$04"},{"a":39083,"t":"code","b":[162,30],"m":"ldx","o":"#$1E"},{"a":39085,"l":"V1_COPY_SETTINGS","c":"Copies Y+1 bytes from the command's pointer into voice 1's block, the last to $9EF3+X, counting both down; then skips the command ($97A9).","t":"code","b":[177,22],"m":"lda","o":"(COMMAND_POINTER),y","oa":22,"x":[39092,39101,39107,39113,39119]},{"a":39087,"t":"code","b":[157,243,158],"m":"sta","o":"V1_BLOCK_VIBRATO,x","oa":40691},{"a":39090,"t":"code","b":[202],"m":"dex"},{"a":39091,"t":"code","b":[136],"m":"dey"},{"a":39092,"t":"code","b":[16,247],"m":"bpl","o":"V1_COPY_SETTINGS","oa":39085},{"a":39094,"t":"code","b":[76,169,151],"m":"jmp","o":"V1_SKIP_COMMAND","oa":38825},{"a":39097,"l":"V1_CMD_INSTRUMENT","c":"Command $86: 35 bytes to block bytes $00-$22, a whole instrument (vibrato, pulse sweep, envelope and filter).","t":"code","b":[160,34],"m":"ldy","o":"#$22"},{"a":39099,"t":"code","b":[162,34],"m":"ldx","o":"#$22"},{"a":39101,"t":"code","b":[208,238],"m":"bne","o":"V1_COPY_SETTINGS","oa":39085},{"a":39103,"l":"V1_CMD_VIBRATO","c":"Command $88: 15 bytes to block bytes $00-$0E, the vibrato setting.","t":"code","b":[160,14],"m":"ldy","o":"#$0E","x":[38869]},{"a":39105,"t":"code","b":[162,14],"m":"ldx","o":"#$0E"},{"a":39107,"t":"code","b":[208,232],"m":"bne","o":"V1_COPY_SETTINGS","oa":39085},{"a":39109,"l":"V1_CMD_PULSE","c":"Command $8A: 11 bytes to block bytes $0F-$19, the pulse sweep setting.","t":"code","b":[160,10],"m":"ldy","o":"#$0A"},{"a":39111,"t":"code","b":[162,25],"m":"ldx","o":"#$19"},{"a":39113,"t":"code","b":[208,226],"m":"bne","o":"V1_COPY_SETTINGS","oa":39085},{"a":39115,"l":"V1_CMD_LENGTHS","c":"Command $8C: 16 bytes to block bytes $23-$32, the frames each length index 1-16 lasts.","t":"code","b":[160,15],"m":"ldy","o":"#$0F"},{"a":39117,"t":"code","b":[162,50],"m":"ldx","o":"#$32"},{"a":39119,"t":"code","b":[208,220],"m":"bne","o":"V1_COPY_SETTINGS","oa":39085},{"a":39121,"l":"V1_CMD_JUMP","c":"Command $8E: voice 1 carries on at the pointer.","t":"code","b":[166,22],"m":"ldx","o":"COMMAND_POINTER","oa":22,"x":[39170]},{"a":39123,"t":"code","b":[134,16],"m":"stx","o":"V1_STREAM","oa":16},{"a":39125,"t":"code","b":[166,23],"m":"ldx","o":"zpa_17","oa":23},{"a":39127,"t":"code","b":[134,17],"m":"stx","o":"zpa_11","oa":17},{"a":39129,"t":"code","b":[76,180,151],"m":"jmp","o":"V1_READ_EVENT","oa":38836},{"a":39132,"l":"V1_CMD_MACHINE_CODE","c":"Command $9C: pushes $97A8 and jumps to the pointer, so the routine there runs as a subroutine and its RTS lands on $97A9, past the command. Voice 1 uses it to fade in ($F400) and out ($F406) and to flip a note ($F495); voice 2's own handler ($9BB7) runs the matching flip at $F553.","t":"code","b":[169,151],"m":"lda","o":"#$97"},{"a":39134,"t":"code","b":[72],"m":"pha"},{"a":39135,"t":"code","b":[169,168],"m":"lda","o":"#$A8"},{"a":39137,"t":"code","b":[72],"m":"pha"},{"a":39138,"t":"code","b":[108,22,0],"m":"jmp","o":"(COMMAND_POINTER)","oa":22},{"a":39141,"l":"V1_UNREACHED_CALL_TRANSPOSED","c":"Never runs: the transposed call that voices 2 and 3 have (the fourth byte to the transpose $9F46, then the call with 4 as the command's length; the BIT at $98EE hides the LDA #$03). Voice 1's handler table has no entry for it.","t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":39143,"t":"code","b":[177,16],"m":"lda","o":"(V1_STREAM),y","oa":16},{"a":39145,"t":"code","b":[141,70,159],"m":"sta","o":"V1_TRANSPOSE","oa":40774},{"a":39148,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":39150,"t":"code","b":[44,169,3],"m":"bit","o":"a_03A9","oa":937},{"a":39151,"t":"note","l":"V1_CMD_CALL","c":"Command $90: the place past the command goes on voice 1's stream stack and the voice carries on at the pointer, until a return.","note":"inside the item at $98EE"},{"a":39153,"t":"code","b":[166,29],"m":"ldx","o":"V1_STACK_INDEX","oa":29},{"a":39155,"t":"code","b":[24],"m":"clc"},{"a":39156,"t":"code","b":[101,16],"m":"adc","o":"V1_STREAM","oa":16},{"a":39158,"t":"code","b":[157,38,159],"m":"sta","o":"V1_STACK_LOW,x","oa":40742},{"a":39161,"t":"code","b":[165,17],"m":"lda","o":"zpa_11","oa":17},{"a":39163,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":39165,"t":"code","b":[157,54,159],"m":"sta","o":"V1_STACK_HIGH,x","oa":40758},{"a":39168,"t":"code","b":[198,29],"m":"dec","o":"V1_STACK_INDEX","oa":29},{"a":39170,"t":"code","b":[76,209,152],"m":"jmp","o":"V1_CMD_JUMP","oa":39121},{"a":39173,"l":"V1_CMD_POKE","c":"Command $98: the command's third byte goes into voice 1's block at the offset in its second. The tune uses it to change one setting between notes: gate ticks, pulse width, attack/decay, sustain/release, a vibrato delta or flags.","t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":39175,"t":"code","b":[177,16],"m":"lda","o":"(V1_STREAM),y","oa":16},{"a":39177,"t":"code","b":[170],"m":"tax"},{"a":39178,"t":"code","b":[200],"m":"iny"},{"a":39179,"t":"code","b":[177,16],"m":"lda","o":"(V1_STREAM),y","oa":16},{"a":39181,"t":"code","b":[157,243,158],"m":"sta","o":"V1_BLOCK_VIBRATO,x","oa":40691},{"a":39184,"t":"code","b":[76,169,151],"m":"jmp","o":"V1_SKIP_COMMAND","oa":38825},{"a":39187,"l":"V1_COMMANDS","c":"Voice 1's command handlers, one word each for commands $80-$9C, low byte first: return, envelope, stop, instrument, vibrato, pulse, lengths, jump, call, stop, stop, stop, poke, stop, machine code. Stop is MUSIC_STOP ($96A1). $97BF reads the low byte through $9913,X with X = command AND $7F, always even.","t":"word","b":[151,152,169,152,161,150,185,152],"d":[39063,39081,38561,39097],"x":[38847]},{"a":39188,"t":"note","l":"V1_COMMANDS_HIGH","c":"The same table one byte on: $97C5 reads the handler's high byte through $9914,X with the same X.","note":"inside the item at $9913","x":[38853]},{"a":39195,"t":"word","b":[191,152,197,152,203,152,209,152],"d":[39103,39109,39115,39121]},{"a":39203,"t":"word","b":[239,152,161,150,161,150,161,150],"d":[39151,38561,38561,38561]},{"a":39211,"t":"word","b":[5,153,161,150,220,152],"d":[39173,38561,39132]},{"a":39217,"l":"V1_VIBRATO_EFFECT","c":"Voice 1's vibrato, every frame while its release counter $F01D is not 0, from the current frequency $F01F/$F020. Nothing changes unless bit 2 of the flags $F00E is set and the frequency is not 0. The delay $F00C counts down first, adding the fourth delta $F006/$F007 each frame when bit 1 is set (a slide away from the written note: VIBRATO_SLIDE takes C#5 up to about D#5). Then the step timer $F027 waits $F00D frames between steps, and each step the first phase with steps left ($F023-$F026) adds its delta ($F000-$F007) and loses a step. When all four are spent, bit 7 starts them again from the note's frequency ($9747), bit 0 from where the pitch is ($9753); with neither the pitch stays.","t":"code","b":[174,29,240],"m":"ldx","o":"V1_RELEASE_TICKS","oa":61469,"x":[38822,39060]},{"a":39220,"t":"code","b":[208,1],"m":"bne","o":"b_9937","oa":39223},{"a":39222,"t":"code","b":[96],"m":"rts"},{"a":39223,"l":"b_9937","t":"code","b":[216],"m":"cld","x":[39220]},{"a":39224,"t":"code","b":[24],"m":"clc"},{"a":39225,"t":"code","b":[174,31,240],"m":"ldx","o":"V1_FREQ_LO","oa":61471},{"a":39228,"t":"code","b":[172,32,240],"m":"ldy","o":"V1_FREQ_HI","oa":61472},{"a":39231,"t":"code","b":[173,14,240],"m":"lda","o":"V1_VIB_FLAGS","oa":61454},{"a":39234,"t":"code","b":[41,4],"m":"and","o":"#$04"},{"a":39236,"t":"code","b":[240,32],"m":"beq","o":"b_9966","oa":39270},{"a":39238,"t":"code","b":[152],"m":"tya"},{"a":39239,"t":"code","b":[134,24],"m":"stx","o":"NOTE_INDEX","oa":24},{"a":39241,"t":"code","b":[5,24],"m":"ora","o":"NOTE_INDEX","oa":24},{"a":39243,"t":"code","b":[240,25],"m":"beq","o":"b_9966","oa":39270},{"a":39245,"t":"code","b":[173,12,240],"m":"lda","o":"V1_VIB_DELAY","oa":61452},{"a":39248,"t":"code","b":[240,23],"m":"beq","o":"b_9969","oa":39273},{"a":39250,"t":"code","b":[206,12,240],"m":"dec","o":"V1_VIB_DELAY","oa":61452},{"a":39253,"t":"code","b":[173,14,240],"m":"lda","o":"V1_VIB_FLAGS","oa":61454},{"a":39256,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":39258,"t":"code","b":[240,10],"m":"beq","o":"b_9966","oa":39270},{"a":39260,"t":"code","b":[138],"m":"txa"},{"a":39261,"t":"code","b":[109,6,240],"m":"adc","o":"V1_VIB_DELTA4_LO","oa":61446},{"a":39264,"t":"code","b":[170],"m":"tax"},{"a":39265,"t":"code","b":[152],"m":"tya"},{"a":39266,"t":"code","b":[109,7,240],"m":"adc","o":"V1_VIB_DELTA4_HI","oa":61447},{"a":39269,"t":"code","b":[168],"m":"tay"},{"a":39270,"l":"b_9966","t":"code","b":[76,227,153],"m":"jmp","o":"V1_WRITE_FREQUENCY","oa":39395,"x":[39236,39243,39258]},{"a":39273,"l":"b_9969","t":"code","b":[173,39,240],"m":"lda","o":"V1_VIB_TIMER","oa":61479,"x":[39248]},{"a":39276,"t":"code","b":[240,6],"m":"beq","o":"b_9974","oa":39284},{"a":39278,"t":"code","b":[206,39,240],"m":"dec","o":"V1_VIB_TIMER","oa":61479},{"a":39281,"t":"code","b":[76,227,153],"m":"jmp","o":"V1_WRITE_FREQUENCY","oa":39395},{"a":39284,"l":"b_9974","t":"code","b":[173,13,240],"m":"lda","o":"V1_VIB_PERIOD","oa":61453,"x":[39276]},{"a":39287,"t":"code","b":[141,39,240],"m":"sta","o":"V1_VIB_TIMER","oa":61479},{"a":39290,"l":"j_997A","t":"code","b":[173,35,240],"m":"lda","o":"V1_VIB_LEFT1","oa":61475,"x":[39386,39392]},{"a":39293,"t":"code","b":[240,16],"m":"beq","o":"b_998F","oa":39311},{"a":39295,"t":"code","b":[138],"m":"txa"},{"a":39296,"t":"code","b":[109,0,240],"m":"adc","o":"V1_VIB_DELTA1_LO","oa":61440},{"a":39299,"t":"code","b":[170],"m":"tax"},{"a":39300,"t":"code","b":[152],"m":"tya"},{"a":39301,"t":"code","b":[109,1,240],"m":"adc","o":"V1_VIB_DELTA1_HI","oa":61441},{"a":39304,"t":"code","b":[168],"m":"tay"},{"a":39305,"t":"code","b":[206,35,240],"m":"dec","o":"V1_VIB_LEFT1","oa":61475},{"a":39308,"t":"code","b":[76,227,153],"m":"jmp","o":"V1_WRITE_FREQUENCY","oa":39395},{"a":39311,"l":"b_998F","t":"code","b":[173,36,240],"m":"lda","o":"V1_VIB_LEFT2","oa":61476,"x":[39293]},{"a":39314,"t":"code","b":[240,16],"m":"beq","o":"b_99A4","oa":39332},{"a":39316,"t":"code","b":[138],"m":"txa"},{"a":39317,"t":"code","b":[109,2,240],"m":"adc","o":"V1_VIB_DELTA2_LO","oa":61442},{"a":39320,"t":"code","b":[170],"m":"tax"},{"a":39321,"t":"code","b":[152],"m":"tya"},{"a":39322,"t":"code","b":[109,3,240],"m":"adc","o":"V1_VIB_DELTA2_HI","oa":61443},{"a":39325,"t":"code","b":[168],"m":"tay"},{"a":39326,"t":"code","b":[206,36,240],"m":"dec","o":"V1_VIB_LEFT2","oa":61476},{"a":39329,"t":"code","b":[76,227,153],"m":"jmp","o":"V1_WRITE_FREQUENCY","oa":39395},{"a":39332,"l":"b_99A4","t":"code","b":[173,37,240],"m":"lda","o":"V1_VIB_LEFT3","oa":61477,"x":[39314]},{"a":39335,"t":"code","b":[240,16],"m":"beq","o":"b_99B9","oa":39353},{"a":39337,"t":"code","b":[138],"m":"txa"},{"a":39338,"t":"code","b":[109,4,240],"m":"adc","o":"V1_VIB_DELTA3_LO","oa":61444},{"a":39341,"t":"code","b":[170],"m":"tax"},{"a":39342,"t":"code","b":[152],"m":"tya"},{"a":39343,"t":"code","b":[109,5,240],"m":"adc","o":"V1_VIB_DELTA3_HI","oa":61445},{"a":39346,"t":"code","b":[168],"m":"tay"},{"a":39347,"t":"code","b":[206,37,240],"m":"dec","o":"V1_VIB_LEFT3","oa":61477},{"a":39350,"t":"code","b":[76,227,153],"m":"jmp","o":"V1_WRITE_FREQUENCY","oa":39395},{"a":39353,"l":"b_99B9","t":"code","b":[173,38,240],"m":"lda","o":"V1_VIB_LEFT4","oa":61478,"x":[39335]},{"a":39356,"t":"code","b":[240,16],"m":"beq","o":"b_99CE","oa":39374},{"a":39358,"t":"code","b":[138],"m":"txa"},{"a":39359,"t":"code","b":[109,6,240],"m":"adc","o":"V1_VIB_DELTA4_LO","oa":61446},{"a":39362,"t":"code","b":[170],"m":"tax"},{"a":39363,"t":"code","b":[152],"m":"tya"},{"a":39364,"t":"code","b":[109,7,240],"m":"adc","o":"V1_VIB_DELTA4_HI","oa":61447},{"a":39367,"t":"code","b":[168],"m":"tay"},{"a":39368,"t":"code","b":[206,38,240],"m":"dec","o":"V1_VIB_LEFT4","oa":61478},{"a":39371,"t":"code","b":[76,227,153],"m":"jmp","o":"V1_WRITE_FREQUENCY","oa":39395},{"a":39374,"l":"b_99CE","t":"code","b":[173,14,240],"m":"lda","o":"V1_VIB_FLAGS","oa":61454,"x":[39356]},{"a":39377,"t":"code","b":[41,129],"m":"and","o":"#$81"},{"a":39379,"t":"code","b":[240,14],"m":"beq","o":"V1_WRITE_FREQUENCY","oa":39395},{"a":39381,"t":"code","b":[16,6],"m":"bpl","o":"b_99DD","oa":39389},{"a":39383,"t":"code","b":[32,71,151],"m":"jsr","o":"V1_VIBRATO_RESET","oa":38727},{"a":39386,"t":"code","b":[76,122,153],"m":"jmp","o":"j_997A","oa":39290},{"a":39389,"l":"b_99DD","t":"code","b":[32,83,151],"m":"jsr","o":"V1_VIBRATO_RELOAD","oa":38739,"x":[39381]},{"a":39392,"t":"code","b":[76,122,153],"m":"jmp","o":"j_997A","oa":39290},{"a":39395,"l":"V1_WRITE_FREQUENCY","c":"The frequency to $D400/$D401 and $F01F/$F020.","t":"code","b":[142,0,212],"m":"stx","o":"sid_v1_freq_lo","x":[39270,39281,39308,39329,39350,39371,39379]},{"a":39398,"t":"code","b":[140,1,212],"m":"sty","o":"sid_v1_freq_hi"},{"a":39401,"t":"code","b":[142,31,240],"m":"stx","o":"V1_FREQ_LO","oa":61471},{"a":39404,"t":"code","b":[140,32,240],"m":"sty","o":"V1_FREQ_HI","oa":61472},{"a":39407,"l":"V1_PULSE_EFFECT","c":"Voice 1's pulse sweep, from the current width $F021/$F022, when bit 2 of its flags $F017 is set. The delay $F015 counts down, then the step timer $F02A waits $F016 frames between steps; each step adds the first delta ($F00F/$F010) while phase A has steps ($F028), then the second ($F011/$F012) while phase B has ($F029). With both spent, bit 7 starts again from the base width ($9709), bit 0 from the current one ($9715).","t":"code","b":[174,33,240],"m":"ldx","o":"V1_PW_LO","oa":61473},{"a":39410,"t":"code","b":[172,34,240],"m":"ldy","o":"V1_PW_HI","oa":61474},{"a":39413,"t":"code","b":[173,23,240],"m":"lda","o":"V1_PW_FLAGS","oa":61463},{"a":39416,"t":"code","b":[41,4],"m":"and","o":"#$04"},{"a":39418,"t":"code","b":[240,92],"m":"beq","o":"V1_WRITE_PULSE","oa":39512},{"a":39420,"t":"code","b":[173,21,240],"m":"lda","o":"V1_PW_DELAY","oa":61461},{"a":39423,"t":"code","b":[240,6],"m":"beq","o":"b_9A07","oa":39431},{"a":39425,"t":"code","b":[206,21,240],"m":"dec","o":"V1_PW_DELAY","oa":61461},{"a":39428,"t":"code","b":[76,88,154],"m":"jmp","o":"V1_WRITE_PULSE","oa":39512},{"a":39431,"l":"b_9A07","t":"code","b":[173,42,240],"m":"lda","o":"V1_PW_TIMER","oa":61482,"x":[39423]},{"a":39434,"t":"code","b":[240,6],"m":"beq","o":"b_9A12","oa":39442},{"a":39436,"t":"code","b":[206,42,240],"m":"dec","o":"V1_PW_TIMER","oa":61482},{"a":39439,"t":"code","b":[76,88,154],"m":"jmp","o":"V1_WRITE_PULSE","oa":39512},{"a":39442,"l":"b_9A12","t":"code","b":[173,22,240],"m":"lda","o":"V1_PW_PERIOD","oa":61462,"x":[39434]},{"a":39445,"t":"code","b":[141,42,240],"m":"sta","o":"V1_PW_TIMER","oa":61482},{"a":39448,"t":"code","b":[24],"m":"clc"},{"a":39449,"l":"j_9A19","t":"code","b":[173,40,240],"m":"lda","o":"V1_PW_LEFT1","oa":61480,"x":[39503,39509]},{"a":39452,"t":"code","b":[240,16],"m":"beq","o":"b_9A2E","oa":39470},{"a":39454,"t":"code","b":[138],"m":"txa"},{"a":39455,"t":"code","b":[109,15,240],"m":"adc","o":"V1_PW_DELTA1_LO","oa":61455},{"a":39458,"t":"code","b":[170],"m":"tax"},{"a":39459,"t":"code","b":[152],"m":"tya"},{"a":39460,"t":"code","b":[109,16,240],"m":"adc","o":"V1_PW_DELTA1_HI","oa":61456},{"a":39463,"t":"code","b":[168],"m":"tay"},{"a":39464,"t":"code","b":[206,40,240],"m":"dec","o":"V1_PW_LEFT1","oa":61480},{"a":39467,"t":"code","b":[76,88,154],"m":"jmp","o":"V1_WRITE_PULSE","oa":39512},{"a":39470,"l":"b_9A2E","t":"code","b":[173,41,240],"m":"lda","o":"V1_PW_LEFT2","oa":61481,"x":[39452]},{"a":39473,"t":"code","b":[240,16],"m":"beq","o":"b_9A43","oa":39491},{"a":39475,"t":"code","b":[138],"m":"txa"},{"a":39476,"t":"code","b":[109,17,240],"m":"adc","o":"V1_PW_DELTA2_LO","oa":61457},{"a":39479,"t":"code","b":[170],"m":"tax"},{"a":39480,"t":"code","b":[152],"m":"tya"},{"a":39481,"t":"code","b":[109,18,240],"m":"adc","o":"V1_PW_DELTA2_HI","oa":61458},{"a":39484,"t":"code","b":[168],"m":"tay"},{"a":39485,"t":"code","b":[206,41,240],"m":"dec","o":"V1_PW_LEFT2","oa":61481},{"a":39488,"t":"code","b":[76,88,154],"m":"jmp","o":"V1_WRITE_PULSE","oa":39512},{"a":39491,"l":"b_9A43","t":"code","b":[173,23,240],"m":"lda","o":"V1_PW_FLAGS","oa":61463,"x":[39473]},{"a":39494,"t":"code","b":[41,129],"m":"and","o":"#$81"},{"a":39496,"t":"code","b":[240,14],"m":"beq","o":"V1_WRITE_PULSE","oa":39512},{"a":39498,"t":"code","b":[16,6],"m":"bpl","o":"b_9A52","oa":39506},{"a":39500,"t":"code","b":[32,9,151],"m":"jsr","o":"V1_PULSE_RESET","oa":38665},{"a":39503,"t":"code","b":[76,25,154],"m":"jmp","o":"j_9A19","oa":39449},{"a":39506,"l":"b_9A52","t":"code","b":[32,21,151],"m":"jsr","o":"V1_PULSE_RELOAD","oa":38677,"x":[39498]},{"a":39509,"t":"code","b":[76,25,154],"m":"jmp","o":"j_9A19","oa":39449},{"a":39512,"l":"V1_WRITE_PULSE","c":"The pulse width to $F021/$F022 and $D402/$D403.","t":"code","b":[142,33,240],"m":"stx","o":"V1_PW_LO","oa":61473,"x":[39418,39428,39439,39467,39488,39496]},{"a":39515,"t":"code","b":[140,34,240],"m":"sty","o":"V1_PW_HI","oa":61474},{"a":39518,"t":"code","b":[142,2,212],"m":"stx","o":"sid_v1_pulse_lo"},{"a":39521,"t":"code","b":[140,3,212],"m":"sty","o":"sid_v1_pulse_hi"},{"a":39524,"l":"V1_GATE_TIMER","c":"Voice 1's note timing: while gate ticks $F01E remain, count them down, and at 0 clear the gate bit ($F01C AND $FE to $D404) so the release begins. After that count the release ticks $F01D down; at 0 clear $D400-$D406 and set bit 3 of $19. With $F01D at 0 the effects stop too ($9931).","t":"code","b":[173,30,240],"m":"lda","o":"V1_GATE_TICKS","oa":61470},{"a":39527,"t":"code","b":[208,20],"m":"bne","o":"b_9A7D","oa":39549},{"a":39529,"t":"code","b":[206,29,240],"m":"dec","o":"V1_RELEASE_TICKS","oa":61469},{"a":39532,"t":"code","b":[208,28],"m":"bne","o":"r_9A8A","oa":39562},{"a":39534,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":39536,"l":"b_9A70","t":"code","b":[157,0,212],"m":"sta","o":"sid_v1_freq_lo,x","x":[39540]},{"a":39539,"t":"code","b":[202],"m":"dex"},{"a":39540,"t":"code","b":[16,250],"m":"bpl","o":"b_9A70","oa":39536},{"a":39542,"t":"code","b":[169,8],"m":"lda","o":"#$08"},{"a":39544,"t":"code","b":[5,25],"m":"ora","o":"VOICE_FLAGS","oa":25},{"a":39546,"t":"code","b":[133,25],"m":"sta","o":"VOICE_FLAGS","oa":25},{"a":39548,"t":"code","b":[96],"m":"rts"},{"a":39549,"l":"b_9A7D","t":"code","b":[206,30,240],"m":"dec","o":"V1_GATE_TICKS","oa":61470,"x":[39527]},{"a":39552,"t":"code","b":[208,8],"m":"bne","o":"r_9A8A","oa":39562},{"a":39554,"t":"code","b":[173,28,240],"m":"lda","o":"V1_WAVEFORM","oa":61468},{"a":39557,"t":"code","b":[41,254],"m":"and","o":"#$FE"},{"a":39559,"t":"code","b":[141,4,212],"m":"sta","o":"sid_v1_control"},{"a":39562,"l":"r_9A8A","t":"code","b":[96],"m":"rts","x":[39532,39552]},{"a":39563,"l":"GAP_9A8B","c":"A zero byte between voice 1's code and voice 2's; nothing reads it.","t":"byte","b":[0]},{"a":39564,"l":"V2_TICK","c":"Voice 2, once a frame: the same as voice 1 ($979D) with bit 1 of $19, ticks $1B and place $12/$13. Voice 2 has a vibrato and no pulse sweep.","t":"code","b":[165,25],"m":"lda","o":"VOICE_FLAGS","oa":25,"x":[38555]},{"a":39566,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":39568,"t":"code","b":[240,4],"m":"beq","o":"b_9A96","oa":39574},{"a":39570,"t":"code","b":[198,27],"m":"dec","o":"V2_TICKS","oa":27},{"a":39572,"t":"code","b":[240,14],"m":"beq","o":"V2_READ_EVENT","oa":39588},{"a":39574,"l":"b_9A96","t":"code","b":[76,13,156],"m":"jmp","o":"V2_VIBRATO_EFFECT","oa":39949,"x":[39568]},{"a":39577,"l":"V2_SKIP_COMMAND","c":"Moves voice 2's place past a three-byte command, then reads the next event.","t":"code","b":[169,3],"m":"lda","o":"#$03","x":[39818,39905]},{"a":39579,"t":"code","b":[24],"m":"clc"},{"a":39580,"t":"code","b":[101,18],"m":"adc","o":"V2_STREAM","oa":18},{"a":39582,"t":"code","b":[133,18],"m":"sta","o":"V2_STREAM","oa":18},{"a":39584,"t":"code","b":[144,2],"m":"bcc","o":"V2_READ_EVENT","oa":39588},{"a":39586,"t":"code","b":[230,19],"m":"inc","o":"zpf_13","oa":19},{"a":39588,"l":"V2_READ_EVENT","c":"Reads voice 2's next event: a command goes through the handler table $9BEF into the JMP at $9AC3, with its two bytes in $16/$17; anything else is a note.","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[39572,39584,39802,39860]},{"a":39590,"t":"code","b":[177,18],"m":"lda","o":"(V2_STREAM),y","oa":18},{"a":39592,"t":"code","b":[16,28],"m":"bpl","o":"V2_NOTE","oa":39622},{"a":39594,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":39596,"t":"code","b":[170],"m":"tax"},{"a":39597,"t":"code","b":[189,239,155],"m":"lda","o":"V2_COMMANDS,x","oa":39919},{"a":39600,"t":"code","b":[141,196,154],"m":"sta","o":"V2_COMMAND_JUMP_LOW","oa":39620},{"a":39603,"t":"code","b":[189,240,155],"m":"lda","o":"V2_COMMANDS_HIGH,x","oa":39920},{"a":39606,"t":"code","b":[141,197,154],"m":"sta","o":"V2_COMMAND_JUMP_HIGH","oa":39621},{"a":39609,"t":"code","b":[200],"m":"iny"},{"a":39610,"t":"code","b":[177,18],"m":"lda","o":"(V2_STREAM),y","oa":18},{"a":39612,"t":"code","b":[133,22],"m":"sta","o":"COMMAND_POINTER","oa":22},{"a":39614,"t":"code","b":[200],"m":"iny"},{"a":39615,"t":"code","b":[177,18],"m":"lda","o":"(V2_STREAM),y","oa":18},{"a":39617,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":39619,"l":"V2_COMMAND_JUMP","c":"Jumps to the command's handler; $9AB0 and $9AB6 write the operand before every jump.","t":"code","b":[76,192,155],"m":"jmp","o":"V2_CMD_CALL","oa":39872},{"a":39620,"t":"note","l":"V2_COMMAND_JUMP_LOW","c":"Low byte of voice 2's JMP at $9AC3, written at $9AB0.","note":"inside the item at $9AC3","x":[39600]},{"a":39621,"t":"note","l":"V2_COMMAND_JUMP_HIGH","c":"High byte of voice 2's JMP at $9AC3, written at $9AB6.","note":"inside the item at $9AC3","x":[39606]},{"a":39622,"l":"V2_NOTE","c":"A note or rest on voice 2, as voice 1's ($97D8), with the transpose $9F9A and bit 1 of the enable mask $F081.","t":"code","b":[201,96],"m":"cmp","o":"#$60","x":[39592]},{"a":39624,"t":"code","b":[240,16],"m":"beq","o":"b_9ADA","oa":39642},{"a":39626,"t":"code","b":[201,95],"m":"cmp","o":"#$5F"},{"a":39628,"t":"code","b":[240,3],"m":"beq","o":"b_9AD1","oa":39633},{"a":39630,"t":"code","b":[109,154,159],"m":"adc","o":"V2_TRANSPOSE","oa":40858},{"a":39633,"l":"b_9AD1","t":"code","b":[133,24],"m":"sta","o":"NOTE_INDEX","oa":24,"x":[39628]},{"a":39635,"t":"code","b":[173,129,240],"m":"lda","o":"VOICE_ENABLE","oa":61569},{"a":39638,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":39640,"t":"code","b":[208,9],"m":"bne","o":"V2_START_NOTE","oa":39651},{"a":39642,"l":"b_9ADA","t":"code","b":[76,83,155],"m":"jmp","o":"V2_SET_LENGTH","oa":39763,"x":[39624,39649]},{"a":39645,"l":"V2_UNREACHED_CUT_TEST","c":"Never runs: a test of voice 2's cut bit (bit 4 of $19), skipped by the JMP before it like voice 1's at $97EE.","t":"code","b":[165,25],"m":"lda","o":"VOICE_FLAGS","oa":25},{"a":39647,"t":"code","b":[41,16],"m":"and","o":"#$10"},{"a":39649,"t":"code","b":[240,247],"m":"beq","o":"b_9ADA","oa":39642},{"a":39651,"l":"V2_START_NOTE","c":"Starts voice 2's note from its block at $9F47, as voice 1's does: filter from bytes $1F-$22, then gate off and waveform, attack/decay, sustain/release to $D40B-$D40D, $F047 keeping the waveform. The vibrato flags (byte $0E) go to $F039 and, when set, bytes $00-$0E to $F02B-$F039. The frequency goes to $D407/$D408 and $F045/$F046 and the vibrato starts ($9778); the base pulse width goes straight to $D409/$D40A, with no sweep; release and gate ticks to $F048/$F049.","t":"code","b":[160,34],"m":"ldy","o":"#$22","x":[39640]},{"a":39653,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":39655,"l":"b_9AE7","t":"code","b":[185,71,159],"m":"lda","o":"V2_BLOCK_VIBRATO,y","oa":40775,"x":[39672]},{"a":39658,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":39660,"t":"code","b":[208,5],"m":"bne","o":"b_9AF3","oa":39667},{"a":39662,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":39664,"t":"code","b":[13,130,240],"m":"ora","o":"VOLUME","oa":61570},{"a":39667,"l":"b_9AF3","t":"code","b":[157,21,212],"m":"sta","o":"sid_filter_cutoff_lo,x","x":[39660]},{"a":39670,"t":"code","b":[136],"m":"dey"},{"a":39671,"t":"code","b":[202],"m":"dex"},{"a":39672,"t":"code","b":[16,237],"m":"bpl","o":"b_9AE7","oa":39655},{"a":39674,"t":"code","b":[160,28],"m":"ldy","o":"#$1C"},{"a":39676,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":39678,"l":"b_9AFE","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[39691]},{"a":39680,"t":"code","b":[157,11,212],"m":"sta","o":"sid_v2_control,x"},{"a":39683,"t":"code","b":[185,71,159],"m":"lda","o":"V2_BLOCK_VIBRATO,y","oa":40775},{"a":39686,"t":"code","b":[157,11,212],"m":"sta","o":"sid_v2_control,x"},{"a":39689,"t":"code","b":[136],"m":"dey"},{"a":39690,"t":"code","b":[202],"m":"dex"},{"a":39691,"t":"code","b":[16,241],"m":"bpl","o":"b_9AFE","oa":39678},{"a":39693,"t":"code","b":[141,71,240],"m":"sta","o":"V2_WAVEFORM","oa":61511},{"a":39696,"t":"code","b":[173,85,159],"m":"lda","o":"V2_BLOCK_VIBRATO_FLAGS","oa":40789},{"a":39699,"t":"code","b":[141,57,240],"m":"sta","o":"V2_VIB_FLAGS","oa":61497},{"a":39702,"t":"code","b":[240,11],"m":"beq","o":"b_9B23","oa":39715},{"a":39704,"t":"code","b":[160,14],"m":"ldy","o":"#$0E"},{"a":39706,"l":"b_9B1A","t":"code","b":[185,71,159],"m":"lda","o":"V2_BLOCK_VIBRATO,y","oa":40775,"x":[39713]},{"a":39709,"t":"code","b":[153,43,240],"m":"sta","o":"V2_VIB_DELTA1_LO,y","oa":61483},{"a":39712,"t":"code","b":[136],"m":"dey"},{"a":39713,"t":"code","b":[16,247],"m":"bpl","o":"b_9B1A","oa":39706},{"a":39715,"l":"b_9B23","t":"code","b":[166,24],"m":"ldx","o":"NOTE_INDEX","oa":24,"x":[39702]},{"a":39717,"t":"code","b":[188,142,240],"m":"ldy","o":"FREQUENCY_HIGH,x","oa":61582},{"a":39720,"t":"code","b":[189,234,240],"m":"lda","o":"FREQUENCY_LOW,x","oa":61674},{"a":39723,"t":"code","b":[170],"m":"tax"},{"a":39724,"t":"code","b":[142,69,240],"m":"stx","o":"V2_BASE_FREQ_LO","oa":61509},{"a":39727,"t":"code","b":[140,70,240],"m":"sty","o":"V2_BASE_FREQ_HI","oa":61510},{"a":39730,"t":"code","b":[142,7,212],"m":"stx","o":"sid_v2_freq_lo"},{"a":39733,"t":"code","b":[140,8,212],"m":"sty","o":"sid_v2_freq_hi"},{"a":39736,"t":"code","b":[32,120,151],"m":"jsr","o":"V2_VIBRATO_START","oa":38776},{"a":39739,"t":"code","b":[174,95,159],"m":"ldx","o":"V2_BLOCK_WIDTH_LOW","oa":40799},{"a":39742,"t":"code","b":[172,96,159],"m":"ldy","o":"V2_BLOCK_WIDTH_HIGH","oa":40800},{"a":39745,"t":"code","b":[142,9,212],"m":"stx","o":"sid_v2_pulse_lo"},{"a":39748,"t":"code","b":[140,10,212],"m":"sty","o":"sid_v2_pulse_hi"},{"a":39751,"t":"code","b":[174,100,159],"m":"ldx","o":"V2_BLOCK_RELEASE_TICKS","oa":40804},{"a":39754,"t":"code","b":[172,101,159],"m":"ldy","o":"V2_BLOCK_GATE_TICKS","oa":40805},{"a":39757,"t":"code","b":[142,72,240],"m":"stx","o":"V2_RELEASE_TICKS","oa":61512},{"a":39760,"t":"code","b":[140,73,240],"m":"sty","o":"V2_GATE_TICKS","oa":61513},{"a":39763,"l":"V2_SET_LENGTH","c":"Voice 2's note length from its length values at $9F69 into $1B; the place moves on two bytes.","t":"code","b":[160,1],"m":"ldy","o":"#$01","x":[39642]},{"a":39765,"t":"code","b":[177,18],"m":"lda","o":"(V2_STREAM),y","oa":18},{"a":39767,"t":"code","b":[170],"m":"tax"},{"a":39768,"t":"code","b":[189,105,159],"m":"lda","o":"V2_BLOCK_MODE,x","oa":40809},{"a":39771,"t":"code","b":[133,27],"m":"sta","o":"V2_TICKS","oa":27},{"a":39773,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":39775,"t":"code","b":[24],"m":"clc"},{"a":39776,"t":"code","b":[101,18],"m":"adc","o":"V2_STREAM","oa":18},{"a":39778,"t":"code","b":[133,18],"m":"sta","o":"V2_STREAM","oa":18},{"a":39780,"t":"code","b":[144,2],"m":"bcc","o":"b_9B68","oa":39784},{"a":39782,"t":"code","b":[230,19],"m":"inc","o":"zpf_13","oa":19},{"a":39784,"l":"b_9B68","t":"code","b":[76,13,156],"m":"jmp","o":"V2_VIBRATO_EFFECT","oa":39949,"x":[39780]},{"a":39787,"l":"V2_CMD_RETURN","c":"Command $80 on voice 2: return, off the stream stack $9F7A/$9F8A (index $1E).","t":"code","b":[166,30],"m":"ldx","o":"V2_STACK_INDEX","oa":30},{"a":39789,"t":"code","b":[232],"m":"inx"},{"a":39790,"t":"code","b":[134,30],"m":"stx","o":"V2_STACK_INDEX","oa":30},{"a":39792,"t":"code","b":[189,122,159],"m":"lda","o":"V2_STACK_LOW,x","oa":40826},{"a":39795,"t":"code","b":[133,18],"m":"sta","o":"V2_STREAM","oa":18},{"a":39797,"t":"code","b":[189,138,159],"m":"lda","o":"V2_STACK_HIGH,x","oa":40842},{"a":39800,"t":"code","b":[133,19],"m":"sta","o":"zpf_13","oa":19},{"a":39802,"t":"code","b":[76,164,154],"m":"jmp","o":"V2_READ_EVENT","oa":39588},{"a":39805,"l":"V2_CMD_ENVELOPE","c":"Command $82 on voice 2: five bytes to block bytes $1A-$1E.","t":"code","b":[160,4],"m":"ldy","o":"#$04"},{"a":39807,"t":"code","b":[162,30],"m":"ldx","o":"#$1E"},{"a":39809,"l":"V2_COPY_SETTINGS","c":"Copies Y+1 bytes from the pointer into voice 2's block, the last to $9F47+X; then skips the command.","t":"code","b":[177,22],"m":"lda","o":"(COMMAND_POINTER),y","oa":22,"x":[39816,39825,39831,39837,39843]},{"a":39811,"t":"code","b":[157,71,159],"m":"sta","o":"V2_BLOCK_VIBRATO,x","oa":40775},{"a":39814,"t":"code","b":[202],"m":"dex"},{"a":39815,"t":"code","b":[136],"m":"dey"},{"a":39816,"t":"code","b":[16,247],"m":"bpl","o":"V2_COPY_SETTINGS","oa":39809},{"a":39818,"t":"code","b":[76,153,154],"m":"jmp","o":"V2_SKIP_COMMAND","oa":39577},{"a":39821,"l":"V2_CMD_INSTRUMENT","c":"Command $86 on voice 2: 35 bytes to block bytes $00-$22.","t":"code","b":[160,34],"m":"ldy","o":"#$22"},{"a":39823,"t":"code","b":[162,34],"m":"ldx","o":"#$22"},{"a":39825,"t":"code","b":[208,238],"m":"bne","o":"V2_COPY_SETTINGS","oa":39809},{"a":39827,"l":"V2_CMD_INSTRUMENT_AND_LENGTHS","c":"Command $92 on voice 2: 51 bytes to block bytes $00-$32, an instrument and the 16 length values together.","t":"code","b":[160,50],"m":"ldy","o":"#$32"},{"a":39829,"t":"code","b":[162,50],"m":"ldx","o":"#$32"},{"a":39831,"t":"code","b":[208,232],"m":"bne","o":"V2_COPY_SETTINGS","oa":39809},{"a":39833,"l":"V2_CMD_VIBRATO","c":"Command $88 on voice 2: 15 bytes to block bytes $00-$0E.","t":"code","b":[160,14],"m":"ldy","o":"#$0E"},{"a":39835,"t":"code","b":[162,14],"m":"ldx","o":"#$0E"},{"a":39837,"t":"code","b":[208,226],"m":"bne","o":"V2_COPY_SETTINGS","oa":39809},{"a":39839,"l":"V2_CMD_PULSE","c":"Command $8A on voice 2: 11 bytes to block bytes $0F-$19. The tune never uses it, and voice 2 has no sweep to use them.","t":"code","b":[160,10],"m":"ldy","o":"#$0A"},{"a":39841,"t":"code","b":[162,25],"m":"ldx","o":"#$19"},{"a":39843,"t":"code","b":[208,220],"m":"bne","o":"V2_COPY_SETTINGS","oa":39809},{"a":39845,"l":"V2_CMD_JUMP_TRANSPOSED","c":"Command $9A on voice 2: the fourth byte becomes the transpose $9F9A, then the jump below.","t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":39847,"t":"code","b":[177,18],"m":"lda","o":"(V2_STREAM),y","oa":18},{"a":39849,"t":"code","b":[141,154,159],"m":"sta","o":"V2_TRANSPOSE","oa":40858},{"a":39852,"l":"V2_CMD_JUMP","c":"Command $8E on voice 2: carry on at the pointer.","t":"code","b":[166,22],"m":"ldx","o":"COMMAND_POINTER","oa":22,"x":[39891]},{"a":39854,"t":"code","b":[134,18],"m":"stx","o":"V2_STREAM","oa":18},{"a":39856,"t":"code","b":[166,23],"m":"ldx","o":"zpa_17","oa":23},{"a":39858,"t":"code","b":[134,19],"m":"stx","o":"zpf_13","oa":19},{"a":39860,"t":"code","b":[76,164,154],"m":"jmp","o":"V2_READ_EVENT","oa":39588},{"a":39863,"l":"V2_CMD_MACHINE_CODE","c":"Command $9C on voice 2: pushes $9A98 and jumps to the pointer; the routine's RTS lands on $9A99, past the command.","t":"code","b":[169,154],"m":"lda","o":"#$9A"},{"a":39865,"t":"code","b":[72],"m":"pha"},{"a":39866,"t":"code","b":[169,152],"m":"lda","o":"#$98"},{"a":39868,"t":"code","b":[72],"m":"pha"},{"a":39869,"t":"code","b":[108,22,0],"m":"jmp","o":"(COMMAND_POINTER)","oa":22},{"a":39872,"l":"V2_CMD_CALL","c":"Command $90 on voice 2: push the place past the command (A = 3, or 4 from $9BE4) on the stream stack and carry on at the pointer.","t":"code","b":[169,3],"m":"lda","o":"#$03","x":[39619]},{"a":39874,"l":"b_9BC2","t":"code","b":[166,30],"m":"ldx","o":"V2_STACK_INDEX","oa":30,"x":[39917]},{"a":39876,"t":"code","b":[24],"m":"clc"},{"a":39877,"t":"code","b":[101,18],"m":"adc","o":"V2_STREAM","oa":18},{"a":39879,"t":"code","b":[157,122,159],"m":"sta","o":"V2_STACK_LOW,x","oa":40826},{"a":39882,"t":"code","b":[165,19],"m":"lda","o":"zpf_13","oa":19},{"a":39884,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":39886,"t":"code","b":[157,138,159],"m":"sta","o":"V2_STACK_HIGH,x","oa":40842},{"a":39889,"t":"code","b":[198,30],"m":"dec","o":"V2_STACK_INDEX","oa":30},{"a":39891,"t":"code","b":[76,172,155],"m":"jmp","o":"V2_CMD_JUMP","oa":39852},{"a":39894,"l":"V2_CMD_POKE","c":"Command $98 on voice 2: the third byte into voice 2's block at the offset in the second.","t":"code","b":[160,1],"m":"ldy","o":"#$01"},{"a":39896,"t":"code","b":[177,18],"m":"lda","o":"(V2_STREAM),y","oa":18},{"a":39898,"t":"code","b":[170],"m":"tax"},{"a":39899,"t":"code","b":[200],"m":"iny"},{"a":39900,"t":"code","b":[177,18],"m":"lda","o":"(V2_STREAM),y","oa":18},{"a":39902,"t":"code","b":[157,71,159],"m":"sta","o":"V2_BLOCK_VIBRATO,x","oa":40775},{"a":39905,"t":"code","b":[76,153,154],"m":"jmp","o":"V2_SKIP_COMMAND","oa":39577},{"a":39908,"l":"V2_CMD_CALL_TRANSPOSED","c":"Command $96 on voice 2: the fourth byte becomes the transpose $9F9A, then the call with 4 as the command's length. Voice 2 plays its broken chords this way, four eight-note patterns ($F562, $F579, $F58D, $F59E) each at many pitches, and the four-note $F692 of its closing chords.","t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":39910,"t":"code","b":[177,18],"m":"lda","o":"(V2_STREAM),y","oa":18},{"a":39912,"t":"code","b":[141,154,159],"m":"sta","o":"V2_TRANSPOSE","oa":40858},{"a":39915,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":39917,"t":"code","b":[208,211],"m":"bne","o":"b_9BC2","oa":39874},{"a":39919,"l":"V2_COMMANDS","c":"Voice 2's command handlers for $80-$9C, low byte first: return, envelope, stop, instrument, vibrato, pulse, stop, jump, call, instrument and lengths, stop, transposed call, poke, transposed jump, machine code. $9AAD reads the low bytes through $9BEF,X.","t":"word","b":[107,155,125,155,161,150,141,155],"d":[39787,39805,38561,39821],"x":[39597]},{"a":39920,"t":"note","l":"V2_COMMANDS_HIGH","c":"Voice 2's handler table one byte on, for the high bytes ($9AB3).","note":"inside the item at $9BEF","x":[39603]},{"a":39927,"t":"word","b":[153,155,159,155,161,150,172,155],"d":[39833,39839,38561,39852]},{"a":39935,"t":"word","b":[192,155,147,155,161,150,228,155],"d":[39872,39827,38561,39908]},{"a":39943,"t":"word","b":[214,155,165,155,183,155],"d":[39894,39845,39863]},{"a":39949,"l":"V2_VIBRATO_EFFECT","c":"Voice 2's vibrato, the same as voice 1's ($9931) on its own state: setting $F02B-$F039, counters $F04E-$F052, current frequency $F04A/$F04B, written to $D407/$D408.","t":"code","b":[174,72,240],"m":"ldx","o":"V2_RELEASE_TICKS","oa":61512,"x":[39574,39784]},{"a":39952,"t":"code","b":[208,1],"m":"bne","o":"b_9C13","oa":39955},{"a":39954,"t":"code","b":[96],"m":"rts"},{"a":39955,"l":"b_9C13","t":"code","b":[216],"m":"cld","x":[39952]},{"a":39956,"t":"code","b":[24],"m":"clc"},{"a":39957,"t":"code","b":[174,74,240],"m":"ldx","o":"V2_FREQ_LO","oa":61514},{"a":39960,"t":"code","b":[172,75,240],"m":"ldy","o":"V2_FREQ_HI","oa":61515},{"a":39963,"t":"code","b":[173,57,240],"m":"lda","o":"V2_VIB_FLAGS","oa":61497},{"a":39966,"t":"code","b":[41,4],"m":"and","o":"#$04"},{"a":39968,"t":"code","b":[240,32],"m":"beq","o":"b_9C42","oa":40002},{"a":39970,"t":"code","b":[152],"m":"tya"},{"a":39971,"t":"code","b":[134,24],"m":"stx","o":"NOTE_INDEX","oa":24},{"a":39973,"t":"code","b":[5,24],"m":"ora","o":"NOTE_INDEX","oa":24},{"a":39975,"t":"code","b":[240,25],"m":"beq","o":"b_9C42","oa":40002},{"a":39977,"t":"code","b":[173,55,240],"m":"lda","o":"V2_VIB_DELAY","oa":61495},{"a":39980,"t":"code","b":[240,23],"m":"beq","o":"b_9C45","oa":40005},{"a":39982,"t":"code","b":[206,55,240],"m":"dec","o":"V2_VIB_DELAY","oa":61495},{"a":39985,"t":"code","b":[173,57,240],"m":"lda","o":"V2_VIB_FLAGS","oa":61497},{"a":39988,"t":"code","b":[41,2],"m":"and","o":"#$02"},{"a":39990,"t":"code","b":[240,10],"m":"beq","o":"b_9C42","oa":40002},{"a":39992,"t":"code","b":[138],"m":"txa"},{"a":39993,"t":"code","b":[109,49,240],"m":"adc","o":"V2_VIB_DELTA4_LO","oa":61489},{"a":39996,"t":"code","b":[170],"m":"tax"},{"a":39997,"t":"code","b":[152],"m":"tya"},{"a":39998,"t":"code","b":[109,50,240],"m":"adc","o":"V2_VIB_DELTA4_HI","oa":61490},{"a":40001,"t":"code","b":[168],"m":"tay"},{"a":40002,"l":"b_9C42","t":"code","b":[76,191,156],"m":"jmp","o":"V2_WRITE_FREQUENCY","oa":40127,"x":[39968,39975,39990]},{"a":40005,"l":"b_9C45","t":"code","b":[173,82,240],"m":"lda","o":"V2_VIB_TIMER","oa":61522,"x":[39980]},{"a":40008,"t":"code","b":[240,6],"m":"beq","o":"b_9C50","oa":40016},{"a":40010,"t":"code","b":[206,82,240],"m":"dec","o":"V2_VIB_TIMER","oa":61522},{"a":40013,"t":"code","b":[76,191,156],"m":"jmp","o":"V2_WRITE_FREQUENCY","oa":40127},{"a":40016,"l":"b_9C50","t":"code","b":[173,56,240],"m":"lda","o":"V2_VIB_PERIOD","oa":61496,"x":[40008]},{"a":40019,"t":"code","b":[141,82,240],"m":"sta","o":"V2_VIB_TIMER","oa":61522},{"a":40022,"l":"j_9C56","t":"code","b":[173,78,240],"m":"lda","o":"V2_VIB_LEFT1","oa":61518,"x":[40118,40124]},{"a":40025,"t":"code","b":[240,16],"m":"beq","o":"b_9C6B","oa":40043},{"a":40027,"t":"code","b":[138],"m":"txa"},{"a":40028,"t":"code","b":[109,43,240],"m":"adc","o":"V2_VIB_DELTA1_LO","oa":61483},{"a":40031,"t":"code","b":[170],"m":"tax"},{"a":40032,"t":"code","b":[152],"m":"tya"},{"a":40033,"t":"code","b":[109,44,240],"m":"adc","o":"V2_VIB_DELTA1_HI","oa":61484},{"a":40036,"t":"code","b":[168],"m":"tay"},{"a":40037,"t":"code","b":[206,78,240],"m":"dec","o":"V2_VIB_LEFT1","oa":61518},{"a":40040,"t":"code","b":[76,191,156],"m":"jmp","o":"V2_WRITE_FREQUENCY","oa":40127},{"a":40043,"l":"b_9C6B","t":"code","b":[173,79,240],"m":"lda","o":"V2_VIB_LEFT2","oa":61519,"x":[40025]},{"a":40046,"t":"code","b":[240,16],"m":"beq","o":"b_9C80","oa":40064},{"a":40048,"t":"code","b":[138],"m":"txa"},{"a":40049,"t":"code","b":[109,45,240],"m":"adc","o":"V2_VIB_DELTA2_LO","oa":61485},{"a":40052,"t":"code","b":[170],"m":"tax"},{"a":40053,"t":"code","b":[152],"m":"tya"},{"a":40054,"t":"code","b":[109,46,240],"m":"adc","o":"V2_VIB_DELTA2_HI","oa":61486},{"a":40057,"t":"code","b":[168],"m":"tay"},{"a":40058,"t":"code","b":[206,79,240],"m":"dec","o":"V2_VIB_LEFT2","oa":61519},{"a":40061,"t":"code","b":[76,191,156],"m":"jmp","o":"V2_WRITE_FREQUENCY","oa":40127},{"a":40064,"l":"b_9C80","t":"code","b":[173,80,240],"m":"lda","o":"V2_VIB_LEFT3","oa":61520,"x":[40046]},{"a":40067,"t":"code","b":[240,16],"m":"beq","o":"b_9C95","oa":40085},{"a":40069,"t":"code","b":[138],"m":"txa"},{"a":40070,"t":"code","b":[109,47,240],"m":"adc","o":"V2_VIB_DELTA3_LO","oa":61487},{"a":40073,"t":"code","b":[170],"m":"tax"},{"a":40074,"t":"code","b":[152],"m":"tya"},{"a":40075,"t":"code","b":[109,48,240],"m":"adc","o":"V2_VIB_DELTA3_HI","oa":61488},{"a":40078,"t":"code","b":[168],"m":"tay"},{"a":40079,"t":"code","b":[206,80,240],"m":"dec","o":"V2_VIB_LEFT3","oa":61520},{"a":40082,"t":"code","b":[76,191,156],"m":"jmp","o":"V2_WRITE_FREQUENCY","oa":40127},{"a":40085,"l":"b_9C95","t":"code","b":[173,81,240],"m":"lda","o":"V2_VIB_LEFT4","oa":61521,"x":[40067]},{"a":40088,"t":"code","b":[240,16],"m":"beq","o":"b_9CAA","oa":40106},{"a":40090,"t":"code","b":[138],"m":"txa"},{"a":40091,"t":"code","b":[109,49,240],"m":"adc","o":"V2_VIB_DELTA4_LO","oa":61489},{"a":40094,"t":"code","b":[170],"m":"tax"},{"a":40095,"t":"code","b":[152],"m":"tya"},{"a":40096,"t":"code","b":[109,50,240],"m":"adc","o":"V2_VIB_DELTA4_HI","oa":61490},{"a":40099,"t":"code","b":[168],"m":"tay"},{"a":40100,"t":"code","b":[206,81,240],"m":"dec","o":"V2_VIB_LEFT4","oa":61521},{"a":40103,"t":"code","b":[76,191,156],"m":"jmp","o":"V2_WRITE_FREQUENCY","oa":40127},{"a":40106,"l":"b_9CAA","t":"code","b":[173,57,240],"m":"lda","o":"V2_VIB_FLAGS","oa":61497,"x":[40088]},{"a":40109,"t":"code","b":[41,129],"m":"and","o":"#$81"},{"a":40111,"t":"code","b":[240,14],"m":"beq","o":"V2_WRITE_FREQUENCY","oa":40127},{"a":40113,"t":"code","b":[16,6],"m":"bpl","o":"b_9CB9","oa":40121},{"a":40115,"t":"code","b":[32,114,151],"m":"jsr","o":"V2_VIBRATO_RESET","oa":38770},{"a":40118,"t":"code","b":[76,86,156],"m":"jmp","o":"j_9C56","oa":40022},{"a":40121,"l":"b_9CB9","t":"code","b":[32,126,151],"m":"jsr","o":"V2_VIBRATO_RELOAD","oa":38782,"x":[40113]},{"a":40124,"t":"code","b":[76,86,156],"m":"jmp","o":"j_9C56","oa":40022},{"a":40127,"l":"V2_WRITE_FREQUENCY","c":"The frequency to $D407/$D408 and $F04A/$F04B.","t":"code","b":[142,7,212],"m":"stx","o":"sid_v2_freq_lo","x":[40002,40013,40040,40061,40082,40103,40111]},{"a":40130,"t":"code","b":[140,8,212],"m":"sty","o":"sid_v2_freq_hi"},{"a":40133,"t":"code","b":[142,74,240],"m":"stx","o":"V2_FREQ_LO","oa":61514},{"a":40136,"t":"code","b":[140,75,240],"m":"sty","o":"V2_FREQ_HI","oa":61515},{"a":40139,"l":"V2_GATE_TIMER","c":"Voice 2's note timing, as voice 1's ($9A64): gate ticks $F049, then release ticks $F048; at the end $D407-$D40D are cleared and bit 4 of $19 set.","t":"code","b":[173,73,240],"m":"lda","o":"V2_GATE_TICKS","oa":61513},{"a":40142,"t":"code","b":[208,20],"m":"bne","o":"b_9CE4","oa":40164},{"a":40144,"t":"code","b":[206,72,240],"m":"dec","o":"V2_RELEASE_TICKS","oa":61512},{"a":40147,"t":"code","b":[208,28],"m":"bne","o":"r_9CF1","oa":40177},{"a":40149,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":40151,"l":"b_9CD7","t":"code","b":[157,7,212],"m":"sta","o":"sid_v2_freq_lo,x","x":[40155]},{"a":40154,"t":"code","b":[202],"m":"dex"},{"a":40155,"t":"code","b":[16,250],"m":"bpl","o":"b_9CD7","oa":40151},{"a":40157,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":40159,"t":"code","b":[5,25],"m":"ora","o":"VOICE_FLAGS","oa":25},{"a":40161,"t":"code","b":[133,25],"m":"sta","o":"VOICE_FLAGS","oa":25},{"a":40163,"t":"code","b":[96],"m":"rts"},{"a":40164,"l":"b_9CE4","t":"code","b":[206,73,240],"m":"dec","o":"V2_GATE_TICKS","oa":61513,"x":[40142]},{"a":40167,"t":"code","b":[208,8],"m":"bne","o":"r_9CF1","oa":40177},{"a":40169,"t":"code","b":[173,71,240],"m":"lda","o":"V2_WAVEFORM","oa":61511},{"a":40172,"t":"code","b":[41,254],"m":"and","o":"#$FE"},{"a":40174,"t":"code","b":[141,11,212],"m":"sta","o":"sid_v2_control"},{"a":40177,"l":"r_9CF1","t":"code","b":[96],"m":"rts","x":[40147,40167]},{"a":40178,"l":"V3_TICK","c":"Voice 3, once a frame: as voice 1, with bit 2 of $19, ticks $1C and place $14/$15. Voice 3 has a pulse sweep and no vibrato.","t":"code","b":[165,25],"m":"lda","o":"VOICE_FLAGS","oa":25,"x":[38558]},{"a":40180,"t":"code","b":[41,4],"m":"and","o":"#$04"},{"a":40182,"t":"code","b":[240,4],"m":"beq","o":"b_9CFC","oa":40188},{"a":40184,"t":"code","b":[198,28],"m":"dec","o":"V3_TICKS","oa":28},{"a":40186,"t":"code","b":[240,14],"m":"beq","o":"V3_READ_EVENT","oa":40202},{"a":40188,"l":"b_9CFC","t":"code","b":[76,77,158],"m":"jmp","o":"V3_PULSE_EFFECT","oa":40525,"x":[40182,40394]},{"a":40191,"l":"V3_SKIP_COMMAND","c":"Moves voice 3's place past a three-byte command, then reads the next event.","t":"code","b":[169,3],"m":"lda","o":"#$03","x":[40428]},{"a":40193,"t":"code","b":[24],"m":"clc"},{"a":40194,"t":"code","b":[101,20],"m":"adc","o":"V3_STREAM","oa":20},{"a":40196,"t":"code","b":[133,20],"m":"sta","o":"V3_STREAM","oa":20},{"a":40198,"t":"code","b":[144,2],"m":"bcc","o":"V3_READ_EVENT","oa":40202},{"a":40200,"t":"code","b":[230,21],"m":"inc","o":"zpa_15","oa":21},{"a":40202,"l":"V3_READ_EVENT","c":"Reads voice 3's next event: a command goes through the handler table $9E31 into the JMP at $9D2C, with its two bytes in $16/$17 and its index in $20; anything else is a note.","t":"code","b":[160,0],"m":"ldy","o":"#$00","x":[40186,40198,40412,40452]},{"a":40204,"t":"code","b":[177,20],"m":"lda","o":"(V3_STREAM),y","oa":20},{"a":40206,"t":"code","b":[170],"m":"tax"},{"a":40207,"t":"code","b":[16,30],"m":"bpl","o":"V3_NOTE","oa":40239},{"a":40209,"t":"code","b":[41,127],"m":"and","o":"#$7F"},{"a":40211,"t":"code","b":[170],"m":"tax"},{"a":40212,"t":"code","b":[134,32],"m":"stx","o":"LAST_COMMAND","oa":32},{"a":40214,"t":"code","b":[189,49,158],"m":"lda","o":"V3_COMMANDS,x","oa":40497},{"a":40217,"t":"code","b":[141,45,157],"m":"sta","o":"V3_COMMAND_JUMP_LOW","oa":40237},{"a":40220,"t":"code","b":[189,50,158],"m":"lda","o":"V3_COMMANDS_HIGH,x","oa":40498},{"a":40223,"t":"code","b":[141,46,157],"m":"sta","o":"V3_COMMAND_JUMP_HIGH","oa":40238},{"a":40226,"t":"code","b":[200],"m":"iny"},{"a":40227,"t":"code","b":[177,20],"m":"lda","o":"(V3_STREAM),y","oa":20},{"a":40229,"t":"code","b":[133,22],"m":"sta","o":"COMMAND_POINTER","oa":22},{"a":40231,"t":"code","b":[200],"m":"iny"},{"a":40232,"t":"code","b":[177,20],"m":"lda","o":"(V3_STREAM),y","oa":20},{"a":40234,"t":"code","b":[133,23],"m":"sta","o":"zpa_17","oa":23},{"a":40236,"l":"V3_COMMAND_JUMP","c":"Jumps to the command's handler; $9D19 and $9D1F write the operand before every jump.","t":"code","b":[76,205,157],"m":"jmp","o":"V3_CMD_RETURN","oa":40397},{"a":40237,"t":"note","l":"V3_COMMAND_JUMP_LOW","c":"Low byte of voice 3's JMP at $9D2C, written at $9D19.","note":"inside the item at $9D2C","x":[40217]},{"a":40238,"t":"note","l":"V3_COMMAND_JUMP_HIGH","c":"High byte of voice 3's JMP at $9D2C, written at $9D1F.","note":"inside the item at $9D2C","x":[40223]},{"a":40239,"l":"V3_NOTE","c":"A note or rest on voice 3, as voice 1's, with the transpose $9FEE and bit 2 of the enable mask $F081.","t":"code","b":[201,96],"m":"cmp","o":"#$60","x":[40207]},{"a":40241,"t":"code","b":[240,16],"m":"beq","o":"b_9D43","oa":40259},{"a":40243,"t":"code","b":[201,95],"m":"cmp","o":"#$5F"},{"a":40245,"t":"code","b":[240,3],"m":"beq","o":"b_9D3A","oa":40250},{"a":40247,"t":"code","b":[109,238,159],"m":"adc","o":"V3_TRANSPOSE","oa":40942},{"a":40250,"l":"b_9D3A","t":"code","b":[133,24],"m":"sta","o":"NOTE_INDEX","oa":24,"x":[40245]},{"a":40252,"t":"code","b":[173,129,240],"m":"lda","o":"VOICE_ENABLE","oa":61569},{"a":40255,"t":"code","b":[41,4],"m":"and","o":"#$04"},{"a":40257,"t":"code","b":[208,9],"m":"bne","o":"V3_START_NOTE","oa":40268},{"a":40259,"l":"b_9D43","t":"code","b":[76,181,157],"m":"jmp","o":"V3_SET_LENGTH","oa":40373,"x":[40241,40266]},{"a":40262,"l":"V3_UNREACHED_CUT_TEST","c":"Never runs: a test of voice 3's cut bit (bit 5 of $19), skipped like voice 1's at $97EE.","t":"code","b":[165,25],"m":"lda","o":"VOICE_FLAGS","oa":25},{"a":40264,"t":"code","b":[41,32],"m":"and","o":"#$20"},{"a":40266,"t":"code","b":[240,247],"m":"beq","o":"b_9D43","oa":40259},{"a":40268,"l":"V3_START_NOTE","c":"Starts voice 3's note from its block at $9F9B: filter from bytes $1F-$22, gate off and waveform, attack/decay, sustain/release to $D412-$D414 ($F072 keeps the waveform). The pulse flags (byte $17) go to $F06D and, when set, bytes $0F-$19 to $F065-$F06F. The frequency goes straight to $D40E/$D40F, with no vibrato; the base pulse width to $D410/$D411 and the sweep starts ($972E); release and gate ticks to $F073/$F074.","t":"code","b":[160,34],"m":"ldy","o":"#$22","x":[40257]},{"a":40270,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":40272,"l":"b_9D50","t":"code","b":[185,155,159],"m":"lda","o":"V3_BLOCK_VIBRATO,y","oa":40859,"x":[40289]},{"a":40275,"t":"code","b":[224,3],"m":"cpx","o":"#$03"},{"a":40277,"t":"code","b":[208,5],"m":"bne","o":"b_9D5C","oa":40284},{"a":40279,"t":"code","b":[41,240],"m":"and","o":"#$F0"},{"a":40281,"t":"code","b":[13,130,240],"m":"ora","o":"VOLUME","oa":61570},{"a":40284,"l":"b_9D5C","t":"code","b":[157,21,212],"m":"sta","o":"sid_filter_cutoff_lo,x","x":[40277]},{"a":40287,"t":"code","b":[136],"m":"dey"},{"a":40288,"t":"code","b":[202],"m":"dex"},{"a":40289,"t":"code","b":[16,237],"m":"bpl","o":"b_9D50","oa":40272},{"a":40291,"t":"code","b":[160,28],"m":"ldy","o":"#$1C"},{"a":40293,"t":"code","b":[162,2],"m":"ldx","o":"#$02"},{"a":40295,"l":"b_9D67","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[40308]},{"a":40297,"t":"code","b":[157,18,212],"m":"sta","o":"sid_v3_control,x"},{"a":40300,"t":"code","b":[185,155,159],"m":"lda","o":"V3_BLOCK_VIBRATO,y","oa":40859},{"a":40303,"t":"code","b":[157,18,212],"m":"sta","o":"sid_v3_control,x"},{"a":40306,"t":"code","b":[136],"m":"dey"},{"a":40307,"t":"code","b":[202],"m":"dex"},{"a":40308,"t":"code","b":[16,241],"m":"bpl","o":"b_9D67","oa":40295},{"a":40310,"t":"code","b":[141,114,240],"m":"sta","o":"V3_WAVEFORM","oa":61554},{"a":40313,"t":"code","b":[173,178,159],"m":"lda","o":"V3_BLOCK_PULSE_FLAGS","oa":40882},{"a":40316,"t":"code","b":[141,109,240],"m":"sta","o":"V3_PW_FLAGS","oa":61549},{"a":40319,"t":"code","b":[240,11],"m":"beq","o":"b_9D8C","oa":40332},{"a":40321,"t":"code","b":[160,10],"m":"ldy","o":"#$0A"},{"a":40323,"l":"b_9D83","t":"code","b":[185,170,159],"m":"lda","o":"V3_BLOCK_PULSE,y","oa":40874,"x":[40330]},{"a":40326,"t":"code","b":[153,101,240],"m":"sta","o":"V3_PW_DELTA1_LO,y","oa":61541},{"a":40329,"t":"code","b":[136],"m":"dey"},{"a":40330,"t":"code","b":[16,247],"m":"bpl","o":"b_9D83","oa":40323},{"a":40332,"l":"b_9D8C","t":"code","b":[166,24],"m":"ldx","o":"NOTE_INDEX","oa":24,"x":[40319]},{"a":40334,"t":"code","b":[188,142,240],"m":"ldy","o":"FREQUENCY_HIGH,x","oa":61582},{"a":40337,"t":"code","b":[189,234,240],"m":"lda","o":"FREQUENCY_LOW,x","oa":61674},{"a":40340,"t":"code","b":[141,14,212],"m":"sta","o":"sid_v3_freq_lo"},{"a":40343,"t":"code","b":[140,15,212],"m":"sty","o":"sid_v3_freq_hi"},{"a":40346,"t":"code","b":[174,179,159],"m":"ldx","o":"V3_BLOCK_WIDTH_LOW","oa":40883},{"a":40349,"t":"code","b":[172,180,159],"m":"ldy","o":"V3_BLOCK_WIDTH_HIGH","oa":40884},{"a":40352,"t":"code","b":[142,16,212],"m":"stx","o":"sid_v3_pulse_lo"},{"a":40355,"t":"code","b":[140,17,212],"m":"sty","o":"sid_v3_pulse_hi"},{"a":40358,"t":"code","b":[32,46,151],"m":"jsr","o":"V3_PULSE_START","oa":38702},{"a":40361,"t":"code","b":[174,184,159],"m":"ldx","o":"V3_BLOCK_RELEASE_TICKS","oa":40888},{"a":40364,"t":"code","b":[172,185,159],"m":"ldy","o":"V3_BLOCK_GATE_TICKS","oa":40889},{"a":40367,"t":"code","b":[142,115,240],"m":"stx","o":"V3_RELEASE_TICKS","oa":61555},{"a":40370,"t":"code","b":[140,116,240],"m":"sty","o":"V3_GATE_TICKS","oa":61556},{"a":40373,"l":"V3_SET_LENGTH","c":"Voice 3's note length from its length values at $9FBD into $1C; the place moves on two bytes.","t":"code","b":[160,1],"m":"ldy","o":"#$01","x":[40259]},{"a":40375,"t":"code","b":[177,20],"m":"lda","o":"(V3_STREAM),y","oa":20},{"a":40377,"t":"code","b":[170],"m":"tax"},{"a":40378,"t":"code","b":[189,189,159],"m":"lda","o":"V3_BLOCK_MODE,x","oa":40893},{"a":40381,"t":"code","b":[133,28],"m":"sta","o":"V3_TICKS","oa":28},{"a":40383,"t":"code","b":[169,2],"m":"lda","o":"#$02"},{"a":40385,"t":"code","b":[24],"m":"clc"},{"a":40386,"t":"code","b":[101,20],"m":"adc","o":"V3_STREAM","oa":20},{"a":40388,"t":"code","b":[133,20],"m":"sta","o":"V3_STREAM","oa":20},{"a":40390,"t":"code","b":[144,2],"m":"bcc","o":"b_9DCA","oa":40394},{"a":40392,"t":"code","b":[230,21],"m":"inc","o":"zpa_15","oa":21},{"a":40394,"l":"b_9DCA","t":"code","b":[76,252,156],"m":"jmp","o":"b_9CFC","oa":40188,"x":[40390]},{"a":40397,"l":"V3_CMD_RETURN","c":"Command $80 on voice 3: return, off the stream stack $9FCE/$9FDE (index $1F).","t":"code","b":[166,31],"m":"ldx","o":"V3_STACK_INDEX","oa":31,"x":[40236]},{"a":40399,"t":"code","b":[232],"m":"inx"},{"a":40400,"t":"code","b":[134,31],"m":"stx","o":"V3_STACK_INDEX","oa":31},{"a":40402,"t":"code","b":[189,206,159],"m":"lda","o":"V3_STACK_LOW,x","oa":40910},{"a":40405,"t":"code","b":[133,20],"m":"sta","o":"V3_STREAM","oa":20},{"a":40407,"t":"code","b":[189,222,159],"m":"lda","o":"V3_STACK_HIGH,x","oa":40926},{"a":40410,"t":"code","b":[133,21],"m":"sta","o":"zpa_15","oa":21},{"a":40412,"t":"code","b":[76,10,157],"m":"jmp","o":"V3_READ_EVENT","oa":40202},{"a":40415,"l":"V3_CMD_INSTRUMENT","c":"Command $86 on voice 3: 35 bytes to block bytes $00-$22.","t":"code","b":[160,34],"m":"ldy","o":"#$22"},{"a":40417,"t":"code","b":[162,34],"m":"ldx","o":"#$22"},{"a":40419,"l":"V3_COPY_SETTINGS","c":"Copies Y+1 bytes from the pointer into voice 3's block, the last to $9F9B+X; then skips the command.","t":"code","b":[177,22],"m":"lda","o":"(COMMAND_POINTER),y","oa":22,"x":[40426,40435]},{"a":40421,"t":"code","b":[157,155,159],"m":"sta","o":"V3_BLOCK_VIBRATO,x","oa":40859},{"a":40424,"t":"code","b":[202],"m":"dex"},{"a":40425,"t":"code","b":[136],"m":"dey"},{"a":40426,"t":"code","b":[16,247],"m":"bpl","o":"V3_COPY_SETTINGS","oa":40419},{"a":40428,"t":"code","b":[76,255,156],"m":"jmp","o":"V3_SKIP_COMMAND","oa":40191},{"a":40431,"l":"V3_CMD_LENGTHS","c":"Command $8C on voice 3: 16 bytes to block bytes $23-$32.","t":"code","b":[160,15],"m":"ldy","o":"#$0F"},{"a":40433,"t":"code","b":[162,50],"m":"ldx","o":"#$32"},{"a":40435,"t":"code","b":[208,238],"m":"bne","o":"V3_COPY_SETTINGS","oa":40419},{"a":40437,"l":"V3_CMD_JUMP_TRANSPOSED","c":"Command $9A on voice 3: the fourth byte becomes the transpose $9FEE, then the jump below.","t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":40439,"t":"code","b":[177,20],"m":"lda","o":"(V3_STREAM),y","oa":20},{"a":40441,"t":"code","b":[141,238,159],"m":"sta","o":"V3_TRANSPOSE","oa":40942},{"a":40444,"l":"V3_CMD_JUMP","c":"Command $8E on voice 3: carry on at the pointer.","t":"code","b":[166,22],"m":"ldx","o":"COMMAND_POINTER","oa":22,"x":[40483]},{"a":40446,"t":"code","b":[134,20],"m":"stx","o":"V3_STREAM","oa":20},{"a":40448,"t":"code","b":[166,23],"m":"ldx","o":"zpa_17","oa":23},{"a":40450,"t":"code","b":[134,21],"m":"stx","o":"zpa_15","oa":21},{"a":40452,"t":"code","b":[76,10,157],"m":"jmp","o":"V3_READ_EVENT","oa":40202},{"a":40455,"l":"V3_UNREACHED_MACHINE_CODE","c":"Never runs: the machine-code command (push $9CFE, JMP ($0016)), which voice 3's handler table, ending at $9A, does not reach.","t":"code","b":[169,156],"m":"lda","o":"#$9C"},{"a":40457,"t":"code","b":[72],"m":"pha"},{"a":40458,"t":"code","b":[169,254],"m":"lda","o":"#$FE"},{"a":40460,"t":"code","b":[72],"m":"pha"},{"a":40461,"t":"code","b":[108,22,0],"m":"jmp","o":"(COMMAND_POINTER)","oa":22},{"a":40464,"l":"V3_CMD_CALL","c":"Command $90 on voice 3: push the place past the command (A = 3, or 4 from $9E26) on the stream stack and carry on at the pointer.","t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":40466,"l":"b_9E12","t":"code","b":[166,31],"m":"ldx","o":"V3_STACK_INDEX","oa":31,"x":[40495]},{"a":40468,"t":"code","b":[24],"m":"clc"},{"a":40469,"t":"code","b":[101,20],"m":"adc","o":"V3_STREAM","oa":20},{"a":40471,"t":"code","b":[157,206,159],"m":"sta","o":"V3_STACK_LOW,x","oa":40910},{"a":40474,"t":"code","b":[165,21],"m":"lda","o":"zpa_15","oa":21},{"a":40476,"t":"code","b":[105,0],"m":"adc","o":"#$00"},{"a":40478,"t":"code","b":[157,222,159],"m":"sta","o":"V3_STACK_HIGH,x","oa":40926},{"a":40481,"t":"code","b":[198,31],"m":"dec","o":"V3_STACK_INDEX","oa":31},{"a":40483,"t":"code","b":[76,252,157],"m":"jmp","o":"V3_CMD_JUMP","oa":40444},{"a":40486,"l":"V3_CMD_CALL_TRANSPOSED","c":"Command $96 on voice 3: the fourth byte becomes the transpose $9FEE, then the call with 4 as the length. The bass line is one four-note pattern called at many pitches this way.","t":"code","b":[160,3],"m":"ldy","o":"#$03"},{"a":40488,"t":"code","b":[177,20],"m":"lda","o":"(V3_STREAM),y","oa":20},{"a":40490,"t":"code","b":[141,238,159],"m":"sta","o":"V3_TRANSPOSE","oa":40942},{"a":40493,"t":"code","b":[169,4],"m":"lda","o":"#$04"},{"a":40495,"t":"code","b":[208,225],"m":"bne","o":"b_9E12","oa":40466},{"a":40497,"l":"V3_COMMANDS","c":"Voice 3's command handlers for $80-$9A, fourteen words: return, stop, stop, instrument, stop, stop, lengths, jump, call, stop, stop, transposed call, stop, transposed jump. $9D16 reads the low bytes through $9E31,X.","t":"word","b":[205,157,161,150,161,150,223,157],"d":[40397,38561,38561,40415],"x":[40214]},{"a":40498,"t":"note","l":"V3_COMMANDS_HIGH","c":"Voice 3's handler table one byte on, for the high bytes ($9D1C).","note":"inside the item at $9E31","x":[40220]},{"a":40505,"t":"word","b":[161,150,161,150,239,157,252,157],"d":[38561,38561,40431,40444]},{"a":40513,"t":"word","b":[16,158,161,150,161,150,38,158],"d":[40464,38561,38561,40486]},{"a":40521,"t":"word","b":[161,150,245,157],"d":[38561,40437]},{"a":40525,"l":"V3_PULSE_EFFECT","c":"Voice 3's pulse sweep, as voice 1's ($99EF), while its release counter $F073 is not 0: flags $F06D, delay $F06B, step timer $F080 from $F06C, phase counters $F07E/$F07F, deltas $F065-$F068, base width $F06E/$F06F, current width $F077/$F078.","t":"code","b":[174,115,240],"m":"ldx","o":"V3_RELEASE_TICKS","oa":61555,"x":[40188]},{"a":40528,"t":"code","b":[208,3],"m":"bne","o":"b_9E55","oa":40533},{"a":40530,"t":"code","b":[76,242,158],"m":"jmp","o":"r_9EF2","oa":40690},{"a":40533,"l":"b_9E55","t":"code","b":[216],"m":"cld","x":[40528]},{"a":40534,"t":"code","b":[24],"m":"clc"},{"a":40535,"t":"code","b":[174,119,240],"m":"ldx","o":"V3_PW_LO","oa":61559},{"a":40538,"t":"code","b":[172,120,240],"m":"ldy","o":"V3_PW_HI","oa":61560},{"a":40541,"t":"code","b":[173,109,240],"m":"lda","o":"V3_PW_FLAGS","oa":61549},{"a":40544,"t":"code","b":[41,4],"m":"and","o":"#$04"},{"a":40546,"t":"code","b":[240,92],"m":"beq","o":"V3_WRITE_PULSE","oa":40640},{"a":40548,"t":"code","b":[173,107,240],"m":"lda","o":"V3_PW_DELAY","oa":61547},{"a":40551,"t":"code","b":[240,6],"m":"beq","o":"b_9E6F","oa":40559},{"a":40553,"t":"code","b":[206,107,240],"m":"dec","o":"V3_PW_DELAY","oa":61547},{"a":40556,"t":"code","b":[76,192,158],"m":"jmp","o":"V3_WRITE_PULSE","oa":40640},{"a":40559,"l":"b_9E6F","t":"code","b":[173,128,240],"m":"lda","o":"V3_PW_TIMER","oa":61568,"x":[40551]},{"a":40562,"t":"code","b":[240,6],"m":"beq","o":"b_9E7A","oa":40570},{"a":40564,"t":"code","b":[206,128,240],"m":"dec","o":"V3_PW_TIMER","oa":61568},{"a":40567,"t":"code","b":[76,192,158],"m":"jmp","o":"V3_WRITE_PULSE","oa":40640},{"a":40570,"l":"b_9E7A","t":"code","b":[173,108,240],"m":"lda","o":"V3_PW_PERIOD","oa":61548,"x":[40562]},{"a":40573,"t":"code","b":[141,128,240],"m":"sta","o":"V3_PW_TIMER","oa":61568},{"a":40576,"t":"code","b":[24],"m":"clc"},{"a":40577,"l":"j_9E81","t":"code","b":[173,126,240],"m":"lda","o":"V3_PW_LEFT1","oa":61566,"x":[40631,40637]},{"a":40580,"t":"code","b":[240,16],"m":"beq","o":"b_9E96","oa":40598},{"a":40582,"t":"code","b":[138],"m":"txa"},{"a":40583,"t":"code","b":[109,101,240],"m":"adc","o":"V3_PW_DELTA1_LO","oa":61541},{"a":40586,"t":"code","b":[170],"m":"tax"},{"a":40587,"t":"code","b":[152],"m":"tya"},{"a":40588,"t":"code","b":[109,102,240],"m":"adc","o":"V3_PW_DELTA1_HI","oa":61542},{"a":40591,"t":"code","b":[168],"m":"tay"},{"a":40592,"t":"code","b":[206,126,240],"m":"dec","o":"V3_PW_LEFT1","oa":61566},{"a":40595,"t":"code","b":[76,192,158],"m":"jmp","o":"V3_WRITE_PULSE","oa":40640},{"a":40598,"l":"b_9E96","t":"code","b":[173,127,240],"m":"lda","o":"V3_PW_LEFT2","oa":61567,"x":[40580]},{"a":40601,"t":"code","b":[240,16],"m":"beq","o":"b_9EAB","oa":40619},{"a":40603,"t":"code","b":[138],"m":"txa"},{"a":40604,"t":"code","b":[109,103,240],"m":"adc","o":"V3_PW_DELTA2_LO","oa":61543},{"a":40607,"t":"code","b":[170],"m":"tax"},{"a":40608,"t":"code","b":[152],"m":"tya"},{"a":40609,"t":"code","b":[109,104,240],"m":"adc","o":"V3_PW_DELTA2_HI","oa":61544},{"a":40612,"t":"code","b":[168],"m":"tay"},{"a":40613,"t":"code","b":[206,127,240],"m":"dec","o":"V3_PW_LEFT2","oa":61567},{"a":40616,"t":"code","b":[76,192,158],"m":"jmp","o":"V3_WRITE_PULSE","oa":40640},{"a":40619,"l":"b_9EAB","t":"code","b":[173,109,240],"m":"lda","o":"V3_PW_FLAGS","oa":61549,"x":[40601]},{"a":40622,"t":"code","b":[41,129],"m":"and","o":"#$81"},{"a":40624,"t":"code","b":[240,14],"m":"beq","o":"V3_WRITE_PULSE","oa":40640},{"a":40626,"t":"code","b":[16,6],"m":"bpl","o":"b_9EBA","oa":40634},{"a":40628,"t":"code","b":[32,40,151],"m":"jsr","o":"V3_PULSE_RESET","oa":38696},{"a":40631,"t":"code","b":[76,129,158],"m":"jmp","o":"j_9E81","oa":40577},{"a":40634,"l":"b_9EBA","t":"code","b":[32,52,151],"m":"jsr","o":"V3_PULSE_RELOAD","oa":38708,"x":[40626]},{"a":40637,"t":"code","b":[76,129,158],"m":"jmp","o":"j_9E81","oa":40577},{"a":40640,"l":"V3_WRITE_PULSE","c":"The pulse width to $F077/$F078 and $D410/$D411.","t":"code","b":[142,119,240],"m":"stx","o":"V3_PW_LO","oa":61559,"x":[40546,40556,40567,40595,40616,40624]},{"a":40643,"t":"code","b":[140,120,240],"m":"sty","o":"V3_PW_HI","oa":61560},{"a":40646,"t":"code","b":[142,16,212],"m":"stx","o":"sid_v3_pulse_lo"},{"a":40649,"t":"code","b":[140,17,212],"m":"sty","o":"sid_v3_pulse_hi"},{"a":40652,"l":"V3_GATE_TIMER","c":"Voice 3's note timing, as voice 1's: gate ticks $F074, then release ticks $F073; at the end $D40E-$D414 are cleared and bit 5 of $19 set.","t":"code","b":[173,116,240],"m":"lda","o":"V3_GATE_TICKS","oa":61556},{"a":40655,"t":"code","b":[208,20],"m":"bne","o":"b_9EE5","oa":40677},{"a":40657,"t":"code","b":[206,115,240],"m":"dec","o":"V3_RELEASE_TICKS","oa":61555},{"a":40660,"t":"code","b":[208,28],"m":"bne","o":"r_9EF2","oa":40690},{"a":40662,"t":"code","b":[162,6],"m":"ldx","o":"#$06"},{"a":40664,"l":"b_9ED8","t":"code","b":[157,14,212],"m":"sta","o":"sid_v3_freq_lo,x","x":[40668]},{"a":40667,"t":"code","b":[202],"m":"dex"},{"a":40668,"t":"code","b":[16,250],"m":"bpl","o":"b_9ED8","oa":40664},{"a":40670,"t":"code","b":[169,32],"m":"lda","o":"#$20"},{"a":40672,"t":"code","b":[5,25],"m":"ora","o":"VOICE_FLAGS","oa":25},{"a":40674,"t":"code","b":[133,25],"m":"sta","o":"VOICE_FLAGS","oa":25},{"a":40676,"t":"code","b":[96],"m":"rts"},{"a":40677,"l":"b_9EE5","t":"code","b":[206,116,240],"m":"dec","o":"V3_GATE_TICKS","oa":61556,"x":[40655]},{"a":40680,"t":"code","b":[208,8],"m":"bne","o":"r_9EF2","oa":40690},{"a":40682,"t":"code","b":[173,114,240],"m":"lda","o":"V3_WAVEFORM","oa":61554},{"a":40685,"t":"code","b":[41,254],"m":"and","o":"#$FE"},{"a":40687,"t":"code","b":[141,18,212],"m":"sta","o":"sid_v3_control"},{"a":40690,"l":"r_9EF2","t":"code","b":[96],"m":"rts","x":[40530,40660,40680]},{"a":40691,"l":"V1_BLOCK_VIBRATO","c":"Voice 1's block, 84 bytes from here: the settings its next notes use, holding whatever the tune loaded last. Bytes $00-$0D, the vibrato: four 16-bit deltas, the step counts of the four phases, the delay in frames and the frames between steps.","t":"byte","b":[87,3,16,3,153,249,0,0],"x":[38904,38932,38974,39087,39181]},{"a":40699,"t":"byte","b":[1,1,1,0,1,0]},{"a":40705,"l":"V1_BLOCK_VIBRATO_FLAGS","c":"Voice 1's block byte $0E, the vibrato flags (bit 2 on, bit 1 slide during the delay, bit 7 restart from the note, bit 0 repeat). MUSIC_INIT clears it; a note copies the vibrato to the state only when it is not 0.","t":"byte","b":[5],"x":[38640,38964]},{"a":40706,"l":"V1_BLOCK_PULSE","c":"Voice 1's block bytes $0F-$16, the pulse sweep: two 16-bit deltas, the steps of each of its two phases, the delay and the frames between steps.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[38955]},{"a":40714,"l":"V1_BLOCK_PULSE_FLAGS","c":"Voice 1's block byte $17, the pulse sweep's flags, the vibrato's bits for the width. MUSIC_INIT clears it; a note copies the sweep only when it is not 0.","t":"byte","b":[0],"x":[38643,38945]},{"a":40715,"l":"V1_BLOCK_WIDTH_LOW","c":"Voice 1's block byte $18: the low byte of the pulse width each note starts at.","t":"byte","b":[0],"x":[39007]},{"a":40716,"l":"V1_BLOCK_WIDTH_HIGH","c":"Voice 1's block byte $19: the high byte of the starting pulse width.","t":"byte","b":[7],"x":[39010]},{"a":40717,"l":"V1_BLOCK_ENVELOPE","c":"Voice 1's block bytes $1A-$1C: the waveform (control register, gate set), attack/decay and sustain/release each note writes to the SID.","t":"byte","b":[65,253,223]},{"a":40720,"l":"V1_BLOCK_RELEASE_TICKS","c":"Voice 1's block byte $1D: frames of release after the gate closes before the voice is cut.","t":"byte","b":[255],"x":[39022]},{"a":40721,"l":"V1_BLOCK_GATE_TICKS","c":"Voice 1's block byte $1E: frames the gate stays open from the start of a note.","t":"byte","b":[100],"x":[39025]},{"a":40722,"l":"V1_BLOCK_FILTER","c":"Voice 1's block bytes $1F-$21: filter cutoff low and high, then resonance and routing, written to $D415-$D417 by each note.","t":"byte","b":[0,0,0]},{"a":40725,"l":"V1_BLOCK_MODE","c":"Voice 1's block byte $22: the filter mode, whose high four bits go to $D418 with the volume. It is also length index 0, read as the first of the length values; MUSIC_INIT and every instrument set it to $0F.","t":"byte","b":[15],"x":[38648,39044]},{"a":40726,"l":"V1_BLOCK_LENGTHS","c":"Voice 1's block bytes $23-$32: the frames that length indexes 1-16 last.","t":"byte","b":[6,12,18,24,30,36,42,48]},{"a":40734,"t":"byte","b":[54,60,108,72,1,84,3,96]},{"a":40742,"l":"V1_STACK_LOW","c":"Voice 1's stream stack, low bytes: where each call returns to, sixteen deep.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[39068,39158]},{"a":40750,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":40758,"l":"V1_STACK_HIGH","c":"Voice 1's stream stack, high bytes.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[39073,39165]},{"a":40766,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":40774,"l":"V1_TRANSPOSE","c":"Voice 1's transpose: semitones added to every note but $5F and the rest $60. MUSIC_INIT clears it and the tune never sets it: voice 1's handler table has no transposed call or jump, and the only other writer is the unreached $98E9.","t":"byte","b":[0],"x":[38637,38880,39145]},{"a":40775,"l":"V2_BLOCK_VIBRATO","c":"Voice 2's block, 84 bytes from here: the settings its next notes use, holding whatever the tune loaded last. Bytes $00-$0D, the vibrato: four 16-bit deltas, the step counts of the four phases, the delay in frames and the frames between steps. Voice 2 has no pulse sweep, so its block's bytes $0F-$17 are copied by no note.","t":"byte","b":[15,0,241,255,15,0,121,0],"x":[39655,39683,39706,39811,39902]},{"a":40783,"t":"byte","b":[3,6,3,0,10,0]},{"a":40789,"l":"V2_BLOCK_VIBRATO_FLAGS","c":"Voice 2's block byte $0E, the vibrato flags (bit 2 on, bit 1 slide during the delay, bit 7 restart from the note, bit 0 repeat). MUSIC_INIT clears it; a note copies the vibrato to the state only when it is not 0.","t":"byte","b":[0],"x":[39696]},{"a":40790,"l":"V2_BLOCK_PULSE","c":"Voice 2's block bytes $0F-$16, the pulse sweep: two 16-bit deltas, the steps of each of its two phases, the delay and the frames between steps.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":40798,"l":"V2_BLOCK_PULSE_FLAGS","c":"Voice 2's block byte $17, the pulse sweep's flags, the vibrato's bits for the width. MUSIC_INIT clears it; voice 2 never reads it.","t":"byte","b":[0]},{"a":40799,"l":"V2_BLOCK_WIDTH_LOW","c":"Voice 2's block byte $18: the low byte of the pulse width each note starts at.","t":"byte","b":[0],"x":[39739]},{"a":40800,"l":"V2_BLOCK_WIDTH_HIGH","c":"Voice 2's block byte $19: the high byte of the starting pulse width.","t":"byte","b":[8],"x":[39742]},{"a":40801,"l":"V2_BLOCK_ENVELOPE","c":"Voice 2's block bytes $1A-$1C: the waveform (control register, gate set), attack/decay and sustain/release each note writes to the SID.","t":"byte","b":[65,117,185]},{"a":40804,"l":"V2_BLOCK_RELEASE_TICKS","c":"Voice 2's block byte $1D: frames of release after the gate closes before the voice is cut.","t":"byte","b":[150],"x":[39751]},{"a":40805,"l":"V2_BLOCK_GATE_TICKS","c":"Voice 2's block byte $1E: frames the gate stays open from the start of a note.","t":"byte","b":[90],"x":[39754]},{"a":40806,"l":"V2_BLOCK_FILTER","c":"Voice 2's block bytes $1F-$21: filter cutoff low and high, then resonance and routing, written to $D415-$D417 by each note.","t":"byte","b":[0,0,0]},{"a":40809,"l":"V2_BLOCK_MODE","c":"Voice 2's block byte $22: the filter mode, whose high four bits go to $D418 with the volume. It is also length index 0, read as the first of the length values; MUSIC_INIT and every instrument set it to $0F.","t":"byte","b":[15],"x":[39768]},{"a":40810,"l":"V2_BLOCK_LENGTHS","c":"Voice 2's block bytes $23-$32: the frames that length indexes 1-16 last.","t":"byte","b":[6,12,18,24,30,36,42,48]},{"a":40818,"t":"byte","b":[54,60,108,72,1,84,3,96]},{"a":40826,"l":"V2_STACK_LOW","c":"Voice 2's stream stack, low bytes: where each call returns to, sixteen deep.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[39792,39879]},{"a":40834,"t":"byte","b":[0,0,0,0,0,98,192,249]},{"a":40842,"l":"V2_STACK_HIGH","c":"Voice 2's stream stack, high bytes.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[39797,39886]},{"a":40850,"t":"byte","b":[0,0,0,0,0,245,245,245]},{"a":40858,"l":"V2_TRANSPOSE","c":"Voice 2's transpose: semitones added to every note but $5F and the rest $60. A transposed call or jump sets it.","t":"byte","b":[31],"x":[39630,39849,39912]},{"a":40859,"l":"V3_BLOCK_VIBRATO","c":"Voice 3's block, 84 bytes from here: the settings its next notes use, holding whatever the tune loaded last. Bytes $00-$0D, the vibrato: four 16-bit deltas, the step counts of the four phases, the delay in frames and the frames between steps. Voice 3 has no vibrato, so its block's bytes $00-$0E are copied by no note.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[40272,40300,40421]},{"a":40867,"t":"byte","b":[0,0,0,0,0,0]},{"a":40873,"l":"V3_BLOCK_VIBRATO_FLAGS","c":"Voice 3's block byte $0E, the vibrato flags (bit 2 on, bit 1 slide during the delay, bit 7 restart from the note, bit 0 repeat). MUSIC_INIT clears it; voice 3 never reads it.","t":"byte","b":[0]},{"a":40874,"l":"V3_BLOCK_PULSE","c":"Voice 3's block bytes $0F-$16, the pulse sweep: two 16-bit deltas, the steps of each of its two phases, the delay and the frames between steps.","t":"byte","b":[70,0,0,0,30,0,0,0],"x":[40323]},{"a":40882,"l":"V3_BLOCK_PULSE_FLAGS","c":"Voice 3's block byte $17, the pulse sweep's flags, the vibrato's bits for the width. MUSIC_INIT clears it; a note copies the sweep only when it is not 0.","t":"byte","b":[5],"x":[40313]},{"a":40883,"l":"V3_BLOCK_WIDTH_LOW","c":"Voice 3's block byte $18: the low byte of the pulse width each note starts at.","t":"byte","b":[0],"x":[40346]},{"a":40884,"l":"V3_BLOCK_WIDTH_HIGH","c":"Voice 3's block byte $19: the high byte of the starting pulse width.","t":"byte","b":[5],"x":[40349]},{"a":40885,"l":"V3_BLOCK_ENVELOPE","c":"Voice 3's block bytes $1A-$1C: the waveform (control register, gate set), attack/decay and sustain/release each note writes to the SID.","t":"byte","b":[65,51,138]},{"a":40888,"l":"V3_BLOCK_RELEASE_TICKS","c":"Voice 3's block byte $1D: frames of release after the gate closes before the voice is cut.","t":"byte","b":[60],"x":[40361]},{"a":40889,"l":"V3_BLOCK_GATE_TICKS","c":"Voice 3's block byte $1E: frames the gate stays open from the start of a note.","t":"byte","b":[30],"x":[40364]},{"a":40890,"l":"V3_BLOCK_FILTER","c":"Voice 3's block bytes $1F-$21: filter cutoff low and high, then resonance and routing, written to $D415-$D417 by each note.","t":"byte","b":[0,0,0]},{"a":40893,"l":"V3_BLOCK_MODE","c":"Voice 3's block byte $22: the filter mode, whose high four bits go to $D418 with the volume. It is also length index 0, read as the first of the length values; MUSIC_INIT and every instrument set it to $0F.","t":"byte","b":[15],"x":[40378]},{"a":40894,"l":"V3_BLOCK_LENGTHS","c":"Voice 3's block bytes $23-$32: the frames that length indexes 1-16 last.","t":"byte","b":[6,12,18,24,30,36,42,48]},{"a":40902,"t":"byte","b":[54,60,108,72,1,84,3,96]},{"a":40910,"l":"V3_STACK_LOW","c":"Voice 3's stream stack, low bytes: where each call returns to, sixteen deep.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[40402,40471]},{"a":40918,"t":"byte","b":[0,0,0,0,0,25,45,199]},{"a":40926,"l":"V3_STACK_HIGH","c":"Voice 3's stream stack, high bytes.","t":"byte","b":[0,0,0,0,0,0,0,0],"x":[40407,40478]},{"a":40934,"t":"byte","b":[0,0,0,0,0,247,247,246]},{"a":40942,"l":"V3_TRANSPOSE","c":"Voice 3's transpose: semitones added to every note but $5F and the rest $60. A transposed call or jump sets it.","t":"byte","b":[31],"x":[40247,40441,40490]},{"a":40943,"l":"LEFTOVER_9FEF","c":"Seventeen bytes after voice 3's block that nothing reads: $0A, six zeros, $44 $0D and the text \"/MONITOR\". Inferred to be left from the machine the game was written on; every copy compared has them.","t":"byte","b":[10,0,0,0,0,0,0,68]},{"a":40951,"t":"byte","b":[13,47,77,79,78,73,84,79]},{"a":40959,"t":"byte","b":[82]},{"a":40960,"l":"ZERO_PAGE_BACKUP","c":"ZERO_PAGE_BACKUP ($A000-$A0FF) - the KERNAL's zero page, kept here while the game works in\nthe real one. OPENING_SETUP copies it here ($06B2); SWAP_ZERO_PAGE_AND_BACKUP ($053C)\nexchanges the two around a part's load (PREPARE_DISK_IO $04FB, END_DISK_IO $0521), so the\nKERNAL's LOAD runs with its own zero page while the game's waits here. The game calls SCNKEY\nand GETIN with no swap. Rather than saving individual locations, $053C exchanges the two\nimages, $02-$FF, wholesale: for each\nindex it loads the live byte, loads the backup byte, writes the backup value live, and writes\nthe live value into the backup. One routine therefore serves both directions - calling it\ntwice restores the original state - and there is no separate \"restore\" entry point.\n053C  LDY #$FF\n053E  LDA $0000,Y     ; live zero-page byte\n0541  TAX\n0542  LDA $A000,Y     ; corresponding backup byte\n0545  STA $0000,Y     ; backup -> live\n0548  TXA\n0549  STA $A000,Y     ; live -> backup\n054C  DEY\n054D  CPY #$01        ; stop before index $01\n054F  BNE $053E\nC64 SPECIFIC, AND THE REASON FOR THE ODD LOOP BOUND: the loop runs Y = $FF down to $02 and\ndeliberately never touches $0000 and $0001. On a 6510 those two addresses are not RAM but the\nCPU's on-chip I/O port - $0001 is the bank-select register that decides whether BASIC, KERNAL,\nI/O or RAM is visible at $A000-$BFFF and $D000-$FFFF, and $0000 is its data-direction\nregister. Swapping a stale value into $0001 would change the memory map underneath the\nrunning code, for instance banking BASIC ROM over the backup at $A000 that the loop is reading;\nthe routine itself, at $053C, is in RAM that no value of $01 hides. Banking is managed\nseparately, by explicit stores to $01.\nNote the backup lives at $A000-$BFFF RAM, i.e. underneath the BASIC ROM image, which is\nexactly the region the $01 value chosen by this game leaves as RAM.\nAt the opening, $A002-$A0FF holds zero page as OPENING_SETUP copied it there ($06B2), before the tune took over $10-$21.","t":"byte","b":[85,0,0,170,177,145,179,34],"x":[1346,1353,1717]},{"a":40968,"t":"byte","b":[34,0,0,76,0,255,0,4]},{"a":40976,"t":"byte","b":[0,0,0,0,8,9,25,22]},{"a":40984,"t":"byte","b":[0,229,236,49,0,0,0,0]},{"a":40992,"t":"byte","b":[0,0,236,49,179,189,0,0]},{"a":41000,"t":"byte","b":[0,0,0,1,8,0,0,219]},{"a":41008,"t":"byte","b":[138,219,138,0,160,0,160,0]},{"a":41016,"t":"byte","b":[160,192,11,0,0,0,8,0]},{"a":41024,"t":"byte","b":[0,0,8,0,0,0,0,36]},{"a":41032,"t":"byte","b":[0,8,0,0,0,0,0,0]},{"a":41040,"t":"byte","b":[25,0,0,3,76,0,0,0]},{"a":41048,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":41056,"t":"byte","b":[0,229,236,49,25,0,0,0]},{"a":41064,"t":"byte","b":[0,140,144,96,0,0,0,236]},{"a":41072,"t":"byte","b":[0,209,50,230,122,208,2,230]},{"a":41080,"t":"byte","b":[123,173,11,8,201,58,176,10]},{"a":41088,"t":"byte","b":[201,32,240,239,56,233,48,56]},{"a":41096,"t":"byte","b":[233,208,96,128,79,199,82,88]},{"a":41104,"t":"byte","b":[64,239,0,0,64,255,0,0]},{"a":41112,"t":"byte","b":[0,0,3,0,0,0,0,0]},{"a":41120,"t":"byte","b":[0,18,53,64,119,0,0,0]},{"a":41128,"t":"byte","b":[0,0,0,0,0,0,219,138]},{"a":41136,"t":"byte","b":[0,0,60,3,0,0,0,96]},{"a":41144,"t":"byte","b":[1,96,8,0,8,0,0,0]},{"a":41152,"t":"byte","b":[0,0,160,48,253,60,0,18]},{"a":41160,"t":"byte","b":[3,0,3,60,12,12,32,0]},{"a":41168,"t":"byte","b":[0,0,4,0,0,39,0,79]},{"a":41176,"t":"byte","b":[0,132,132,132,132,132,132,132]},{"a":41184,"t":"byte","b":[133,133,133,133,133,133,134,134]},{"a":41192,"t":"byte","b":[134,134,134,134,134,135,135,135]},{"a":41200,"t":"byte","b":[135,135,135,0,216,129,235,0]},{"a":41208,"t":"byte","b":[0,0,0,0,202,0,220,32]},{"a":41216,"l":"ROOM_GFX_00","c":"ROOM_GFX_00 - ROOM_GRAPHIC_TABLE[0] source data. 8 rows x 14 columns blitted at\ncharacter row 1, column 3; 1120 bytes = 8 * 14 * 10 (8 bitmap + 1 screen-code + 1 colour byte\nper character cell, interleaved one character row at a time).\nThis is the only record whose data does NOT live in the $4300 picture buffer, so unlike pictures\n1-56 it is not overwritten when a new part loads. See the plate at ROOM_GRAPHIC_TABLE ($0BF9)\nfor the record layout and at ROOM_PICTURE_BUFFER ($4300) for the multicolor bitmap format.","t":"byte","b":[0,51,63,63,63,60,63,63]},{"a":41224,"t":"byte","b":[0,255,207,255,255,255,255,240]},{"a":41232,"t":"byte","b":[0,255,252,255,255,255,0,170]},{"a":41240,"t":"byte","b":[0,252,255,255,255,255,3,168]},{"a":41248,"t":"byte","b":[0,255,255,255,207,60,252,60]},{"a":41256,"t":"byte","b":[0,252,195,15,48,0,0,0]},{"a":41264,"t":"byte","b":[0,0,255,15,0,48,204,207]},{"a":41272,"t":"byte","b":[0,63,207,243,252,188,42,201]},{"a":41280,"t":"byte","b":[0,255,204,255,255,252,63,143]},{"a":41288,"t":"byte","b":[0,255,243,255,255,252,255,255]},{"a":41296,"t":"byte","b":[0,255,255,255,207,255,255,255]},{"a":41304,"t":"byte","b":[0,255,63,255,255,252,255,255]},{"a":41312,"t":"byte","b":[0,255,255,255,63,63,255,255]},{"a":41320,"t":"byte","b":[0,252,252,60,252,252,252,252]},{"a":41328,"t":"byte","b":[116,141,123,139,100,141,116,120]},{"a":41336,"t":"byte","b":[120,141,100,173,116,141,105,249]},{"a":41344,"t":"byte","b":[9,57,249,249,121,105,249,249]},{"a":41352,"t":"byte","b":[57,249,249,121,63,63,60,50]},{"a":41360,"t":"byte","b":[50,8,8,8,202,40,128,0]},{"a":41368,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":41376,"t":"byte","b":[0,0,0,0,3,0,0,0]},{"a":41384,"t":"byte","b":[0,0,0,0,194,60,3,3]},{"a":41392,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":41400,"t":"byte","b":[0,0,0,0,207,3,3,0]},{"a":41408,"t":"byte","b":[0,0,0,0,242,242,190,174]},{"a":41416,"t":"byte","b":[174,234,234,249,202,202,202,202]},{"a":41424,"t":"byte","b":[114,114,114,114,63,243,252,255]},{"a":41432,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":41440,"t":"byte","b":[252,252,252,240,255,255,63,207]},{"a":41448,"t":"byte","b":[254,62,62,207,255,255,254,165]},{"a":41456,"t":"byte","b":[149,149,149,154,252,252,188,188]},{"a":41464,"t":"byte","b":[188,252,252,252,43,235,36,237]},{"a":41472,"t":"byte","b":[41,237,36,120,137,237,36,231]},{"a":41480,"t":"byte","b":[24,225,57,57,244,107,59,61]},{"a":41488,"t":"byte","b":[57,57,55,249,105,57,57,57]},{"a":41496,"t":"byte","b":[48,48,48,0,0,0,0,0]},{"a":41504,"t":"byte","b":[0,0,0,0,3,12,48,48]},{"a":41512,"t":"byte","b":[0,0,192,192,0,0,0,0]},{"a":41520,"t":"byte","b":[0,0,0,0,0,3,0,0]},{"a":41528,"t":"byte","b":[0,0,0,0,0,192,63,252]},{"a":41536,"t":"byte","b":[0,0,0,0,0,3,3,3]},{"a":41544,"t":"byte","b":[0,0,0,0,60,255,251,235]},{"a":41552,"t":"byte","b":[250,62,63,15,0,0,207,143]},{"a":41560,"t":"byte","b":[225,133,69,5,21,85,85,81]},{"a":41568,"t":"byte","b":[255,63,255,255,255,255,255,255]},{"a":41576,"t":"byte","b":[252,252,252,204,252,252,252,252]},{"a":41584,"t":"byte","b":[207,227,163,160,160,162,162,162]},{"a":41592,"t":"byte","b":[235,251,254,250,254,63,63,143]},{"a":41600,"t":"byte","b":[232,104,168,108,92,220,252,216]},{"a":41608,"t":"byte","b":[4,239,36,237,36,239,40,232]},{"a":41616,"t":"byte","b":[152,237,36,232,39,129,59,59]},{"a":41624,"t":"byte","b":[59,59,43,105,57,57,55,57]},{"a":41632,"t":"byte","b":[57,121,105,57,0,0,0,0]},{"a":41640,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":41648,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":41656,"t":"byte","b":[0,15,0,0,63,255,255,255]},{"a":41664,"t":"byte","b":[60,192,42,26,240,202,202,42]},{"a":41672,"t":"byte","b":[170,10,64,96,19,84,92,240]},{"a":41680,"t":"byte","b":[192,0,0,0,254,251,0,0]},{"a":41688,"t":"byte","b":[0,0,0,2,194,0,0,0]},{"a":41696,"t":"byte","b":[2,9,85,85,200,42,41,165]},{"a":41704,"t":"byte","b":[149,85,85,85,255,63,131,104]},{"a":41712,"t":"byte","b":[86,85,85,85,252,252,252,60]},{"a":41720,"t":"byte","b":[128,104,86,85,243,243,34,40]},{"a":41728,"t":"byte","b":[138,10,66,84,202,194,194,200]},{"a":41736,"t":"byte","b":[136,137,134,162,92,156,148,164]},{"a":41744,"t":"byte","b":[168,40,40,8,116,141,116,156]},{"a":41752,"t":"byte","b":[201,141,121,137,143,143,143,249]},{"a":41760,"t":"byte","b":[201,121,100,61,59,59,59,57]},{"a":41768,"t":"byte","b":[136,103,57,57,57,56,63,129]},{"a":41776,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":41784,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":41792,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":41800,"t":"byte","b":[250,250,250,234,250,62,14,0]},{"a":41808,"t":"byte","b":[248,250,250,234,232,224,0,0]},{"a":41816,"t":"byte","b":[0,0,192,0,3,15,63,255]},{"a":41824,"t":"byte","b":[15,23,85,85,149,169,170,170]},{"a":41832,"t":"byte","b":[234,126,151,169,170,170,170,170]},{"a":41840,"t":"byte","b":[85,85,213,189,107,86,85,85]},{"a":41848,"t":"byte","b":[234,190,175,191,107,214,189,175]},{"a":41856,"t":"byte","b":[85,127,255,255,246,88,160,130]},{"a":41864,"t":"byte","b":[252,248,224,130,8,40,168,160]},{"a":41872,"t":"byte","b":[255,255,63,63,207,207,51,51]},{"a":41880,"t":"byte","b":[12,48,48,56,56,204,252,252]},{"a":41888,"t":"byte","b":[129,118,129,124,139,118,139,248]},{"a":41896,"t":"byte","b":[143,152,137,121,129,108,49,134]},{"a":41904,"t":"byte","b":[97,57,60,59,57,57,137,111]},{"a":41912,"t":"byte","b":[63,63,57,57,0,0,0,0]},{"a":41920,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":41928,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":41936,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":41944,"t":"byte","b":[0,0,0,0,3,3,3,0]},{"a":41952,"t":"byte","b":[0,0,0,0,255,255,255,255]},{"a":41960,"t":"byte","b":[15,0,0,0,255,255,253,213]},{"a":41968,"t":"byte","b":[245,255,15,0,255,255,255,255]},{"a":41976,"t":"byte","b":[255,255,175,169,85,87,87,94]},{"a":41984,"t":"byte","b":[122,232,160,128,250,232,160,129]},{"a":41992,"t":"byte","b":[5,21,5,4,15,63,255,252]},{"a":42000,"t":"byte","b":[240,192,0,0,240,195,0,15]},{"a":42008,"t":"byte","b":[15,63,255,255,12,12,0,3]},{"a":42016,"t":"byte","b":[192,192,240,192,252,252,60,60]},{"a":42024,"t":"byte","b":[204,204,48,48,129,48,129,32]},{"a":42032,"t":"byte","b":[129,114,131,155,130,146,129,114]},{"a":42040,"t":"byte","b":[129,32,49,52,49,128,107,59]},{"a":42048,"t":"byte","b":[59,56,63,63,137,105,57,57]},{"a":42056,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42064,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42072,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42080,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42088,"t":"byte","b":[0,12,15,3,0,0,0,0]},{"a":42096,"t":"byte","b":[0,14,62,254,254,60,60,49]},{"a":42104,"t":"byte","b":[0,0,64,67,79,79,63,252]},{"a":42112,"t":"byte","b":[15,0,8,160,130,8,8,32]},{"a":42120,"t":"byte","b":[0,0,15,48,192,15,15,255]},{"a":42128,"t":"byte","b":[48,192,3,255,63,255,255,255]},{"a":42136,"t":"byte","b":[48,3,255,255,255,255,255,243]},{"a":42144,"t":"byte","b":[15,240,255,255,255,255,255,255]},{"a":42152,"t":"byte","b":[252,255,15,240,255,255,255,255]},{"a":42160,"t":"byte","b":[12,12,192,192,12,240,252,252]},{"a":42168,"t":"byte","b":[129,116,129,118,129,152,129,121]},{"a":42176,"t":"byte","b":[129,118,129,116,129,118,49,52]},{"a":42184,"t":"byte","b":[49,54,59,251,105,59,57,57]},{"a":42192,"t":"byte","b":[57,249,249,105,0,0,0,0]},{"a":42200,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42208,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42216,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42224,"t":"byte","b":[0,0,0,0,0,0,0,3]},{"a":42232,"t":"byte","b":[15,0,0,0,15,255,240,192]},{"a":42240,"l":"ROOM_GFX_00_CONT_A500","c":"Room illustration 0 continuation at source offset $0400: row 7, byte 44 of its 140-byte interleaved row. Descriptor $0BF9 gives 8 rows by 14 cells; this source ends at $A55F. Native $05BF output was checked against all bitmap, screen and colour bytes for this record.","t":"byte","b":[3,12,0,0,192,3,12,48]},{"a":42248,"t":"byte","b":[195,15,63,0,192,15,63,255]},{"a":42256,"t":"byte","b":[255,255,255,0,63,3,252,255]},{"a":42264,"t":"byte","b":[255,255,255,0,255,255,63,195]},{"a":42272,"t":"byte","b":[252,255,255,0,252,255,255,255]},{"a":42280,"t":"byte","b":[63,195,252,0,255,255,255,255]},{"a":42288,"t":"byte","b":[255,255,63,0,255,255,255,255]},{"a":42296,"t":"byte","b":[255,255,255,0,252,252,252,252]},{"a":42304,"t":"byte","b":[252,252,252,0,116,141,116,141]},{"a":42312,"t":"byte","b":[116,141,116,141,116,141,116,141]},{"a":42320,"t":"byte","b":[116,141,244,61,244,253,57,249]},{"a":42328,"t":"byte","b":[249,249,105,249,249,105,249,249]},{"a":42336,"l":"ICON_00","c":"OBJECT_ICON_TABLE ($A560-$BBDF, 5760 bytes) - 36 fixed 160-byte slots originally allocated\nto inventory and scripted-scene icons, laid out back to back with no header.\nADDRESSING\nCALC_OBJECT_GRAPHIC_PTR ($0F70) computes the slot address as $A560 + $A0 * CURRENT_OBJECT_INDEX\nby repeated addition, leaving it in GRAPHIC_RECORD_PTR ($5A/$5B). For normal inventory icons the index is the position at which the resolver at $15E3 found the\nparsed noun key inside NOUN_TO_OBJECT_INDEX ($22A4). SCRIPT_SET_OBJECT_GRAPHIC ($113D) instead\nreads an icon index directly from action bytecode, so a scripted scene can select a slot that no\nparsed noun can reach. NOUN_TO_OBJECT_INDEX holds 36 entries before its $FF terminator at $22C8,\nand 36 * 160 = 5760 lands the last byte on $BBDF, 32 bytes below SAVED_BITMAP ($BC00); ICON_TABLE_ALIGNMENT_RESIDUE\nfills $BBE0-$BBFF. Table extent and slot stride therefore corroborate each other.\nPAYLOAD FORMAT - identical to a RoomGraphicRecord payload with width = 4 cells and\nheight = 4 character rows. The source stream is interleaved per character row:\n32 bytes  bitmap      (4 cells x 8 scanlines)\n4 bytes  screen matrix\n4 bytes  colour RAM\n------------------------------------------------\n40 bytes per character row, 4 rows = 160 bytes per icon\nBLIT_ROOM_GRAPHIC ($05BF) / COPY_BLIT_ROW ($0676) scatter those three spans to three different\ndestinations, which is why they are interleaved rather than stored as three flat planes.\nC64 DISPLAY SEMANTICS (for a reader fluent in 6510 but not in VIC-II)\nThe picture band runs in multicolor bitmap mode: RASTER_SPLIT_PICTURE ($A7E3) sets $D011=$3B\n(BMM=1, bitmap mode), $D016=$D8 (MCM=1, multicolor), $D018=$38 (video matrix $CC00, bitmap\n$E000, both inside VIC bank 3) and $D021=$00. In that mode the VIC consumes TWO bitmap bits per\npixel, so horizontal resolution halves - each 8x8 cell is 4 double-wide pixels across - and the\ncolour of a pixel is selected by the bit pair:\n00 -> background register $D021\n01 -> high nybble of that cell's screen-matrix byte\n10 -> low  nybble of that cell's screen-matrix byte\n11 -> low  nybble of that cell's colour-RAM byte\nHence the 4 screen bytes and 4 colour bytes per row: they carry three of the four palette\nentries for the four cells in that row. An icon is 32 x 32 screen pixels (16 double-wide\nmulticolor pixels wide).\nWHERE THEY ARE DRAWN\nVISIBLE_OBJECT_RECORDS ($2943) is six 6-byte RoomGraphicRecords, all with height=4 width=4, at\n(row 0, col 21), (0,28), (0,35), (5,21), (5,28), (5,35) - a 3x2 inventory grid to the right of\nthe room illustration, which lies within columns 1-19 (picture 0 occupies columns 3-16). SHOW_OBJECT_ICON ($0F3A) scans the\nfirst five records (X = 3 to 27) for one whose source_ptr high byte is zero, writes the computed icon address into it,\nand calls RENDER_ROOM_GRAPHICS ($0570) to repaint the band. The sixth record, at (5,28), is filled only by\naction $17 (SCRIPT_SET_OBJECT_GRAPHIC), for Falkor and Artax.\nSCRIPTED, UNUSED, AND OVERWRITTEN SLOTS\nNOUN_TO_OBJECT_INDEX holds 0 at positions 4, 5, 23, 24, 27, 29, 30 and 31. Because\nthe normal noun resolver searches linearly and position 0 legitimately holds key 0 (noun \"aur\"),\nthe resolver never finds the later zeros. That does not make every such slot dead: action opcode $17 reads the following byte as a slot\nindex directly.\nSlot 23 is Falkor. Dynamic execution of \"get falkor\" in part 1 at room $21 selected verb-rule\npair 14 and ACTION_SCRIPT_GET_FALKOR; bytes $17,$17 at $2B8F-$2B90 made\nSCRIPT_SET_OBJECT_GRAPHIC cache index $17 and COPY_BLIT_ROW read from $B3C0.\nSlot 24 is Artax. Vocabulary entry \"art\" has noun id $57, VERB_RULE_GET_ARTAX is pair 13\n($15,$57), its pointer selects ACTION_SCRIPT_GET_ARTAX at $2B55, and that script's successful\nroom-$25 branch contains $17,$18 at $2B5F-$2B60. The horse artwork therefore has a direct,\nunambiguous code identity even though it is not selected by ordinary noun-to-icon mapping.\nSlot 27 is unused crucifix artwork. The image is a Latin cross and vocabulary entry \"cru\" has\nnoun id $5A, but the corresponding resolver key $28 is absent from NOUN_TO_OBJECT_INDEX.\nCURRENT_OBJECT_INDEX has only two writers: the noun resolver at $15FB and direct script action\n$17 at $114F. No action bytecode contains the required direct pair $17,$1B, and no decoded instruction or recorded reference reads $B640-$B6DF. The artwork is resident,\nrecognisable abandoned content, not a live part-specific remap.\nThe build reuses otherwise unreachable slot ranges:\nslot  4  $A7E0-$A87F  the play screen's raster split through $A847; artwork from $A848\nslot  5  $A880-$A91F  the opening's interrupt through $A892, two routines nothing\ncalls through $A8DE, and artwork from $A8DF\nslots 29-31 $B780-$B95F  the opening's texts through $B907, and artwork from $B908\nThe exact boundaries $A7E0 = $A560 + 4*160 and $B780 = $A560 + 29*160 corroborate the slot arithmetic.\nDecoding each 160-byte slot with the interleaved multicolor rule above yields a recognisable\nadventure object in every slot but 4, 5 and 29-31, whose code and text leave only artwork tails, and they match the game's own three-letter noun stems: slot 0 (noun key $00,\nobject id $32, stem \"aur\") renders as the two-serpent AURYN amulet; \"kni\" is a dagger, \"web\" a\nspider web, \"dia\" a faceted diamond, \"app\" an apple, \"coi\" a coin, and so on.","t":"byte","b":[0,0,0,0,2,11,15,15]},{"a":42344,"t":"byte","b":[0,0,0,3,159,158,3,0]},{"a":42352,"t":"byte","b":[0,0,0,192,254,127,239,3]},{"a":42360,"t":"byte","b":[0,0,0,0,0,128,192,224]},{"a":42368,"t":"byte","b":[233,151,121,233,135,108,60,60]},{"a":42376,"t":"byte","b":[24,40,36,36,19,19,12,1]},{"a":42384,"t":"byte","b":[0,0,2,242,202,201,5,65]},{"a":42392,"t":"byte","b":[0,168,148,68,65,12,12,51]},{"a":42400,"t":"byte","b":[224,240,240,224,240,224,224,176]},{"a":42408,"t":"byte","b":[151,151,151,231,108,108,252,188]},{"a":42416,"t":"byte","b":[14,58,56,40,40,40,40,40]},{"a":42424,"t":"byte","b":[144,167,35,207,255,252,240,0]},{"a":42432,"t":"byte","b":[255,58,207,192,16,165,42,10]},{"a":42440,"t":"byte","b":[128,192,32,96,96,160,128,48]},{"a":42448,"t":"byte","b":[231,151,151,151,89,108,92,92]},{"a":42456,"t":"byte","b":[60,47,47,11,2,0,0,0]},{"a":42464,"t":"byte","b":[0,0,15,255,245,47,0,0]},{"a":42472,"t":"byte","b":[0,3,3,159,156,0,0,0]},{"a":42480,"t":"byte","b":[240,192,192,0,0,0,0,0]},{"a":42488,"t":"byte","b":[233,25,151,232,87,247,108,12]},{"a":42496,"l":"ICON_01","c":"ICON_01 - telescope (dark barrel with a pale lens, drawn on a diagonal). Slot 1 of\nOBJECT_ICON_TABLE: 4x4-cell multicolor payload, 160 bytes; layout and VIC-II semantics are on\nthe plate at $A560. NOUN_TO_OBJECT_INDEX[1] = $08, i.e. parser object id $3A, vocabulary stem\n\"tel\".","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42504,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42512,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42520,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42528,"t":"byte","b":[232,88,232,232,136,104,56,56]},{"a":42536,"t":"byte","b":[34,42,12,10,12,16,28,12]},{"a":42544,"t":"byte","b":[0,0,0,15,191,60,243,204]},{"a":42552,"t":"byte","b":[0,0,0,0,128,128,165,172]},{"a":42560,"t":"byte","b":[0,0,0,0,0,0,0,80]},{"a":42568,"t":"byte","b":[111,95,235,232,91,107,247,104]},{"a":42576,"t":"byte","b":[12,12,15,60,48,48,0,0]},{"a":42584,"t":"byte","b":[243,63,63,204,12,12,48,0]},{"a":42592,"t":"byte","b":[39,129,128,128,32,32,8,0]},{"a":42600,"t":"byte","b":[240,92,0,0,0,0,0,0]},{"a":42608,"t":"byte","b":[232,88,235,232,91,107,87,87]},{"a":42616,"t":"byte","b":[63,63,12,0,0,0,0,0]},{"a":42624,"t":"byte","b":[255,255,0,0,0,0,0,0]},{"a":42632,"t":"byte","b":[255,255,3,0,0,0,0,0]},{"a":42640,"t":"byte","b":[192,192,0,0,0,0,0,0]},{"a":42648,"t":"byte","b":[232,88,232,232,91,251,107,11]},{"a":42656,"l":"ICON_02","c":"ICON_02 - crystal (pale elongated shard). Slot 2 of OBJECT_ICON_TABLE: 4x4-cell multicolor\npayload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[2] = $09, parser object id\n$3B, vocabulary stem \"cry\".","t":"byte","b":[0,60,62,15,15,3,3,2]},{"a":42664,"t":"byte","b":[0,0,0,64,176,180,236,236]},{"a":42672,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42680,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42688,"t":"byte","b":[232,129,232,232,119,103,104,56]},{"a":42696,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42704,"t":"byte","b":[249,123,126,254,223,127,55,23]},{"a":42712,"t":"byte","b":[0,0,64,192,144,176,176,228]},{"a":42720,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42728,"t":"byte","b":[232,129,129,232,88,103,247,88]},{"a":42736,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42744,"t":"byte","b":[14,5,3,1,0,0,0,0]},{"a":42752,"t":"byte","b":[220,244,116,181,221,159,55,55]},{"a":42760,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42768,"t":"byte","b":[232,134,24,232,88,87,103,88]},{"a":42776,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42784,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42792,"t":"byte","b":[45,13,11,3,0,0,0,0]},{"a":42800,"t":"byte","b":[192,192,112,112,252,28,0,0]},{"a":42808,"t":"byte","b":[232,232,24,24,88,248,103,7]},{"a":42816,"l":"ICON_03","c":"ICON_03 - food (brown drawstring sack). Slot 3 of OBJECT_ICON_TABLE: 4x4-cell multicolor\npayload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[3] = $0F, parser object id\n$41, vocabulary stem \"foo\".\nThe next slot boundary, $A7E0 = $A560 + 4*160, is where the raster-split IRQ code begins.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42824,"t":"byte","b":[0,0,0,40,184,174,46,42]},{"a":42832,"t":"byte","b":[0,0,0,128,160,234,174,250]},{"a":42840,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42848,"t":"byte","b":[232,232,232,232,88,87,103,168]},{"a":42856,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42864,"t":"byte","b":[11,11,10,1,10,15,174,185]},{"a":42872,"t":"byte","b":[224,168,224,64,128,168,234,190]},{"a":42880,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":42888,"t":"byte","b":[232,104,104,232,88,103,247,88]},{"a":42896,"t":"byte","b":[2,3,2,3,2,3,2,2]},{"a":42904,"t":"byte","b":[228,160,228,228,224,145,133,133]},{"a":42912,"t":"byte","b":[187,174,107,106,107,46,43,46]},{"a":42920,"t":"byte","b":[128,160,224,224,224,160,224,192]},{"a":42928,"t":"byte","b":[232,152,152,232,87,87,103,87]},{"a":42936,"t":"byte","b":[2,2,0,0,0,0,0,0]},{"a":42944,"t":"byte","b":[160,243,170,174,43,10,0,0]},{"a":42952,"t":"byte","b":[111,107,166,150,104,96,128,0]},{"a":42960,"t":"byte","b":[128,128,128,0,0,0,0,0]},{"a":42968,"t":"byte","b":[232,232,152,232,88,249,103,104]},{"a":42976,"l":"RASTER_IRQ_DISPATCH","c":"RASTER_IRQ_DISPATCH ($A7E0)\nPurpose: The gameplay interrupt handler, installed in the KERNAL RAM vector CINV. A CLC followed by a BCC whose offset byte at $A7E2 is self-modified selects one of the three raster-split phase bodies, so successive interrupts cycle picture, text and bottom.\nInputs: The offset byte at $A7E2 holds $00, $27 or $52, selecting $A7E3, $A80A or $A835 respectively. The processor has pushed the return address and status register, and the KERNAL's hardware IRQ entry at $FF48 has pushed A, X and Y.\nOutputs: The selected phase reprograms the VIC, arms the next raster compare, rewrites the offset byte for the following interrupt, acknowledges the VIC interrupt latch and chains to the KERNAL epilogue at $EA81, which pulls the registers and executes RTI.\nAssumptions: Requires $01=$06: $A000-$BFFF must read as RAM, and the KERNAL ROM must be in view for the hardware vector at $FFFE (to $FF48) and the exit at $EA81 (with $05 the CPU would take the vector from RAM, which holds $77AC, so the game writes $05 only with interrupts masked); banking BASIC back in while this vector is live would vector the interrupt into ROM. It relies entirely on the KERNAL prologue for register preservation, so it must never be entered by a foreground JSR.\nClobbers: A and flags within the handler; the interrupted A, X, Y, status, stack context and program counter are all restored by the KERNAL epilogue. The offset byte at $A7E2 is rewritten every interrupt.\nHardware changes: Through the selected phase: VIC-II $D011, $D016, $D018, $D021, $D012 and $D019. CINV itself is not modified here.","s":"force carry clear so the BCC below is always taken","t":"code","b":[24],"m":"clc"},{"a":42977,"s":"computed branch: offset byte @ $A7E2 selects the active split body","t":"code","b":[144,0],"m":"bcc","o":"RASTER_SPLIT_PICTURE","oa":42979},{"a":42978,"t":"note","l":"IRQ_SPLIT_STATE","c":"Self-modified BCC displacement in RASTER_IRQ_DISPATCH: $00 selects picture body $A7E3, $27 selects text body $A80A, and $52 selects bottom body $A835. Each phase writes the displacement needed for the next phase.","note":"inside the item at $A7E1","x":[43006,43049,43068]},{"a":42979,"l":"RASTER_SPLIT_PICTURE","c":"RASTER_SPLIT_PICTURE ($A7E3)\nPurpose: Phase body for the top band. Switches the VIC-II into multicolor bitmap mode for the room illustration, arms the next split at raster line 130, selects the text phase for the following interrupt, then acknowledges and returns through the KERNAL epilogue.\nInputs: Entered from the dispatcher with offset $00, on the interrupt armed for raster line 49. The KERNAL register-save frame is present.\nOutputs: Background colour black; screen matrix at $CC00 and bitmap at $E000 within VIC bank 3; bitmap mode on; multicolor on; next compare at line 130; dispatch offset set to $27. The interrupted CPU state is restored by the epilogue at $EA81.\nAssumptions: VIC bank 3 was selected once through CIA 2 port A by OPENING_SETUP ($06D1-$06D6), and no phase changes it; this handler only programs the in-bank pointers. The routine falls through into its acknowledge tail at $A801 rather than jumping.\nClobbers: A and flags; the offset byte at $A7E2. The interrupted registers are preserved by the KERNAL frame.\nHardware changes: Writes VIC-II $D021 = $00 (black background), $D018 = $38 (screen $CC00, bitmap $E000), $D011 = $3B (BMM set, 25 rows, display enabled, Y scroll 3), $D016 = $D8 (MCM set, 40 columns), $D012 = $82 (line 130), then reads and rewrites $D019 to acknowledge.","s":"A=$00 (black)","t":"code","b":[169,0],"m":"lda","o":"#$00","x":[42977]},{"a":42981,"s":"$D021 background color = black (behind the bitmap)","t":"code","b":[141,33,208],"m":"sta","o":"vic_background0"},{"a":42984,"s":"A=$38: screen matrix @ $CC00, bitmap @ $E000 (VIC bank 3)","t":"code","b":[169,56],"m":"lda","o":"#$38"},{"a":42986,"s":"$D018 VIC memory pointers","t":"code","b":[141,24,208],"m":"sta","o":"vic_memory"},{"a":42989,"s":"A=$3B: BITMAP mode on (BMM=1), 25 rows, display on, Yscroll=3","t":"code","b":[169,59],"m":"lda","o":"#$3B"},{"a":42991,"s":"$D011 VIC control reg 1","t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":42994,"s":"A=$D8: MULTICOLOR on (MCM=1), 40 cols, Xscroll=0","t":"code","b":[169,216],"m":"lda","o":"#$D8"},{"a":42996,"s":"$D016 VIC control reg 2","t":"code","b":[141,22,208],"m":"sta","o":"vic_control2"},{"a":42999,"s":"A=$82 (130) = next raster line (picture/text boundary)","t":"code","b":[169,130],"m":"lda","o":"#$82"},{"a":43001,"s":"$D012 arm next raster IRQ at line 130","t":"code","b":[141,18,208],"m":"sta","o":"vic_raster"},{"a":43004,"s":"A=$27 = branch offset selecting RASTER_SPLIT_TEXT_DELAY next","t":"code","b":[169,39],"m":"lda","o":"#$27"},{"a":43006,"s":"patch IRQ_SPLIT_STATE (self-modify the BCC at $A7E1)","t":"code","b":[141,226,167],"m":"sta","o":"IRQ_SPLIT_STATE","oa":42978},{"a":43009,"l":"RASTER_ACK_TAIL","c":"Tail of RASTER_SPLIT_PICTURE (reached by fall-through): acknowledge the VIC raster IRQ\nlatch and chain to the KERNAL IRQ epilogue at $EA81 (pull registers, RTI).","s":"read VIC IRQ latch","t":"code","b":[173,25,208],"m":"lda","o":"vic_irq_status"},{"a":43012,"s":"acknowledge/clear VIC raster IRQ ($D019)","t":"code","b":[141,25,208],"m":"sta","o":"vic_irq_status"},{"a":43015,"s":"chain to KERNAL IRQ epilogue ($EA81)","t":"code","b":[76,129,234],"m":"jmp","o":"j_EA81","oa":60033},{"a":43018,"l":"RASTER_SPLIT_TEXT_DELAY","c":"RASTER_SPLIT_TEXT_DELAY ($A80A)\nPurpose: Phase body for the middle band, entered eight CPU cycles early. The dispatcher's $27 offset lands on four NOPs, which delay the register writes so that the picture-to-text transition happens at the intended horizontal position; the body then switches the VIC-II back to hires text, arms line 138 and selects the bottom phase.\nInputs: Entered from the dispatcher with offset $27, on the interrupt armed for raster line 130. The KERNAL register-save frame is present.\nOutputs: Eight cycles consumed, then: background medium grey; screen matrix $CC00 and character generator $F800; text mode; multicolor off; next compare at line 138; dispatch offset set to $52; interrupt acknowledged; return through $EA81.\nAssumptions: The delay exists because the interrupt is only line-accurate, not cycle-accurate; without it the mode change would land inside the visible part of the line. The character generator at $F800 is RAM that only the VIC-II can see, since the CPU has KERNAL ROM there under $01=$06.\nClobbers: A and flags; the offset byte at $A7E2. The interrupted registers are preserved by the KERNAL frame.\nHardware changes: Writes VIC-II $D021 = $0C (medium grey), $D018 = $3E (screen $CC00, charset $F800), $D011 = $1B (text mode, 25 rows, display enabled, Y scroll 3), $D016 = $C8 (40 columns, multicolor off), $D012 = $8A (line 138), then reads and rewrites $D019 to acknowledge.","t":"code","b":[234],"m":"nop"},{"a":43019,"t":"code","b":[234],"m":"nop"},{"a":43020,"t":"code","b":[234],"m":"nop"},{"a":43021,"t":"code","b":[234],"m":"nop"},{"a":43022,"l":"RASTER_IRQ_SPLIT_MID","c":"Runs at raster line 130. Switches the VIC back to standard text mode for the text area\n(screen @ $CC00, charset @ $F800), arms the next split at raster line 138, patches the\ndispatch to select RASTER_SPLIT_BOTTOM next, then acknowledges the IRQ and chains to $EA81.","s":"A=$0C = medium-gray","t":"code","b":[169,12],"m":"lda","o":"#$0C"},{"a":43024,"s":"$D021 background/screen color = medium-gray","t":"code","b":[141,33,208],"m":"sta","o":"vic_background0"},{"a":43027,"s":"A=$3E: screen at $CC00, charset at $F800","t":"code","b":[169,62],"m":"lda","o":"#$3E"},{"a":43029,"s":"$D018 VIC memory pointers","t":"code","b":[141,24,208],"m":"sta","o":"vic_memory"},{"a":43032,"s":"A=$1B: text mode, 25 rows, display on, Yscroll=3","t":"code","b":[169,27],"m":"lda","o":"#$1B"},{"a":43034,"s":"$D011 VIC control reg 1","t":"code","b":[141,17,208],"m":"sta","o":"vic_control1"},{"a":43037,"s":"A=$C8: 40 cols, multicolor off, Xscroll=0","t":"code","b":[169,200],"m":"lda","o":"#$C8"},{"a":43039,"s":"$D016 VIC control reg 2","t":"code","b":[141,22,208],"m":"sta","o":"vic_control2"},{"a":43042,"s":"A=$8A (138) = next raster compare line","t":"code","b":[169,138],"m":"lda","o":"#$8A"},{"a":43044,"s":"$D012 arm next raster IRQ at line 138","t":"code","b":[141,18,208],"m":"sta","o":"vic_raster"},{"a":43047,"s":"A=$52 = branch offset selecting RASTER_SPLIT_BOTTOM next","t":"code","b":[169,82],"m":"lda","o":"#$52"},{"a":43049,"s":"patch IRQ_SPLIT_STATE (self-modify the BCC at $A7E1)","t":"code","b":[141,226,167],"m":"sta","o":"IRQ_SPLIT_STATE","oa":42978},{"a":43052,"s":"read VIC IRQ latch","t":"code","b":[173,25,208],"m":"lda","o":"vic_irq_status"},{"a":43055,"s":"acknowledge/clear VIC raster IRQ ($D019)","t":"code","b":[141,25,208],"m":"sta","o":"vic_irq_status"},{"a":43058,"s":"chain to KERNAL IRQ epilogue ($EA81)","t":"code","b":[76,129,234],"m":"jmp","o":"j_EA81","oa":60033},{"a":43061,"l":"RASTER_SPLIT_BOTTOM","c":"RASTER_SPLIT_BOTTOM ($A835)\nPurpose: Phase body for the bottom boundary. It changes no display register: it simply arms the next compare back at raster line 49 and selects the picture phase, restarting the three-phase cycle for the next frame.\nInputs: Entered from the dispatcher with offset $52, on the interrupt armed for raster line 138. The KERNAL register-save frame is present.\nOutputs: Next compare at line 49; dispatch offset reset to $00; interrupt acknowledged; return through $EA81.\nAssumptions: Because the text mode set at line 130 must persist to the bottom of the screen, this phase deliberately leaves $D011, $D016, $D018 and $D021 alone. Its only job is to close the cycle.\nClobbers: A and flags; the offset byte at $A7E2. The interrupted registers are preserved by the KERNAL frame.\nHardware changes: Writes VIC-II $D012 = $31 (line 49), then reads and rewrites $D019 to acknowledge.","s":"A=$31 (49) = next raster line (restart cycle at top of picture)","t":"code","b":[169,49],"m":"lda","o":"#$31"},{"a":43063,"s":"$D012 arm next raster IRQ at line 49","t":"code","b":[141,18,208],"m":"sta","o":"vic_raster"},{"a":43066,"s":"A=$00 = branch offset selecting RASTER_SPLIT_PICTURE next","t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":43068,"s":"patch IRQ_SPLIT_STATE (self-modify the BCC at $A7E1)","t":"code","b":[141,226,167],"m":"sta","o":"IRQ_SPLIT_STATE","oa":42978},{"a":43071,"s":"read VIC IRQ latch","t":"code","b":[173,25,208],"m":"lda","o":"vic_irq_status"},{"a":43074,"s":"acknowledge/clear VIC raster IRQ ($D019)","t":"code","b":[141,25,208],"m":"sta","o":"vic_irq_status"},{"a":43077,"s":"chain to KERNAL IRQ epilogue ($EA81)","t":"code","b":[76,129,234],"m":"jmp","o":"j_EA81","oa":60033},{"a":43080,"l":"ICON_SLOT_04_ARTWORK_TAIL","c":"ICON_SLOT_04_ARTWORK_TAIL ($A848-$A87F, 56 bytes) - the surviving tail of OBJECT_ICON_TABLE\nslot 4.\nSlot 4 spans $A7E0-$A87F ($A560 + 4*160). Its first 104 bytes were overwritten by the\nraster-split IRQ handlers at $A7E0-$A847; these 56 bytes are what is left of the icon that\noriginally occupied the slot. Slot 4 is dead - NOUN_TO_OBJECT_INDEX[4] is 0 and the resolver's\nlinear search always stops at index 0 first - so nothing ever reads them.\nEvidence that this is artwork and not padding: the bytes are 8-byte multicolor bitmap cells of\nthe same character as the live icons (runs of $FC, $3F, $E8, $6F), and they are near-identical\nto ICON_SLOT_05_ARTWORK_TAIL at the same offset within its slot ($A848 is slot4+104, $A8E8 is\nslot5+104, and both read FC FC FC FC FC FC 00 FC ...). Slots 4 and 5 therefore once held two\nclosely related icons.","t":"byte","b":[252,252,252,252,252,252,0,252]},{"a":43088,"t":"byte","b":[232,230,21,232,111,101,111,111]},{"a":43096,"t":"byte","b":[63,63,63,63,63,63,63,0]},{"a":43104,"t":"byte","b":[8,8,2,10,74,96,255,0]},{"a":43112,"t":"byte","b":[168,168,8,160,162,6,255,0]},{"a":43120,"t":"byte","b":[252,252,252,252,252,172,232,0]},{"a":43128,"t":"byte","b":[232,86,101,229,111,111,111,111]},{"a":43136,"l":"OPENING_IRQ","c":"The opening's interrupt. With $01 = $05, which shows the RAM under the KERNAL where the tune's data lies, it calls MUSIC_PLAY ($9695); then it sets $01 back to $06, acknowledges the raster interrupt ($D019 = $01) and leaves through the KERNAL's $EA81. OPENING_SETUP installs it; $070F replaces it with $A7E0 when the opening ends.","t":"code","b":[169,5],"m":"lda","o":"#$05"},{"a":43138,"t":"code","b":[133,1],"m":"sta","o":"C64_CPU_PROCESSOR_PORT","oa":1},{"a":43140,"t":"code","b":[32,149,150],"m":"jsr","o":"MUSIC_PLAY","oa":38549},{"a":43143,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":43145,"t":"code","b":[133,1],"m":"sta","o":"C64_CPU_PROCESSOR_PORT","oa":1},{"a":43147,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":43149,"t":"code","b":[141,25,208],"m":"sta","o":"vic_irq_status"},{"a":43152,"t":"code","b":[76,129,234],"m":"jmp","o":"j_EA81","oa":60033},{"a":43155,"l":"RESTORE_SYSTEM_TO_BASIC","c":"RESTORE_SYSTEM_TO_BASIC ($A893)\nPurpose: Hand the machine back to the KERNAL in a state a stock C64 can survive: select a memory map with the KERNAL ROM in view (BASIC's ROM at $A000-$BFFF stays banked out), zero the low RAM pages, rebuild the KERNAL indirect vector block, re-run BASIC's vector and zero-page initialisation, and restore the stock IRQ handler.\nInputs: None. Physically located inside a dead object-icon slot, which is why it survives in the icon table region.\nOutputs: $01 = $06; $0002-$0101, $0200-$02FF and $0300-$03FF zeroed (the STA $0002,Y loop runs Y=$00..$FF, so it spills two bytes into the stack page); $B2/$B3 = $033C (the cassette-buffer pointer) and $C2 = 3; the 32-byte KERNAL default vector table copied from $FD30 to $0314-$0333; BASIC's indirect vectors and zero page reinitialised through KERNAL $E453 and $E3BF; CINV ($0314/$0315) = $EA31.\nAssumptions: $01 must be set first, because everything afterwards reads KERNAL ROM. Note the consequence for its own neighbourhood: with $06 selected, $A000-$BFFF still reads as RAM, so this code and the icon table around it remain reachable, while $E000-$FFFF is ROM, which is why the game's own character set at $F800 becomes invisible to the CPU though the VIC-II still sees it. Nothing in the engine or the three parts calls it.\nClobbers: A, X, Y, flags, zero page from $02 (and $0100-$0101), pages 2 and 3, and BASIC's workspace. X is destroyed by the KERNAL calls to $E453 and $E3BF.\nHardware changes: Writes the 6510 port $01. Rewrites the KERNAL RAM vector block $0314-$0333 including CINV. Calls KERNAL $E453 and $E3BF. Does not itself touch VIC-II, SID or CIA registers, but restoring CINV to $EA31 hands interrupt-driven keyboard scanning and jiffy timing back to the KERNAL.","t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":43157,"t":"code","b":[133,1],"m":"sta","o":"C64_CPU_PROCESSOR_PORT","oa":1},{"a":43159,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":43161,"t":"code","b":[168],"m":"tay"},{"a":43162,"l":"RESTORE_BASIC_ZERO_LOOP","t":"code","b":[153,2,0],"m":"sta","o":"SCRATCH_BYTE,y","oa":2,"x":[43172]},{"a":43165,"t":"code","b":[153,0,2],"m":"sta","o":"BASIC_INPUT_BUFFER,y","oa":512},{"a":43168,"t":"code","b":[153,0,3],"m":"sta","o":"BASIC_VECTORS,y","oa":768},{"a":43171,"t":"code","b":[200],"m":"iny"},{"a":43172,"t":"code","b":[208,244],"m":"bne","o":"RESTORE_BASIC_ZERO_LOOP","oa":43162},{"a":43174,"t":"code","b":[169,60],"m":"lda","o":"#$3C"},{"a":43176,"t":"code","b":[133,178],"m":"sta","o":"TAPE1_CASSETTE_BUFFER_PTR","oa":178},{"a":43178,"t":"code","b":[169,3],"m":"lda","o":"#$03"},{"a":43180,"t":"code","b":[133,179],"m":"sta","o":"zpa_B3","oa":179},{"a":43182,"t":"code","b":[133,194],"m":"sta","o":"zpa_C2","oa":194},{"a":43184,"t":"code","b":[160,31],"m":"ldy","o":"#$1F"},{"a":43186,"l":"RESTORE_BASIC_VECTOR_COPY_LOOP","t":"code","b":[185,48,253],"m":"lda","o":"KERNAL_VECTOR_TABLE,y","oa":64816,"x":[43193]},{"a":43189,"t":"code","b":[153,20,3],"m":"sta","o":"C64_WORKSPACE_IRQ_RAM_VECTOR,y","oa":788},{"a":43192,"t":"code","b":[136],"m":"dey"},{"a":43193,"t":"code","b":[16,247],"m":"bpl","o":"RESTORE_BASIC_VECTOR_COPY_LOOP","oa":43186},{"a":43195,"t":"code","b":[32,83,228],"m":"jsr","o":"s_E453","oa":58451},{"a":43198,"t":"code","b":[32,191,227],"m":"jsr","o":"s_E3BF","oa":58303},{"a":43201,"t":"code","b":[169,49],"m":"lda","o":"#$31"},{"a":43203,"t":"code","b":[141,20,3],"m":"sta","o":"C64_WORKSPACE_IRQ_RAM_VECTOR","oa":788},{"a":43206,"t":"code","b":[169,234],"m":"lda","o":"#$EA"},{"a":43208,"t":"code","b":[141,21,3],"m":"sta","o":"IRQ_VECTOR_HIGH_BYTE","oa":789},{"a":43211,"t":"code","b":[96],"m":"rts"},{"a":43212,"l":"INSTALL_GAME_IRQ","c":"INSTALL_GAME_IRQ ($A8CC)\nPurpose: Point the KERNAL RAM interrupt vector at the game's raster-split dispatcher, clear CIA 1's FLAG interrupt mask and discard any pending CIA 1 request. It undoes the last step of RESTORE_SYSTEM_TO_BASIC, which points CINV back at $EA31 and leaves $DC0D alone.\nInputs: None. Also located inside a dead object-icon slot.\nOutputs: CINV ($0314/$0315) = $A7E0; CIA 1's FLAG interrupt mask cleared; any latched CIA 1 interrupt request discarded.\nAssumptions: Requires $01=$06 so that $A7E0 is the game's handler in RAM rather than BASIC ROM, and requires the raster source and initial compare to have been configured already. Nothing in the engine or the three parts calls it; $070F installs $A7E0 itself, at $076D.\nClobbers: A and flags.\nHardware changes: Writes the KERNAL RAM IRQ vector at $0314/$0315. Writes $10 to CIA 1 interrupt control $DC0D: with bit 7 clear the one bits are cleared, so this clears the FLAG mask and leaves the other sources alone. Then reads $DC0D, whose read side reports and clears the pending latch and releases the IRQ line, guaranteeing no stale CIA request fires when interrupts are re-enabled.","t":"code","b":[169,224],"m":"lda","o":"#$E0"},{"a":43214,"t":"code","b":[141,20,3],"m":"sta","o":"C64_WORKSPACE_IRQ_RAM_VECTOR","oa":788},{"a":43217,"t":"code","b":[169,167],"m":"lda","o":"#$A7"},{"a":43219,"t":"code","b":[141,21,3],"m":"sta","o":"IRQ_VECTOR_HIGH_BYTE","oa":789},{"a":43222,"t":"code","b":[169,16],"m":"lda","o":"#$10"},{"a":43224,"t":"code","b":[141,13,220],"m":"sta","o":"cia1_interrupt"},{"a":43227,"t":"code","b":[173,13,220],"m":"lda","o":"cia1_interrupt"},{"a":43230,"t":"code","b":[96],"m":"rts"},{"a":43231,"l":"ICON_SLOT_05_ARTWORK_TAIL","c":"ICON_SLOT_05_ARTWORK_TAIL ($A8DF-$A91F, 65 bytes) \u2014 surviving tail of OBJECT_ICON_TABLE slot 5.\nSlot 5 spans $A880-$A91F ($A560 + 5*160). Its first 19 bytes are the temporary startup IRQ, typed and described as code; the next 76 bytes contain the system-handoff routines RESTORE_SYSTEM_TO_BASIC ($A893-$A8CB) and INSTALL_GAME_IRQ ($A8CC-$A8DE), which nothing calls. These final 65 bytes are the remains of the overwritten icon. Slot 5 is unreachable through ordinary noun resolution because NOUN_TO_OBJECT_INDEX[5] is 0 behind the valid zero at index 0.\nICON_06 resumes exactly at the next slot boundary, $A920.","t":"byte","b":[12,84,116,116,84,36,80,84]},{"a":43239,"t":"byte","b":[116,252,252,252,252,252,252,0]},{"a":43247,"t":"byte","b":[252,232,232,145,232,111,102,111]},{"a":43255,"t":"byte","b":[111,63,63,63,63,63,63,63]},{"a":43263,"t":"byte","b":[0,12,12,3,15,143,176,85]},{"a":43271,"t":"byte","b":[0,168,168,8,160,163,11,85]},{"a":43279,"t":"byte","b":[0,252,252,252,252,252,92,212]},{"a":43287,"t":"byte","b":[0,232,245,249,37,111,102,98]},{"a":43295,"t":"byte","b":[127]},{"a":43296,"l":"ICON_06","c":"ICON_06 - gold key (large bow, short bit). Slot 6 of OBJECT_ICON_TABLE: 4x4-cell multicolor\npayload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[6] = $11, parser object id\n$43, vocabulary stem \"gol\".\nThis is the first intact slot after the two code-bearing holes (slots 4 and 5); it starts\nexactly on the slot boundary $A560 + 6*160.","t":"byte","b":[0,0,3,15,15,63,63,63]},{"a":43304,"t":"byte","b":[0,255,255,254,234,228,208,192]},{"a":43312,"t":"byte","b":[0,252,255,255,175,111,31,15]},{"a":43320,"t":"byte","b":[0,0,0,192,192,240,240,240]},{"a":43328,"t":"byte","b":[232,152,152,232,103,103,103,103]},{"a":43336,"t":"byte","b":[63,63,31,23,5,10,0,0]},{"a":43344,"t":"byte","b":[192,224,248,255,160,139,75,11]},{"a":43352,"t":"byte","b":[15,47,191,255,58,138,132,128]},{"a":43360,"t":"byte","b":[240,240,208,80,128,128,0,0]},{"a":43368,"t":"byte","b":[137,152,152,137,103,103,103,103]},{"a":43376,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":43384,"t":"byte","b":[11,11,27,27,27,27,27,27]},{"a":43392,"t":"byte","b":[128,128,144,144,144,144,155,155]},{"a":43400,"t":"byte","b":[0,0,0,0,0,0,240,224]},{"a":43408,"t":"byte","b":[232,152,152,232,104,103,103,103]},{"a":43416,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":43424,"t":"byte","b":[27,27,27,27,11,2,0,0]},{"a":43432,"t":"byte","b":[155,155,155,154,144,0,0,0]},{"a":43440,"t":"byte","b":[192,192,240,160,0,0,0,0]},{"a":43448,"t":"byte","b":[232,152,152,232,104,103,103,103]},{"a":43456,"l":"ICON_07","c":"ICON_07 - knife (white blade, dark hilt, on a diagonal). Slot 7 of OBJECT_ICON_TABLE: 4x4-cell\nmulticolor payload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[7] = $12, parser\nobject id $44, vocabulary stem \"kni\".","t":"byte","b":[0,0,10,37,43,47,47,11]},{"a":43464,"t":"byte","b":[0,0,0,0,192,192,240,240]},{"a":43472,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":43480,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":43488,"t":"byte","b":[31,232,232,232,98,98,104,104]},{"a":43496,"t":"byte","b":[18,18,18,48,4,12,1,3]},{"a":43504,"t":"byte","b":[252,252,255,191,191,46,47,11]},{"a":43512,"t":"byte","b":[0,0,0,0,192,192,224,96]},{"a":43520,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":43528,"t":"byte","b":[207,95,31,88,107,98,98,104]},{"a":43536,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":43544,"t":"byte","b":[74,194,16,50,0,0,0,0]},{"a":43552,"t":"byte","b":[240,192,12,56,251,251,60,60]},{"a":43560,"t":"byte","b":[0,0,0,0,0,0,192,192]},{"a":43568,"t":"byte","b":[232,207,225,232,104,107,111,111]},{"a":43576,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":43584,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":43592,"t":"byte","b":[14,3,3,0,0,0,0,0]},{"a":43600,"t":"byte","b":[0,112,112,252,44,0,0,0]},{"a":43608,"t":"byte","b":[232,232,225,27,104,120,111,111]},{"a":43616,"l":"ICON_08","c":"ICON_08 \u2014 green domed toadstool / glowing lamp on a stem. Slot 8 of OBJECT_ICON_TABLE: 4x4-cell multicolor payload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[8] = $13, parser object id $45, vocabulary stem \"glo\".","t":"byte","b":[0,0,48,12,0,3,11,11]},{"a":43624,"t":"byte","b":[0,64,0,5,91,95,95,91]},{"a":43632,"t":"byte","b":[0,4,0,64,148,213,213,149]},{"a":43640,"t":"byte","b":[0,0,48,192,0,0,64,64]},{"a":43648,"t":"byte","b":[229,215,215,88,109,97,97,109]},{"a":43656,"t":"byte","b":[21,21,21,21,21,21,21,5]},{"a":43664,"t":"byte","b":[255,255,95,85,85,85,85,85]},{"a":43672,"t":"byte","b":[253,253,213,85,85,85,85,85]},{"a":43680,"t":"byte","b":[80,80,80,80,80,80,80,64]},{"a":43688,"t":"byte","b":[88,88,88,88,109,109,173,109]},{"a":43696,"t":"byte","b":[11,2,0,0,0,0,0,0]},{"a":43704,"t":"byte","b":[191,175,250,15,32,46,10,0]},{"a":43712,"t":"byte","b":[250,235,188,192,32,160,128,0]},{"a":43720,"t":"byte","b":[128,0,0,0,0,0,0,0]},{"a":43728,"t":"byte","b":[229,230,230,229,102,101,101,102]},{"a":43736,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":43744,"t":"byte","b":[11,0,11,0,59,59,0,0]},{"a":43752,"t":"byte","b":[192,0,192,0,240,240,0,0]},{"a":43760,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":43768,"t":"byte","b":[232,229,232,232,101,102,102,101]},{"a":43776,"l":"ICON_09","c":"ICON_09 - spider web (blue-violet strands filling the cell). Slot 9 of OBJECT_ICON_TABLE:\n4x4-cell multicolor payload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[9] = $14,\nparser object id $46, reached by either of the vocabulary stems \"web\" and \"spi\".","t":"byte","b":[0,0,0,0,60,3,3,3]},{"a":43784,"t":"byte","b":[0,0,0,0,63,192,0,2]},{"a":43792,"t":"byte","b":[0,32,32,32,128,176,140,3]},{"a":43800,"t":"byte","b":[0,0,0,12,12,12,48,48]},{"a":43808,"t":"byte","b":[88,94,94,88,107,123,107,107]},{"a":43816,"t":"byte","b":[3,51,5,12,12,12,3,3]},{"a":43824,"t":"byte","b":[1,1,219,68,4,19,16,16]},{"a":43832,"t":"byte","b":[0,0,67,115,28,4,196,193]},{"a":43840,"t":"byte","b":[192,240,12,0,192,48,48,84]},{"a":43848,"t":"byte","b":[232,225,232,232,107,107,107,107]},{"a":43856,"t":"byte","b":[3,1,4,4,13,3,3,12]},{"a":43864,"t":"byte","b":[71,193,48,205,48,1,71,16]},{"a":43872,"t":"byte","b":[84,1,67,193,125,1,65,17]},{"a":43880,"t":"byte","b":[48,48,48,48,0,240,12,48]},{"a":43888,"t":"byte","b":[232,232,232,232,107,107,107,107]},{"a":43896,"t":"byte","b":[12,51,48,0,40,2,0,0]},{"a":43904,"t":"byte","b":[16,19,211,4,5,68,52,0]},{"a":43912,"t":"byte","b":[200,6,17,16,112,12,3,0]},{"a":43920,"t":"byte","b":[48,48,48,64,16,4,0,0]},{"a":43928,"t":"byte","b":[94,232,225,232,107,107,107,107]},{"a":43936,"l":"ICON_10","c":"ICON_10 - iron key (dark ring bow and long shank). Slot 10 of OBJECT_ICON_TABLE: 4x4-cell\nmulticolor payload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[10] = $15, parser\nobject id $47, vocabulary stem \"iro\".","t":"byte","b":[0,0,3,3,15,12,60,44]},{"a":43944,"t":"byte","b":[0,0,240,240,60,12,12,62]},{"a":43952,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":43960,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":43968,"t":"byte","b":[91,235,232,232,89,137,104,248]},{"a":43976,"t":"byte","b":[44,47,10,15,3,0,0,0]},{"a":43984,"t":"byte","b":[50,240,204,60,139,11,2,2]},{"a":43992,"t":"byte","b":[0,0,0,0,0,0,192,192]},{"a":44000,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44008,"t":"byte","b":[91,235,232,232,105,41,89,104]},{"a":44016,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44024,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44032,"t":"byte","b":[176,176,44,44,11,11,2,14]},{"a":44040,"t":"byte","b":[0,0,0,0,0,0,192,192]},{"a":44048,"t":"byte","b":[88,232,235,232,248,104,89,9]},{"a":44056,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44064,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44072,"t":"byte","b":[60,47,11,8,0,0,0,0]},{"a":44080,"t":"byte","b":[176,176,44,44,0,0,0,0]},{"a":44088,"t":"byte","b":[88,232,235,235,104,248,249,105]},{"a":44096,"l":"ICON_11_ANCIENT_PADLOCK","c":"ICON_11_ANCIENT_PADLOCK \u2014 the ancient padlock inventory icon. Slot 11 of OBJECT_ICON_TABLE is a 4x4-cell multicolor payload of 160 bytes; it renders as a grey U-shaped padlock with a dark body and gold highlights.\nThe identification is independently consistent with the ordered object-description table at $22C9: NOUN_TO_OBJECT_INDEX[11] = $16 and parser object id $48, and entry $16 (22) of that table points at \"An Ancient Padlock\" ($23E6).","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44104,"t":"byte","b":[0,0,0,3,15,62,248,224]},{"a":44112,"t":"byte","b":[0,0,0,192,240,172,43,11]},{"a":44120,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44128,"t":"byte","b":[232,233,233,232,88,91,107,88]},{"a":44136,"t":"byte","b":[0,0,3,15,15,15,15,15]},{"a":44144,"t":"byte","b":[224,0,252,250,11,236,176,176]},{"a":44152,"t":"byte","b":[11,0,63,251,240,62,10,10]},{"a":44160,"t":"byte","b":[0,0,192,240,240,240,240,176]},{"a":44168,"t":"byte","b":[232,233,137,233,251,107,219,251]},{"a":44176,"t":"byte","b":[14,63,62,63,63,63,63,63]},{"a":44184,"t":"byte","b":[176,172,232,172,188,188,188,188]},{"a":44192,"t":"byte","b":[10,42,43,42,42,43,43,43]},{"a":44200,"t":"byte","b":[240,188,188,252,252,252,252,188]},{"a":44208,"t":"byte","b":[233,233,137,233,251,11,123,107]},{"a":44216,"t":"byte","b":[15,3,3,0,0,0,0,0]},{"a":44224,"t":"byte","b":[168,238,254,255,15,0,0,0]},{"a":44232,"t":"byte","b":[42,171,171,255,240,0,0,0]},{"a":44240,"t":"byte","b":[188,240,192,0,0,0,0,0]},{"a":44248,"t":"byte","b":[232,233,137,233,107,91,251,123]},{"a":44256,"l":"ICON_12","c":"ICON_12 - sapphire (blue-violet faceted gem). Slot 12 of OBJECT_ICON_TABLE: 4x4-cell multicolor\npayload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[12] = $17, parser object id\n$49, vocabulary stem \"sap\".","t":"byte","b":[0,0,0,0,0,0,3,3]},{"a":44264,"t":"byte","b":[0,0,32,40,168,170,170,170]},{"a":44272,"t":"byte","b":[0,0,0,0,0,0,128,128]},{"a":44280,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44288,"t":"byte","b":[88,225,225,232,97,101,245,248]},{"a":44296,"t":"byte","b":[2,2,11,10,10,10,42,42]},{"a":44304,"t":"byte","b":[174,171,239,251,251,254,254,251]},{"a":44312,"t":"byte","b":[16,100,100,105,217,218,218,118]},{"a":44320,"t":"byte","b":[0,0,0,0,0,64,144,176]},{"a":44328,"t":"byte","b":[94,49,22,22,97,110,245,133]},{"a":44336,"t":"byte","b":[63,7,7,7,1,1,1,0]},{"a":44344,"t":"byte","b":[85,170,171,175,174,174,174,122]},{"a":44352,"t":"byte","b":[93,186,186,186,234,235,236,236]},{"a":44360,"t":"byte","b":[172,240,176,192,192,0,0,0]},{"a":44368,"t":"byte","b":[83,86,22,230,110,84,149,101]},{"a":44376,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44384,"t":"byte","b":[235,59,59,63,15,12,0,0]},{"a":44392,"t":"byte","b":[48,192,192,0,0,0,0,0]},{"a":44400,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44408,"t":"byte","b":[88,230,232,232,248,101,101,168]},{"a":44416,"l":"ICON_13","c":"ICON_13 - ruby (red-brown faceted gem). Slot 13 of OBJECT_ICON_TABLE: 4x4-cell multicolor\npayload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[13] = $19, parser object id\n$4B, vocabulary stem \"rub\".\nNote the table is not monotonic here: entry 13 is $19 and entry 14 is $18, so \"rub\" resolves to\nthis slot and \"dia\" to the next one.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44424,"t":"byte","b":[0,0,0,0,0,3,58,38]},{"a":44432,"t":"byte","b":[0,0,0,60,43,254,254,171]},{"a":44440,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44448,"t":"byte","b":[232,26,234,232,81,98,2,248]},{"a":44456,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44464,"t":"byte","b":[57,62,58,58,62,62,254,254]},{"a":44472,"t":"byte","b":[126,250,250,186,186,186,170,184]},{"a":44480,"t":"byte","b":[0,0,0,64,64,64,64,64]},{"a":44488,"t":"byte","b":[232,26,18,38,3,242,106,101]},{"a":44496,"t":"byte","b":[3,3,15,15,15,15,15,15]},{"a":44504,"t":"byte","b":[254,254,62,62,63,62,62,63]},{"a":44512,"t":"byte","b":[239,255,252,236,251,252,252,252]},{"a":44520,"t":"byte","b":[64,64,64,64,64,64,64,64]},{"a":44528,"t":"byte","b":[101,74,106,37,114,98,82,246]},{"a":44536,"t":"byte","b":[15,12,15,15,3,0,0,0]},{"a":44544,"t":"byte","b":[21,5,80,85,64,0,0,0]},{"a":44552,"t":"byte","b":[252,252,195,63,255,60,0,0]},{"a":44560,"t":"byte","b":[192,192,0,0,0,0,0,0]},{"a":44568,"t":"byte","b":[232,38,232,232,242,245,114,98]},{"a":44576,"l":"ICON_14","c":"ICON_14 - diamond (white and pale-blue faceted stone). Slot 14 of OBJECT_ICON_TABLE: 4x4-cell\nmulticolor payload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[14] = $18, parser\nobject id $4A, vocabulary stem \"dia\".","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44584,"t":"byte","b":[0,0,0,0,0,0,0,15]},{"a":44592,"t":"byte","b":[0,0,0,0,0,0,0,224]},{"a":44600,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44608,"t":"byte","b":[232,229,230,88,81,241,97,120]},{"a":44616,"t":"byte","b":[0,0,3,3,3,3,3,3]},{"a":44624,"t":"byte","b":[51,192,60,51,143,173,189,191]},{"a":44632,"t":"byte","b":[212,53,253,241,193,193,193,193]},{"a":44640,"t":"byte","b":[0,0,192,192,192,192,192,192]},{"a":44648,"t":"byte","b":[232,54,110,94,97,241,161,246]},{"a":44656,"t":"byte","b":[3,0,0,0,0,0,0,0]},{"a":44664,"t":"byte","b":[255,255,63,15,2,0,0,0]},{"a":44672,"t":"byte","b":[61,245,20,208,64,0,0,0]},{"a":44680,"t":"byte","b":[192,0,0,0,0,0,0,0]},{"a":44688,"t":"byte","b":[101,70,101,94,1,97,81,86]},{"a":44696,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44704,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44712,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44720,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":44728,"t":"byte","b":[232,230,232,88,104,165,245,104]},{"a":44736,"l":"ICON_15","c":"ICON_15 - cloak / cape (black hooded cloak with red folds and two yellow dots in the hood, on a dark-red ground). Slot 15 of\nOBJECT_ICON_TABLE: 4x4-cell multicolor payload, 160 bytes; see the plate at $A560.\nNOUN_TO_OBJECT_INDEX[15] = $1A, parser object id $4C, vocabulary stem \"cap\".","t":"byte","b":[0,63,63,63,63,63,63,63]},{"a":44744,"t":"byte","b":[0,255,255,255,243,240,195,206]},{"a":44752,"t":"byte","b":[0,255,255,207,15,51,51,35]},{"a":44760,"t":"byte","b":[0,252,252,252,252,252,252,252]},{"a":44768,"t":"byte","b":[232,231,231,232,162,82,242,242]},{"a":44776,"t":"byte","b":[63,63,63,63,63,63,60,60]},{"a":44784,"t":"byte","b":[206,204,204,12,48,48,48,48]},{"a":44792,"t":"byte","b":[35,48,48,48,48,48,48,12]},{"a":44800,"t":"byte","b":[252,252,252,252,252,252,252,60]},{"a":44808,"t":"byte","b":[232,231,231,232,242,98,2,66]},{"a":44816,"t":"byte","b":[60,60,60,60,48,48,48,48]},{"a":44824,"t":"byte","b":[48,48,48,48,48,48,48,48]},{"a":44832,"t":"byte","b":[12,12,12,12,12,48,48,48]},{"a":44840,"t":"byte","b":[60,60,60,60,60,60,60,60]},{"a":44848,"t":"byte","b":[232,232,232,232,98,82,242,98]},{"a":44856,"t":"byte","b":[48,48,51,60,63,63,63,0]},{"a":44864,"t":"byte","b":[48,48,192,0,0,255,255,0]},{"a":44872,"t":"byte","b":[48,48,12,3,0,255,255,0]},{"a":44880,"t":"byte","b":[60,60,60,60,252,252,252,0]},{"a":44888,"t":"byte","b":[232,232,232,232,114,242,162,242]},{"a":44896,"l":"ICON_16","c":"ICON_16 - rope (gold coil). Slot 16 of OBJECT_ICON_TABLE: 4x4-cell multicolor payload, 160\nbytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[16] = $1B, parser object id $4D, vocabulary\nstem \"rop\".","t":"byte","b":[0,0,0,3,2,3,11,12]},{"a":44904,"t":"byte","b":[0,0,0,0,0,0,2,14]},{"a":44912,"t":"byte","b":[0,0,0,0,14,239,240,0]},{"a":44920,"t":"byte","b":[0,0,0,0,192,224,176,32]},{"a":44928,"t":"byte","b":[88,232,232,232,103,55,87,103]},{"a":44936,"t":"byte","b":[8,12,8,12,8,12,8,12]},{"a":44944,"t":"byte","b":[44,176,192,128,128,195,131,130]},{"a":44952,"t":"byte","b":[0,0,239,178,240,160,236,200]},{"a":44960,"t":"byte","b":[60,40,12,200,136,204,136,204]},{"a":44968,"t":"byte","b":[88,232,232,232,39,103,7,39]},{"a":44976,"t":"byte","b":[8,14,3,2,15,8,12,8]},{"a":44984,"t":"byte","b":[194,51,34,51,15,8,14,0]},{"a":44992,"t":"byte","b":[44,48,32,176,194,238,240,128]},{"a":45000,"t":"byte","b":[136,204,136,204,200,12,56,176]},{"a":45008,"t":"byte","b":[88,88,88,88,103,7,7,103]},{"a":45016,"t":"byte","b":[12,8,12,8,14,3,0,0]},{"a":45024,"t":"byte","b":[0,0,59,188,192,0,0,0]},{"a":45032,"t":"byte","b":[0,3,139,236,48,0,0,0]},{"a":45040,"t":"byte","b":[224,128,0,0,0,0,0,0]},{"a":45048,"t":"byte","b":[232,232,232,232,87,103,247,87]},{"a":45056,"l":"ICON_17","c":"ICON_17 - the branch, a dark stick drawn upright on a light-grey ground (colour-RAM value 15); its burning form is the next slot. Slot 17 of\nOBJECT_ICON_TABLE: 4x4-cell multicolor payload, 160 bytes; see the plate at $A560.\nNOUN_TO_OBJECT_INDEX[17] = $1D, parser object id $4F, vocabulary stem \"bra\".","t":"byte","b":[0,63,63,63,63,63,63,63]},{"a":45064,"t":"byte","b":[0,255,240,192,194,192,192,192]},{"a":45072,"t":"byte","b":[0,255,63,15,15,15,15,15]},{"a":45080,"t":"byte","b":[0,252,252,252,252,252,252,252]},{"a":45088,"t":"byte","b":[232,225,232,232,255,111,95,95]},{"a":45096,"t":"byte","b":[63,63,63,63,63,63,63,63]},{"a":45104,"t":"byte","b":[192,240,242,248,248,250,248,250]},{"a":45112,"t":"byte","b":[15,63,191,191,191,191,191,191]},{"a":45120,"t":"byte","b":[252,252,252,252,252,252,252,252]},{"a":45128,"t":"byte","b":[232,233,233,232,95,191,143,111]},{"a":45136,"t":"byte","b":[63,63,63,63,63,63,63,63]},{"a":45144,"t":"byte","b":[250,248,250,254,254,254,254,254]},{"a":45152,"t":"byte","b":[191,191,191,191,191,191,191,191]},{"a":45160,"t":"byte","b":[252,252,252,252,252,252,252,252]},{"a":45168,"t":"byte","b":[88,89,89,88,111,255,15,143]},{"a":45176,"t":"byte","b":[63,63,63,63,63,63,63,0]},{"a":45184,"t":"byte","b":[254,254,254,254,254,254,255,0]},{"a":45192,"t":"byte","b":[191,191,191,255,255,255,255,0]},{"a":45200,"t":"byte","b":[252,252,252,252,252,252,252,0]},{"a":45208,"t":"byte","b":[232,233,233,232,95,95,111,95]},{"a":45216,"l":"ICON_18","c":"ICON_18 - burning torch (gold flame over a dark shaft). Slot 18 of OBJECT_ICON_TABLE: 4x4-cell\nmulticolor payload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[18] = $1E, parser\nobject id $50, vocabulary stem \"bur\".","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":45224,"t":"byte","b":[0,0,0,0,0,0,8,0]},{"a":45232,"t":"byte","b":[0,128,192,0,128,192,194,130]},{"a":45240,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":45248,"t":"byte","b":[88,232,232,232,88,104,247,88]},{"a":45256,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":45264,"t":"byte","b":[8,8,8,2,3,3,10,10]},{"a":45272,"t":"byte","b":[226,128,162,184,168,48,184,232]},{"a":45280,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":45288,"t":"byte","b":[88,232,232,232,104,199,55,104]},{"a":45296,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":45304,"t":"byte","b":[8,14,46,47,43,59,58,46]},{"a":45312,"t":"byte","b":[248,224,236,252,254,238,206,172]},{"a":45320,"t":"byte","b":[0,0,128,128,0,0,0,0]},{"a":45328,"t":"byte","b":[88,232,232,232,88,103,103,88]},{"a":45336,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":45344,"t":"byte","b":[6,3,3,3,3,3,3,0]},{"a":45352,"t":"byte","b":[248,48,48,48,240,48,240,0]},{"a":45360,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":45368,"t":"byte","b":[232,135,232,232,248,249,169,104]},{"a":45376,"l":"ICON_19","c":"ICON_19 - the glass fragment, a white shard of glass on a dark-red ground, left when HIT BOX shatters the glass box. Slot 19 of\nOBJECT_ICON_TABLE: 4x4-cell multicolor payload, 160 bytes; see the plate at $A560.\nNOUN_TO_OBJECT_INDEX[19] = $1F, parser object id $51, vocabulary stem \"fra\".","t":"byte","b":[0,63,63,63,63,63,63,63]},{"a":45384,"t":"byte","b":[0,85,85,85,109,111,183,181]},{"a":45392,"t":"byte","b":[0,170,170,170,170,170,170,234]},{"a":45400,"t":"byte","b":[0,252,252,252,252,252,252,252]},{"a":45408,"t":"byte","b":[232,37,226,232,82,191,111,98]},{"a":45416,"t":"byte","b":[21,22,22,27,27,27,45,41]},{"a":45424,"t":"byte","b":[182,230,218,154,154,154,154,152]},{"a":45432,"t":"byte","b":[186,174,174,171,171,171,43,42]},{"a":45440,"t":"byte","b":[168,168,168,168,168,168,168,232]},{"a":45448,"t":"byte","b":[37,18,226,226,143,111,191,63]},{"a":45456,"t":"byte","b":[30,39,39,39,41,41,41,1]},{"a":45464,"t":"byte","b":[32,8,8,8,200,200,200,192]},{"a":45472,"t":"byte","b":[10,10,2,3,3,3,14,12]},{"a":45480,"t":"byte","b":[232,232,232,168,168,168,168,0]},{"a":45488,"t":"byte","b":[82,81,82,82,95,95,143,255]},{"a":45496,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":45504,"t":"byte","b":[176,176,176,44,11,0,0,0]},{"a":45512,"t":"byte","b":[48,48,192,192,0,0,0,0]},{"a":45520,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":45528,"t":"byte","b":[232,37,226,232,98,95,95,98]},{"a":45536,"l":"ICON_20","c":"ICON_20 - paper (stack of brown parchment sheets on a grey ground). Slot 20 of\nOBJECT_ICON_TABLE: 4x4-cell multicolor payload, 160 bytes; see the plate at $A560.\nNOUN_TO_OBJECT_INDEX[20] = $21, parser object id $53, vocabulary stem \"pap\".","t":"byte","b":[0,63,63,60,60,50,50,50]},{"a":45544,"t":"byte","b":[0,255,15,83,84,84,101,169]},{"a":45552,"t":"byte","b":[0,255,255,51,255,60,3,168]},{"a":45560,"t":"byte","b":[0,252,252,252,252,60,252,252]},{"a":45568,"t":"byte","b":[233,152,233,88,108,252,92,108]},{"a":45576,"t":"byte","b":[49,49,49,49,49,49,48,54]},{"a":45584,"t":"byte","b":[170,47,56,136,162,170,42,40]},{"a":45592,"t":"byte","b":[169,234,190,142,163,174,185,57]},{"a":45600,"t":"byte","b":[60,140,140,140,172,172,140,140]},{"a":45608,"t":"byte","b":[152,232,152,89,252,103,55,172]},{"a":45616,"t":"byte","b":[54,58,56,58,56,58,58,58]},{"a":45624,"t":"byte","b":[160,170,42,138,170,10,168,170]},{"a":45632,"t":"byte","b":[139,162,42,160,162,32,170,170]},{"a":45640,"t":"byte","b":[76,156,156,156,156,156,156,156]},{"a":45648,"t":"byte","b":[152,88,120,152,108,92,89,108]},{"a":45656,"t":"byte","b":[56,54,53,49,60,60,63,0]},{"a":45664,"t":"byte","b":[42,168,149,85,80,3,15,0]},{"a":45672,"t":"byte","b":[130,170,165,83,63,204,255,0]},{"a":45680,"t":"byte","b":[124,124,252,60,252,252,252,0]},{"a":45688,"t":"byte","b":[152,152,152,152,252,172,108,92]},{"a":45696,"l":"ICON_21","c":"ICON_21 - leather (stretched animal hide, splayed). Slot 21 of OBJECT_ICON_TABLE: 4x4-cell\nmulticolor payload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[21] = $22, parser\nobject id $54, vocabulary stem \"lea\".","t":"byte","b":[0,0,0,0,0,48,60,15]},{"a":45704,"t":"byte","b":[0,0,0,3,3,3,15,255]},{"a":45712,"t":"byte","b":[0,0,0,192,192,192,240,255]},{"a":45720,"t":"byte","b":[0,0,0,0,0,12,60,240]},{"a":45728,"t":"byte","b":[232,232,232,232,9,105,89,249]},{"a":45736,"t":"byte","b":[15,3,3,3,3,0,0,0]},{"a":45744,"t":"byte","b":[254,254,191,238,254,255,255,255]},{"a":45752,"t":"byte","b":[255,255,254,251,239,191,191,191]},{"a":45760,"t":"byte","b":[240,192,192,192,192,0,0,0]},{"a":45768,"t":"byte","b":[232,232,232,232,105,169,57,105]},{"a":45776,"t":"byte","b":[0,0,0,0,0,3,3,15]},{"a":45784,"t":"byte","b":[255,254,255,254,255,254,254,254]},{"a":45792,"t":"byte","b":[191,255,255,255,191,191,191,255]},{"a":45800,"t":"byte","b":[0,0,0,0,0,192,192,240]},{"a":45808,"t":"byte","b":[232,232,232,232,105,249,89,249]},{"a":45816,"t":"byte","b":[15,15,15,63,63,60,48,0]},{"a":45824,"t":"byte","b":[255,255,207,3,0,0,0,0]},{"a":45832,"t":"byte","b":[191,255,243,192,0,0,0,0]},{"a":45840,"t":"byte","b":[240,240,240,252,252,60,12,0]},{"a":45848,"t":"byte","b":[232,232,232,232,89,89,105,89]},{"a":45856,"l":"ICON_22","c":"ICON_22 - box (small object inside a white frame). Slot 22 of OBJECT_ICON_TABLE: 4x4-cell\nmulticolor payload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[22] = $24, parser\nobject id $56, vocabulary stem \"box\".","t":"byte","b":[0,0,0,0,42,44,35,35]},{"a":45864,"t":"byte","b":[0,0,0,0,187,0,255,0]},{"a":45872,"t":"byte","b":[0,0,0,0,255,0,255,0]},{"a":45880,"t":"byte","b":[0,0,0,0,240,52,244,52]},{"a":45888,"t":"byte","b":[225,145,121,233,255,111,95,63]},{"a":45896,"t":"byte","b":[51,51,35,35,51,51,51,51]},{"a":45904,"t":"byte","b":[0,20,105,170,170,170,234,62]},{"a":45912,"t":"byte","b":[0,0,0,64,144,164,232,188]},{"a":45920,"t":"byte","b":[52,52,52,52,52,52,52,52]},{"a":45928,"t":"byte","b":[145,23,23,231,95,120,104,95]},{"a":45936,"t":"byte","b":[51,51,51,51,51,51,51,51]},{"a":45944,"t":"byte","b":[3,0,0,0,0,0,0,0]},{"a":45952,"t":"byte","b":[192,0,0,0,0,0,0,0]},{"a":45960,"t":"byte","b":[56,56,56,56,56,56,56,56]},{"a":45968,"t":"byte","b":[231,151,151,158,255,104,88,95]},{"a":45976,"t":"byte","b":[63,1,0,0,0,0,0,0]},{"a":45984,"t":"byte","b":[255,170,0,0,0,0,0,0]},{"a":45992,"t":"byte","b":[255,170,0,0,0,0,0,0]},{"a":46000,"t":"byte","b":[244,84,0,0,0,0,0,0]},{"a":46008,"t":"byte","b":[233,30,158,232,111,111,111,111]},{"a":46016,"l":"ICON_FALKOR","c":"Falkor object/scene graphic. Slot 23 of OBJECT_ICON_TABLE: a 4x4-cell, 160-byte\ninterleaved multicolor payload whose long pale body on blue initially resembles a serpent; in\ngame context it depicts Falkor, the luckdragon.\nDYNAMIC PROOF: during part 1, command \"get falkor\" in room $21 selected verb-rule pair 14\n(verb $15, noun $37) and ACTION_SCRIPT_GET_FALKOR. At script bytes $2B8F-$2B90, action opcode\n$17 passed operand $17 to SCRIPT_SET_OBJECT_GRAPHIC ($113D). At the COPY_BLIT_ROW read\n($0678), CURRENT_OBJECT_INDEX was $17, GRAPHIC_RECORD_PTR and BLIT_SOURCE_PTR were both $B3C0,\nand the call stack returned through the action VM's self-modified call at $1699.\nNOUN_TO_OBJECT_INDEX[23] is zero, so ordinary noun resolution cannot select this index; the\naction script deliberately supplies the graphics index directly. This is a scene graphic, not\nan unreachable inventory-noun slot.","t":"byte","b":[0,63,63,63,63,63,63,63]},{"a":46024,"t":"byte","b":[0,85,85,85,85,86,106,105]},{"a":46032,"t":"byte","b":[0,170,170,170,248,207,255,252]},{"a":46040,"t":"byte","b":[0,252,252,252,60,44,44,236]},{"a":46048,"t":"byte","b":[232,111,230,239,246,110,111,86]},{"a":46056,"t":"byte","b":[21,21,21,22,22,26,26,26]},{"a":46064,"t":"byte","b":[86,106,170,170,166,105,154,150]},{"a":46072,"t":"byte","b":[163,170,191,255,255,191,239,255]},{"a":46080,"t":"byte","b":[248,168,168,168,168,168,168,168]},{"a":46088,"t":"byte","b":[111,111,239,230,94,126,102,82]},{"a":46096,"t":"byte","b":[47,47,46,47,47,47,43,43]},{"a":46104,"t":"byte","b":[149,149,149,101,101,89,166,105]},{"a":46112,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":46120,"t":"byte","b":[252,252,252,252,252,252,252,252]},{"a":46128,"t":"byte","b":[230,111,235,232,175,254,102,246]},{"a":46136,"t":"byte","b":[63,63,63,63,63,63,63,0]},{"a":46144,"t":"byte","b":[149,105,90,85,85,85,85,0]},{"a":46152,"t":"byte","b":[170,170,234,254,175,170,170,0]},{"a":46160,"t":"byte","b":[168,168,168,168,168,248,168,0]},{"a":46168,"t":"byte","b":[232,111,230,230,102,110,111,111]},{"a":46176,"l":"ICON_ARTAX","c":"Artax scripted-scene graphic. Slot 24 of OBJECT_ICON_TABLE: a 4x4-cell,\n160-byte interleaved multicolor payload depicting a dark horse on open brown ground.\nSTATIC IDENTITY PROOF: VOCAB_ARTAX at $1C2A is stem \"art\", noun id $57.\nVERB_RULE_GET_ARTAX at $19BA is pair 13 ($15 GET, $57 ARTAX), whose pointer at $29A0 selects\nACTION_SCRIPT_GET_ARTAX at $2B55. Its successful room-$25 branch contains action bytes\n$17,$18 at $2B5F-$2B60; opcode $17 is SCRIPT_SET_OBJECT_GRAPHIC and operand $18 is slot 24,\nwhose address is $A560 + 24*$A0 = $B460. This scripted path bypasses NOUN_TO_OBJECT_INDEX.","t":"byte","b":[0,63,55,63,61,29,21,53]},{"a":46184,"t":"byte","b":[0,223,255,247,245,85,87,85]},{"a":46192,"t":"byte","b":[0,247,93,255,215,95,117,85]},{"a":46200,"t":"byte","b":[0,252,116,252,124,252,84,116]},{"a":46208,"t":"byte","b":[138,138,143,143,87,247,103,87]},{"a":46216,"t":"byte","b":[21,21,21,21,21,21,21,21]},{"a":46224,"t":"byte","b":[85,85,85,85,85,85,85,85]},{"a":46232,"t":"byte","b":[85,85,85,85,84,84,80,64]},{"a":46240,"t":"byte","b":[84,84,84,84,84,20,4,4]},{"a":46248,"t":"byte","b":[140,143,143,139,95,123,107,95]},{"a":46256,"t":"byte","b":[42,32,32,42,42,42,40,34]},{"a":46264,"t":"byte","b":[170,128,0,128,0,2,138,42]},{"a":46272,"t":"byte","b":[0,2,2,2,2,136,162,168]},{"a":46280,"t":"byte","b":[168,168,168,168,168,168,40,40]},{"a":46288,"t":"byte","b":[200,200,200,232,175,255,111,247]},{"a":46296,"t":"byte","b":[21,21,0,0,0,0,0,0]},{"a":46304,"t":"byte","b":[85,85,0,0,0,0,0,0]},{"a":46312,"t":"byte","b":[85,85,0,0,0,0,0,0]},{"a":46320,"t":"byte","b":[84,84,0,0,0,0,0,0]},{"a":46328,"t":"byte","b":[143,130,143,135,108,108,108,98]},{"a":46336,"l":"ICON_25","c":"ICON_25 - stone (grey boulder). Slot 25 of OBJECT_ICON_TABLE: 4x4-cell multicolor payload, 160\nbytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[25] = $26, parser object id $58, vocabulary\nstem \"sto\".","t":"byte","b":[0,0,0,0,0,0,0,3]},{"a":46344,"t":"byte","b":[0,3,63,159,166,125,181,127]},{"a":46352,"t":"byte","b":[0,192,192,192,124,172,212,255]},{"a":46360,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":46368,"t":"byte","b":[232,207,207,232,91,251,107,88]},{"a":46376,"t":"byte","b":[3,3,3,3,15,15,0,3]},{"a":46384,"t":"byte","b":[254,190,250,255,251,231,213,93]},{"a":46392,"t":"byte","b":[191,191,183,175,175,171,107,235]},{"a":46400,"t":"byte","b":[0,0,0,0,0,0,0,192]},{"a":46408,"t":"byte","b":[232,201,201,232,91,91,123,107]},{"a":46416,"t":"byte","b":[3,14,15,53,61,12,15,3]},{"a":46424,"t":"byte","b":[169,165,165,149,213,253,255,207]},{"a":46432,"t":"byte","b":[85,87,119,127,95,127,253,241]},{"a":46440,"t":"byte","b":[128,176,176,160,224,128,176,176]},{"a":46448,"t":"byte","b":[207,159,152,233,171,251,107,251]},{"a":46456,"t":"byte","b":[3,3,0,0,0,0,0,0]},{"a":46464,"t":"byte","b":[255,192,0,0,0,0,0,0]},{"a":46472,"t":"byte","b":[207,255,252,0,0,0,0,0]},{"a":46480,"t":"byte","b":[192,192,0,0,0,0,0,0]},{"a":46488,"t":"byte","b":[232,232,152,232,107,107,107,107]},{"a":46496,"l":"ICON_26","c":"ICON_26 - apple (red fruit with green leaves and a highlight). Slot 26 of OBJECT_ICON_TABLE:\n4x4-cell multicolor payload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[26] = $27,\nparser object id $59, vocabulary stem \"app\".","t":"byte","b":[0,0,12,15,15,3,3,0]},{"a":46504,"t":"byte","b":[0,0,0,0,192,240,252,1]},{"a":46512,"t":"byte","b":[0,0,10,42,170,168,160,0]},{"a":46520,"t":"byte","b":[0,0,0,192,0,0,0,0]},{"a":46528,"t":"byte","b":[232,40,21,232,245,85,200,101]},{"a":46536,"t":"byte","b":[0,0,3,1,13,13,13,13]},{"a":46544,"t":"byte","b":[34,168,81,102,87,125,190,154]},{"a":46552,"t":"byte","b":[42,10,85,166,89,86,102,101]},{"a":46560,"t":"byte","b":[0,64,80,112,124,92,92,252]},{"a":46568,"t":"byte","b":[88,82,82,88,82,113,104,82]},{"a":46576,"t":"byte","b":[15,13,15,15,15,3,3,0]},{"a":46584,"t":"byte","b":[90,90,90,154,170,166,170,170]},{"a":46592,"t":"byte","b":[169,106,106,170,105,170,170,170]},{"a":46600,"t":"byte","b":[124,124,124,252,252,240,240,192]},{"a":46608,"t":"byte","b":[88,82,82,88,98,88,88,162]},{"a":46616,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":46624,"t":"byte","b":[42,2,0,0,0,0,0,0]},{"a":46632,"t":"byte","b":[170,160,0,0,0,0,0,0]},{"a":46640,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":46648,"t":"byte","b":[232,82,98,229,95,104,104,15]},{"a":46656,"l":"UNUSED_ICON_CRUCIFIX","c":"Unused crucifix artwork. Slot 27 of OBJECT_ICON_TABLE: a finished 4x4-cell,\n160-byte interleaved multicolor payload depicting a gold Latin cross on black.\nThe intended noun is recoverable: VOCAB_CRUCIFIX at $1C36 is stem \"cru\", noun id $5A. The\nnormal icon resolver subtracts the object-id base $32, so it would need key $28 in\nNOUN_TO_OBJECT_INDEX, but that key is absent and slot 27 contains zero. The only writers of\nCURRENT_OBJECT_INDEX are the noun resolver ($15FB) and SCRIPT_SET_OBJECT_GRAPHIC ($114F).\nNo action bytecode in the initialized program contains the direct opcode/operand pair $17,$1B\nneeded to select slot 27. No decoded instruction or recorded reference reads $B640-$B6DF. This is recognisable abandoned inventory artwork, not a\nlive part-specific icon.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":46664,"t":"byte","b":[0,0,1,8,12,3,15,13]},{"a":46672,"t":"byte","b":[0,0,128,48,48,192,240,112]},{"a":46680,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":46688,"t":"byte","b":[232,23,23,232,111,88,248,111]},{"a":46696,"t":"byte","b":[0,0,0,10,9,9,9,10]},{"a":46704,"t":"byte","b":[13,13,13,253,85,170,170,254]},{"a":46712,"t":"byte","b":[176,176,176,191,149,106,170,191]},{"a":46720,"t":"byte","b":[0,0,0,160,96,224,224,160]},{"a":46728,"t":"byte","b":[24,23,23,24,87,8,104,103]},{"a":46736,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":46744,"t":"byte","b":[11,11,11,11,9,9,9,11]},{"a":46752,"t":"byte","b":[176,176,176,176,176,176,176,176]},{"a":46760,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":46768,"t":"byte","b":[232,24,151,232,95,103,88,95]},{"a":46776,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":46784,"t":"byte","b":[13,13,14,13,14,15,15,0]},{"a":46792,"t":"byte","b":[176,176,176,176,176,240,240,0]},{"a":46800,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":46808,"t":"byte","b":[232,23,247,37,111,24,8,111]},{"a":46816,"l":"ICON_28","c":"ICON_28 \u2014 book (patterned brown cover with a central boss). Slot 28 of OBJECT_ICON_TABLE: 4x4-cell multicolor payload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[28] = $29, parser object id $5B, vocabulary stem \"boo\".\nThis is the last whole icon before slots 29-31, which hold the opening's texts from $B780 = $A560 + 29*160.","t":"byte","b":[0,0,51,28,51,31,48,31]},{"a":46824,"t":"byte","b":[0,0,69,69,21,21,85,85]},{"a":46832,"t":"byte","b":[0,0,85,85,85,85,85,165]},{"a":46840,"t":"byte","b":[0,0,60,48,204,204,240,252]},{"a":46848,"t":"byte","b":[134,152,152,232,249,87,103,249]},{"a":46856,"t":"byte","b":[34,26,34,42,18,26,42,34]},{"a":46864,"t":"byte","b":[85,86,86,89,85,102,101,165]},{"a":46872,"t":"byte","b":[165,89,89,86,165,89,85,165]},{"a":46880,"t":"byte","b":[168,168,168,168,168,104,104,88]},{"a":46888,"t":"byte","b":[137,152,152,137,119,103,87,87]},{"a":46896,"t":"byte","b":[47,35,63,51,47,35,63,51]},{"a":46904,"t":"byte","b":[101,102,85,89,86,86,85,85]},{"a":46912,"t":"byte","b":[85,89,165,86,89,89,165,165]},{"a":46920,"t":"byte","b":[188,188,252,252,252,252,252,252]},{"a":46928,"t":"byte","b":[232,152,152,232,89,167,103,89]},{"a":46936,"t":"byte","b":[47,48,47,51,44,51,0,0]},{"a":46944,"t":"byte","b":[85,85,21,21,69,69,0,0]},{"a":46952,"t":"byte","b":[85,85,85,85,85,85,0,0]},{"a":46960,"t":"byte","b":[252,240,204,204,48,60,0,0]},{"a":46968,"t":"byte","b":[232,152,152,232,105,135,39,105]},{"a":46976,"l":"OPENING_TITLE_ADDRESS_LOW","c":"The opening's texts and their lengths, six bytes read one by one by $1580. This is the low byte of the title's address, $B786. The texts fill icon slots 29 and 30 and the first 72 bytes of 31 ($A560 + 29*160 = $B780), slots no noun or script selects.","t":"byte","b":[134],"x":[5523]},{"a":46977,"l":"OPENING_TITLE_ADDRESS_HIGH","c":"High byte of the title's address, $B786.","t":"byte","b":[183],"x":[5528]},{"a":46978,"l":"OPENING_CREDITS_ADDRESS_LOW","c":"Low byte of the credits' address, $B85D.","t":"byte","b":[93],"x":[5541]},{"a":46979,"l":"OPENING_CREDITS_ADDRESS_HIGH","c":"High byte of the credits' address.","t":"byte","b":[184],"x":[5546]},{"a":46980,"l":"OPENING_TITLE_LENGTH","c":"The title's length, $D6 (214): $1580 puts it in $25, because the printer at $0ADB counts characters rather than looking for an end mark.","t":"byte","b":[214],"x":[5518]},{"a":46981,"l":"OPENING_CREDITS_LENGTH","c":"The credits' length, $AA (170).","t":"byte","b":[170],"x":[5536]},{"a":46982,"l":"OPENING_TITLE_TEXT","c":"The opening's first text, 214 characters: in dark grey ($FF $0B) the top corners of the panel (characters $5C and $5D at either end of the first row), then in red ($FF $02) THE NEVERENDING STORY in letters two characters wide and two rows tall from the game's character set (T is $C7 $C8 over $C9 $CA). '<' starts a new row. The '@' at $B85C after it is never printed.","t":"byte","b":[255,11,92,32,32,32,32,32]},{"a":46990,"t":"byte","b":[32,32,32,32,32,32,32,32]},{"a":46998,"t":"byte","b":[32,32,32,32,32,32,32,32]},{"a":47006,"t":"byte","b":[32,32,32,32,32,32,32,32]},{"a":47014,"t":"byte","b":[32,32,32,32,32,32,32,32]},{"a":47022,"t":"byte","b":[32,93,255,2,32,32,32,32]},{"a":47030,"t":"byte","b":[32,32,32,32,32,32,32,32]},{"a":47038,"t":"byte","b":[32,32,32,32,32,199,200,151]},{"a":47046,"t":"byte","b":[152,139,140,60,32,32,32,32]},{"a":47054,"t":"byte","b":[32,32,32,32,32,32,32,32]},{"a":47062,"t":"byte","b":[32,32,32,32,32,201,202,153]},{"a":47070,"t":"byte","b":[154,141,142,60,60,60,32,32]},{"a":47078,"t":"byte","b":[32,32,32,32,32,32,32,175]},{"a":47086,"t":"byte","b":[176,139,140,207,208,139,140,191]},{"a":47094,"t":"byte","b":[192,139,140,175,176,135,136,155]},{"a":47102,"t":"byte","b":[156,175,176,147,148,60,32,32]},{"a":47110,"t":"byte","b":[32,32,32,32,32,32,32,177]},{"a":47118,"t":"byte","b":[178,141,142,209,210,141,142,193]},{"a":47126,"t":"byte","b":[194,141,142,177,178,137,138,157]},{"a":47134,"t":"byte","b":[158,177,178,149,150,60,60,60]},{"a":47142,"t":"byte","b":[32,32,32,32,32,32,32,32]},{"a":47150,"t":"byte","b":[32,32,32,32,32,32,32,195]},{"a":47158,"t":"byte","b":[196,199,200,179,180,191,192,219]},{"a":47166,"t":"byte","b":[220,60,32,32,32,32,32,32]},{"a":47174,"t":"byte","b":[32,32,32,32,32,32,32,32]},{"a":47182,"t":"byte","b":[32,197,198,201,202,181,182,193]},{"a":47190,"t":"byte","b":[194,221,222,60,60,60,64]},{"a":47197,"l":"OPENING_CREDITS_TEXT","c":"The opening's second text, 170 characters: in yellow ($FF $07) \"Game Design & Programming By Ian Weatherburn\", \"Graphics By Steve Cain\" and \"Music By Martin Galway\", then in blue ($FF $06) \"* 1985 Ocean Software Ltd.\", the '*' drawn as a copyright sign by the game's character set; $FF $0B at the end sets dark grey again. The '@' at $B907 is never printed.","t":"byte","b":[255,7,32,32,32,71,97,109]},{"a":47205,"t":"byte","b":[101,32,68,101,115,105,103,110]},{"a":47213,"t":"byte","b":[60,32,32,32,32,38,32,80]},{"a":47221,"t":"byte","b":[114,111,103,114,97,109,109,105]},{"a":47229,"t":"byte","b":[110,103,32,32,66,121,32,32]},{"a":47237,"t":"byte","b":[73,97,110,32,87,101,97,116]},{"a":47245,"t":"byte","b":[104,101,114,98,117,114,110,60]},{"a":47253,"t":"byte","b":[60,32,32,32,32,32,32,32]},{"a":47261,"t":"byte","b":[32,32,71,114,97,112,104,105]},{"a":47269,"t":"byte","b":[99,115,32,32,66,121,32,32]},{"a":47277,"t":"byte","b":[83,116,101,118,101,32,67,97]},{"a":47285,"t":"byte","b":[105,110,60,60,32,32,32,32]},{"a":47293,"t":"byte","b":[32,32,32,32,32,32,32,32]},{"a":47301,"t":"byte","b":[77,117,115,105,99,32,32,66]},{"a":47309,"t":"byte","b":[121,32,32,77,97,114,116,105]},{"a":47317,"t":"byte","b":[110,32,71,97,108,119,97,121]},{"a":47325,"t":"byte","b":[60,60,60,60,255,6,32,32]},{"a":47333,"t":"byte","b":[32,32,32,32,32,32,42,32]},{"a":47341,"t":"byte","b":[49,57,56,53,32,79,99,101]},{"a":47349,"t":"byte","b":[97,110,32,83,111,102,116,119]},{"a":47357,"t":"byte","b":[97,114,101,32,76,116,100,46]},{"a":47365,"t":"byte","b":[255,11,64]},{"a":47368,"l":"ICON_SLOT_31_TAIL","c":"The last 88 bytes of icon slot 31 ($B8C0-$B95F), all that the opening's credits leave of it. NOUN_TO_OBJECT_INDEX has 0 at positions 29-31 and no script names slots 29-31 with action $17, so nothing draws them.","t":"byte","b":[232,231,232,232,87,88,119,103]},{"a":47376,"t":"byte","b":[2,0,3,0,0,0,0,0]},{"a":47384,"t":"byte","b":[3,14,162,2,136,35,3,2]},{"a":47392,"t":"byte","b":[2,0,46,0,136,32,0,0]},{"a":47400,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":47408,"t":"byte","b":[232,232,232,232,7,103,7,57]},{"a":47416,"t":"byte","b":[11,3,0,2,0,0,0,0]},{"a":47424,"t":"byte","b":[140,12,8,8,224,0,0,0]},{"a":47432,"t":"byte","b":[142,195,192,195,60,0,0,0]},{"a":47440,"t":"byte","b":[128,0,0,0,0,0,0,0]},{"a":47448,"t":"byte","b":[87,232,231,232,104,7,88,105]},{"a":47456,"l":"ICON_32","c":"ICON_32 \u2014 tin (grey cylindrical can with ribbed rim). Slot 32 of OBJECT_ICON_TABLE: 4x4-cell multicolor payload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[32] = $2D, parser object id $5F, vocabulary stem \"tin\".\nThis is the first whole icon after slots 29-31, which hold the opening's texts.","t":"byte","b":[0,0,0,0,0,3,2,3]},{"a":47464,"t":"byte","b":[0,0,0,15,240,138,250,175]},{"a":47472,"t":"byte","b":[0,0,0,240,15,162,175,250]},{"a":47480,"t":"byte","b":[0,0,0,0,0,192,128,192]},{"a":47488,"t":"byte","b":[91,235,235,235,108,108,124,108]},{"a":47496,"t":"byte","b":[3,3,3,2,3,2,3,3]},{"a":47504,"t":"byte","b":[117,127,127,255,254,250,250,254]},{"a":47512,"t":"byte","b":[170,250,255,254,127,90,91,126]},{"a":47520,"t":"byte","b":[192,192,192,192,192,192,192,192]},{"a":47528,"t":"byte","b":[89,159,249,232,108,108,108,108]},{"a":47536,"t":"byte","b":[3,3,3,3,2,3,3,2]},{"a":47544,"t":"byte","b":[251,254,238,239,251,254,254,235]},{"a":47552,"t":"byte","b":[229,181,185,245,229,191,189,235]},{"a":47560,"t":"byte","b":[192,192,192,192,192,192,192,192]},{"a":47568,"t":"byte","b":[89,239,159,232,108,108,108,108]},{"a":47576,"t":"byte","b":[3,2,2,3,0,0,0,0]},{"a":47584,"t":"byte","b":[255,255,191,175,250,15,0,0]},{"a":47592,"t":"byte","b":[254,254,250,250,175,240,0,0]},{"a":47600,"t":"byte","b":[192,192,192,192,0,0,0,0]},{"a":47608,"t":"byte","b":[89,233,233,235,108,252,252,108]},{"a":47616,"l":"ICON_33","c":"ICON_33 - horn (curved brown drinking/hunting horn with a gold band). Slot 33 of\nOBJECT_ICON_TABLE: 4x4-cell multicolor payload, 160 bytes; see the plate at $A560.\nNOUN_TO_OBJECT_INDEX[33] = $2E, parser object id $60, vocabulary stem \"hor\".","t":"byte","b":[0,12,60,60,63,48,50,8]},{"a":47624,"t":"byte","b":[0,0,0,168,2,0,0,192]},{"a":47632,"t":"byte","b":[0,0,0,0,240,12,3,3]},{"a":47640,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":47648,"t":"byte","b":[232,236,233,232,103,104,108,104]},{"a":47656,"t":"byte","b":[8,8,10,8,10,10,2,2]},{"a":47664,"t":"byte","b":[192,192,48,240,60,255,255,255]},{"a":47672,"t":"byte","b":[8,8,2,2,8,80,64,63]},{"a":47680,"t":"byte","b":[0,0,0,0,0,0,0,128]},{"a":47688,"t":"byte","b":[232,233,140,231,107,104,103,104]},{"a":47696,"t":"byte","b":[3,3,3,0,0,0,0,2]},{"a":47704,"t":"byte","b":[252,252,242,242,242,50,76,3]},{"a":47712,"t":"byte","b":[253,244,208,208,208,208,208,208]},{"a":47720,"t":"byte","b":[224,48,12,12,12,12,12,12]},{"a":47728,"t":"byte","b":[236,199,137,231,104,104,167,104]},{"a":47736,"t":"byte","b":[12,12,3,3,0,0,0,0]},{"a":47744,"t":"byte","b":[0,0,0,0,192,63,0,0]},{"a":47752,"t":"byte","b":[244,13,32,128,128,0,0,0]},{"a":47760,"t":"byte","b":[48,240,0,0,0,0,0,0]},{"a":47768,"t":"byte","b":[232,233,140,233,108,252,247,200]},{"a":47776,"l":"ICON_34","c":"ICON_34 - pouch (brown gathered bag). Slot 34 of OBJECT_ICON_TABLE: 4x4-cell multicolor\npayload, 160 bytes; see the plate at $A560. NOUN_TO_OBJECT_INDEX[34] = $2F, parser object id\n$61, vocabulary stem \"pou\".","t":"byte","b":[0,0,0,0,0,48,12,12]},{"a":47784,"t":"byte","b":[0,0,207,243,44,59,62,15]},{"a":47792,"t":"byte","b":[0,0,60,195,63,239,188,240]},{"a":47800,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":47808,"t":"byte","b":[88,232,232,232,105,105,105,104]},{"a":47816,"t":"byte","b":[3,0,3,3,12,12,48,3]},{"a":47824,"t":"byte","b":[15,243,12,60,60,255,236,227]},{"a":47832,"t":"byte","b":[240,48,240,204,204,252,255,255]},{"a":47840,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":47848,"t":"byte","b":[94,56,22,22,105,105,105,137]},{"a":47856,"t":"byte","b":[3,3,3,15,15,15,15,3]},{"a":47864,"t":"byte","b":[190,190,255,187,171,235,238,255]},{"a":47872,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":47880,"t":"byte","b":[0,192,192,240,240,240,240,240]},{"a":47888,"t":"byte","b":[83,88,22,230,105,169,169,105]},{"a":47896,"t":"byte","b":[3,3,0,0,0,0,0,0]},{"a":47904,"t":"byte","b":[255,255,255,63,0,0,0,0]},{"a":47912,"t":"byte","b":[255,255,255,240,0,0,0,0]},{"a":47920,"t":"byte","b":[240,192,0,0,0,0,0,0]},{"a":47928,"t":"byte","b":[88,230,232,232,249,105,249,249]},{"a":47936,"l":"ICON_35","c":"ICON_35 - coin (gold disc with a spiral device and a milled edge). Slot 35 of\nOBJECT_ICON_TABLE: 4x4-cell multicolor payload, 160 bytes; see the plate at $A560.\nNOUN_TO_OBJECT_INDEX[35] = $30, parser object id $62, vocabulary stem \"coi\".\nThis is the LAST slot: it ends at $BBDF, and NOUN_TO_OBJECT_INDEX's $FF terminator at $22C8\nconfirms there is no slot 36.","t":"byte","b":[0,0,0,0,0,0,0,3]},{"a":47944,"t":"byte","b":[0,0,0,0,3,62,235,190]},{"a":47952,"t":"byte","b":[0,0,0,0,240,175,90,181]},{"a":47960,"t":"byte","b":[0,0,0,0,0,0,192,176]},{"a":47968,"t":"byte","b":[232,24,24,232,103,103,103,103]},{"a":47976,"t":"byte","b":[3,14,14,46,46,46,14,14]},{"a":47984,"t":"byte","b":[187,254,251,237,183,154,250,251]},{"a":47992,"t":"byte","b":[253,171,255,123,94,222,251,187]},{"a":48000,"t":"byte","b":[112,108,108,236,236,236,236,172]},{"a":48008,"t":"byte","b":[232,24,24,24,103,103,103,103]},{"a":48016,"t":"byte","b":[6,39,41,33,2,8,8,0]},{"a":48024,"t":"byte","b":[187,181,173,107,86,149,137,136]},{"a":48032,"t":"byte","b":[175,251,123,218,175,85,88,136]},{"a":48040,"t":"byte","b":[236,188,184,240,72,128,160,128]},{"a":48048,"t":"byte","b":[24,24,24,24,167,103,167,167]},{"a":48056,"t":"byte","b":[2,0,0,0,0,0,0,0]},{"a":48064,"t":"byte","b":[204,204,12,0,0,0,0,0]},{"a":48072,"t":"byte","b":[136,138,160,0,0,0,0,0]},{"a":48080,"t":"byte","b":[128,0,0,0,0,0,0,0]},{"a":48088,"t":"byte","b":[232,38,232,232,242,200,242,98]},{"a":48096,"l":"ICON_TABLE_ALIGNMENT_RESIDUE","c":"ICON_TABLE_ALIGNMENT_RESIDUE ($BBE0-$BBFF, 32 bytes) \u2014 shipped non-addressed tail between OBJECT_ICON_TABLE and SAVED_BITMAP at the page boundary $BC00.\nICON_35 ends at $BBDF; another 160-byte icon cannot fit before SAVED_BITMAP at $BC00, the saved copy of the play screen's bitmap. The 32 bytes are repeating $00,$00,$FF,$FF bitmap-like residue with two $00,$10,$FF,$FF variants and final $17. No resident instruction encodes this range and no recorded reference reaches it. Classification: inert alignment/artwork residue, excluded from the 36-slot icon table.","t":"byte","b":[0,0,255,255,0,0,255,255]},{"a":48104,"t":"byte","b":[0,0,255,255,0,16,255,255]},{"a":48112,"t":"byte","b":[0,0,255,255,0,0,255,255]},{"a":48120,"t":"byte","b":[0,0,255,255,0,16,255,23]},{"a":48128,"t":"gap","n":1024},{"a":48128,"t":"note","l":"SAVED_BITMAP","c":"The play screen's bitmap bytes, a straight copy of the backdrop at $E000-$EC7F that $070F makes when the opening ends, restored to $E000 by RESTORE_GAMEPLAY_DISPLAY.","note":"outside the tracked image"},{"a":49152,"l":"STAGED_DISK_LOADER","c":"The disk loader, waiting here until the opening ends: $0730 copies $C000-$C1FF to $9700-$98FF, over the music driver, and every address in it is the one it runs at. $9700 is the entry the game calls, at $0453, to load the next part: JMP $9709, which once the loader is in place is its own STAGED_LOAD_PART (listed at $C009); the listing names the operand V1_PULSE_RESET only because the title tune holds $9709 in the opening's memory.","t":"code","b":[76,9,151],"m":"jmp","o":"V1_PULSE_RESET","oa":38665,"x":[1840]},{"a":49155,"l":"STAGED_PART_NAME","c":"The file name, \"PART 0\" at $9703-$9708. The loader adds one to its last character before each load and never resets it, so the loads are PART 1, PART 2 and PART 3, the names in the disk's directory, until a restart: the reload of Part 1 then asks for the next name, PART 3 after Part 2 has loaded and PART 4, which the disk does not hold, after the win.","t":"byte","b":[80,65,82,84,32,48]},{"a":49161,"l":"STAGED_LOAD_PART","c":"$9709: INC $9708, SETNAM with the six characters at $9703, SETLFS 1, 8, 1, then JMP to the KERNAL's LOAD with A = 0. Secondary address 1 loads the part to the address in its file, $2F00, and LOAD's RTS returns to the game at $0456.","t":"code","b":[238,8,151],"m":"inc","o":"LOADER_DIGIT_9708","oa":38664},{"a":49164,"t":"code","b":[169,6],"m":"lda","o":"#$06"},{"a":49166,"t":"code","b":[162,3],"m":"ldx","o":"#$03"},{"a":49168,"t":"code","b":[160,151],"m":"ldy","o":"#$97"},{"a":49170,"t":"code","b":[32,189,255],"m":"jsr","o":"KERNAL_SETNAM","oa":65469},{"a":49173,"t":"code","b":[169,1],"m":"lda","o":"#$01"},{"a":49175,"t":"code","b":[162,8],"m":"ldx","o":"#$08"},{"a":49177,"t":"code","b":[168],"m":"tay"},{"a":49178,"t":"code","b":[32,186,255],"m":"jsr","o":"KERNAL_SETLFS","oa":65466},{"a":49181,"t":"code","b":[169,0],"m":"lda","o":"#$00"},{"a":49183,"t":"code","b":[76,213,255],"m":"jmp","o":"KERNAL_LOAD","oa":65493},{"a":49186,"l":"STAGED_TAPE_LOADER_REMNANT","c":"$9722-$9875, the rest of a cassette turbo loader whose first 34 bytes the disk loader overwrote; it never runs. $9722 is the operand of a lost LDA #$07. After it the code writes $07 to $01 (bit 5 clear: the cassette motor line on), points the IRQ vector at $9790, loads CIA 2's timer B with $03E0, turns on CIA 1's FLAG interrupt (the cassette read line), waits while $9874 counts a delay down, and JMPs to $9838. The interrupt at $9790 ($C090) reads timer B at each pulse and shifts a bit into $9826; $9805 ($C105) stores each finished byte at ($FD) and counts on; $9825-$9834 ($C125-$C134) are its counters and flags, zero here. $9838 ($C138) flashes the border until $9829 is set, then $9843 ($C143) writes $06 to $01, puts back the two bytes at $97A4 it changed, turns the screen on, stops CIA 1's timer A, turns the FLAG interrupt off and the raster interrupt on, and returns. The game's own $01 values, $05 and $06, leave bit 5 clear too, and its save code names device 1, the cassette (SETUP_KERNAL_FILE); Datasoft's disk version of the game writes $35 and $36 and names device 8.","t":"byte","b":[7,141,40,152,133,1,169,0]},{"a":49194,"t":"byte","b":[141,13,221,141,14,220,141,26]},{"a":49202,"t":"byte","b":[208,141,25,208,141,41,152,141]},{"a":49210,"t":"byte","b":[38,152,133,253,141,39,152,141]},{"a":49218,"t":"byte","b":[44,152,141,43,152,141,42,152]},{"a":49226,"t":"byte","b":[141,37,152,141,117,152,169,144]},{"a":49234,"t":"byte","b":[141,254,255,169,151,141,255,255]},{"a":49242,"t":"byte","b":[169,5,133,1,169,224,141,6]},{"a":49250,"t":"byte","b":[221,169,3,141,7,221,169,16]},{"a":49258,"t":"byte","b":[141,15,221,169,144,141,13,220]},{"a":49266,"t":"byte","b":[173,13,220,169,64,141,116,152]},{"a":49274,"t":"byte","b":[160,255,162,255,202,208,253,136]},{"a":49282,"t":"byte","b":[208,248,206,116,152,173,116,152]},{"a":49290,"t":"byte","b":[208,238,88,76,56,152,72,138]},{"a":49298,"t":"byte","b":[72,152,72,173,7,221,160,17]},{"a":49306,"t":"byte","b":[140,15,221,73,2,74,74,110]},{"a":49314,"t":"byte","b":[38,152,144,86,173,164,151,201]},{"a":49322,"t":"byte","b":[234,208,68,206,40,152,16,74]},{"a":49330,"t":"byte","b":[162,7,142,40,152,174,39,152]},{"a":49338,"t":"byte","b":[208,73,173,43,152,208,14,173]},{"a":49346,"t":"byte","b":[38,152,141,42,152,169,1,141]},{"a":49354,"t":"byte","b":[43,152,76,252,151,162,1,142]},{"a":49362,"t":"byte","b":[39,152,173,38,152,201,151,208]},{"a":49370,"t":"byte","b":[9,120,169,1,141,41,152,76]},{"a":49378,"t":"byte","b":[252,151,133,254,169,0,141,43]},{"a":49386,"t":"byte","b":[152,173,42,152,141,255,3,169]},{"a":49394,"t":"byte","b":[234,141,164,151,141,165,151,76]},{"a":49402,"t":"byte","b":[252,151,173,13,220,104]},{"a":49408,"l":"STAGED_LOADER_PAGE_2","c":"$0736 copies the staged loader's second page from here to $9800. The page boundary falls inside the tape loader's interrupt, which ends PLA / TAY / PLA / TAX / PLA / RTI at $97FF-$9804.","t":"byte","b":[168,104,170,104,64,169,0,160],"x":[1846]},{"a":49416,"t":"byte","b":[0,173,38,152,145,253,140,38]},{"a":49424,"t":"byte","b":[152,169,144,141,254,255,169,151]},{"a":49432,"t":"byte","b":[141,255,255,230,253,208,221,140]},{"a":49440,"t":"byte","b":[39,152,76,252,151,0,0,0]},{"a":49448,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":49456,"t":"byte","b":[0,0,0,0,0,76,67,152]},{"a":49464,"t":"byte","b":[173,41,152,208,248,238,32,208]},{"a":49472,"t":"byte","b":[76,56,152,120,169,6,133,1]},{"a":49480,"t":"byte","b":[169,12,141,32,208,173,45,152]},{"a":49488,"t":"byte","b":[141,164,151,173,46,152,141,165]},{"a":49496,"t":"byte","b":[151,173,17,208,9,16,141,17]},{"a":49504,"t":"byte","b":[208,173,14,220,41,254,141,14]},{"a":49512,"t":"byte","b":[220,169,241,141,26,208,169,16]},{"a":49520,"t":"byte","b":[141,13,220,96,0,0]},{"a":49526,"l":"STAGED_SCREEN_OFF","c":"$9876 ($C176): clears bit 4 of $D011, blanking the screen, and returns; part of the tape loader, unused here.","t":"byte","b":[173,17,208,41,239,141,17,208]},{"a":49534,"t":"byte","b":[96]},{"a":49535,"l":"STAGED_UNKNOWN_TABLE","c":"$987F-$98FF ($C17F-$C1FF), 129 bytes after the tape loader that nothing reads: $5B $57 $5F $5A ... $FF, then pairs that climb by about one, $03 $02 $04 $03 ... $66 $65. What they were for is unknown.","t":"byte","b":[91,87,95,90,103,98,105,99]},{"a":49543,"t":"byte","b":[109,105,114,110,116,113,121,116]},{"a":49551,"t":"byte","b":[255,3,2,4,3,5,4,6]},{"a":49559,"t":"byte","b":[5,7,6,8,7,9,10,10]},{"a":49567,"t":"byte","b":[11,16,17,17,18,20,19,27]},{"a":49575,"t":"byte","b":[26,29,28,31,30,35,34,37]},{"a":49583,"t":"byte","b":[36,42,48,43,42,44,46,45]},{"a":49591,"t":"byte","b":[44,46,41,47,41,49,41,50]},{"a":49599,"t":"byte","b":[49,51,50,52,41,53,52,54]},{"a":49607,"t":"byte","b":[53,60,59,61,60,62,61,64]},{"a":49615,"t":"byte","b":[63,65,64,66,65,68,67,70]},{"a":49623,"t":"byte","b":[69,73,72,74,73,75,74,78]},{"a":49631,"t":"byte","b":[77,81,80,82,81,83,82,86]},{"a":49639,"t":"byte","b":[88,87,86,89,93,90,89,91]},{"a":49647,"t":"byte","b":[90,92,91,93,92,94,97,96]},{"a":49655,"t":"byte","b":[95,97,96,98,102,101,100,102]},{"a":49663,"t":"byte","b":[101]},{"a":49664,"t":"gap","n":7680},{"a":51328,"t":"note","l":"SAVED_SCREEN","c":"The play screen's screen bytes, a straight copy of the backdrop's $EC80-$EE0F that $070F makes when the opening ends, restored to $CC00 by RESTORE_GAMEPLAY_DISPLAY.","note":"outside the tracked image"},{"a":51728,"t":"note","l":"SAVED_COLOR","c":"The play screen's colour bytes, a straight copy of the backdrop's $EE10-$EF9F that $070F makes when the opening ends, restored to $D800 by RESTORE_GAMEPLAY_DISPLAY.","note":"outside the tracked image"},{"a":52128,"t":"note","l":"INPUT_TEXT_BUFFER","c":"INPUT_TEXT_BUFFER ($CBA0-$CBF0, 81 bytes) \u2014 the player's command line, space-padded one byte per character: READ_INPUT keeps only spaces and letters, which it stores as ASCII lower case ($61-$7A), the form of the vocabulary's stems.\nREAD_INPUT ($0806) points $0E/$0F here, blanks all 81 bytes to $20, appends characters at INPUT_LEN ($0026), and caps input at 78 characters. PARSE_INPUT ($122F) points $0A/$0B to the same base and scans words; INPUT_LEN provides the bound, so there is no terminator.\nThe buffer occupies part of the 96-byte gap after SAVED_COLOR and before SCREEN_RAM. At the opening it holds leftovers; READ_INPUT blanks all 81 bytes before use.","note":"outside the tracked image"},{"a":52209,"t":"note","l":"UNUSED_CBF1","c":"$CBF1-$CBFF - 15 bytes of padding between INPUT_TEXT_BUFFER, which ends at $CBF0, and\nSCREEN_RAM at $CC00. Never written or read by the program.","note":"outside the tracked image"},{"a":52224,"t":"note","l":"SCREEN_RAM","c":"One-kilobyte text screen RAM used by the renderer and clear routine.","note":"outside the tracked image"},{"a":53248,"t":"note","l":"RAM_UNDER_IO","c":"The RAM under the I/O registers, $D000-$DFFF: all zero at the opening. The game never maps it in, since $05 and $06, the only values it writes to $01, both leave the I/O registers here.","note":"outside the tracked image"},{"a":57344,"l":"BACKDROP_BITMAP","c":"The play screen's backdrop, a sunset over the Ivory Tower, 40 cells wide and 10 high: this is its multicolour bitmap, 320 bytes to a cell row, $E000-$EC7F, where the VIC shows it in the picture band. The room picture is drawn over its left side and the carried objects' icons over its right. $070F copies $E000-$EF9F to $BC00-$CB9F when the opening ends, and RESTORE_GAMEPLAY_DISPLAY puts it back before each room is drawn; in the opening, which shows only text, the band is not on screen.","t":"byte","b":[0,63,63,63,63,63,63,63]},{"a":57352,"t":"byte","b":[0,255,255,255,255,255,255,255]},{"a":57360,"t":"byte","b":[0,255,255,255,255,255,255,255]},{"a":57368,"t":"byte","b":[0,255,255,255,255,255,255,255]},{"a":57376,"t":"byte","b":[0,255,255,255,255,255,255,255]},{"a":57384,"t":"byte","b":[0,255,255,255,255,255,255,255]},{"a":57392,"t":"byte","b":[0,255,255,255,255,255,255,255]},{"a":57400,"t":"byte","b":[0,255,255,255,255,255,255,255]},{"a":57408,"t":"byte","b":[0,255,255,255,255,255,255,255]},{"a":57416,"t":"byte","b":[0,255,255,255,255,255,255,255]},{"a":57424,"t":"byte","b":[0,255,255,255,255,255,255,255]},{"a":57432,"t":"byte","b":[0,170,250,255,255,255,255,255]},{"a":57440,"t":"byte","b":[0,170,170,170,234,250,250,254]},{"a":57448,"t":"byte","b":[0,170,170,170,170,170,170,170]},{"a":57456,"t":"byte","b":[0,170,170,170,170,170,170,170]},{"a":57464,"t":"byte","b":[0,170,170,170,170,170,170,170]},{"a":57472,"t":"byte","b":[0,170,170,170,170,170,170,170]},{"a":57480,"t":"byte","b":[0,170,170,170,170,170,175,191]},{"a":57488,"t":"byte","b":[0,255,255,255,255,255,175,170]},{"a":57496,"t":"byte","b":[0,170,170,170,170,170,250,255]},{"a":57504,"t":"byte","b":[0,170,170,170,170,170,170,170]},{"a":57512,"t":"byte","b":[0,171,170,170,170,170,170,170]},{"a":57520,"t":"byte","b":[0,255,255,255,255,255,255,255]},{"a":57528,"t":"byte","b":[0,255,255,255,253,245,213,213]},{"a":57536,"t":"byte","b":[0,213,213,85,85,85,85,85]},{"a":57544,"t":"byte","b":[0,85,85,85,85,85,85,85]},{"a":57552,"t":"byte","b":[0,85,85,85,85,85,85,85]},{"a":57560,"t":"byte","b":[0,85,85,85,85,85,85,85]},{"a":57568,"t":"byte","b":[0,85,85,85,85,85,85,85]},{"a":57576,"t":"byte","b":[0,85,85,85,85,85,85,85]},{"a":57584,"t":"byte","b":[0,85,85,85,85,85,85,85]},{"a":57592,"t":"byte","b":[0,85,85,85,85,85,85,85]},{"a":57600,"t":"byte","b":[0,85,85,85,85,85,85,85]},{"a":57608,"t":"byte","b":[0,85,85,85,85,85,85,85]},{"a":57616,"t":"byte","b":[0,85,85,85,85,85,85,85]},{"a":57624,"t":"byte","b":[0,155,85,85,85,85,85,85]},{"a":57632,"t":"byte","b":[0,255,127,190,239,255,123,87]},{"a":57640,"t":"byte","b":[0,255,254,255,255,255,255,255]},{"a":57648,"t":"byte","b":[0,170,170,234,254,255,255,255]},{"a":57656,"t":"byte","b":[0,168,168,168,168,168,232,232]},{"a":57664,"l":"BACKDROP_BITMAP_ROW_1","c":"Cell row 1 of the backdrop's bitmap, $E140-$E27F, pixel lines 8-15 of the picture band.","t":"byte","b":[21,23,23,21,63,63,63,63]},{"a":57672,"t":"byte","b":[85,85,95,127,255,255,255,255]},{"a":57680,"t":"byte","b":[85,85,213,255,255,255,255,255]},{"a":57688,"t":"byte","b":[255,255,255,255,95,85,85,85]},{"a":57696,"t":"byte","b":[255,255,253,253,255,255,255,127]},{"a":57704,"t":"byte","b":[255,255,95,85,85,85,213,213]},{"a":57712,"t":"byte","b":[255,255,255,85,85,85,85,85]},{"a":57720,"t":"byte","b":[255,255,255,255,127,87,85,85]},{"a":57728,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":57736,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":57744,"t":"byte","b":[255,255,255,255,215,213,213,85]},{"a":57752,"t":"byte","b":[255,255,255,255,255,87,85,85]},{"a":57760,"t":"byte","b":[254,255,255,255,255,255,127,95]},{"a":57768,"t":"byte","b":[190,255,255,255,255,255,255,255]},{"a":57776,"t":"byte","b":[170,170,250,254,255,255,255,255]},{"a":57784,"t":"byte","b":[170,170,170,170,170,234,254,255]},{"a":57792,"t":"byte","b":[170,170,175,175,191,191,191,191]},{"a":57800,"t":"byte","b":[191,255,255,255,255,255,255,255]},{"a":57808,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":57816,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":57824,"t":"byte","b":[170,254,255,255,255,255,255,255]},{"a":57832,"t":"byte","b":[170,170,170,234,234,234,234,250]},{"a":57840,"t":"byte","b":[191,175,171,170,170,170,170,170]},{"a":57848,"t":"byte","b":[213,247,253,255,255,255,191,191]},{"a":57856,"t":"byte","b":[85,85,85,101,249,245,217,214]},{"a":57864,"t":"byte","b":[85,85,85,85,85,85,85,85]},{"a":57872,"t":"byte","b":[85,85,85,85,85,85,85,149]},{"a":57880,"t":"byte","b":[85,85,85,85,85,85,85,85]},{"a":57888,"t":"byte","b":[85,85,85,85,85,85,85,85]},{"a":57896,"t":"byte","b":[85,85,85,85,85,85,85,85]},{"a":57904,"t":"byte","b":[117,117,253,117,117,117,117,117]},{"a":57912,"t":"byte","b":[85,85,85,85,85,85,85,85]},{"a":57920,"t":"byte","b":[85,85,85,85,85,85,85,85]},{"a":57928,"t":"byte","b":[85,85,85,85,85,85,85,149]},{"a":57936,"t":"byte","b":[85,85,85,85,85,85,85,85]},{"a":57944,"t":"byte","b":[85,85,85,85,85,85,85,85]},{"a":57952,"t":"byte","b":[87,87,85,85,85,85,87,87]},{"a":57960,"t":"byte","b":[255,255,255,239,191,191,255,255]},{"a":57968,"t":"byte","b":[255,255,253,245,245,213,245,117]},{"a":57976,"t":"byte","b":[188,252,252,252,244,244,212,212]},{"a":57984,"l":"BACKDROP_BITMAP_ROW_2","c":"Cell row 2 of the backdrop's bitmap, $E280-$E3BF, pixel lines 16-23 of the picture band.","t":"byte","b":[63,63,23,21,21,61,61,63]},{"a":57992,"t":"byte","b":[255,255,255,255,127,85,255,255]},{"a":58000,"t":"byte","b":[255,255,255,255,245,85,255,255]},{"a":58008,"t":"byte","b":[255,255,255,255,85,85,93,255]},{"a":58016,"t":"byte","b":[253,255,255,95,119,85,255,255]},{"a":58024,"t":"byte","b":[87,213,255,255,255,95,213,255]},{"a":58032,"t":"byte","b":[255,191,171,251,254,250,191,171]},{"a":58040,"t":"byte","b":[255,255,255,255,255,191,170,174]},{"a":58048,"t":"byte","b":[213,245,245,255,255,255,255,95]},{"a":58056,"t":"byte","b":[127,87,85,253,255,255,255,255]},{"a":58064,"t":"byte","b":[255,255,127,127,85,213,253,255]},{"a":58072,"t":"byte","b":[255,255,255,255,255,191,171,234]},{"a":58080,"t":"byte","b":[255,255,255,255,255,255,255,239]},{"a":58088,"t":"byte","b":[255,255,255,127,127,85,85,95]},{"a":58096,"t":"byte","b":[85,85,117,95,95,87,213,127]},{"a":58104,"t":"byte","b":[85,85,85,85,213,253,255,255]},{"a":58112,"t":"byte","b":[85,85,85,85,85,85,93,85]},{"a":58120,"t":"byte","b":[85,85,85,85,85,85,95,127]},{"a":58128,"t":"byte","b":[85,85,85,85,85,85,213,255]},{"a":58136,"t":"byte","b":[85,85,85,85,85,85,85,245]},{"a":58144,"t":"byte","b":[85,85,85,85,87,87,87,85]},{"a":58152,"t":"byte","b":[234,170,170,170,170,170,170,170]},{"a":58160,"t":"byte","b":[170,170,170,170,171,175,255,255]},{"a":58168,"t":"byte","b":[127,127,255,255,255,255,255,255]},{"a":58176,"t":"byte","b":[213,245,245,245,253,255,255,255]},{"a":58184,"t":"byte","b":[149,85,85,85,85,85,213,253]},{"a":58192,"t":"byte","b":[85,85,85,85,85,85,85,85]},{"a":58200,"t":"byte","b":[85,85,85,85,85,85,85,87]},{"a":58208,"t":"byte","b":[85,85,85,85,85,87,127,255]},{"a":58216,"t":"byte","b":[85,85,85,85,81,209,255,255]},{"a":58224,"t":"byte","b":[117,117,117,125,125,122,170,170]},{"a":58232,"t":"byte","b":[85,85,85,21,21,53,255,191]},{"a":58240,"t":"byte","b":[85,85,85,85,85,85,245,247]},{"a":58248,"t":"byte","b":[85,89,86,85,85,85,85,255]},{"a":58256,"t":"byte","b":[85,90,111,85,85,85,85,213]},{"a":58264,"t":"byte","b":[87,187,255,235,254,127,95,95]},{"a":58272,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":58280,"t":"byte","b":[255,255,255,255,254,250,234,234]},{"a":58288,"t":"byte","b":[234,234,233,165,165,85,85,85]},{"a":58296,"t":"byte","b":[84,84,84,84,84,84,84]},{"a":58303,"l":"s_E3BF","c":"BASIC's RAM set-up in the KERNAL ROM, which RESTORE_SYSTEM_TO_BASIC calls at $A8BE with $01 = $06, so the ROM is in view. The RAM beneath is more of the backdrop's bitmap.","t":"byte","b":[84],"x":[43198]},{"a":58304,"l":"BACKDROP_BITMAP_ROW_3","c":"Cell row 3 of the backdrop's bitmap, $E3C0-$E4FF, pixel lines 24-31 of the picture band.","t":"byte","b":[63,31,23,21,21,53,61,63]},{"a":58312,"t":"byte","b":[255,255,255,87,85,95,255,255]},{"a":58320,"t":"byte","b":[255,255,255,245,85,255,255,255]},{"a":58328,"t":"byte","b":[255,255,255,255,95,245,255,255]},{"a":58336,"t":"byte","b":[255,255,255,255,215,85,85,85]},{"a":58344,"t":"byte","b":[255,255,255,255,255,95,127,255]},{"a":58352,"t":"byte","b":[213,255,255,255,255,255,255,255]},{"a":58360,"t":"byte","b":[175,171,170,234,255,255,255,255]},{"a":58368,"t":"byte","b":[234,254,254,170,254,255,255,255]},{"a":58376,"t":"byte","b":[255,255,191,191,171,234,250,254]},{"a":58384,"t":"byte","b":[255,255,255,255,255,127,85,95]},{"a":58392,"t":"byte","b":[254,255,255,255,255,254,171,171]},{"a":58400,"t":"byte","b":[117,127,127,85,253,255,127,213]},{"a":58408,"t":"byte","b":[95,213,255,255,85,255,255,95]},{"a":58416,"t":"byte","b":[95,119,213,253,127,85,255,255]},{"a":58424,"t":"byte","b":[255,255,127,125,85,95,119,253]},{"a":58432,"t":"byte","b":[245,251,254,219,87,213,253,255]},{"a":58440,"t":"byte","b":[127,127,85,159,255,127,95,223]},{"a":58448,"t":"byte","b":[255,255,95]},{"a":58451,"l":"s_E453","c":"BASIC's vector set-up in the KERNAL ROM, called by RESTORE_SYSTEM_TO_BASIC at $A8BB; the RAM beneath is more of the backdrop's bitmap.","t":"byte","b":[213,239,255,255,255,255,255,255],"x":[43195]},{"a":58459,"t":"byte","b":[125,127,85,255,255,213,253,255]},{"a":58467,"t":"byte","b":[255,255,87,233,251,86,85,85]},{"a":58475,"t":"byte","b":[245,255,255,255,127,170,170,106]},{"a":58483,"t":"byte","b":[86,125,255,255,255,255,175,171]},{"a":58491,"t":"byte","b":[170,170,106,90,85,255,255,255]},{"a":58499,"t":"byte","b":[255,255,175,175,91,255,255,255]},{"a":58507,"t":"byte","b":[255,255,255,255,254,87,213,255]},{"a":58515,"t":"byte","b":[255,255,255,254,234,87,215,255]},{"a":58523,"t":"byte","b":[255,247,234,106,170,255,253,245]},{"a":58531,"t":"byte","b":[246,85,86,91,106,255,255,221]},{"a":58539,"t":"byte","b":[212,80,80,144,160,85,117,124]},{"a":58547,"t":"byte","b":[124,124,60,60,188,234,154,22]},{"a":58555,"t":"byte","b":[21,21,23,31,63,255,127,87]},{"a":58563,"t":"byte","b":[85,149,165,246,101,255,255,191]},{"a":58571,"t":"byte","b":[174,171,170,106,170,247,245,255]},{"a":58579,"t":"byte","b":[255,255,255,255,187,255,255,255]},{"a":58587,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":58595,"t":"byte","b":[255,255,254,239,181,254,255,239]},{"a":58603,"t":"byte","b":[245,85,213,85,85,255,191,255]},{"a":58611,"t":"byte","b":[255,255,255,245,245,84,84,84]},{"a":58619,"t":"byte","b":[124,252,252,252,252]},{"a":58624,"l":"BACKDROP_BITMAP_ROW_4","c":"Cell row 4 of the backdrop's bitmap, $E500-$E63F, pixel lines 32-39 of the picture band.","t":"byte","b":[63,63,63,63,53,21,53,53]},{"a":58632,"t":"byte","b":[255,255,255,255,191,239,235,251]},{"a":58640,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":58648,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":58656,"t":"byte","b":[245,253,255,255,255,255,255,255]},{"a":58664,"t":"byte","b":[191,170,170,234,234,239,251,235]},{"a":58672,"t":"byte","b":[255,127,87,85,125,255,255,255]},{"a":58680,"t":"byte","b":[255,255,255,87,85,255,255,255]},{"a":58688,"t":"byte","b":[255,255,255,255,95,85,245,253]},{"a":58696,"t":"byte","b":[255,255,255,255,255,255,127,127]},{"a":58704,"t":"byte","b":[85,255,255,255,255,255,255,255]},{"a":58712,"t":"byte","b":[85,245,255,255,255,255,255,255]},{"a":58720,"t":"byte","b":[255,191,191,191,175,239,234,254]},{"a":58728,"t":"byte","b":[213,223,255,255,255,255,255,255]},{"a":58736,"t":"byte","b":[187,191,170,250,255,255,255,255]},{"a":58744,"t":"byte","b":[250,255,125,87,253,255,245,255]},{"a":58752,"t":"byte","b":[191,239,239,234,190,191,187,191]},{"a":58760,"t":"byte","b":[245,125,247,119,93,117,119,247]},{"a":58768,"t":"byte","b":[254,127,93,245,245,223,255,255]},{"a":58776,"t":"byte","b":[255,255,127,87,117,255,255,255]},{"a":58784,"t":"byte","b":[255,255,255,85,127,119,255,255]},{"a":58792,"t":"byte","b":[109,215,222,119,85,125,255,255]},{"a":58800,"t":"byte","b":[119,183,239,190,251,127,127,87]},{"a":58808,"t":"byte","b":[253,255,127,223,183,255,126,238]},{"a":58816,"t":"byte","b":[254,255,255,127,127,255,255,119]},{"a":58824,"t":"byte","b":[217,183,125,85,213,85,85,85]},{"a":58832,"t":"byte","b":[255,255,255,85,95,117,90,149]},{"a":58840,"t":"byte","b":[85,85,85,255,223,253,175,255]},{"a":58848,"t":"byte","b":[255,255,255,119,127,95,215,85]},{"a":58856,"t":"byte","b":[242,114,82,80,80,64,64,64]},{"a":58864,"t":"byte","b":[188,188,188,180,52,4,4,4]},{"a":58872,"t":"byte","b":[13,5,10,5,5,5,5,5]},{"a":58880,"t":"byte","b":[165,85,85,85,85,85,85,85]},{"a":58888,"t":"byte","b":[85,85,85,85,223,107,125,117]},{"a":58896,"t":"byte","b":[223,255,255,213,85,127,255,213]},{"a":58904,"t":"byte","b":[255,255,255,87,85,255,253,85]},{"a":58912,"t":"byte","b":[255,255,255,255,245,213,85,85]},{"a":58920,"t":"byte","b":[85,85,85,87,255,255,254,255]},{"a":58928,"t":"byte","b":[126,254,251,239,191,191,255,255]},{"a":58936,"t":"byte","b":[252,252,252,252,252,252,252,252]},{"a":58944,"l":"BACKDROP_BITMAP_ROW_5","c":"Cell row 5 of the backdrop's bitmap, $E640-$E77F, pixel lines 40-47 of the picture band.","t":"byte","b":[42,47,63,63,54,63,63,22]},{"a":58952,"t":"byte","b":[170,234,250,250,255,255,127,255]},{"a":58960,"t":"byte","b":[175,170,170,255,255,255,255,255]},{"a":58968,"t":"byte","b":[255,191,175,234,250,254,255,255]},{"a":58976,"t":"byte","b":[255,255,255,255,191,170,255,255]},{"a":58984,"t":"byte","b":[255,255,255,255,255,175,171,250]},{"a":58992,"t":"byte","b":[255,255,255,255,255,255,255,171]},{"a":59000,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":59008,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":59016,"t":"byte","b":[95,87,87,253,255,255,255,255]},{"a":59024,"t":"byte","b":[255,255,255,255,95,95,85,213]},{"a":59032,"t":"byte","b":[255,255,255,255,255,255,255,85]},{"a":59040,"t":"byte","b":[253,255,255,254,254,255,255,255]},{"a":59048,"t":"byte","b":[127,95,213,253,173,251,255,255]},{"a":59056,"t":"byte","b":[255,255,255,87,125,255,239,250]},{"a":59064,"t":"byte","b":[253,255,255,255,255,127,127,215]},{"a":59072,"t":"byte","b":[85,223,255,255,255,254,255,255]},{"a":59080,"t":"byte","b":[93,213,253,222,255,254,239,250]},{"a":59088,"t":"byte","b":[127,119,117,255,255,235,170,234]},{"a":59096,"t":"byte","b":[191,253,127,215,181,253,191,171]},{"a":59104,"t":"byte","b":[255,191,186,255,255,127,95,253]},{"a":59112,"t":"byte","b":[255,255,251,191,255,239,250,255]},{"a":59120,"t":"byte","b":[253,255,255,127,234,90,229,170]},{"a":59128,"t":"byte","b":[239,245,255,255,189,154,90,106]},{"a":59136,"t":"byte","b":[250,239,238,189,186,89,101,165]},{"a":59144,"t":"byte","b":[86,106,170,170,186,171,171,186]},{"a":59152,"t":"byte","b":[186,170,254,234,174,235,186,238]},{"a":59160,"t":"byte","b":[170,234,174,169,238,171,239,186]},{"a":59168,"t":"byte","b":[101,101,185,169,121,173,200,200]},{"a":59176,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":59184,"t":"byte","b":[8,8,8,8,8,8,8,4]},{"a":59192,"t":"byte","b":[15,3,0,0,0,0,0,0]},{"a":59200,"t":"byte","b":[253,245,245,85,85,102,61,13]},{"a":59208,"t":"byte","b":[85,85,85,85,105,122,170,170]},{"a":59216,"t":"byte","b":[85,85,89,90,173,234,170,171]},{"a":59224,"t":"byte","b":[90,85,85,149,149,218,185,170]},{"a":59232,"t":"byte","b":[255,255,255,253,169,170,149,107]},{"a":59240,"t":"byte","b":[255,234,215,117,85,86,215,255]},{"a":59248,"t":"byte","b":[255,106,173,173,189,127,255,255]},{"a":59256,"t":"byte","b":[212,92,92,232,248,92,92,252]},{"a":59264,"l":"BACKDROP_BITMAP_ROW_6","c":"Cell row 6 of the backdrop's bitmap, $E780-$E8BF, pixel lines 48-55 of the picture band.","t":"byte","b":[53,31,37,54,27,53,30,62]},{"a":59272,"t":"byte","b":[255,239,222,231,94,149,89,94]},{"a":59280,"t":"byte","b":[255,255,255,255,175,191,191,186]},{"a":59288,"t":"byte","b":[255,255,255,223,255,255,255,191]},{"a":59296,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":59304,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":59312,"t":"byte","b":[255,85,85,85,85,85,85,169]},{"a":59320,"t":"byte","b":[215,85,86,85,85,85,85,85]},{"a":59328,"t":"byte","b":[255,85,149,106,106,90,90,90]},{"a":59336,"t":"byte","b":[213,253,87,165,165,170,170,170]},{"a":59344,"t":"byte","b":[106,89,213,213,85,85,170,170]},{"a":59352,"t":"byte","b":[245,89,85,85,85,85,106,170]},{"a":59360,"t":"byte","b":[213,170,166,106,101,105,170,170]},{"a":59368,"t":"byte","b":[255,191,175,170,186,234,170,170]},{"a":59376,"t":"byte","b":[86,85,85,101,85,165,169,166]},{"a":59384,"t":"byte","b":[229,186,235,234,250,255,255,255]},{"a":59392,"t":"byte","b":[127,94,255,187,191,170,234,234]},{"a":59400,"t":"byte","b":[234,174,251,234,250,171,182,170]},{"a":59408,"t":"byte","b":[170,170,170,170,237,170,233,234]},{"a":59416,"t":"byte","b":[166,170,170,170,170,171,239,155]},{"a":59424,"t":"byte","b":[169,170,169,170,170,170,234,187]},{"a":59432,"t":"byte","b":[85,165,169,170,170,170,254,171]},{"a":59440,"t":"byte","b":[106,86,89,170,170,170,250,254]},{"a":59448,"t":"byte","b":[170,170,170,170,170,170,170,170]},{"a":59456,"t":"byte","b":[235,171,171,171,170,170,170,170]},{"a":59464,"t":"byte","b":[238,234,175,251,234,186,186,190]},{"a":59472,"t":"byte","b":[253,253,255,235,251,175,171,170]},{"a":59480,"t":"byte","b":[189,106,255,239,254,251,255,255]},{"a":59488,"t":"byte","b":[140,200,128,128,128,128,192,128]},{"a":59496,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":59504,"t":"byte","b":[8,4,4,4,52,28,16,16]},{"a":59512,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":59520,"t":"byte","b":[15,15,3,3,3,0,0,0]},{"a":59528,"t":"byte","b":[223,253,246,255,251,234,170,170]},{"a":59536,"t":"byte","b":[174,234,234,174,170,170,238,234]},{"a":59544,"t":"byte","b":[165,235,234,174,170,186,234,170]},{"a":59552,"t":"byte","b":[171,235,255,255,255,255,255,251]},{"a":59560,"t":"byte","b":[255,255,255,255,255,255,255,254]},{"a":59568,"t":"byte","b":[255,255,255,255,123,254,213,219]},{"a":59576,"t":"byte","b":[236,248,252,252,252,124,124,252]},{"a":59584,"l":"BACKDROP_BITMAP_ROW_7","c":"Cell row 7 of the backdrop's bitmap, $E8C0-$E9FF, pixel lines 56-63 of the picture band.","t":"byte","b":[39,59,25,37,54,61,54,43]},{"a":59592,"t":"byte","b":[91,86,85,85,213,173,237,182]},{"a":59600,"t":"byte","b":[186,174,110,85,85,85,105,85]},{"a":59608,"t":"byte","b":[149,101,213,85,85,86,90,101]},{"a":59616,"t":"byte","b":[85,85,85,85,186,175,107,154]},{"a":59624,"t":"byte","b":[253,255,255,255,255,169,165,170]},{"a":59632,"t":"byte","b":[214,117,121,239,170,186,171,250]},{"a":59640,"t":"byte","b":[149,170,106,217,189,170,238,186]},{"a":59648,"t":"byte","b":[102,170,170,170,150,169,238,171]},{"a":59656,"t":"byte","b":[170,170,170,170,170,106,102,213]},{"a":59664,"t":"byte","b":[170,170,170,154,94,166,165,102]},{"a":59672,"t":"byte","b":[170,170,170,170,170,234,255,170]},{"a":59680,"t":"byte","b":[170,170,170,170,170,170,170,182]},{"a":59688,"t":"byte","b":[170,170,170,170,170,170,170,170]},{"a":59696,"t":"byte","b":[170,170,170,170,187,239,190,170]},{"a":59704,"t":"byte","b":[165,165,170,191,190,239,191,175]},{"a":59712,"t":"byte","b":[106,170,106,166,230,255,254,191]},{"a":59720,"t":"byte","b":[170,170,170,170,106,153,238,255]},{"a":59728,"t":"byte","b":[150,167,169,170,170,170,170,153]},{"a":59736,"t":"byte","b":[110,105,154,185,175,171,170,234]},{"a":59744,"t":"byte","b":[255,251,191,167,250,233,102,154]},{"a":59752,"t":"byte","b":[174,235,234,254,186,190,171,170]},{"a":59760,"t":"byte","b":[234,174,170,191,190,255,171,170]},{"a":59768,"t":"byte","b":[170,234,170,170,170,238,234,250]},{"a":59776,"t":"byte","b":[170,170,170,170,170,234,187,239]},{"a":59784,"t":"byte","b":[170,170,170,170,170,186,250,239]},{"a":59792,"t":"byte","b":[171,186,170,170,170,159,245,221]},{"a":59800,"t":"byte","b":[175,251,171,179,227,243,112,64]},{"a":59808,"t":"byte","b":[192,192,0,0,0,0,0,0]},{"a":59816,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":59824,"t":"byte","b":[48,0,48,0,0,0,0,0]},{"a":59832,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":59840,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":59848,"t":"byte","b":[170,171,143,207,15,15,15,67]},{"a":59856,"t":"byte","b":[255,251,255,251,235,250,238,218]},{"a":59864,"t":"byte","b":[165,170,234,250,234,190,171,170]},{"a":59872,"t":"byte","b":[106,170,170,170,170,234,171,153]},{"a":59880,"t":"byte","b":[170,170,170,170,170,170,170,250]},{"a":59888,"t":"byte","b":[149,169,170,170,170,170,234,186]},{"a":59896,"t":"byte","b":[236,184,248,252,168,168,168,168]},{"a":59904,"l":"BACKDROP_BITMAP_ROW_8","c":"Cell row 8 of the backdrop's bitmap, $EA00-$EB3F, pixel lines 64-71 of the picture band.","t":"byte","b":[58,59,46,59,47,59,47,21]},{"a":59912,"t":"byte","b":[171,170,238,238,191,238,234,85]},{"a":59920,"t":"byte","b":[170,238,170,171,187,187,238,85]},{"a":59928,"t":"byte","b":[170,186,186,239,174,174,170,85]},{"a":59936,"t":"byte","b":[255,175,154,170,170,153,106,255]},{"a":59944,"t":"byte","b":[165,89,154,170,170,186,170,85]},{"a":59952,"t":"byte","b":[170,166,170,166,170,106,170,255]},{"a":59960,"t":"byte","b":[170,187,251,186,239,171,234,85]},{"a":59968,"t":"byte","b":[170,170,149,234,174,251,190,85]},{"a":59976,"t":"byte","b":[190,251,106,174,174,239,255,85]},{"a":59984,"t":"byte","b":[101,250,239,187,235,255,189,85]},{"a":59992,"t":"byte","b":[174,185,190,110,155,214,255,0]},{"a":60000,"t":"byte","b":[171,106,186,255,191,255,85,20]},{"a":60008,"t":"byte","b":[234,106,126,255,190,234,85,0]},{"a":60016,"t":"byte","b":[170,170,170,253,255,187,85,0]},{"a":60024,"t":"byte","b":[171,171,170,125,231,251,85,0]},{"a":60032,"t":"byte","b":[254]},{"a":60033,"l":"j_EA81","c":"The end of the KERNAL's interrupt handler in ROM, which pulls the registers and returns; both of the game's interrupts leave through it. The RAM beneath is more of the backdrop's bitmap.","t":"byte","b":[187,155,102,245,231,86,0,238],"x":[43015,43058,43077,43152]},{"a":60041,"t":"byte","b":[234,175,170,90,245,85,0,170]},{"a":60049,"t":"byte","b":[149,166,89,166,171,255,0,170]},{"a":60057,"t":"byte","b":[234,255,190,249,149,64,1,170]},{"a":60065,"t":"byte","b":[170,170,95,183,240,3,255,170]},{"a":60073,"t":"byte","b":[170,254,175,251,0,21,85,165]},{"a":60081,"t":"byte","b":[165,255,125,247,0,85,105,190]},{"a":60089,"t":"byte","b":[187,191,251,239,0,85,84,187]},{"a":60097,"l":"BACKDROP_BITMAP_ROW_8_END","c":"The rest of cell row 8 of the backdrop's bitmap, $EAC1-$EB3F, after the KERNAL address $EA81 that splits it.","t":"byte","b":[239,255,254,170,0,85,0,187]},{"a":60105,"t":"byte","b":[255,255,255,128,16,0,0,235]},{"a":60113,"t":"byte","b":[254,252,176,0,0,0,1,128]},{"a":60121,"t":"byte","b":[0,0,0,12,0,48,192,0]},{"a":60129,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":60137,"t":"byte","b":[0,0,0,0,0,192,0,0]},{"a":60145,"t":"byte","b":[0,0,0,0,0,0,207,0]},{"a":60153,"t":"byte","b":[0,0,0,0,0,3,0,0]},{"a":60161,"t":"byte","b":[0,0,0,0,0,0,0,2]},{"a":60169,"t":"byte","b":[194,48,48,0,12,3,192,170]},{"a":60177,"t":"byte","b":[46,47,2,0,0,0,64,170]},{"a":60185,"t":"byte","b":[234,239,254,255,5,0,0,171]},{"a":60193,"t":"byte","b":[255,235,254,234,250,87,1,170]},{"a":60201,"t":"byte","b":[255,238,171,170,170,250,85,235]},{"a":60209,"t":"byte","b":[170,170,234,190,170,170,85,184]},{"a":60217,"t":"byte","b":[172,168,168,168,168,188,84]},{"a":60224,"l":"BACKDROP_BITMAP_ROW_9","c":"Cell row 9 of the backdrop's bitmap, $EB40-$EC7F, pixel lines 72-79 of the picture band.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":60232,"t":"byte","b":[0,0,0,0,0,0,12,0]},{"a":60240,"t":"byte","b":[0,0,0,0,0,60,192,0]},{"a":60248,"t":"byte","b":[0,0,0,0,12,195,0,0]},{"a":60256,"t":"byte","b":[0,0,0,0,0,192,0,0]},{"a":60264,"t":"byte","b":[0,0,0,0,192,0,0,0]},{"a":60272,"t":"byte","b":[0,0,8,0,0,195,0,0]},{"a":60280,"t":"byte","b":[0,0,0,0,3,12,0,0]},{"a":60288,"t":"byte","b":[0,0,0,3,252,192,0,0]},{"a":60296,"t":"byte","b":[0,0,10,168,0,0,0,0]},{"a":60304,"t":"byte","b":[0,162,8,0,128,0,0,0]},{"a":60312,"t":"byte","b":[59,160,0,0,0,48,207,0]},{"a":60320,"t":"byte","b":[224,0,0,32,0,2,63,0]},{"a":60328,"t":"byte","b":[12,0,0,0,0,204,48,0]},{"a":60336,"t":"byte","b":[12,0,0,8,0,51,0,0]},{"a":60344,"t":"byte","b":[12,3,0,238,0,0,0,0]},{"a":60352,"t":"byte","b":[240,60,255,192,0,0,0,0]},{"a":60360,"t":"byte","b":[252,207,0,0,0,0,0,0]},{"a":60368,"t":"byte","b":[255,63,0,0,0,0,0,0]},{"a":60376,"t":"byte","b":[255,0,2,38,10,0,2,0]},{"a":60384,"t":"byte","b":[192,42,128,0,128,40,160,0]},{"a":60392,"t":"byte","b":[80,0,3,15,63,0,0,0]},{"a":60400,"t":"byte","b":[207,51,192,15,240,0,34,0]},{"a":60408,"t":"byte","b":[240,0,15,240,0,0,162,0]},{"a":60416,"t":"byte","b":[0,0,255,42,10,64,0,0]},{"a":60424,"t":"byte","b":[0,0,15,243,143,0,12,0]},{"a":60432,"t":"byte","b":[12,192,192,0,207,240,0,0]},{"a":60440,"t":"byte","b":[0,0,3,63,252,0,0,0]},{"a":60448,"t":"byte","b":[0,3,63,252,240,195,0,0]},{"a":60456,"t":"byte","b":[3,63,192,0,60,0,0,0]},{"a":60464,"t":"byte","b":[0,0,252,0,0,0,0,0]},{"a":60472,"t":"byte","b":[252,3,0,0,0,0,0,0]},{"a":60480,"t":"byte","b":[0,204,51,0,0,0,0,0]},{"a":60488,"t":"byte","b":[240,12,243,12,0,0,0,0]},{"a":60496,"t":"byte","b":[3,192,12,3,0,0,0,0]},{"a":60504,"t":"byte","b":[0,240,15,192,60,3,0,0]},{"a":60512,"t":"byte","b":[0,0,0,0,0,252,0,0]},{"a":60520,"t":"byte","b":[0,0,0,48,0,0,162,0]},{"a":60528,"t":"byte","b":[192,0,3,192,0,0,0,0]},{"a":60536,"t":"byte","b":[0,0,56,255,0,0,0,0]},{"a":60544,"l":"BACKDROP_SCREEN","c":"The backdrop's screen bytes, 40 to a row for its 10 rows, $EC80-$EE0F: each holds two of a cell's multicolour colours, in its high and low four bits. $070F's copy puts them at SAVED_SCREEN ($C880), from where RESTORE_GAMEPLAY_DISPLAY writes them to the screen at $CC00.","t":"byte","b":[232,232,232,232,232,232,232,232]},{"a":60552,"t":"byte","b":[232,232,236,236,236,236,236,236]},{"a":60560,"t":"byte","b":[236,236,235,236,236,188,232,232]},{"a":60568,"t":"byte","b":[232,232,232,232,232,232,232,232]},{"a":60576,"t":"byte","b":[232,232,232,227,227,188,188,188]},{"a":60584,"t":"byte","b":[184,184,184,40,40,40,40,40]},{"a":60592,"t":"byte","b":[40,40,40,40,44,236,236,236]},{"a":60600,"t":"byte","b":[236,236,120,232,236,236,188,236]},{"a":60608,"t":"byte","b":[227,232,227,232,232,232,232,232]},{"a":60616,"t":"byte","b":[232,227,232,232,232,236,203,184]},{"a":60624,"t":"byte","b":[184,184,184,184,184,184,235,235]},{"a":60632,"t":"byte","b":[184,184,184,235,232,40,184,184]},{"a":60640,"t":"byte","b":[184,184,184,184,184,236,188,203]},{"a":60648,"t":"byte","b":[225,227,232,232,232,232,239,235]},{"a":60656,"t":"byte","b":[232,227,227,227,28,188,188,184]},{"a":60664,"t":"byte","b":[184,184,184,184,184,184,184,235]},{"a":60672,"t":"byte","b":[235,235,184,235,184,184,184,184]},{"a":60680,"t":"byte","b":[184,184,184,184,184,188,188,188]},{"a":60688,"t":"byte","b":[188,236,236,203,188,239,182,235]},{"a":60696,"t":"byte","b":[188,203,235,129,184,188,40,184]},{"a":60704,"t":"byte","b":[184,235,232,232,184,235,184,184]},{"a":60712,"t":"byte","b":[184,184,184,184,235,184,235,184]},{"a":60720,"t":"byte","b":[235,183,184,184,184,184,184,184]},{"a":60728,"t":"byte","b":[44,188,40,184,40,182,246,188]},{"a":60736,"t":"byte","b":[188,184,40,40,40,184,184,232]},{"a":60744,"t":"byte","b":[75,75,235,235,235,235,235,232]},{"a":60752,"t":"byte","b":[232,184,184,184,184,184,184,184]},{"a":60760,"t":"byte","b":[184,184,184,184,183,231,120,120]},{"a":60768,"t":"byte","b":[120,40,232,40,40,40,207,232]},{"a":60776,"t":"byte","b":[39,40,40,40,184,184,139,184]},{"a":60784,"t":"byte","b":[72,72,72,72,72,120,40,40]},{"a":60792,"t":"byte","b":[40,40,40,40,40,184,40,184]},{"a":60800,"t":"byte","b":[184,120,120,40,40,40,40,40]},{"a":60808,"t":"byte","b":[232,232,24,129,225,232,207,232]},{"a":60816,"t":"byte","b":[232,129,24,184,120,120,184,184]},{"a":60824,"t":"byte","b":[72,40,40,40,40,72,40,40]},{"a":60832,"t":"byte","b":[40,40,40,40,40,40,232,40]},{"a":60840,"t":"byte","b":[40,40,120,40,40,40,232,40]},{"a":60848,"t":"byte","b":[40,24,24,24,225,232,232,232]},{"a":60856,"t":"byte","b":[232,177,24,40,40,40,40,232]},{"a":60864,"t":"byte","b":[152,152,152,152,72,40,72,152]},{"a":60872,"t":"byte","b":[40,40,40,120,146,40,152,40]},{"a":60880,"t":"byte","b":[40,40,120,40,120,152,40,146]},{"a":60888,"t":"byte","b":[184,184,177,225,225,232,232,232]},{"a":60896,"t":"byte","b":[232,225,177,40,40,40,40,40]},{"a":60904,"t":"byte","b":[184,184,184,184,184,120,121,120]},{"a":60912,"t":"byte","b":[120,123,123,123,123,120,123,123]},{"a":60920,"t":"byte","b":[120,120,120,120,120,152,120,120]},{"a":60928,"t":"byte","b":[137,121,120,120,120,120,120,120]},{"a":60936,"t":"byte","b":[120,120,120,120,120,123,120,120]},{"a":60944,"l":"BACKDROP_COLOUR","c":"The backdrop's colour bytes, 40 to a row for its 10 rows, $EE10-$EF9F: the third colour of each cell. $070F's copy puts them at SAVED_COLOR ($CA10), from where RESTORE_GAMEPLAY_DISPLAY writes them to colour RAM at $D800.","t":"byte","b":[59,171,187,171,11,219,171,235]},{"a":60952,"t":"byte","b":[219,187,235,219,171,251,219,251]},{"a":60960,"t":"byte","b":[155,171,92,155,219,223,239,143]},{"a":60968,"t":"byte","b":[175,88,88,88,88,88,168,88]},{"a":60976,"t":"byte","b":[8,8,216,63,127,223,175,255]},{"a":60984,"t":"byte","b":[82,2,82,219,171,219,219,171]},{"a":60992,"t":"byte","b":[91,219,171,219,219,251,219,171]},{"a":61000,"t":"byte","b":[139,251,171,171,219,171,191,223]},{"a":61008,"t":"byte","b":[175,40,223,216,248,248,161,248]},{"a":61016,"t":"byte","b":[88,175,232,88,175,255,223,252]},{"a":61024,"t":"byte","b":[130,82,162,210,82,226,162,82]},{"a":61032,"t":"byte","b":[162,162,82,130,242,219,162,2]},{"a":61040,"t":"byte","b":[82,162,162,82,172,171,223,63]},{"a":61048,"t":"byte","b":[255,223,88,175,255,223,161,223]},{"a":61056,"t":"byte","b":[255,175,223,223,255,175,223,175]},{"a":61064,"t":"byte","b":[242,242,162,2,210,162,210,82]},{"a":61072,"t":"byte","b":[162,2,82,82,82,82,162,82]},{"a":61080,"t":"byte","b":[82,242,82,82,162,210,82,255]},{"a":61088,"t":"byte","b":[255,223,223,255,223,171,145,223]},{"a":61096,"t":"byte","b":[175,223,223,159,223,159,171,82]},{"a":61104,"t":"byte","b":[82,82,82,82,162,82,82,162]},{"a":61112,"t":"byte","b":[82,162,82,18,2,210,82,82]},{"a":61120,"t":"byte","b":[162,162,82,210,82,2,210,82]},{"a":61128,"t":"byte","b":[219,159,219,82,171,223,81,175]},{"a":61136,"t":"byte","b":[223,82,59,219,219,82,226,82]},{"a":61144,"t":"byte","b":[162,82,82,242,82,82,82,82]},{"a":61152,"t":"byte","b":[82,162,82,82,162,82,82,162]},{"a":61160,"t":"byte","b":[210,82,162,82,82,162,82,82]},{"a":61168,"t":"byte","b":[162,215,167,167,87,87,161,219]},{"a":61176,"t":"byte","b":[91,87,87,87,162,82,82,162]},{"a":61184,"t":"byte","b":[82,82,18,82,82,210,91,91]},{"a":61192,"t":"byte","b":[251,219,91,171,219,82,171,82]},{"a":61200,"t":"byte","b":[82,162,2,215,167,215,215,215]},{"a":61208,"t":"byte","b":[87,7,167,167,215,168,59,223]},{"a":61216,"t":"byte","b":[167,167,55,167,82,82,162,162]},{"a":61224,"t":"byte","b":[82,84,84,84,228,82,84,212]},{"a":61232,"t":"byte","b":[215,247,247,215,167,231,215,167]},{"a":61240,"t":"byte","b":[231,215,162,199,215,215,167,247]},{"a":61248,"t":"byte","b":[167,199,215,167,231,88,171,248]},{"a":61256,"t":"byte","b":[248,247,215,215,167,7,215,162]},{"a":61264,"t":"byte","b":[164,84,212,84,162,164,89,82]},{"a":61272,"t":"byte","b":[167,215,215,162,199,215,23,215]},{"a":61280,"t":"byte","b":[215,247,242,215,82,82,87,247]},{"a":61288,"t":"byte","b":[247,87,247,219,87,219,91,171]},{"a":61296,"t":"byte","b":[232,171,215,151,215,167,55,215]},{"a":61304,"t":"byte","b":[165,217,25,249,169,89,91,155]},{"a":61312,"t":"byte","b":[219,89,233,89,169,249,89,89]},{"a":61320,"t":"byte","b":[89,89,249,89,89,91,251,251]},{"a":61328,"t":"byte","b":[219,251,219,171,187,219,171,171]},{"a":61336,"t":"byte","b":[219,171,219,251,91,162,82,162]},{"a":61344,"t":"gap","n":96},{"a":61440,"l":"V1_VIB_DELTA1_LO","c":"Voice 1's first vibrato delta, low byte: added to the frequency at each step of phase 1. Each voice's state is $2B bytes, voice 1 from $F000, voice 2 $F02B and voice 3 $F056, laid out alike; a note copies the vibrato here from its block.","t":"byte","b":[87],"x":[38977,39296]},{"a":61441,"l":"V1_VIB_DELTA1_HI","c":"Voice 1's first vibrato delta, high byte.","t":"byte","b":[3],"x":[39301]},{"a":61442,"l":"V1_VIB_DELTA2_LO","c":"Voice 1's second vibrato delta, low byte: added to the frequency at each step of phase 2.","t":"byte","b":[16],"x":[39317]},{"a":61443,"l":"V1_VIB_DELTA2_HI","c":"Voice 1's second vibrato delta, high byte.","t":"byte","b":[3],"x":[39322]},{"a":61444,"l":"V1_VIB_DELTA3_LO","c":"Voice 1's third vibrato delta, low byte: added to the frequency at each step of phase 3.","t":"byte","b":[153],"x":[39338]},{"a":61445,"l":"V1_VIB_DELTA3_HI","c":"Voice 1's third vibrato delta, high byte.","t":"byte","b":[249],"x":[39343]},{"a":61446,"l":"V1_VIB_DELTA4_LO","c":"Voice 1's fourth vibrato delta, low byte: added to the frequency at each step of phase 4. It is also added every frame of the delay when flag bit 1 is set.","t":"byte","b":[0],"x":[39261,39359]},{"a":61447,"l":"V1_VIB_DELTA4_HI","c":"Voice 1's fourth vibrato delta, high byte.","t":"byte","b":[0],"x":[39266,39364]},{"a":61448,"l":"V1_VIB_STEPS1","c":"Steps in voice 1's vibrato phase 1, copied to the counter at $F023 when the vibrato starts.","t":"byte","b":[1],"x":[38763]},{"a":61449,"l":"V1_VIB_STEPS2","c":"Steps in voice 1's vibrato phase 2, copied to the counter at $F024 when the vibrato starts.","t":"byte","b":[1],"x":[38757]},{"a":61450,"l":"V1_VIB_STEPS3","c":"Steps in voice 1's vibrato phase 3, copied to the counter at $F025 when the vibrato starts.","t":"byte","b":[1],"x":[38751]},{"a":61451,"l":"V1_VIB_STEPS4","c":"Steps in voice 1's vibrato phase 4, copied to the counter at $F026 when the vibrato starts.","t":"byte","b":[0],"x":[38745]},{"a":61452,"l":"V1_VIB_DELAY","c":"Frames before voice 1's vibrato takes its first step, counted down in place.","t":"byte","b":[0],"x":[39245,39250]},{"a":61453,"l":"V1_VIB_PERIOD","c":"Frames between voice 1's vibrato steps, copied to the step timer $F027.","t":"byte","b":[0],"x":[38739,39284]},{"a":61454,"l":"V1_VIB_FLAGS","c":"Voice 1's vibrato flags, as its block's byte $0E: bit 2 on, bit 1 slide during the delay, bit 7 restart from the note, bit 0 repeat.","t":"byte","b":[5],"x":[38967,39231,39253,39374]},{"a":61455,"l":"V1_PW_DELTA1_LO","c":"Voice 1's first pulse sweep delta, low byte: added to the width at each step of phase 1. A note copies the sweep here from its block.","t":"byte","b":[0],"x":[38958,39455]},{"a":61456,"l":"V1_PW_DELTA1_HI","c":"Voice 1's first pulse sweep delta, high byte.","t":"byte","b":[0],"x":[39460]},{"a":61457,"l":"V1_PW_DELTA2_LO","c":"Voice 1's second pulse sweep delta, low byte: added at each step of phase 2.","t":"byte","b":[0],"x":[39476]},{"a":61458,"l":"V1_PW_DELTA2_HI","c":"Voice 1's second pulse sweep delta, high byte.","t":"byte","b":[0],"x":[39481]},{"a":61459,"l":"V1_PW_STEPS1","c":"Steps in voice 1's first sweep phase, copied to the counter $F028.","t":"byte","b":[0],"x":[38677]},{"a":61460,"l":"V1_PW_STEPS2","c":"Steps in voice 1's second sweep phase, copied to the counter $F029.","t":"byte","b":[0],"x":[38683]},{"a":61461,"l":"V1_PW_DELAY","c":"Frames before voice 1's sweep takes its first step, counted down in place.","t":"byte","b":[0],"x":[39420,39425]},{"a":61462,"l":"V1_PW_PERIOD","c":"Frames between voice 1's sweep steps, copied to the step timer $F02A.","t":"byte","b":[0],"x":[38689,39442]},{"a":61463,"l":"V1_PW_FLAGS","c":"Voice 1's sweep flags: bit 2 on, bit 7 restart from the base width, bit 0 repeat from the current one.","t":"byte","b":[0],"x":[38948,39413,39491]},{"a":61464,"l":"V1_PW_BASE_LO","c":"Voice 1's base pulse width, low byte, where a sweep with bit 7 set starts again.","t":"byte","b":[0],"x":[38665]},{"a":61465,"l":"V1_PW_BASE_HI","c":"Voice 1's base pulse width, high byte.","t":"byte","b":[0],"x":[38668]},{"a":61466,"l":"V1_BASE_FREQ_LO","c":"The frequency of voice 1's note before the vibrato, low byte; a vibrato with bit 7 set goes back to it.","t":"byte","b":[216],"x":[38727,38992]},{"a":61467,"l":"V1_BASE_FREQ_HI","c":"The frequency of voice 1's note before the vibrato, high byte.","t":"byte","b":[12],"x":[38730,38995]},{"a":61468,"l":"V1_WAVEFORM","c":"The waveform byte of voice 1's note; the gate timer clears its gate bit from this.","t":"byte","b":[65],"x":[38942,39034,39554]},{"a":61469,"l":"V1_RELEASE_TICKS","c":"Frames of release left on voice 1 once its gate has closed; at 0 the voice is cut, and while it is 0 no effect runs.","t":"byte","b":[255],"x":[38573,39028,39217,39529]},{"a":61470,"l":"V1_GATE_TICKS","c":"Frames left before voice 1's gate closes.","t":"byte","b":[88],"x":[39031,39524,39549]},{"a":61471,"l":"V1_FREQ_LO","c":"Voice 1's frequency as it plays, after the vibrato, low byte.","t":"byte","b":[63],"x":[38733,39225,39401]},{"a":61472,"l":"V1_FREQ_HI","c":"Voice 1's frequency as it plays, high byte.","t":"byte","b":[19],"x":[38736,39228,39404]},{"a":61473,"l":"V1_PW_LO","c":"Voice 1's pulse width as it plays, after the sweep, low byte.","t":"byte","b":[0],"x":[38671,39407,39512]},{"a":61474,"l":"V1_PW_HI","c":"Voice 1's pulse width as it plays, high byte.","t":"byte","b":[7],"x":[38674,39410,39515]},{"a":61475,"l":"V1_VIB_LEFT1","c":"Steps left in voice 1's vibrato phase 1.","t":"byte","b":[0],"x":[38766,39290,39305]},{"a":61476,"l":"V1_VIB_LEFT2","c":"Steps left in voice 1's vibrato phase 2.","t":"byte","b":[0],"x":[38760,39311,39326]},{"a":61477,"l":"V1_VIB_LEFT3","c":"Steps left in voice 1's vibrato phase 3.","t":"byte","b":[1],"x":[38754,39332,39347]},{"a":61478,"l":"V1_VIB_LEFT4","c":"Steps left in voice 1's vibrato phase 4.","t":"byte","b":[0],"x":[38748,39353,39368]},{"a":61479,"l":"V1_VIB_TIMER","c":"Frames left before voice 1's next vibrato step.","t":"byte","b":[0],"x":[38742,39273,39278,39287]},{"a":61480,"l":"V1_PW_LEFT1","c":"Steps left in voice 1's first sweep phase.","t":"byte","b":[0],"x":[38680,39449,39464]},{"a":61481,"l":"V1_PW_LEFT2","c":"Steps left in voice 1's second sweep phase.","t":"byte","b":[0],"x":[38686,39470,39485]},{"a":61482,"l":"V1_PW_TIMER","c":"Frames left before voice 1's next sweep step.","t":"byte","b":[0],"x":[38692,39431,39436,39445]},{"a":61483,"l":"V2_VIB_DELTA1_LO","c":"Voice 2's first vibrato delta, low byte: added to the frequency at each step of phase 1. Each voice's state is $2B bytes, voice 1 from $F000, voice 2 $F02B and voice 3 $F056, laid out alike; a note copies the vibrato here from its block.","t":"byte","b":[0],"x":[39709,40028]},{"a":61484,"l":"V2_VIB_DELTA1_HI","c":"Voice 2's first vibrato delta, high byte.","t":"byte","b":[0],"x":[40033]},{"a":61485,"l":"V2_VIB_DELTA2_LO","c":"Voice 2's second vibrato delta, low byte: added to the frequency at each step of phase 2.","t":"byte","b":[0],"x":[40049]},{"a":61486,"l":"V2_VIB_DELTA2_HI","c":"Voice 2's second vibrato delta, high byte.","t":"byte","b":[0],"x":[40054]},{"a":61487,"l":"V2_VIB_DELTA3_LO","c":"Voice 2's third vibrato delta, low byte: added to the frequency at each step of phase 3.","t":"byte","b":[0],"x":[40070]},{"a":61488,"l":"V2_VIB_DELTA3_HI","c":"Voice 2's third vibrato delta, high byte.","t":"byte","b":[0],"x":[40075]},{"a":61489,"l":"V2_VIB_DELTA4_LO","c":"Voice 2's fourth vibrato delta, low byte: added to the frequency at each step of phase 4. It is also added every frame of the delay when flag bit 1 is set.","t":"byte","b":[0],"x":[39993,40091]},{"a":61490,"l":"V2_VIB_DELTA4_HI","c":"Voice 2's fourth vibrato delta, high byte.","t":"byte","b":[0],"x":[39998,40096]},{"a":61491,"l":"V2_VIB_STEPS1","c":"Steps in voice 2's vibrato phase 1, copied to the counter at $F04E when the vibrato starts.","t":"byte","b":[0],"x":[38806]},{"a":61492,"l":"V2_VIB_STEPS2","c":"Steps in voice 2's vibrato phase 2, copied to the counter at $F04F when the vibrato starts.","t":"byte","b":[0],"x":[38800]},{"a":61493,"l":"V2_VIB_STEPS3","c":"Steps in voice 2's vibrato phase 3, copied to the counter at $F050 when the vibrato starts.","t":"byte","b":[0],"x":[38794]},{"a":61494,"l":"V2_VIB_STEPS4","c":"Steps in voice 2's vibrato phase 4, copied to the counter at $F051 when the vibrato starts.","t":"byte","b":[0],"x":[38788]},{"a":61495,"l":"V2_VIB_DELAY","c":"Frames before voice 2's vibrato takes its first step, counted down in place.","t":"byte","b":[0],"x":[39977,39982]},{"a":61496,"l":"V2_VIB_PERIOD","c":"Frames between voice 2's vibrato steps, copied to the step timer $F052.","t":"byte","b":[0],"x":[38782,40016]},{"a":61497,"l":"V2_VIB_FLAGS","c":"Voice 2's vibrato flags, as its block's byte $0E: bit 2 on, bit 1 slide during the delay, bit 7 restart from the note, bit 0 repeat.","t":"byte","b":[0],"x":[39699,39963,39985,40106]},{"a":61498,"l":"V2_UNUSED_PULSE","c":"$F03A-$F044, where voice 2's pulse sweep would be; voice 2 has none, and nothing touches these 11 bytes.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":61506,"t":"byte","b":[0,0,0]},{"a":61509,"l":"V2_BASE_FREQ_LO","c":"The frequency of voice 2's note before the vibrato, low byte; a vibrato with bit 7 set goes back to it.","t":"byte","b":[23],"x":[38770,39724]},{"a":61510,"l":"V2_BASE_FREQ_HI","c":"The frequency of voice 2's note before the vibrato, high byte.","t":"byte","b":[8],"x":[38773,39727]},{"a":61511,"l":"V2_WAVEFORM","c":"The waveform byte of voice 2's note; the gate timer clears its gate bit from this.","t":"byte","b":[65],"x":[39693,40169]},{"a":61512,"l":"V2_RELEASE_TICKS","c":"Frames of release left on voice 2 once its gate has closed; at 0 the voice is cut, and while it is 0 no effect runs.","t":"byte","b":[150],"x":[38576,39757,39949,40144]},{"a":61513,"l":"V2_GATE_TICKS","c":"Frames left before voice 2's gate closes.","t":"byte","b":[84],"x":[39760,40139,40164]},{"a":61514,"l":"V2_FREQ_LO","c":"Voice 2's frequency as it plays, after the vibrato, low byte.","t":"byte","b":[23],"x":[38776,39957,40133]},{"a":61515,"l":"V2_FREQ_HI","c":"Voice 2's frequency as it plays, high byte.","t":"byte","b":[8],"x":[38779,39960,40136]},{"a":61516,"l":"V2_UNUSED_PULSE_WIDTH","c":"$F04C/$F04D, not used: voice 2 writes its pulse width straight to the SID and never sweeps it.","t":"byte","b":[0,0]},{"a":61518,"l":"V2_VIB_LEFT1","c":"Steps left in voice 2's vibrato phase 1.","t":"byte","b":[0],"x":[38809,40022,40037]},{"a":61519,"l":"V2_VIB_LEFT2","c":"Steps left in voice 2's vibrato phase 2.","t":"byte","b":[0],"x":[38803,40043,40058]},{"a":61520,"l":"V2_VIB_LEFT3","c":"Steps left in voice 2's vibrato phase 3.","t":"byte","b":[0],"x":[38797,40064,40079]},{"a":61521,"l":"V2_VIB_LEFT4","c":"Steps left in voice 2's vibrato phase 4.","t":"byte","b":[0],"x":[38791,40085,40100]},{"a":61522,"l":"V2_VIB_TIMER","c":"Frames left before voice 2's next vibrato step.","t":"byte","b":[0],"x":[38785,40005,40010,40019]},{"a":61523,"l":"V2_UNUSED_PULSE_STEPS","c":"$F053-$F055, not used: the counters of a sweep voice 2 does not have.","t":"byte","b":[0,0,0]},{"a":61526,"l":"V3_UNUSED_VIBRATO","c":"$F056-$F064, where voice 3's vibrato would be; voice 3 has none, and nothing touches these 15 bytes.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":61534,"t":"byte","b":[0,0,0,0,0,0,0]},{"a":61541,"l":"V3_PW_DELTA1_LO","c":"Voice 3's first pulse sweep delta, low byte: added to the width at each step of phase 1. A note copies the sweep here from its block.","t":"byte","b":[70],"x":[40326,40583]},{"a":61542,"l":"V3_PW_DELTA1_HI","c":"Voice 3's first pulse sweep delta, high byte.","t":"byte","b":[0],"x":[40588]},{"a":61543,"l":"V3_PW_DELTA2_LO","c":"Voice 3's second pulse sweep delta, low byte: added at each step of phase 2.","t":"byte","b":[0],"x":[40604]},{"a":61544,"l":"V3_PW_DELTA2_HI","c":"Voice 3's second pulse sweep delta, high byte.","t":"byte","b":[0],"x":[40609]},{"a":61545,"l":"V3_PW_STEPS1","c":"Steps in voice 3's first sweep phase, copied to the counter $F07E.","t":"byte","b":[30],"x":[38714]},{"a":61546,"l":"V3_PW_STEPS2","c":"Steps in voice 3's second sweep phase, copied to the counter $F07F.","t":"byte","b":[0],"x":[38720]},{"a":61547,"l":"V3_PW_DELAY","c":"Frames before voice 3's sweep takes its first step, counted down in place.","t":"byte","b":[0],"x":[40548,40553]},{"a":61548,"l":"V3_PW_PERIOD","c":"Frames between voice 3's sweep steps, copied to the step timer $F080.","t":"byte","b":[0],"x":[38708,40570]},{"a":61549,"l":"V3_PW_FLAGS","c":"Voice 3's sweep flags: bit 2 on, bit 7 restart from the base width, bit 0 repeat from the current one.","t":"byte","b":[5],"x":[40316,40541,40619]},{"a":61550,"l":"V3_PW_BASE_LO","c":"Voice 3's base pulse width, low byte, where a sweep with bit 7 set starts again.","t":"byte","b":[0],"x":[38696]},{"a":61551,"l":"V3_PW_BASE_HI","c":"Voice 3's base pulse width, high byte.","t":"byte","b":[5],"x":[38699]},{"a":61552,"l":"V3_UNUSED_BASE_FREQUENCY","c":"$F070/$F071, not used: voice 3 writes its frequency straight to the SID.","t":"byte","b":[0,0]},{"a":61554,"l":"V3_WAVEFORM","c":"The waveform byte of voice 3's note; the gate timer clears its gate bit from this.","t":"byte","b":[65],"x":[40310,40682]},{"a":61555,"l":"V3_RELEASE_TICKS","c":"Frames of release left on voice 3 once its gate has closed; at 0 the voice is cut, and while it is 0 no effect runs.","t":"byte","b":[60],"x":[38579,40367,40525,40657]},{"a":61556,"l":"V3_GATE_TICKS","c":"Frames left before voice 3's gate closes.","t":"byte","b":[18],"x":[40370,40652,40677]},{"a":61557,"l":"V3_UNUSED_FREQUENCY","c":"$F075/$F076, not used: with no vibrato, voice 3 keeps no running frequency.","t":"byte","b":[0,0]},{"a":61559,"l":"V3_PW_LO","c":"Voice 3's pulse width as it plays, after the sweep, low byte.","t":"byte","b":[72],"x":[38702,40535,40640]},{"a":61560,"l":"V3_PW_HI","c":"Voice 3's pulse width as it plays, high byte.","t":"byte","b":[8],"x":[38705,40538,40643]},{"a":61561,"l":"V3_UNUSED_VIBRATO_STEPS","c":"$F079-$F07D, not used: the counters of a vibrato voice 3 does not have.","t":"byte","b":[0,0,0,0,0]},{"a":61566,"l":"V3_PW_LEFT1","c":"Steps left in voice 3's first sweep phase.","t":"byte","b":[18],"x":[38717,40577,40592]},{"a":61567,"l":"V3_PW_LEFT2","c":"Steps left in voice 3's second sweep phase.","t":"byte","b":[0],"x":[38723,40598,40613]},{"a":61568,"l":"V3_PW_TIMER","c":"Frames left before voice 3's next sweep step.","t":"byte","b":[0],"x":[38711,40559,40564,40573]},{"a":61569,"l":"VOICE_ENABLE","c":"Which voices may sound: bits 0-2 for voices 1-3. $07, all three; a voice whose bit is clear reads its part but starts no notes.","t":"byte","b":[7],"x":[38885,39635,40252]},{"a":61570,"l":"VOLUME","c":"The volume, 0-15, which every note and fade step writes to $D418. MUSIC_INIT leaves it as it is.","t":"byte","b":[15],"x":[38591,38599,38611,38913,39664,40281]},{"a":61571,"l":"FADE_ACCUMULATOR","c":"Adds up the fade speed each frame; each carry (or missing carry, when fading out) moves the volume a step.","t":"byte","b":[14],"x":[38528,38535,38567]},{"a":61572,"l":"FADE_SPEED","c":"Fade speed: positive fades in, negative fades out, 0 holds. Set by the tune itself through $F400 ($0A) and $F406 ($FB).","t":"byte","b":[10],"x":[38532,38538,38570,62466,62472]},{"a":61573,"l":"VOICE_STARTS","c":"Where each voice's part of the tune begins, three words: $F250, $F5F3, $F6BE. MUSIC_INIT copies them to $10-$15 in two halves, $F085,X to $10,X here and $F088,X to $13,X, for X = 0-2.","t":"word","b":[80,242,243,245,190,246],"d":[62032,62963,63166],"x":[38651]},{"a":61576,"t":"note","l":"VOICE_STARTS_SECOND_HALF","c":"The second half of the start words, read through $F088,X: $F5, $BE, $F6 are the high byte of voice 2's start, then voice 3's low and high bytes.","note":"inside the item at $F085","x":[38656]},{"a":61579,"l":"VOICE_BLOCK_OFFSETS","c":"Offsets of the three voices' blocks from $9EF3: 0, $54, $A8.","t":"byte","b":[0,84,168],"x":[38632]},{"a":61582,"l":"FREQUENCY_HIGH","c":"High bytes of the SID frequency for notes 0-91, C0 to G7 in equal temperament (index 0 = C0, 48 = C4, 91 = G7).","t":"byte","b":[1,1,1,1,1,1,1,1],"x":[38985,39717,40334]},{"a":61590,"t":"byte","b":[1,1,1,2,2,2,2,2]},{"a":61598,"t":"byte","b":[2,2,3,3,3,3,3,4]},{"a":61606,"t":"byte","b":[4,4,4,5,5,5,6,6]},{"a":61614,"t":"byte","b":[6,7,7,8,8,9,9,10]},{"a":61622,"t":"byte","b":[10,11,12,12,13,14,15,16]},{"a":61630,"t":"byte","b":[17,18,19,20,21,22,24,25]},{"a":61638,"t":"byte","b":[27,28,30,32,34,36,38,40]},{"a":61646,"t":"byte","b":[43,45,48,51,54,57,61,64]},{"a":61654,"t":"byte","b":[68,72,76,81,86,91,96,102]},{"a":61662,"t":"byte","b":[108,115,122,129,137,145,153,163]},{"a":61670,"t":"byte","b":[172,183,193,205]},{"a":61674,"l":"FREQUENCY_LOW","c":"Low bytes of the SID frequency for notes 0-91.","t":"byte","b":[18,35,52,70,90,110,132,155],"x":[38988,39720,40337]},{"a":61682,"t":"byte","b":[179,205,233,6,37,69,104,140]},{"a":61690,"t":"byte","b":[179,220,8,54,103,155,210,12]},{"a":61698,"t":"byte","b":[73,139,208,25,103,185,16,108]},{"a":61706,"t":"byte","b":[206,53,163,23,147,21,159,60]},{"a":61714,"t":"byte","b":[205,114,32,216,156,107,70,47]},{"a":61722,"t":"byte","b":[37,42,63,100,154,227,63,177]},{"a":61730,"t":"byte","b":[56,214,141,94,75,85,126,200]},{"a":61738,"t":"byte","b":[52,198,127,97,111,172,126,188]},{"a":61746,"t":"byte","b":[149,169,252,161,105,140,254,194]},{"a":61754,"t":"byte","b":[223,88,52,120,43,83,247,31]},{"a":61762,"t":"byte","b":[210,25,252,133]},{"a":61766,"l":"INSTRUMENT_LEAD","c":"The lead instrument, 35 bytes: vibrato deltas +15, -15, +15, +121, steps 3, 6, 3, 0, delay 10, step every 1 frame, flags $05; pulse sweep deltas +0 and +0 for 0 and 0 steps, delay 0, step every 1 frame, flags $00, base width $0800; waveform $41, attack/decay $75, sustain/release $B9, 150 frames of release, gate open 90 frames; filter bytes $00 $00 $00 $0F. Voice 1's main sound and voice 2's; its first 15 bytes double as a vibrato ($F47D, $F53E, $F4E2) and its bytes $1A-$1E as an envelope ($F2B2).","t":"byte","b":[15,0,241,255,15,0,121,0]},{"a":61774,"t":"byte","b":[3,6,3,0,10,0,5,0]},{"a":61782,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":61790,"t":"byte","b":[0,8,65,117,185,150,90,0]},{"a":61798,"t":"byte","b":[0,0,15]},{"a":61801,"l":"NOTE_LENGTHS","c":"Frames each length index 1-16 lasts: 6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 108, 72, 1, 84, 3, 96. Loaded by voices 1 and 3, and by voice 2 as the end of the 51 bytes from $F146. Index 0 is the instrument's byte $22, 15 frames.","t":"byte","b":[6,12,18,24,30,36,42,48]},{"a":61809,"t":"byte","b":[54,60,108,72,1,84,3,96]},{"a":61817,"l":"VIBRATO_BEND_DOWN","c":"Vibrato setting that bends a note down after a short hold: deltas -111, +0, +0, +0, steps 20, 0, 0, 0, delay 10, step every 1 frame, flags $04. Voice 1's G#5 at $F47B.","t":"byte","b":[145,255,0,0,0,0,0,0]},{"a":61825,"t":"byte","b":[20,0,0,0,10,0,4]},{"a":61832,"l":"PULSE_SWEEP_F188","c":"A pulse sweep for voice 1: pulse sweep deltas +30 and -30 for 22 and 23 steps, delay 5, step every 1 frame, flags $05, base width $0800. Loaded at $F3E8.","t":"byte","b":[30,0,226,255,22,23,5,0]},{"a":61840,"t":"byte","b":[5,0,8]},{"a":61843,"l":"INSTRUMENT_SECOND","c":"Voice 1's second instrument, for the middle section from $F2F8: vibrato deltas +49, -49, +49, +54, steps 2, 4, 2, 0, delay 20, step every 1 frame, flags $05; pulse sweep deltas +70 and +24 for 15 and 255 steps, delay 3, step every 1 frame, flags $05, base width $01C2; waveform $41, attack/decay $83, sustain/release $D8, 20 frames of release, gate open 110 frames; filter bytes $00 $00 $00 $0F. Its first 15 bytes double as a vibrato ($F326, $F348).","t":"byte","b":[49,0,207,255,49,0,54,0]},{"a":61851,"t":"byte","b":[2,4,2,0,20,0,5,70]},{"a":61859,"t":"byte","b":[0,24,0,15,255,3,0,5]},{"a":61867,"t":"byte","b":[194,1,65,131,216,20,110,0]},{"a":61875,"t":"byte","b":[0,0,15]},{"a":61878,"l":"ENVELOPE_CASCADE","c":"Envelope for the falling run of short notes at $F35A: waveform $21, attack/decay $CF, sustain/release $FF, 1 frames of release, gate open 7 frames.","t":"byte","b":[33,207,255,1,7]},{"a":61883,"l":"VIBRATO_BEND_UP","c":"Vibrato setting that bends a note up after a hold: deltas +72, +0, +0, +0, steps 10, 0, 0, 0, delay 12, step every 1 frame, flags $04. Voice 1's F4 at $F324.","t":"byte","b":[72,0,0,0,0,0,0,0]},{"a":61891,"t":"byte","b":[10,0,0,0,12,0,4]},{"a":61898,"l":"VIBRATO_SLIDE","c":"Vibrato setting that slides up from the note during its delay, to about two semitones above it, then wobbles there: deltas +30, -30, +30, +114, steps 3, 6, 3, 0, delay 10, step every 1 frame, flags $07. Voice 1's C#5 at $F346.","t":"byte","b":[30,0,226,255,30,0,114,0]},{"a":61906,"t":"byte","b":[3,6,3,0,10,0,7]},{"a":61913,"l":"VIBRATO_BEND_UP_AND_BACK","c":"Vibrato setting that bends up, holds and comes back: deltas +161, +0, -161, +0, steps 10, 20, 10, 0, delay 0, step every 1 frame, flags $04. Voice 1's G5 at $F4E0.","t":"byte","b":[161,0,0,0,95,255,0,0]},{"a":61921,"t":"byte","b":[10,20,10,0,0,0,4]},{"a":61928,"l":"ENVELOPE_CHORDS","c":"Envelope for the opening chords: waveform $41, attack/decay $FD, sustain/release $DF, 255 frames of release, gate open 100 frames. Loaded by voice 1 at $F253.","t":"byte","b":[65,253,223,255,100]},{"a":61933,"l":"CHORD_F1ED","c":"Chord setting used as a vibrato: from C4 it jumps to E4, then G4, then back to C4 (C4 E4 G4, so a voice plays C major as a three-frame arpeggio). deltas +1141, +1047, -2188, +0, steps 1, 1, 1, 0, delay 1, step every 1 frame, flags $05. The deltas are frequencies, so it is right only on C4. Loaded on voice 1 by the opening chords and on voice 2 by its closing ones ($F660).","t":"byte","b":[117,4,23,4,116,247,0,0]},{"a":61941,"t":"byte","b":[1,1,1,0,1,0,5]},{"a":61948,"l":"CHORD_F1FC","c":"Chord setting used as a vibrato: from G3 it jumps to C4, then D4, then back to G3 (G3 C4 D4, so a voice plays G with a suspended fourth as a three-frame arpeggio). deltas +1101, +538, -1639, +0, steps 1, 1, 1, 0, delay 1, step every 1 frame, flags $05. The deltas are frequencies, so it is right only on G3. Loaded on voice 1 by the opening chords and on voice 2 by its closing ones ($F660).","t":"byte","b":[77,4,26,2,153,249,0,0]},{"a":61956,"t":"byte","b":[1,1,1,0,1,0,5]},{"a":61963,"l":"CHORD_F20B","c":"Chord setting used as a vibrato: from G3 it jumps to B3, then D4, then back to G3 (G3 B3 D4, so a voice plays G major as a three-frame arpeggio). deltas +855, +784, -1639, +0, steps 1, 1, 1, 0, delay 1, step every 1 frame, flags $05. The deltas are frequencies, so it is right only on G3. Loaded on voice 1 by the opening chords and on voice 2 by its closing ones ($F660).","t":"byte","b":[87,3,16,3,153,249,0,0]},{"a":61971,"t":"byte","b":[1,1,1,0,1,0,5]},{"a":61978,"l":"CHORD_F21A","c":"Chord setting used as a vibrato: from F3 it jumps to A3, then D4, then back to F3 (F3 A3 D4, so a voice plays D minor over F as a three-frame arpeggio). deltas +761, +1236, -1997, +0, steps 1, 1, 1, 0, delay 1, step every 1 frame, flags $05. The deltas are frequencies, so it is right only on F3. Loaded on voice 1 by the opening chords and on voice 2 by its closing ones ($F660).","t":"byte","b":[249,2,212,4,51,248,0,0]},{"a":61986,"t":"byte","b":[1,1,1,0,1,0,5]},{"a":61993,"l":"CHORD_F229","c":"Chord setting used as a vibrato: from F3 it jumps to A3, then C4, then back to F3 (F3 A3 C4, so a voice plays F major as a three-frame arpeggio). deltas +761, +698, -1459, +0, steps 1, 1, 1, 0, delay 1, step every 1 frame, flags $05. The deltas are frequencies, so it is right only on F3. Loaded on voice 1 by the opening chords and on voice 2 by its closing ones ($F660).","t":"byte","b":[249,2,186,2,77,250,0,0]},{"a":62001,"t":"byte","b":[1,1,1,0,1,0,5]},{"a":62008,"l":"CHORD_F238","c":"Chord setting used as a vibrato: from A3 it jumps to C4, then E4, then back to A3 (A3 C4 E4, so a voice plays A minor as a three-frame arpeggio). deltas +698, +1141, -1839, +0, steps 1, 1, 1, 0, delay 1, step every 1 frame, flags $05. The deltas are frequencies, so it is right only on A3. Loaded on voice 1 by the opening chords and on voice 2 by its closing ones ($F660).","t":"byte","b":[186,2,117,4,209,248,0,0]},{"a":62016,"t":"byte","b":[1,1,1,0,1,0,5]},{"a":62023,"l":"TUNE_SHARED_F247","c":"Shared by all three voices, the last thing each plays before going round again: notes rest 96, rest 96, rest 96, rest 96; return. Reached from $F3FA, $F65A, $F70D.","t":"byte","b":[96,16,96,16,96,16,96,16]},{"a":62031,"t":"byte","b":[128]},{"a":62032,"l":"TUNE_V1_START","c":"Voice 1's part of the tune, the melody, starts here; lengths from $F169; envelope from $F1E8; poke: the pulse width, low byte = $00; poke: the pulse width, high byte = $07; run $F400; vibrato from $F1ED; notes C4 96; vibrato from $F1FC; notes G3 48; vibrato from $F20B; notes G3 48; vibrato from $F21A; notes F3 48; vibrato from $F229; notes F3 48; vibrato from $F238; notes A3 48; vibrato from $F20B; notes G3 48. Reached from $F3FD.","t":"byte","b":[140,105,241,130,232,241,152,24]},{"a":62040,"t":"byte","b":[0,152,25,7,156,0,244,136]},{"a":62048,"t":"byte","b":[237,241,48,16,136,252,241,43]},{"a":62056,"t":"byte","b":[8,136,11,242,43,8,136,26]},{"a":62064,"t":"byte","b":[242,41,8,136,41,242,41,8]},{"a":62072,"t":"byte","b":[136,56,242,45,8,136,11,242]},{"a":62080,"t":"byte","b":[43,8]},{"a":62082,"l":"TUNE_V1_F282","c":"Voice 1: instrument from $F146; poke: sustain/release = $CC; call $F4CB; notes rest 48; call $F4CB; notes rest 48, D#5 36, A#5 12; poke: the gate ticks = $FF; notes A#5 96; poke: the gate ticks = $5A; notes rest 12, G#5 12, G5 12, G#5 24, G5 12, F5 12, G5 24, F5 12, D#5 12, F5 108.","t":"byte","b":[134,70,241,152,28,204,144,203]},{"a":62090,"t":"byte","b":[244,96,8,144,203,244,96,8]},{"a":62098,"t":"byte","b":[63,6,70,2,152,30,255,70]},{"a":62106,"t":"byte","b":[16,152,30,90,96,2,68,2]},{"a":62114,"t":"byte","b":[67,2,68,4,67,2,65,2]},{"a":62122,"t":"byte","b":[67,4,65,2,63,2,65,11]},{"a":62130,"l":"TUNE_V1_F2B2","c":"Voice 1: envelope from $F160; poke: the pulse width, high byte = $07; poke: the gate ticks = $50; poke: sustain/release = $9C; notes G4 36, D5 96, D5 24, C5 12, B4 24, F#4 36, D4 6, B3 6, D4 84, D4 6, D4 6, D4 18, E4 18, F#4 12, E4 84, A4 6, G4 6, F#4 36, G4 36, A4 24, B4 84, B4 6, C5 6, D5 18, C5 18, B4 12, G4 18, E4 18, D4 12.","t":"byte","b":[130,96,241,152,25,7,152,30]},{"a":62138,"t":"byte","b":[80,152,28,156,55,6,62,16]},{"a":62146,"t":"byte","b":[62,4,60,2,59,4,54,6]},{"a":62154,"t":"byte","b":[50,1,47,1,50,14,50,1]},{"a":62162,"t":"byte","b":[50,1,50,3,52,3,54,2]},{"a":62170,"t":"byte","b":[52,14,57,1,55,1,54,6]},{"a":62178,"t":"byte","b":[55,6,57,4,59,14,59,1]},{"a":62186,"t":"byte","b":[60,1,62,3,60,3,59,2]},{"a":62194,"t":"byte","b":[55,3,52,3,50,2]},{"a":62200,"l":"TUNE_V1_F2F8","c":"Voice 1: instrument from $F193; notes A#4 60, A#4 18, C5 18; poke: the vibrato flags = $07; notes C5 36; poke: the vibrato flags = $05; notes D5 6, D5 6, D5 18, C5 18, A#4 12; poke: the vibrato flags = $07; notes C5 36; poke: the vibrato flags = $05; notes A4 12, A4 108; vibrato from $F1BB; notes rest 12, F4 12; vibrato from $F193; notes rest 12, G4 48; poke: the vibrato flags = $07; poke: the fourth vibrato delta, low byte = $48; notes F5 48; poke: the vibrato flags = $05; poke: the fourth vibrato delta, low byte = $36; notes F5 24, C5 24, D5 24, D#5 24; vibrato from $F1CA; notes C#5 36; vibrato from $F193; notes D5 6, C5 6, D5 96.","t":"byte","b":[134,147,241,58,10,58,3,60]},{"a":62208,"t":"byte","b":[3,152,14,7,60,6,152,14]},{"a":62216,"t":"byte","b":[5,62,1,62,1,62,3,60]},{"a":62224,"t":"byte","b":[3,58,2,152,14,7,60,6]},{"a":62232,"t":"byte","b":[152,14,5,57,2,57,11,136]},{"a":62240,"t":"byte","b":[187,241,96,2,53,2,136,147]},{"a":62248,"t":"byte","b":[241,96,2,55,8,152,14,7]},{"a":62256,"t":"byte","b":[152,6,72,65,8,152,14,5]},{"a":62264,"t":"byte","b":[152,6,54,65,4,60,4,62]},{"a":62272,"t":"byte","b":[4,63,4,136,202,241,61,6]},{"a":62280,"t":"byte","b":[136,147,241,62,1,60,1,62]},{"a":62288,"t":"byte","b":[16]},{"a":62289,"l":"TUNE_V1_F351","c":"Voice 1: poke: the pulse flags = $00; poke: the vibrato flags = $00; envelope from $F1B6; notes rest 48, G7 3, D7 3, C7 3, G6 3, D7 3, C7 3, G6 3, D6 3, C7 3, G6 3, D6 3, C6 3, G6 3, D6 3, C6 3, G5 3; poke: attack/decay = $00; notes D6 3, C6 3, G5 3, D5 3, C6 3, G5 3, D5 3, C5 3, G5 3, D5 3, C5 3, G4 3, D5 3, C5 3, G4 3, D4 3, C5 3, G4 3, D4 3, B3 3, G4 3, D4 3, B3 3, G3 3, D4 3, B3 3, G3 3, D3 3, B3 3, G3 3, D3 3, B2 3, G3 3, D3 3, B2 3, G2 3, D3 3, B2 3, G2 3, D2 3, B2 3, G2 3, D2 3, B1 3, G2 3, D2 3, B1 3, G1 3.","t":"byte","b":[152,23,0,152,14,0,130,182]},{"a":62297,"t":"byte","b":[241,96,8,91,15,86,15,84]},{"a":62305,"t":"byte","b":[15,79,15,86,15,84,15,79]},{"a":62313,"t":"byte","b":[15,74,15,84,15,79,15,74]},{"a":62321,"t":"byte","b":[15,72,15,79,15,74,15,72]},{"a":62329,"t":"byte","b":[15,67,15,152,27,0,74,15]},{"a":62337,"t":"byte","b":[72,15,67,15,62,15,72,15]},{"a":62345,"t":"byte","b":[67,15,62,15,60,15,67,15]},{"a":62353,"t":"byte","b":[62,15,60,15,55,15,62,15]},{"a":62361,"t":"byte","b":[60,15,55,15,50,15,60,15]},{"a":62369,"t":"byte","b":[55,15,50,15,47,15,55,15]},{"a":62377,"t":"byte","b":[50,15,47,15,43,15,50,15]},{"a":62385,"t":"byte","b":[47,15,43,15,38,15,47,15]},{"a":62393,"t":"byte","b":[43,15,38,15,35,15,43,15]},{"a":62401,"t":"byte","b":[38,15,35,15,31,15,38,15]},{"a":62409,"t":"byte","b":[35,15,31,15,26,15,35,15]},{"a":62417,"t":"byte","b":[31,15,26,15,23,15,31,15]},{"a":62425,"t":"byte","b":[26,15,23,15,19,15]},{"a":62431,"l":"TUNE_V1_F3DF","c":"Voice 1: instrument from $F146; call $F4CB; call $F4C2; pulse from $F188; call $F4DD; call $F4DD; run $F406; call $F4DD; call $F4DD; call $F247; jump $F250.","t":"byte","b":[134,70,241,144,203,244,144,194]},{"a":62439,"t":"byte","b":[244,138,136,241,144,221,244,144]},{"a":62447,"t":"byte","b":[221,244,156,6,244,144,221,244]},{"a":62455,"t":"byte","b":[144,221,244,144,71,242,142,80]},{"a":62463,"t":"byte","b":[242]},{"a":62464,"l":"TUNE_FADE_IN","c":"Run by the tune itself (command $9C at $F25C): fade speed $F084 = $0A, so the volume climbs a step every 25.6 frames. Code inside the music data, called through V1_CMD_MACHINE_CODE.","t":"code","b":[169,10],"m":"lda","o":"#$0A"},{"a":62466,"t":"code","b":[141,132,240],"m":"sta","o":"FADE_SPEED","oa":61572},{"a":62469,"t":"code","b":[96],"m":"rts"},{"a":62470,"l":"TUNE_FADE_OUT","c":"Run by the tune at $F3F1, near the end of each pass: fade speed $F084 = $FB, a step down every 51.2 frames.","t":"code","b":[169,251],"m":"lda","o":"#$FB"},{"a":62472,"t":"code","b":[141,132,240],"m":"sta","o":"FADE_SPEED","oa":61572},{"a":62475,"t":"code","b":[96],"m":"rts"},{"a":62476,"l":"TUNE_V1_F40C","c":"Voice 1: poke: the vibrato flags = $07; notes D5 36; poke: the vibrato flags = $05; notes G4 12, G4 84, C5 12, C5 12, D5 12, E5 12, F5 12; poke: the vibrato flags = $07; poke: the fourth vibrato delta, low byte = $90; notes F5 60; poke: the vibrato flags = $05; poke: the fourth vibrato delta, low byte = $78; notes F5 12, E5 12, F5 24, E5 12, D5 12, E5 24, D5 12, C5 24; return. Reached from $F4CB, $F4CE.","t":"byte","b":[152,14,7,62,6,152,14,5]},{"a":62484,"t":"byte","b":[55,2,55,14,60,2,60,2]},{"a":62492,"t":"byte","b":[62,2,64,2,65,2,152,14]},{"a":62500,"t":"byte","b":[7,152,6,144,65,10,152,14]},{"a":62508,"t":"byte","b":[5,152,6,120,65,2,64,2]},{"a":62516,"t":"byte","b":[65,4,64,2,62,2,64,4]},{"a":62524,"t":"byte","b":[62,2,60,4,128]},{"a":62529,"l":"TUNE_V1_F441","c":"Voice 1: notes G5 24, G5 12, G5 36, G5 12, G#5 24, G5 24; run $F495. Reached from $F4D1.","t":"byte","b":[67,4,67,2,67,6,67,2]},{"a":62537,"t":"byte","b":[68,4,67,4,156,149,244]},{"a":62544,"l":"TUNE_V1_F450","c":"Voice 1: notes rest/D#5 (flipped, see $F495) 36, F5 12, D#5 12, G5 24, G5 12, G5 36, G#5 12, F5 96, D#5 12, G5 12, G5 24, G5 36, A#5 12, G#5 24, G5 60, F5 12, D#5 12, G5 24, G5 24, G5 24; vibrato from $F179; notes G#5 24; vibrato from $F146; notes F5 24; poke: the vibrato flags = $07; poke: the fourth vibrato delta, low byte = $80; notes D#5 24; poke: the fourth vibrato delta, low byte = $78; poke: the vibrato flags = $05; notes D#5 24, D5 24; return.","t":"byte","b":[96,6,65,2,63,2,67,4],"x":[62615,62618]},{"a":62552,"t":"byte","b":[67,2,67,6,68,2,65,16]},{"a":62560,"t":"byte","b":[63,2,67,2,67,4,67,6]},{"a":62568,"t":"byte","b":[70,2,68,4,67,10,65,2]},{"a":62576,"t":"byte","b":[63,2,67,4,67,4,67,4]},{"a":62584,"t":"byte","b":[136,121,241,68,4,136,70,241]},{"a":62592,"t":"byte","b":[65,4,152,14,7,152,6,128]},{"a":62600,"t":"byte","b":[63,4,152,6,120,152,14,5]},{"a":62608,"t":"byte","b":[63,4,62,4,128]},{"a":62613,"l":"TUNE_FLIP_F450","c":"Run by voice 1 at $F44D, just before the note at $F450: EOR #$5F flips that byte between $60 (a rest) and $3F (D#5). The phrase it sits in plays three times a pass, so its first note alternates: D#5, rest, D#5 on one pass and rest, D#5, rest on the next, and the tune repeats exactly only every second pass.","t":"code","b":[169,95],"m":"lda","o":"#$5F"},{"a":62615,"t":"code","b":[77,80,244],"m":"eor","o":"TUNE_V1_F450","oa":62544},{"a":62618,"t":"code","b":[141,80,244],"m":"sta","o":"TUNE_V1_F450","oa":62544},{"a":62621,"t":"code","b":[96],"m":"rts"},{"a":62622,"l":"TUNE_V1_F49E","c":"Voice 1: notes C5 36. Reached from $F4D7, $F4BF.","t":"byte","b":[60,6]},{"a":62624,"l":"TUNE_V1_F4A0","c":"Voice 1: notes G5 12; poke: the gate ticks = $FF; notes G5 96; poke: the gate ticks = $5A; notes rest 12, F5 12, E5 12, F5 24, E5 12, D5 12, E5 24, D5 12, C5 12, D5 60; return. Reached from $F4E5, and from $F49E, which runs on into it.","t":"byte","b":[67,2,152,30,255,67,16,152]},{"a":62632,"t":"byte","b":[30,90,96,2,65,2,64,2]},{"a":62640,"t":"byte","b":[65,4,64,2,62,2,64,4]},{"a":62648,"t":"byte","b":[62,2,60,2,62,10,128]},{"a":62655,"l":"TUNE_V1_F4BF","c":"Voice 1: call $F49E. Reached from $F4D4.","t":"byte","b":[144,158,244]},{"a":62658,"l":"TUNE_V1_F4C2","c":"Voice 1: notes E5 12, F5 12, E5 12, D5 12; return. Reached from $F3E5, $F4E8, and from $F4BF when its call returns.","t":"byte","b":[64,2,65,2,64,2,62,2]},{"a":62666,"t":"byte","b":[128]},{"a":62667,"l":"TUNE_V1_F4CB","c":"Voice 1: call $F40C; call $F40C; call $F441; call $F4BF; jump $F49E. Reached from $F288, $F28D, $F3E2.","t":"byte","b":[144,12,244,144,12,244,144,65]},{"a":62675,"t":"byte","b":[244,144,191,244,142,158,244]},{"a":62682,"l":"TUNE_UNREACHED_F4DA","c":"Three bytes after the jump at $F4D7 that no voice reaches: a rest of 48 frames and a return.","t":"byte","b":[96,8,128]},{"a":62685,"l":"TUNE_V1_F4DD","c":"Voice 1: vibrato from $F1D9; notes G5 36; vibrato from $F146; call $F4A0; jump $F4C2. Reached from $F3EB, $F3EE, $F3F4, $F3F7.","t":"byte","b":[136,217,241,67,6,136,70,241]},{"a":62693,"t":"byte","b":[144,160,244,142,194,244]},{"a":62699,"l":"VIBRATO_BEND_DOWN_V2","c":"Vibrato setting for voice 2's G#4 at $F53C: deltas -56, +0, +0, +0, steps 20, 0, 0, 0, delay 10, step every 1 frame, flags $04.","t":"byte","b":[200,255,0,0,0,0,0,0]},{"a":62707,"t":"byte","b":[20,0,0,0,10,0,4]},{"a":62714,"l":"ENVELOPE_V2_CHORDS","c":"Envelope for voice 2's closing chords: waveform $21, attack/decay $33, sustain/release $7B, 255 frames of release, gate open 8 frames. Loaded at $F63F.","t":"byte","b":[33,51,123,255,8]},{"a":62719,"l":"TUNE_V2_F4FF","c":"Voice 2: poke: the vibrato flags = $05; notes D#5 24, D#5 12, D#5 36, D#5 12, F5 24, D#5 24; run $F553. Reached from $F5D5.","t":"byte","b":[152,14,5,63,4,63,2,63]},{"a":62727,"t":"byte","b":[6,63,2,65,4,63,4,156]},{"a":62735,"t":"byte","b":[83,245]},{"a":62737,"l":"TUNE_V2_F511","c":"Voice 2: notes rest/A#4 (flipped, see $F553) 36, D5 12, C5 12, D#5 24, D#5 12, D#5 36, F5 12, D5 96, D#5 12, D#5 12, D#5 24, D#5 36, G5 12, F5 24, D#5 60, F5 12, D#5 12, G4 24, G4 24, G4 24; vibrato from $F4EB; notes G#4 24; vibrato from $F146; notes F4 24; poke: the vibrato flags = $07; poke: the fourth vibrato delta, low byte = $40; notes D#4 24; poke: the vibrato flags = $05; notes D#4 24, D4 24; return.","t":"byte","b":[96,6,62,2,60,2,63,4],"x":[62805,62808]},{"a":62745,"t":"byte","b":[63,2,63,6,65,2,62,16]},{"a":62753,"t":"byte","b":[63,2,63,2,63,4,63,6]},{"a":62761,"t":"byte","b":[67,2,65,4,63,10,65,2]},{"a":62769,"t":"byte","b":[63,2,55,4,55,4,55,4]},{"a":62777,"t":"byte","b":[136,235,244,56,4,136,70,241]},{"a":62785,"t":"byte","b":[53,4,152,14,7,152,6,64]},{"a":62793,"t":"byte","b":[51,4,152,14,5,51,4,50]},{"a":62801,"t":"byte","b":[4,128]},{"a":62803,"l":"TUNE_FLIP_F511","c":"Run by voice 2 at $F50E: EOR #$5A flips the note byte at $F511 between $60 (a rest) and $3A (A#4), the harmony to voice 1's flip at $F495; the two are called on the same frames.","t":"code","b":[169,90],"m":"lda","o":"#$5A"},{"a":62805,"t":"code","b":[77,17,245],"m":"eor","o":"TUNE_V2_F511","oa":62737},{"a":62808,"t":"code","b":[141,17,245],"m":"sta","o":"TUNE_V2_F511","oa":62737},{"a":62811,"t":"code","b":[96],"m":"rts"},{"a":62812,"l":"TUNE_UNREACHED_F55C","c":"A call to $F55F that no voice reaches.","t":"byte","b":[144,95,245]},{"a":62815,"l":"TUNE_V2_F55F","c":"Voice 2: call $F562. Reached from $F5FF, $F60E, $F612, $F61A, $F61D, $F629, $F62D, $F635, $F63C, $F5B5, $F5DC, $F5E7.","t":"byte","b":[144,98,245]},{"a":62818,"l":"TUNE_V2_F562","c":"Voice 2: notes C0 6, E0 6, G0 6, C1 6, E1 6, C1 6, G0 6, E0 6; return. Reached from $F5BD, $F5C4, $F5CB, $F55F, $F5E4, $F5EF.","t":"byte","b":[0,1,4,1,7,1,12,1]},{"a":62826,"t":"byte","b":[16,1,12,1,7,1,4,1]},{"a":62834,"t":"byte","b":[128]},{"a":62835,"l":"TUNE_V2_F573","c":"Voice 2: call $F576. Reached from $F625.","t":"byte","b":[144,118,245]},{"a":62838,"l":"TUNE_V2_F576","c":"Voice 2: call $F579. Reached from $F603, $F607, $F60B, $F621, $F573.","t":"byte","b":[144,121,245]},{"a":62841,"l":"TUNE_V2_F579","c":"Voice 2: notes C0 6, D#0 6, G0 6, C1 6, D#1 6, C1 6, G0 6, D#0 6; return. Reached from $F5C7, $F576, $F5EB.","t":"byte","b":[0,1,3,1,7,1,12,1]},{"a":62849,"t":"byte","b":[15,1,12,1,7,1,3,1]},{"a":62857,"t":"byte","b":[128]},{"a":62858,"l":"TUNE_V2_F58A","c":"Voice 2: call $F58D. Reached from $F616, $F631, $F638.","t":"byte","b":[144,141,245]},{"a":62861,"l":"TUNE_V2_F58D","c":"Voice 2: notes C0 6, F0 6, G0 6, C1 6, F1 6, C1 6, G0 6, F0 6; return. Reached from $F5B9, $F58A, $F5E0.","t":"byte","b":[0,1,5,1,7,1,12,1]},{"a":62869,"t":"byte","b":[17,1,12,1,7,1,5,1]},{"a":62877,"t":"byte","b":[128]},{"a":62878,"l":"TUNE_V2_F59E","c":"Voice 2: notes C0 6, E0 6, A0 6, C1 6, E1 6, C1 6, A0 6, E0 6; return. Reached from $F5C0.","t":"byte","b":[0,1,4,1,9,1,12,1]},{"a":62886,"t":"byte","b":[16,1,12,1,9,1,4,1]},{"a":62894,"t":"byte","b":[128]},{"a":62895,"l":"TUNE_V2_F5AF","c":"Voice 2: call $F5B2. Reached from $F5D9, $F5D2.","t":"byte","b":[144,178,245]},{"a":62898,"l":"TUNE_V2_F5B2","c":"Voice 2: poke: the vibrato flags = $00; call $F55F transposed 36; call $F58D transposed 31; call $F562; call $F59E transposed 29; call $F562; call $F579 transposed 33; jump to $F562 transposed 31. Reached from $F5F6, $F64E, $F651, $F654, $F657, $F5AF.","t":"byte","b":[152,14,0,150,95,245,36,150]},{"a":62906,"t":"byte","b":[141,245,31,144,98,245,150,158]},{"a":62914,"t":"byte","b":[245,29,144,98,245,150,121,245]},{"a":62922,"t":"byte","b":[33,154,98,245,31]},{"a":62927,"l":"TUNE_V2_F5CF","c":"Voice 2: call $F5D2. Reached from $F5F9.","t":"byte","b":[144,210,245]},{"a":62930,"l":"TUNE_V2_F5D2","c":"Voice 2: call $F5AF. Reached from $F5CF.","t":"byte","b":[144,175,245]},{"a":62933,"l":"TUNE_V2_F5D5","c":"Voice 2: call $F4FF transposed 0; jump $F5AF. Reached from $F64B, and from $F5D2 when its call returns.","t":"byte","b":[150,255,244,0,142,175,245]},{"a":62940,"l":"TUNE_V2_F5DC","c":"Voice 2: call $F55F transposed 39; call $F58D transposed 34; call $F562; call $F55F transposed 32; call $F579 transposed 36; jump to $F562 transposed 34. Reached from $F5FC.","t":"byte","b":[150,95,245,39,150,141,245,34]},{"a":62948,"t":"byte","b":[144,98,245,150,95,245,32,150]},{"a":62956,"t":"byte","b":[121,245,36,154,98,245,34]},{"a":62963,"l":"TUNE_V2_START","c":"Voice 2's part starts here; instrument+lengths from $F146.","t":"byte","b":[146,70,241]},{"a":62966,"l":"TUNE_V2_F5F6","c":"Voice 2: call $F5B2; call $F5CF; call $F5DC; call $F55F transposed 31; call $F576 transposed 28; call $F576 transposed 23; call $F576; call $F55F transposed 24; call $F55F transposed 26; call $F58A transposed 31; call $F55F; call $F55F transposed 34; call $F576 transposed 31; call $F573 transposed 26; call $F55F transposed 27; call $F55F transposed 29; call $F58A transposed 34; call $F55F; call $F58A transposed 31; call $F55F. Reached from $F65D, and from $F5F3, which runs on into it.","t":"byte","b":[144,178,245,144,207,245,144,220]},{"a":62974,"t":"byte","b":[245,150,95,245,31,150,118,245]},{"a":62982,"t":"byte","b":[28,150,118,245,23,144,118,245]},{"a":62990,"t":"byte","b":[150,95,245,24,150,95,245,26]},{"a":62998,"t":"byte","b":[150,138,245,31,144,95,245,150]},{"a":63006,"t":"byte","b":[95,245,34,150,118,245,31,150]},{"a":63014,"t":"byte","b":[115,245,26,150,95,245,27,150]},{"a":63022,"t":"byte","b":[95,245,29,150,138,245,34,144]},{"a":63030,"t":"byte","b":[95,245,150,138,245,31,144,95]},{"a":63038,"t":"byte","b":[245]},{"a":63039,"l":"TUNE_V2_F63F","c":"Voice 2: envelope from $F4FA; call $F660; call $F660; instrument from $F146; call $F5D5; call $F5B2; call $F5B2; call $F5B2; call $F5B2; call $F247; jump $F5F6.","t":"byte","b":[130,250,244,144,96,246,144,96]},{"a":63047,"t":"byte","b":[246,134,70,241,144,213,245,144]},{"a":63055,"t":"byte","b":[178,245,144,178,245,144,178,245]},{"a":63063,"t":"byte","b":[144,178,245,144,71,242,142,246]},{"a":63071,"t":"byte","b":[245]},{"a":63072,"l":"TUNE_V2_F660","c":"Voice 2: vibrato from $F1ED; call $F68F transposed 48; vibrato from $F1FC; call $F692 transposed 43; vibrato from $F20B; call $F692; vibrato from $F21A; call $F692 transposed 41; vibrato from $F229; call $F692; vibrato from $F238; call $F692 transposed 45; vibrato from $F20B; jump to $F692 transposed 43. Reached from $F642, $F645.","t":"byte","b":[136,237,241,150,143,246,48,136]},{"a":63080,"t":"byte","b":[252,241,150,146,246,43,136,11]},{"a":63088,"t":"byte","b":[242,144,146,246,136,26,242,150]},{"a":63096,"t":"byte","b":[146,246,41,136,41,242,144,146]},{"a":63104,"t":"byte","b":[246,136,56,242,150,146,246,45]},{"a":63112,"t":"byte","b":[136,11,242,154,146,246,43]},{"a":63119,"l":"TUNE_V2_F68F","c":"Voice 2: call $F692. Reached from $F663.","t":"byte","b":[144,146,246]},{"a":63122,"l":"TUNE_V2_F692","c":"Voice 2: notes C0 12, C0 12, C0 12, C0 12; return. Reached from $F66A, $F671, $F677, $F67E, $F684, $F68B, $F68F.","t":"byte","b":[0,2,0,2,0,2,0,2]},{"a":63130,"t":"byte","b":[128]},{"a":63131,"l":"INSTRUMENT_BASS","c":"Voice 3's bass instrument: no vibrato; pulse sweep deltas +70 and +0 for 30 and 0 steps, delay 0, step every 1 frame, flags $05, base width $0500; waveform $41, attack/decay $33, sustain/release $8A, 60 frames of release, gate open 30 frames; filter bytes $00 $00 $00 $0F.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63139,"t":"byte","b":[0,0,0,0,0,0,0,70]},{"a":63147,"t":"byte","b":[0,0,0,30,0,0,0,5]},{"a":63155,"t":"byte","b":[0,5,65,51,138,60,30,0]},{"a":63163,"t":"byte","b":[0,0,15]},{"a":63166,"l":"TUNE_V3_START","c":"Voice 3's part, the bass, starts here; instrument from $F69B; lengths from $F169.","t":"byte","b":[134,155,246,140,105,241]},{"a":63172,"l":"TUNE_V3_F6C4","c":"Voice 3: call $F725; call $F749; call $F749; call $F755; call $F716 transposed 31; call $F716 transposed 28; call $F713 transposed 23; call $F716 transposed 24; call $F716 transposed 26; call $F713 transposed 31; call $F716 transposed 34; call $F716 transposed 31; call $F713 transposed 26; call $F716 transposed 27; call $F716 transposed 29; call $F713 transposed 34; call $F713 transposed 31; call $F749; call $F722; call $F722; call $F247; jump $F6C4. Reached from $F710, and from $F6BE, which runs on into it.","t":"byte","b":[144,37,247,144,73,247,144,73]},{"a":63180,"t":"byte","b":[247,144,85,247,150,22,247,31]},{"a":63188,"t":"byte","b":[150,22,247,28,150,19,247,23]},{"a":63196,"t":"byte","b":[150,22,247,24,150,22,247,26]},{"a":63204,"t":"byte","b":[150,19,247,31,150,22,247,34]},{"a":63212,"t":"byte","b":[150,22,247,31,150,19,247,26]},{"a":63220,"t":"byte","b":[150,22,247,27,150,22,247,29]},{"a":63228,"t":"byte","b":[150,19,247,34,150,19,247,31]},{"a":63236,"t":"byte","b":[144,73,247,144,34,247,144,34]},{"a":63244,"t":"byte","b":[247,144,71,242,142,196,246]},{"a":63251,"l":"TUNE_V3_F713","c":"Voice 3: call $F716. Reached from $F6D8, $F6E4, $F6F0, $F6FC, $F700.","t":"byte","b":[144,22,247]},{"a":63254,"l":"TUNE_V3_F716","c":"Voice 3: call $F719. Reached from $F6D0, $F6D4, $F6DC, $F6E0, $F6E8, $F6EC, $F6F4, $F6F8, $F725, $F729, $F72D, $F739, $F73D, $F741, $F745, $F713, $F755, $F759, $F75D.","t":"byte","b":[144,25,247]},{"a":63257,"l":"TUNE_V3_F719","c":"Voice 3: notes C0 12, C0 12, C1 12, C0 12; return. Reached from $F731, $F735, $F716, $F761, $F765.","t":"byte","b":[0,2,0,2,12,2,0,2]},{"a":63265,"t":"byte","b":[128]},{"a":63266,"l":"TUNE_V3_F722","c":"Voice 3: call $F725. Reached from $F707, $F70A, $F749, $F752.","t":"byte","b":[144,37,247]},{"a":63269,"l":"TUNE_V3_F725","c":"Voice 3: call $F716 transposed 36; call $F716 transposed 31; call $F716 transposed 29; call $F719 transposed 33; jump to $F719 transposed 31. Reached from $F6C4, $F722.","t":"byte","b":[150,22,247,36,150,22,247,31]},{"a":63277,"t":"byte","b":[150,22,247,29,150,25,247,33]},{"a":63285,"t":"byte","b":[154,25,247,31]},{"a":63289,"l":"TUNE_V3_F739","c":"Voice 3: call $F716 transposed 39; call $F716 transposed 36; call $F716 transposed 32; jump to $F716 transposed 34. Reached from $F74C, $F74F.","t":"byte","b":[150,22,247,39,150,22,247,36]},{"a":63297,"t":"byte","b":[150,22,247,32,154,22,247,34]},{"a":63305,"l":"TUNE_V3_F749","c":"Voice 3: call $F722; call $F739; call $F739; jump $F722. Reached from $F6C7, $F6CA, $F704.","t":"byte","b":[144,34,247,144,57,247,144,57]},{"a":63313,"t":"byte","b":[247,142,34,247]},{"a":63317,"l":"TUNE_V3_F755","c":"Voice 3: call $F716 transposed 39; call $F716 transposed 34; call $F716 transposed 32; call $F719 transposed 36; jump to $F719 transposed 34. Reached from $F6CD.","t":"byte","b":[150,22,247,39,150,22,247,34]},{"a":63325,"t":"byte","b":[150,22,247,32,150,25,247,36]},{"a":63333,"t":"byte","b":[154,25,247,34]},{"a":63337,"l":"LEFTOVER_F769","c":"After the tune's last byte, to the character set at $F800: 151 bytes nothing reads, in bitmap rows that are never shown.","t":"byte","b":[240,207,0,0,0,0,170,0]},{"a":63345,"t":"byte","b":[0,252,3,0,0,40,170,0]},{"a":63353,"t":"byte","b":[0,0,3,195,204,60,48,192]},{"a":63361,"t":"byte","b":[192,192,0,0,0,0,0,0]},{"a":63369,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63377,"t":"byte","b":[0,0,0,0,0,0,0,116]},{"a":63385,"t":"byte","b":[141,123,156,200,141,121,137,143]},{"a":63393,"t":"byte","b":[143,143,249,59,107,242,242,130]},{"a":63401,"t":"byte","b":[50,50,242,2,98,249,248,63]},{"a":63409,"t":"byte","b":[63,63,63,63,63,63,63,255]},{"a":63417,"t":"byte","b":[255,255,255,255,255,255,255,242]},{"a":63425,"t":"byte","b":[242,252,252,255,255,255,255,0]},{"a":63433,"t":"byte","b":[0,192,192,51,51,143,143,63]},{"a":63441,"t":"byte","b":[255,255,255,252,252,240,240,194]},{"a":63449,"t":"byte","b":[194,9,9,9,37,37,37,213]},{"a":63457,"t":"byte","b":[85,85,87,95,92,94,93,170]},{"a":63465,"t":"byte","b":[170,190,255,62,62,122,190,192]},{"a":63473,"t":"byte","b":[80,112,64,240,192,240,112,0]},{"a":63481,"t":"byte","b":[0,0,0,0,0,0,0]},{"a":63488,"l":"gameplay_character_set","c":"Gameplay character set at $F800: 256 glyphs of eight bytes, read by the VIC in the text band. RASTER_SPLIT_TEXT_DELAY ($A80A) writes $D018=$3E at $A815 with VIC bank $C000, selecting this RAM beneath KERNAL ROM. This lower half contains glyphs 0\u2013127: ordinary text, and from $7B the first tiles of the enlarged capitals, which take four glyphs each ($7B + 4 x (letter - 'A'), at $0BAA), so only $7B-$7F lie in this half. The fresh font does not match either half of the machine character ROM.","t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63496,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63504,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63512,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63520,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63528,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63536,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63544,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63552,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63560,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63568,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63576,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63584,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63592,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63600,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63608,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63616,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63624,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63632,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63640,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63648,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63656,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63664,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63672,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63680,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63688,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63696,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63704,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63712,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63720,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63728,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63736,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63744,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63752,"t":"byte","b":[112,48,48,48,24,0,48,48]},{"a":63760,"t":"byte","b":[54,54,18,36,0,0,0,0]},{"a":63768,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63776,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63784,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63792,"t":"byte","b":[112,136,112,32,88,128,140,120]},{"a":63800,"t":"byte","b":[24,24,8,16,0,0,0,0]},{"a":63808,"t":"byte","b":[3,3,4,12,12,12,14,7]},{"a":63816,"t":"byte","b":[96,96,16,24,24,24,56,112]},{"a":63824,"t":"byte","b":[60,66,153,161,161,153,66,60]},{"a":63832,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63840,"t":"byte","b":[0,0,0,0,48,48,16,32]},{"a":63848,"t":"byte","b":[0,0,0,0,255,0,0,0]},{"a":63856,"t":"byte","b":[0,0,0,0,48,48,0,0]},{"a":63864,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63872,"t":"byte","b":[62,69,73,73,127,62,0,0]},{"a":63880,"t":"byte","b":[8,56,8,8,28,62,0,0]},{"a":63888,"t":"byte","b":[62,67,115,38,24,127,0,0]},{"a":63896,"t":"byte","b":[62,65,30,65,127,62,0,0]},{"a":63904,"t":"byte","b":[14,28,45,127,12,30,0,0]},{"a":63912,"t":"byte","b":[63,32,126,3,67,62,0,0]},{"a":63920,"t":"byte","b":[63,64,126,67,67,62,0,0]},{"a":63928,"t":"byte","b":[127,97,18,4,24,60,0,0]},{"a":63936,"t":"byte","b":[62,65,62,65,127,62,0,0]},{"a":63944,"t":"byte","b":[62,67,63,3,67,62,0,0]},{"a":63952,"t":"byte","b":[0,24,24,0,24,24,0,0]},{"a":63960,"t":"byte","b":[0,24,24,0,24,24,8,0]},{"a":63968,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":63976,"t":"byte","b":[255,255,255,255,255,255,255,255]},{"a":63984,"t":"byte","b":[0,96,192,120,14,120,192,96]},{"a":63992,"t":"byte","b":[62,67,3,6,24,0,24,24]},{"a":64000,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":64008,"t":"byte","b":[62,85,54,44,66,66,226,231]},{"a":64016,"t":"byte","b":[124,166,120,44,98,99,99,254]},{"a":64024,"t":"byte","b":[60,67,131,132,128,193,127,62]},{"a":64032,"t":"byte","b":[124,162,113,41,33,33,127,254]},{"a":64040,"t":"byte","b":[255,33,62,56,36,33,127,255]},{"a":64048,"t":"byte","b":[255,33,62,56,36,32,112,248]},{"a":64056,"t":"byte","b":[60,70,128,128,135,130,254,127]},{"a":64064,"t":"byte","b":[231,166,100,60,38,37,102,231]},{"a":64072,"t":"byte","b":[60,34,12,12,12,12,38,28]},{"a":64080,"t":"byte","b":[126,99,38,6,6,70,255,126]},{"a":64088,"t":"byte","b":[103,172,112,108,102,102,102,243]},{"a":64096,"t":"byte","b":[240,96,96,98,98,193,159,126]},{"a":64104,"t":"byte","b":[126,153,126,153,153,153,153,219]},{"a":64112,"t":"byte","b":[126,161,97,98,98,100,103,246]},{"a":64120,"t":"byte","b":[60,66,140,129,129,195,255,126]},{"a":64128,"t":"byte","b":[252,98,105,111,110,96,96,240]},{"a":64136,"t":"byte","b":[60,66,129,129,129,223,114,28]},{"a":64144,"t":"byte","b":[254,67,67,92,76,70,70,199]},{"a":64152,"t":"byte","b":[126,225,112,28,70,195,255,126]},{"a":64160,"t":"byte","b":[255,153,90,24,24,24,24,60]},{"a":64168,"t":"byte","b":[231,166,102,86,206,134,254,127]},{"a":64176,"t":"byte","b":[99,147,101,105,49,50,28,24]},{"a":64184,"t":"byte","b":[66,129,189,153,153,153,255,102]},{"a":64192,"t":"byte","b":[231,201,114,60,56,76,134,199]},{"a":64200,"t":"byte","b":[195,161,98,52,24,24,24,60]},{"a":64208,"t":"byte","b":[255,195,38,12,25,50,99,255]},{"a":64216,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":64224,"t":"byte","b":[252,240,224,192,128,128,0,0]},{"a":64232,"t":"byte","b":[63,15,7,3,1,1,0,0]},{"a":64240,"t":"byte","b":[0,0,128,128,192,224,240,252]},{"a":64248,"t":"byte","b":[0,0,1,1,3,7,15,63]},{"a":64256,"t":"byte","b":[0,0,0,0,0,0,0,0]},{"a":64264,"t":"byte","b":[0,4,62,102,102,63,0,0]},{"a":64272,"t":"byte","b":[112,48,62,51,51,126,0,0]},{"a":64280,"t":"byte","b":[0,0,62,96,97,62,0,0]},{"a":64288,"t":"byte","b":[7,6,62,102,102,63,0,0]},{"a":64296,"t":"byte","b":[0,0,62,99,127,96,62,0]},{"a":64304,"t":"byte","b":[30,60,16,126,24,24,24,60]},{"a":64312,"t":"byte","b":[0,0,63,102,102,63,131,126]},{"a":64320,"t":"byte","b":[112,48,62,51,51,115,0,0]},{"a":64328,"t":"byte","b":[12,0,28,12,76,63,0,0]},{"a":64336,"t":"byte","b":[3,0,15,3,3,67,67,62]},{"a":64344,"t":"byte","b":[112,55,50,60,50,119,0,0]},{"a":64352,"t":"byte","b":[56,24,24,24,56,89,62,0]},{"a":64360,"t":"byte","b":[0,0,182,107,107,235,0,0]},{"a":64368,"t":"byte","b":[0,0,110,51,51,115,0,0]},{"a":64376,"t":"byte","b":[0,0,62,99,99,62,0,0]},{"a":64384,"t":"byte","b":[0,0,126,51,51,62,48,112]},{"a":64392,"t":"byte","b":[0,0,63,102,102,62,7,6]},{"a":64400,"t":"byte","b":[0,0,119,59,48,112,0,0]},{"a":64408,"t":"byte","b":[0,0,62,97,56,14,99,62]},{"a":64416,"t":"byte","b":[112,48,124,48,49,30,0,0]},{"a":64424,"t":"byte","b":[0,0,103,102,102,63,0,0]},{"a":64432,"t":"byte","b":[0,0,99,49,26,12,0,0]},{"a":64440,"t":"byte","b":[0,0,231,107,107,62,0,0]},{"a":64448,"t":"byte","b":[0,0,121,30,14,115,0,0]},{"a":64456,"t":"byte","b":[0,0,103,102,102,63,131,126]},{"a":64464,"t":"byte","b":[0,0,127,78,29,127,0,0]},{"a":64472,"t":"byte","b":[63,127,70,44,28,24,24,48]},{"a":64480,"t":"byte","b":[254,255,51,54,60,24,56,120]},{"a":64488,"t":"byte","b":[48,105,103,192,208,248,248,112]},{"a":64496,"t":"byte","b":[216,140,12,12,12,12,30,63]},{"a":64504,"t":"byte","b":[127,255,156,92,60,31,28,28]},{"a":64512,"l":"gameplay_character_set_upper","c":"Upper half of the $F800 gameplay character set: glyphs 128\u2013255 at eight bytes each, including additional tiles used by the enlarged-capital printer. Its glyph index is (address-$F800)/8. The VIC can read this RAM while CPU port $06 exposes KERNAL ROM to the CPU; it is authored display data, not the ROM bytes the CPU reads here.","t":"byte","b":[240,252,12,6,6,12,252,60]},{"a":64520,"t":"byte","b":[28,28,28,28,28,63,127,248]},{"a":64528,"t":"byte","b":[14,7,3,3,7,30,254,248]},{"a":64536,"t":"byte","b":[3,15,24,48,97,96,224,224]},{"a":64544,"t":"byte","b":[224,248,28,6,142,126,60,0]},{"a":64552,"t":"byte","b":[224,224,224,112,124,63,31,7]},{"a":64560,"t":"byte","b":[0,0,0,1,7,255,254,248]},{"a":64568,"t":"byte","b":[127,252,156,124,28,30,29,28]},{"a":64576,"t":"byte","b":[224,56,12,6,6,3,3,3]},{"a":64584,"t":"byte","b":[28,28,28,28,28,63,127,248]},{"a":64592,"t":"byte","b":[3,3,7,7,15,126,254,248]},{"a":64600,"t":"byte","b":[255,127,56,56,56,60,63,59]},{"a":64608,"t":"byte","b":[252,254,2,4,0,0,56,240]},{"a":64616,"t":"byte","b":[57,56,56,56,56,63,127,248]},{"a":64624,"t":"byte","b":[224,0,0,0,1,135,255,126]},{"a":64632,"t":"byte","b":[255,127,56,56,56,60,63,59]},{"a":64640,"t":"byte","b":[254,255,2,4,0,0,56,240]},{"a":64648,"t":"byte","b":[57,56,56,56,56,56,124,254]},{"a":64656,"t":"byte","b":[224,0,0,0,0,0,0,0]},{"a":64664,"t":"byte","b":[7,28,48,96,96,192,192,192]},{"a":64672,"t":"byte","b":[224,124,14,14,28,112,192,64]},{"a":64680,"t":"byte","b":[192,192,224,224,120,127,63,15]},{"a":64688,"t":"byte","b":[0,0,15,6,6,254,254,255]},{"a":64696,"t":"byte","b":[252,120,176,176,112,62,49,63]},{"a":64704,"t":"byte","b":[63,30,12,12,12,12,12,252]},{"a":64712,"t":"byte","b":[63,48,48,48,48,48,120,252]},{"a":64720,"t":"byte","b":[252,140,124,14,13,13,30,63]},{"a":64728,"t":"byte","b":[3,7,3,1,0,0,0,0]},{"a":64736,"t":"byte","b":[254,3,62,28,28,28,28,28]},{"a":64744,"t":"byte","b":[0,0,0,2,6,7,7,3]},{"a":64752,"t":"byte","b":[28,28,28,28,30,255,254,252]},{"a":64760,"t":"byte","b":[63,120,112,56,8,16,0,0]},{"a":64768,"t":"byte","b":[254,3,62,28,28,28,28,28]},{"a":64776,"t":"byte","b":[0,0,32,96,248,255,127,31]},{"a":64784,"t":"byte","b":[28,28,28,28,62,255,254,248]},{"a":64792,"t":"byte","b":[124,216,152,88,56,28,27,25]},{"a":64800,"t":"byte","b":[30,14,12,24,48,96,192,192]},{"a":64808,"t":"byte","b":[24,24,24,24,24,24,60,126]},{"a":64816,"l":"KERNAL_VECTOR_TABLE","c":"The KERNAL ROM's table of default vectors, $FD30-$FD4F (IRQ $EA31, BRK $FE66, NMI $FE47, then OPEN $F34A and the other I/O vectors), which RESTORE_SYSTEM_TO_BASIC copies to $0314-$0333 at $A8B2 with $01 = $06, so the ROM is in view. The RAM beneath is the last 90 cells, 166-255, of the character set at $F800, which only the VIC reads.","t":"byte","b":[49,234,102,254,71,254,74,243],"x":[43186]},{"a":64824,"t":"byte","b":[145,242,14,242,80,242,51,243]},{"a":64832,"t":"byte","b":[87,241,202,241,237,246,62,241]},{"a":64840,"t":"byte","b":[47,243,102,254,165,244,237,245]},{"a":64848,"t":"byte","b":[24,8,30,6,126,255,255,14]},{"a":64856,"t":"byte","b":[126,207,219,113,57,55,113,97]},{"a":64864,"t":"byte","b":[126,251,223,142,156,238,142,142]},{"a":64872,"t":"byte","b":[123,97,225,193,193,193,227,119]},{"a":64880,"t":"byte","b":[134,135,135,135,135,135,207,238]},{"a":64888,"t":"byte","b":[127,220,220,92,60,28,31,29]},{"a":64896,"t":"byte","b":[240,124,30,15,7,7,7,134]},{"a":64904,"t":"byte","b":[29,28,28,28,28,28,62,127]},{"a":64912,"t":"byte","b":[140,24,48,96,96,126,63,25]},{"a":64920,"t":"byte","b":[3,12,24,48,48,96,96,225]},{"a":64928,"t":"byte","b":[192,48,24,44,44,102,198,135]},{"a":64936,"t":"byte","b":[227,230,228,116,120,63,31,7]},{"a":64944,"t":"byte","b":[7,7,7,14,30,252,248,224]},{"a":64952,"t":"byte","b":[255,120,56,56,56,57,59,63]},{"a":64960,"t":"byte","b":[224,120,28,14,7,7,7,143]},{"a":64968,"t":"byte","b":[63,59,56,56,56,56,124,254]},{"a":64976,"t":"byte","b":[254,252,240,0,0,0,0,0]},{"a":64984,"t":"byte","b":[3,12,24,48,48,96,96,225]},{"a":64992,"t":"byte","b":[192,48,24,44,44,70,198,135]},{"a":65000,"t":"byte","b":[227,230,228,116,120,63,31,7]},{"a":65008,"t":"byte","b":[7,7,7,14,240,252,254,195]},{"a":65016,"t":"byte","b":[127,184,184,120,56,56,63,56]},{"a":65024,"t":"byte","b":[240,124,30,14,12,56,240,240]},{"a":65032,"t":"byte","b":[56,56,56,56,56,56,124,254]},{"a":65040,"t":"byte","b":[56,56,28,28,28,28,30,15]},{"a":65048,"t":"byte","b":[31,120,96,112,56,14,3,0]},{"a":65056,"t":"byte","b":[248,60,24,16,0,0,128,224]},{"a":65064,"t":"byte","b":[0,60,126,114,248,255,127,31]},{"a":65072,"t":"byte","b":[56,14,7,7,15,255,254,248]},{"a":65080,"t":"byte","b":[63,113,121,57,49,65,1,1]},{"a":65088,"t":"byte","b":[254,199,207,206,198,193,192,192]},{"a":65096,"t":"byte","b":[1,1,1,1,1,1,3,7]},{"a":65104,"t":"byte","b":[192,192,192,192,192,192,224,240]},{"a":65112,"t":"byte","b":[62,78,70,60,15,24,48,96]},{"a":65120,"t":"byte","b":[31,30,28,28,28,220,60,28]},{"a":65128,"t":"byte","b":[224,224,224,112,124,63,31,7]},{"a":65136,"t":"byte","b":[28,28,28,28,60,252,254,143]},{"a":65144,"t":"byte","b":[252,198,124,112,59,56,28,28]},{"a":65152,"t":"byte","b":[14,31,55,199,7,6,6,4]},{"a":65160,"t":"byte","b":[14,14,7,7,3,3,1,1]},{"a":65168,"t":"byte","b":[12,8,24,16,240,224,192,128]},{"a":65176,"t":"byte","b":[112,232,224,224,232,119,113,113]},{"a":65184,"t":"byte","b":[6,11,3,3,30,230,134,134]},{"a":65192,"t":"byte","b":[113,115,114,62,62,62,28,28]},{"a":65200,"t":"byte","b":[134,198,70,108,44,60,24,24]},{"a":65208,"t":"byte","b":[124,194,237,112,56,28,14,7]},{"a":65216,"t":"byte","b":[15,119,134,12,24,48,96,192]},{"a":65224,"t":"byte","b":[3,3,6,12,24,48,112,124]},{"a":65232,"t":"byte","b":[128,192,224,112,56,28,14,31]},{"a":65240,"t":"byte","b":[124,194,237,112,56,28,14,7]},{"a":65248,"t":"byte","b":[7,63,198,12,24,48,96,192]},{"a":65256,"t":"byte","b":[3,1,1,1,1,1,3,7]},{"a":65264,"t":"byte","b":[192,192,192,192,192,192,224,240]},{"a":65272,"t":"byte","b":[127,120,24,6,6,8,0,1]},{"a":65280,"t":"byte","b":[255,63,14,28,56,112,224,192]},{"a":65288,"t":"byte","b":[3,7,14,28,62,127,255,255]},{"a":65296,"t":"byte","b":[128,2,12,12,3,255,255,254]},{"a":65304,"t":"byte","b":[152,104,38,121,137,152,248,246]},{"a":65312,"t":"byte","b":[137,120,39,239,247,103,248,248]},{"a":65320,"t":"byte","b":[247,55,247,248,102,249,248,135]},{"a":65328,"t":"byte","b":[43,43,43,43,43,43,43,43]},{"a":65336,"t":"byte","b":[170,233,229,229,197,193,240,240]},{"a":65344,"t":"byte","b":[254,171,255,255,127,127,124,82]},{"a":65352,"t":"byte","b":[233,90,86,102,100,100,100,20]},{"a":65360,"t":"byte","b":[254,126,95,85,83,17,9,41]},{"a":65368,"t":"byte","b":[235,106,235,191,251,251,170,175]},{"a":65376,"t":"byte","b":[234,233,85,213,214,212,223,95]},{"a":65384,"t":"byte","b":[224,176,161,129,0,0,0,0]},{"a":65392,"t":"byte","b":[255,175,175,63,63,126,110,107]},{"a":65400,"t":"byte","b":[255,239,234,186,175,234,190,169]},{"a":65408,"t":"byte","b":[255,191,170,170]},{"a":65412,"l":"KERNAL_IOINIT","t":"byte","b":[149,106,149,170,252,248,168,164],"x":[1696]},{"a":65420,"t":"byte","b":[88,164,88,164]},{"a":65424,"l":"KERNAL_SETMSG","t":"byte","b":[152,56,105,135,123,151,137,24],"x":[1701]},{"a":65432,"t":"byte","b":[248,152,152,152,247,55,248]},{"a":65439,"l":"KERNAL_SCNKEY","t":"byte","b":[249,104,248,247,249,55,55,247],"x":[1362,2123]},{"a":65447,"t":"byte","b":[247,43,43,43,47,47,58,40]},{"a":65455,"t":"byte","b":[1,192,16,32,128,136,34,128]},{"a":65463,"t":"byte","b":[128,242,248]},{"a":65466,"l":"KERNAL_SETLFS","t":"byte","b":[58,58,112],"x":[1298,49178]},{"a":65469,"l":"KERNAL_SETNAM","t":"byte","b":[177,176,176,48,176,188,176,48],"x":[1309,49170]},{"a":65477,"t":"byte","b":[112,112,48,14,62,62,14,0]},{"a":65485,"t":"byte","b":[0,0,0,255,255,255,255,255]},{"a":65493,"l":"KERNAL_LOAD","t":"byte","b":[252,252,252],"x":[1140,49183]},{"a":65496,"l":"KERNAL_SAVE","t":"byte","b":[250,254,255,255,255,122,42,43],"x":[1196]},{"a":65504,"t":"byte","b":[0,128,128,192]},{"a":65508,"l":"KERNAL_GETIN","t":"byte","b":[128,128,128,85,21,37,42,42],"x":[1365,2126]},{"a":65516,"t":"byte","b":[42,170,170,170,250,166,255,255]},{"a":65524,"t":"byte","b":[255,255,255,255,170,255,255,255]},{"a":65532,"t":"byte","b":[255,255,172,119]}]}