Skool Daze Routines
27888: Make character stand up if he's not already
Used by the routine at 25534.
H Character number (152-169)
27888 LD L,99 Change the routine address in bytes 99 and 100 of the character's buffer to 25553
27890 LD (HL),209
27892 LD L,96 Point HL at the character's animatory state
27894 LD A,(HL) Pick this up in A
27895 AND 7 Keep only bits 0-2
27897 CP 4 Is the character standing?
27899 RET C Return if so
27900 POP DE Drop the return address (25553) from the stack
27901 CALL 25108 Update SRB for the character's current animatory state
27904 AND 248 A=animatory state of the character standing up
27906 JP 25008 Update the character's animatory state and update SRB