Routines

57910: Prepare buffer 213 for use if available


Used by routines at 28992 and 63586

57910 2101D5 LD HL,54529 H=213, L=1
57913 7E LD A,(HL) A=x-coordinate of object that last used or is using this buffer
57914 FEC0 CP 192 Is this buffer being used now?
57916 300C JR NC,57930 Jump if not
57918 2D DEC L
57919 7E LD A,(HL) A=animatory state of object that last used or is using this buffer
57920 C1 POP BC Drop return address from stack in BC
57921 E67F AND 127 Drop the "direction" bit (bit 7)
57923 FE4F CP 79 79: is this buffer being used by a catapult pellet?
57925 C0 RET NZ Return to main loop if not
57926 C5 PUSH BC Restore return address to stack
57927 CDCF74 CALL 29903 Terminate the catapult pellet that's using this buffer
57930 26D2 LD H,210 210=ERIC
57932 C9 RET