Prev: 27512 Up: Map Next: 27542
27517: Knock the current occupant (if any) out of a chair
Used by the routines at 27772 and 27823. Knocks the current occupant (if any) out of the chair next to the character looking for a seat.
Input
H Number of the character looking for a seat
27517 LD B,11 There are 11 little boys
27519 LD D,152 152=little boy no. 1
27521 CALL 27543 Knock any occupant out of the chair
27524 RET C Return if a little boy was knocked out of the chair
27525 LD B,3 There are 3 main kids besides ERIC
27527 LD D,167 167=BOY WANDER
27529 CALL 27543 Knock any occupant out of the chair
27532 LD D,172 172=ERIC
27534 RET C Return if a main kid was knocked out of the chair
27535 INC B B=1 (just ERIC)
27536 CALL 27543 Knock ERIC out of the chair if he's there
27539 JR NC,27581 Jump unless ERIC was knocked out of the chair
27541 RET
Prev: 27512 Up: Map Next: 27542