Not "just before" but "just after". SPSET should be followed by any other sprite related commands (of course SPHOME is one of them).