Moore code formatting