Routines

25656: Make character walk up stairs


The address of this routine is placed into bytes 9 and 10 of a character's buffer by the routine at 25700

H Character number (183-209)

25656 2E00 LD L,0
25658 CB46 BIT 0,(HL) Is the character midstride?
25660 C2FD63 JP NZ,25597 Jump if so
25663 2E0B LD L,11 Byte 11 of the character's buffer holds the number of steps left to be climbed
25665 35 DEC (HL) One fewer now
25666 CA9063 JP Z,25488 Jump if the top of the staircase has been reached
25669 CDB461 CALL 25012 Update SRB for character's current animatory state and location
25672 15 DEC D Up a step
25673 3C INC A One foot forward
25674 C33061 JP 24880 Update SRB for character's new animatory state (midstride) and location