Computer simulation of driven diffusive systems with exchanges