Prev: EDDD Up: Map Next: EE0B
EE02: Search Score Entry Table
Searches a 3-byte-strided table at HL for the value in A, scanning up to B entries. Returns with the Z flag set and HL pointing to the matched entry if found, or the Z flag clear if not found.
Input
A Byte to search for
B Entry count
HL Table pointer
Search_Score_Entry_Table EE02 CP (HL) Return if the current table entry matches.
EE03 RET Z
EE04 INC HL Advance HL by 3 bytes to the next table entry.
EE05 INC HL
EE06 INC HL
EE07 DJNZ Search_Score_Entry_Table Decrement the entry count and loop back to Search_Score_Entry_Table.
EE09 DEC B Exhaust the search count and return without a match.
EE0A RET
Prev: EDDD Up: Map Next: EE0B