1: use SPCOL to enable collision detection:
SPCOL sprite_number
2: use SPHITSP to detect collision:
sprite_2 = SPHITSP(sprite_1)
-tells you what sprite_1 is touching
or
hit = SPHITSP(sprite_1,sprite_2)
-returns 1 if the sprites are touching, and 0 if they aren't