Prev: 6B78 Up: Map Next: 6B96
6B7D: Knock the current occupant (if any) out of a chair
Used by the routines at 6C7C and 6CAF. 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
6B7D LD B,$0B There are 11 little boys
6B7F LD D,$98 0x98=little boy no. 1
6B81 CALL $6B97 Knock any occupant out of the chair
6B84 RET C Return if a little boy was knocked out of the chair
6B85 LD B,$03 There are 3 main kids besides ERIC
6B87 LD D,$A7 0xA7=BOY WANDER
6B89 CALL $6B97 Knock any occupant out of the chair
6B8C LD D,$AC 0xAC=ERIC
6B8E RET C Return if a main kid was knocked out of the chair
6B8F INC B B=1 (just ERIC)
6B90 CALL $6B97 Knock ERIC out of the chair if he's there
6B93 JR NC,$6BBD Jump unless ERIC was knocked out of the chair
6B95 RET
Prev: 6B78 Up: Map Next: 6B96