Prev: 43391 Up: Map Next: 43428
43408: Condition: Room Pair Differs
Succeeds unless CurrentRoom is the first operand and TemporaryRoom is the second.
Output
F The zero flag is set unless both rooms match
IX Pointer to the script entry
Succeed unless the player is in the first room and the marked room is the second.
Condition_RoomPairDiffers 43408 LD A,(41222) Fetch the current room from *CurrentRoom into A.
43411 CP (IX+1) Compare it with the first room operand.
43414 JR NZ,RoomPairDiffers_Invert Jump to RoomPairDiffers_Invert if the current room is not the first operand.
43416 LD A,(44408) Fetch the marked room from *TemporaryRoom into A.
43419 CP (IX+2) Compare it with the second room operand.
RoomPairDiffers_Invert 43422 CALL RunScript_InvertConditionResult Call RunScript_InvertConditionResult so the condition succeeds unless both rooms match.
43425 JP RunScript_SkipCondition_ThreeBytes Jump to RunScript_SkipCondition_ThreeBytes.
Prev: 43391 Up: Map Next: 43428