Prev: 43379 Up: Map Next: 43408
43391: Condition: Room Pair Matches
Succeeds when CurrentRoom is the first operand and TemporaryRoom is the second.
Output
F The zero flag is set when both rooms match
IX Pointer to the script entry
Succeed only when the player is in the first room and the marked room is the second.
Condition_RoomPairMatches 43391 LD A,(41222) Fetch the current room from *CurrentRoom into A.
43394 CP (IX+1) Compare it with the first room operand.
43397 JR NZ,RoomPairMatches_Done Jump to RoomPairMatches_Done if the current room is not the first operand.
43399 LD A,(44408) Fetch the marked room from *TemporaryRoom into A.
43402 CP (IX+2) Set the zero flag when it equals the second room operand.
RoomPairMatches_Done 43405 JP RunScript_SkipCondition_ThreeBytes Jump to RunScript_SkipCondition_ThreeBytes.
Prev: 43379 Up: Map Next: 43408