EarthBound/ASM/Palette Routines: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(Start page with palette animation routines)
 
Line 2: Line 2:


==<tt>$C0023F-$C0030E</tt>: Load map palette animation<span class="anchor" id="$C0023F"></span>==
==<tt>$C0023F-$C0030E</tt>: Load map palette animation<span class="anchor" id="$C0023F"></span>==
First checks if the currently loaded map palette is animated, as indicated by a non-zero [[EarthBound:Map_Data:Palettes#Palette_Animation_Index|Palette Animation Index]] and a non-zero [[EarthBound:Map_Data:Palette_Animation_Secondary_Pointer/Data_Table#NumberOfPalettes|Animation Number of Palettes]] for that animation index, and sets the [[EarthBound:Palette_Memory#$7E4474|Animation Palette Active Flag]] accordingly in WRAM. If the palette is animated, loads [[EarthBound:Palette_Memory#$7EB800|Decompressed Map Animation Palettes]], [[EarthBound:Palette_Memory#$7E4460|Animation Palette Frame Durations]], [[EarthBound:Palette_Memory#$7E445C|Animation Palette Remaining Frames]], and [[EarthBound:Palette_Memory#$7E445E|Animation Palette Number]] to WRAM.


==<tt>$C0030F-$C0035A</tt>: Iterate map palette animation frame<span class="anchor" id="$C0030F"></span>==
==<tt>$C0030F-$C0035A</tt>: Iterate map palette animation frame<span class="anchor" id="$C0030F"></span>==

Revision as of 16:35, 17 July 2023

This is a sub-page of EarthBound/ASM.

$C0023F-$C0030E: Load map palette animation

First checks if the currently loaded map palette is animated, as indicated by a non-zero Palette Animation Index and a non-zero Animation Number of Palettes for that animation index, and sets the Animation Palette Active Flag accordingly in WRAM. If the palette is animated, loads Decompressed Map Animation Palettes, Animation Palette Frame Durations, Animation Palette Remaining Frames, and Animation Palette Number to WRAM.

$C0030F-$C0035A: Iterate map palette animation frame

So very stubbly.
This page is rather stubbly and could use some expansion.
Are you a bad enough dude to rescue this article?