![]() |
Unused |
Prev: A663 | Up: Map | Next: A679 |
|
||||||||||||
FindIndexOfItemFromItemGroupPresent | A66C | LD B,$00 | Initialise an index counter in B to 00. | |||||||||
A66E | JR $A672 | Jump to Call_CheckItemGroupPresent. | ||||||||||
Move past the termination byte in the item group.
|
||||||||||||
FindIndexOfItemFromItemGroupPresent_Loop | A670 | INC B | Increment the index counter in B by one. | |||||||||
A671 | INC HL | Increment HL by one. | ||||||||||
Call_CheckItemGroupPresent | A672 | CALL CheckActiveScenicEvents | Call CheckActiveScenicEvents. | |||||||||
A675 | JR Z,$A670 | Jump back to FindIndexOfItemFromItemGroupPresent_Loop until an item from the item group is matched. | ||||||||||
An index was found.
|
||||||||||||
A677 | LD A,B | Store the index from B into A. | ||||||||||
A678 | RET | Return. |
Prev: A663 | Up: Map | Next: A679 |