A special-purpose processor for the Monte Carlo simulation of ising spin systems