![]() |
Routines |
Prev: 44784 | Up: Map | Next: 44808 |
Used by the routines at 44808, 60345, 60357, Process_ExamineHelmet, Process_ExamineSword, Process_ExamineAmulet, Process_ExamineBody, Process_ExamineTorc, Process_GetTorc, Process_GetHelmet, Process_GetSword, Process_GetMeat, Process_GetAmulet, Process_GetRope, Process_GetLadder, Process_GetCloak, 61392, Process_DropTorc, Process_DropHelmet, Process_DropSword, Process_DropRope, Process_DropLadder, Process_DropCloak, 61919, 62060, 62099, 62138, 62164, 62264, Process_WearTorc, Process_WearHelmet, Process_WearAmulet, Process_DropAmulet, Process_WearCloak, 62788 and 63008.
|
||||||||||||||
CheckItemGroupPresent | 44791 | JR CheckItemGroupPresent_Process | Jump to CheckItemGroupPresent_Process. | |||||||||||
CheckItemGroupPresent_Loop | 44793 | INC HL | Increment HL by one. | |||||||||||
CheckItemGroupPresent_Process | 44794 | LD A,(HL) | Fetch an item ID from the item group data in *HL. | |||||||||||
44795 | CP 255 | Jump to CheckItemGroupPresent_Return if this is the terminator byte (255). | ||||||||||||
44797 | JR Z,CheckItemGroupPresent_Return | |||||||||||||
44799 | CALL ValidateItemPresent | Call ValidateItemPresent. | ||||||||||||
44802 | JR NZ,CheckItemGroupPresent_Loop | Jump back to CheckItemGroupPresent_Loop if the item is not present either in the room or in the players inventory, to evaluate the next item ID. | ||||||||||||
The current item ID is either in the current room or in the players inventory, so restore the value and return with it in A.
|
||||||||||||||
44804 | LD A,(HL) | A=*HL. | ||||||||||||
44805 | RET | Return. | ||||||||||||
Got to the end and didn't locate the item anywhere.
|
||||||||||||||
CheckItemGroupPresent_Return | 44806 | AND A | Set flags. | |||||||||||
44807 | RET | Return. |
Prev: 44784 | Up: Map | Next: 44808 |