A ppc cpu simulator