![]() |
Routines |
| Prev: EDDD | Up: Map | Next: EE0B |
|
Used by the routines at Adjust_Score_Field_Cursor and Adjust_Name_Entry_Cursor.
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.
|
||||||||||||
| 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 |