![]() |
Routines |
| Prev: A973 | Up: Map | Next: A990 |
|
Succeeds when CurrentRoom is the first operand and TemporaryRoom is the second.
|
||||||||||
|
Succeed only when the player is in the first room and the marked room is the second.
|
||||||||||
| Condition_RoomPairMatches | A97F | LD A,($A106) | Fetch the current room from *CurrentRoom into A. | |||||||
| A982 | CP (IX+$01) | Compare it with the first room operand. | ||||||||
| A985 | JR NZ,RoomPairMatches_Done | Jump to RoomPairMatches_Done if the current room is not the first operand. | ||||||||
| A987 | LD A,($AD78) | Fetch the marked room from *TemporaryRoom into A. | ||||||||
| A98A | CP (IX+$02) | Set the zero flag when it equals the second room operand. | ||||||||
| RoomPairMatches_Done | A98D | JP RunScript_SkipCondition_ThreeBytes | Jump to RunScript_SkipCondition_ThreeBytes. | |||||||
| Prev: A973 | Up: Map | Next: A990 |