a version that does work on little-endian MIPS CPUs. Not tested on big-endian MIPS; the "li.d" may be byteorder-dependent.