Routines

28067: Check whether location is on the assembly hall stage


Used by routine at 25554. Returns to the caller of 25554 with the carry flag reset if the location is on the stage. Returns to 25554 otherwise.

D y-coordinate of play area
E x-coordinate of play area

28067 013BB6 LD BC,46651 B=182, C=59
28070 7A LD A,D A=y-coordinate of the play area
28071 FE0E CP 14 14=on the assembly hall stage
28073 C0 RET NZ Return to 25554 if not there
28074 7B LD A,E A=x-coordinate of play area
28075 FE5A CP 90 Return to 25554 unless 74≤A≤90
(the rough vicinity of the stage)
28077 D0 RET NC
28078 FE4A CP 74
28080 D8 RET C
28081 C1 POP BC Drop the return address from the stack
28082 3EC0 LD A,192 A=192: Assembly hall stage (see 25554)
28084 C9 RET Return with carry flag reset to the caller of 25554