![]()  | 
Unused | 
| Prev: 44808 | Up: Map | Next: 44830 | 
 
  | 
||||||||||||
| FindIndexOfItemFromItemGroupPresent | 44817 | LD B,0 | Initialise an index counter in B to 0. | |||||||||
| 44819 | JR 44823 | Jump to Call_CheckItemGroupPresent. | ||||||||||
| 
 
Move past the termination byte in the item group.
 
 | 
||||||||||||
| FindIndexOfItemFromItemGroupPresent_Loop | 44821 | INC B | Increment the index counter in B by one. | |||||||||
| 44822 | INC HL | Increment HL by one. | ||||||||||
| Call_CheckItemGroupPresent | 44823 | CALL CheckItemGroupPresent | Call CheckItemGroupPresent. | |||||||||
| 44826 | JR Z,44821 | Jump back to FindIndexOfItemFromItemGroupPresent_Loop until an item from the item group is matched. | ||||||||||
| 
 
An index was found.
 
 | 
||||||||||||
| 44828 | LD A,B | Store the index from B into A. | ||||||||||
| 44829 | RET | Return. | ||||||||||
| Prev: 44808 | Up: Map | Next: 44830 |