Prev: 33782 Up: Map Next: 33824
33788: Check whether Gordon and Sarab are both asleep, and increase their happiness by five if not
Used by the routines at 31688 and 32895.
Output
A Non-zero if Gordon and Sarab are both asleep. Zero otherwise.
F Zero flag reset if Gordon and Sarab are both asleep. Set otherwise.
33788 LD A,(25034) If Gordon's asleep flag is reset...
33791 BIT 7,A ...
33793 JR Z,33803 ...then skip ahead to 33803
33795 LD A,(25042) If Sarab's asleep flag is reset...
33798 BIT 7,A ...
33800 JR Z,33803 ...then skip ahead to 33803
33802 RET Return
33803 XOR A Set Current Character to Gordon...
33804 LD (29632),A ...
33807 LD A,5 Increase Gordon's happiness by 5...
33809 CALL 33569 ...
33812 LD A,1 Set Current Character to Sarab...
33814 LD (29632),A ...
33817 LD A,5 Increase Sarab's happiness by 5...
33819 CALL 33569 ...
33822 XOR A Set A to zero
33823 RET Return
Prev: 33782 Up: Map Next: 33824