sprIndex:0..5
    sprDraw:0..255

    sprLoop = 0
    sprIndex = [STAGE_NAME]_sprite_start
    while sprLoop < [SPR_ARRAY_SIZE]
          if sprIndex > [SPR_ARRAY_SIZE]-1 
             sprIndex = 0
          if [STAGE_NAME]_sprAttr(sprIndex) bitand 16 <> 0
             setMultiSprite [STAGE_NAME]_spriteArray [STAGE_NAME]_sprXPos(sprIndex) [STAGE_NAME]_sprYPos(sprIndex) sprIndex [STAGE_NAME]_sprAnim(sprIndex) [STAGE_NAME]_sprAttr(sprIndex)
          inc sprLoop
	  inc sprIndex

    inc [STAGE_NAME]_sprite_start
    if  [STAGE_NAME]_sprite_start > [SPR_ARRAY_SIZE]-1
        [STAGE_NAME]_sprite_start = 0