Wall crossing from Dirac zeromodes