![]() |
Routines |
| Prev: B5EC | Up: Map | Next: B606 |
|
Used by the routines at ProcessGameEvents, HandlerDestroyItemEvent, HandlerUpdateItemEventForTheCurrentRoom, ScenicEventTriggered, TransformItem and Handler_SetCurrentRoom.
Set Item Room.
|
||||
| SetItemRoom | B5FD | LD HL,$AD76 | Point HL at the item-location table. | |
| B600 | LD D,$00 | Write the room into the item's slot in the item-location table. | ||
| B602 | LD E,B | |||
| B603 | ADD HL,DE | |||
| B604 | LD (HL),C | |||
| B605 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: B5EC | Up: Map | Next: B606 |