25618: Prepare sprite tiles used by Sam when somersaulting or rolling
Used by the routine at 25789. Animatory states 9, 10, 15 and 31 - corresponding to the sprites of Sam rolling and somersaulting - use sprite tiles 239-247. These sprite tiles are initialised before Sam starts his acrobatic manoeuvre, and later rotated as he moves through each phase of animation.
Superimpose sprite tile 205 from base page 215 over sprite tile 243 (which is currently a copy of sprite tile 6, the centre tile of Sam's base animatory state); this makes Sam appear to bend his arms and hold his knees while performing the acrobatic feat, at the expense of losing some detail from his current disguise
Tile 239 is the first source tile
E=238 (the first target tile)
The base page for these tiles is 199
Rotate the source sprite tile 90 degrees anticlockwise and copy it over the target sprite tile
Move to the next source sprite tile reference
Have we rotated sprite tiles 239-247 yet?
Jump back if not
There are 16 bytes of graphic and mask data in each tile