CPU simulation