Hello Oliver,
It is my understanding that the MC9S12XDT512 is big endian, and the code was presented with this in mind. For a little endian case, the allocation of individual word values would obviously need to be reversed.
Since the problem presented was to specifically deal with hardware registers, "portability" does not seem to be an issue in this instance.
Regards,
Mac