static void draw_sprites(osd_bitmap bitmap)
	{
		int offs;
	
		if (zaxxon_vid_type == CONGO_VID)
		{
			int i;
	
			/* Draw the sprites. Note that it is important to draw them exactly in this */
			/* order, to have the correct priorities. */
			/* Sprites actually start at 0xff * [0xc031], it seems to be static tho'*/
			/* The number of active sprites is stored at 0xc032 */
	
			for (offs = 0x1e * 0x20 ;offs >= 0x00 ;offs -= 0x20)
				sprpri[ spriteram.read(offs+1) ] = offs;
	
			for (i=0x1e ; i>=0; i--)
			{
				offs = sprpri[i];
	
				if (spriteram.read(offs+2) != 0xff)
				{
					drawgfx(bitmap,Machine.gfx[2],
							spriteram.read(offs+2+1)& 0x7f,
							spriteram.read(offs+2+2),
							spriteram.read(offs+2+2) & 0x80,spriteram.read(offs+2+1) & 0x80,
							((spriteram.read(offs+2+3) + 16) & 0xff) - 31,255 - spriteram.read(offs+2) - 15,
							Machine.drv.visible_area,TRANSPARENCY_PEN,0);
				}
			}
		}
		else if (zaxxon_vid_type == FUTSPY_VID)
		{
			/* Draw the sprites. Note that it is important to draw them exactly in this */
			/* order, to have the correct priorities. */
			for (offs = spriteram_size[0] - 4;offs >= 0;offs -= 4)
			{
				if (spriteram.read(offs) != 0xff)
				{
						drawgfx(bitmap,Machine.gfx[2],
							spriteram.read(offs+1) & 0x7f,
							spriteram.read(offs+2) & 0x3f,
							spriteram.read(offs+1) & 0x80,spriteram.read(offs+1) & 0x80,	/* ?? */
							((spriteram.read(offs+3) + 16) & 0xff) - 32,255 - spriteram.read(offs) - 16,
							Machine.drv.visible_area,TRANSPARENCY_PEN,0);
				}
			}
		}
		else
		{
			/* Draw the sprites. Note that it is important to draw them exactly in this */
			/* order, to have the correct priorities. */
			for (offs = spriteram_size[0] - 4;offs >= 0;offs -= 4)
			{
				if (spriteram.read(offs) != 0xff)
				{
						drawgfx(bitmap,Machine.gfx[2],
							spriteram.read(offs+1) & 0x3f,
							spriteram.read(offs+2) & 0x3f,
							spriteram.read(offs+1) & 0x40,spriteram.read(offs+1) & 0x80,
							((spriteram.read(offs+3) + 16) & 0xff) - 32,255 - spriteram.read(offs) - 16,
							Machine.drv.visible_area,TRANSPARENCY_PEN,0);
				}
			}
		}
	}