Prev: A97F Up: Map Next: A9A4
A990: 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 A990 LD A,($A106) Fetch the current room from *CurrentRoom into A.
A993 CP (IX+$01) Compare it with the first room operand.
A996 JR NZ,RoomPairDiffers_Invert Jump to RoomPairDiffers_Invert if the current room is not the first operand.
A998 LD A,($AD78) Fetch the marked room from *TemporaryRoom into A.
A99B CP (IX+$02) Compare it with the second room operand.
RoomPairDiffers_Invert A99E CALL RunScript_InvertConditionResult Call RunScript_InvertConditionResult so the condition succeeds unless both rooms match.
A9A1 JP RunScript_SkipCondition_ThreeBytes Jump to RunScript_SkipCondition_ThreeBytes.
Prev: A97F Up: Map Next: A9A4