Prev: 50862 Up: Map Next: 50906
50894: Lookup Vector Table Entry
Returns the sprite pixel data pointer for entity type A from the table at Sprite_Pixel_Data_Table.
Input
A Entity type index
Output
DE Sprite pixel data pointer
LookupVectorTableEntry 50894 ADD A,A Double A to form the word-stride index into Sprite_Pixel_Data_Table.
50895 LD HL,50700 Point HL at the sprite pixel data table at Sprite_Pixel_Data_Table.
50898 LD D,0 Form the word offset in DE (D=0 E=A).
50900 LD E,A
50901 ADD HL,DE Advance HL to the sprite data entry.
50902 LD E,(HL) Load the sprite pixel data pointer into DE.
50903 INC HL
50904 LD D,(HL)
50905 RET Return.
Prev: 50862 Up: Map Next: 50906