![]() |
Unused |
Prev: 42595 | Up: Map | Next: 42617 |
|
||||||||||||
FindIndexOfItemFromItemGroupPresent | 42604 | LD B,0 | Initialise an index counter in B to 0. | |||||||||
42606 | JR 42610 | Jump to Call_CheckItemGroupPresent. | ||||||||||
Move past the termination byte in the item group.
|
||||||||||||
FindIndexOfItemFromItemGroupPresent_Loop | 42608 | INC B | Increment the index counter in B by one. | |||||||||
42609 | INC HL | Increment HL by one. | ||||||||||
Call_CheckItemGroupPresent | 42610 | CALL CheckActiveScenicEvents | Call CheckActiveScenicEvents. | |||||||||
42613 | JR Z,42608 | Jump back to FindIndexOfItemFromItemGroupPresent_Loop until an item from the item group is matched. | ||||||||||
An index was found.
|
||||||||||||
42615 | LD A,B | Store the index from B into A. | ||||||||||
42616 | RET | Return. |
Prev: 42595 | Up: Map | Next: 42617 |