Prev: 28029 Up: Map Next: 28085
28067: Check whether a location is on the assembly hall stage
Used by the 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.
Input
D y-coordinate
E x-coordinate
28067 LD BC,46651 B=182, C=59
28070 LD A,D A=y-coordinate of the location
28071 CP 14 The assembly hall stage's y-coordinate is 14
28073 RET NZ Return to 25554 if the location is not there
28074 LD A,E A=x-coordinate of the location
28075 CP 90 Return to 25554 unless 74<=A<90 (the rough vicinity of the stage)
28077 RET NC
28078 CP 74
28080 RET C
28081 POP BC Drop the return address from the stack
28082 LD A,192 A=192: region identifier for the assembly hall stage (see 25554)
28084 RET Return with the carry flag reset (indicating that the location is not on a staircase) to the caller of 25554
Prev: 28029 Up: Map Next: 28085