Prev: 8568 Up: Map Next: 858E
857F: Fetch Actor Sprite
Same lookup as FetchSprite, but the index comes from the current actor type at *IX+00.
Input
IX Actor slot
Output
DE Sprite address
FetchActorSprite 857F LD BC,$BAC0 Point the sprite table at SpritesTable.
8582 LD A,($5EA2) Test LevelParity.
8585 AND A
8586 LD A,(IX+$00) Fetch the actor type from *IX+00.
8589 CALL NZ,MapSpriteBand Call MapSpriteBand if this is an odd level.
858C JR FetchSprite_Loop Jump to FetchSprite_Loop.
View the equivalent code in;
Prev: 8568 Up: Map Next: 858E