# START END CLASS NOTE (hex VRAM, END exclusive); see targets/resident/classification.txt.
# handwritten, not compiler output: frames too small for the registers saved (addiu sp,-8 then
# sw s1,8(sp), i.e. into the caller's frame), trapping addi, and ori for positive
# constants where this unit's assembler emits addiu. Raw cop2 alone is no evidence:
# 800987ac (leaf, GTE macros) compiles from C under this unit's settings.
# asset: script data embedded in the units' .data, linked from the user's image
# with INCLUDE_ASSET and decoded by tools/analysis/overlay_scripts.py.
# included: an object a C unit links from the original image (INCLUDE_ORIGINAL)
# at its place among the unit's .data, with the reason: C cannot emit the stray
# bytes after it, which nothing reads, here before the next unit's data
# (docs/matching.md).
8009980c 80099bfc handwritten terrain quarter-block triangle renderer (s5 saved beyond its 0x18-byte frame, ori for small constants, trapping addi)
80099bfc 80099e8c handwritten terrain billboard quad renderer (addiu sp,-8 with sw s1,8(sp); ori for 0xfff)
8009a1a0 8009a1e8 asset Terrain texture animation sequences worldmap_texture_anim_slot0_frames and worldmap_texture_anim_slot1_frames (worldmap_open_map.c, 9 entries each), the frames of slots worldmap_texture_anim_slots[0] and [1]: TexAnimFrame {s16 image; s16 duration} entries ended by a negative duration; worldmap_texture_anim_create gives animation i of the area file's first animation section slot i at frame 0 with timer 1, and each update worldmap_texture_anim_advance counts the timer down, at 0 steps to the next frame and takes its duration, restarts at frame 0 on the negative one and uploads the frame's image (16 bytes each) into the slot's rect (docs/scripts/timelines.md)
8009a208 8009a250 asset Terrain texture animation sequences worldmap_texture_anim2_slot0_frames, worldmap_texture_anim2_slot1_frames and worldmap_texture_anim2_slot2_frames (6 entries each), the frames of slots worldmap_texture_anim2_slots[0]-[2], the format above: set up by worldmap_texture_anim2_create from the second animation section and stepped by worldmap_texture_anim2_advance (images of w * h * 2 bytes)
8009a450 8009a488 asset Cue sequence of the mode-14 scene director worldmap_scene14_director_update (worldmap_scene14.c), started by worldmap_scene14_director_start: 14 u16 states worldmap_scene14_cue_states and 14 u16 waits worldmap_scene14_cue_waits; state 1 counts the wait down and fetches the next pair, every other state is a switch case that runs one cue (docs/scripts/worldmap-scene.md)
8009a4d8 8009a4f8 asset Cue sequence of the mode-12 director worldmap_scene12_director_update (worldmap_scene12.c), started by worldmap_scene12_director_start: 8 u16 states worldmap_scene12_cue_states and 8 u16 waits worldmap_scene12_cue_waits, the format above
8009a5d4 8009a65a asset Cue sequences of the mode-15 director worldmap_scene15_director_update (worldmap_scene15.c), one per entry worldmap_entry_index picked by worldmap_scene15_director_start through worldmap_scene15_cue_sequences: s16 states and u16 waits worldmap_scene15_entry0_cue_states/worldmap_scene15_entry0_cue_waits (14), worldmap_scene15_entry1_cue_states/worldmap_scene15_entry1_cue_waits (9) and worldmap_scene15_entry2_cue_states/worldmap_scene15_entry2_cue_waits (9), the format above
8009a68c 8009a698 included worldmap_scene15_flame_sizes u16[5] exhaust flame sizes, ending worldmap_scene15.c's data before worldmap_scene13.c's (worldmap_scene15.c; worldmap_scene15_flame_start and worldmap_scene15_flame_update read entries 0-4 for flame actors 4-8); then 65 79 ("ey")
8009a698 8009a6c0 asset Cue sequence of the mode-13 director worldmap_scene13_director_update (worldmap_scene13.c), started by worldmap_scene13_director_start: 9 u16 states worldmap_scene13_cue_states and 9 u16 waits worldmap_scene13_cue_waits, which end the unit's data before a stray halfword (0x7542), the format above
8009a6c0 8009a758 asset Cue sequence of the mode-16 director worldmap_scene16_director_update (worldmap_scenes_16_18.c), started by worldmap_scene16_director_start: 37 u16 states worldmap_scene16_cue_states and 37 u16 waits worldmap_scene16_cue_waits, whose alignment padding holds a stray halfword (0x2E07), the format above
8009a758 8009aabc asset Actor script worldmap_scene17_actor_script (434 s16), given by worldmap_scene17_script_start (mode 17) and run by worldmap_actor_script_run through worldmap_actor_script_handlers: each command is the word at the script position (opcode in the low halfword, first argument in the high one) and the next two halfwords; a handler returns the halfwords to advance (docs/scripts/worldmap-actor.md)
8009ac60 8009ad2c asset Actor script worldmap_scene18_actor_script (102 s16), given by worldmap_scene18_script_start (mode 18), the format above
8009b1a4 8009b1ac included worldmap_gear_sprite_height s16[3] gear sprite parameter per party member, ending worldmap_objects_effects_party.c's data before worldmap_flying_vehicle.c's (worldmap_objects_effects_party.c; worldmap_create_gear_sprite reads members 0-2, from worldmap_place_vehicle); then 00 3c
