public static void psychic5_draw_sprites(osd_bitmap bitmap)
	{
		int offs,sx,sy,tile,palette,flipx,flipy;
		int size32,tileofs0,tileofs1,tileofs2,tileofs3,temp1,temp2;
	
		/* Draw the sprites */
	
		for (offs = 11 ;offs < spriteram_size[0]; offs+=16)
		{
			if (!(spriteram.read(offs+4)==0 && spriteram.read(offs)==0xf0))
			{
				sx = spriteram.read(offs+1);
				sy = spriteram.read(offs);
				if ((spriteram.read(offs+2) & 0x01)!=0) sx-=256;
				if ((spriteram.read(offs+2) & 0x04)!=0) sy-=256;
				tile	 = spriteram.read(offs+3)+((spriteram.read(offs+2) & 0xc0)<<2);
				size32	 = spriteram.read(offs+2) & 0x08;
				flipx	 = spriteram.read(offs+2) & 0x20;
				flipy	 = spriteram.read(offs+2) & 0x10;
				palette	 = spriteram.read(offs+4) & 0x0f;
				if (flipx != 0)
				{
					tileofs0 = 1;
					tileofs1 = 0;
					tileofs2 = 3;
					tileofs3 = 2;
				} else
				{
					tileofs0 = 0;
					tileofs1 = 1;
					tileofs2 = 2;
					tileofs3 = 3;
				}
				if (flipy != 0)
				{
					temp1	 = tileofs0;
					temp2	 = tileofs1;
					tileofs0 = tileofs2;
					tileofs1 = tileofs3;
					tileofs2 = temp1;
					tileofs3 = temp2;
				}
				if (size32 != 0)
				{
					drawgfx(bitmap,Machine.gfx[0],
								tile+tileofs0,
								palette,
								flipy,flipx,
								sx,sy,
								Machine.drv.visible_area,
								TRANSPARENCY_PEN, 15);
					drawgfx(bitmap,Machine.gfx[0],
								tile+tileofs1,
								palette,
								flipy,flipx,
								sx,sy+16,
								Machine.drv.visible_area,
								TRANSPARENCY_PEN, 15);
					drawgfx(bitmap,Machine.gfx[0],
								tile+tileofs2,
								palette,
								flipy,flipx,
								sx+16,sy,
								Machine.drv.visible_area,
								TRANSPARENCY_PEN, 15);
					drawgfx(bitmap,Machine.gfx[0],
								tile+tileofs3,
								palette,
								flipy,flipx,
								sx+16,sy+16,
								Machine.drv.visible_area,
								TRANSPARENCY_PEN, 15);
				}
				else
				{
					drawgfx(bitmap,Machine.gfx[0],
								tile,
								palette,
								flipy,flipx,
								sx,sy,
								Machine.drv.visible_area,
								TRANSPARENCY_PEN, 15);
				}
			}
		}
	}