Change all instances of RTL to RTS . It also JSL's to something in $2E8DF0 which you probably don't have (unless you do have what it needs to JSL there)
But wait, you said this was part of a sprite's code. than why did you take that part out. it needs to be in the sprite.
I change my layout every 4-5 months