Employer B has to file a H-1B visa petition on your behalf as a transfer petition and the employer B has to pay all the USCIS filing fees etc as part of that process.  The H-1B is employer and location specific.