Add support for missing macros for [d]div[u],[d]rem[u]
The code for div and rem should be almost identical (one uses mflo, the other mfhi). Could you fold the duplicate implementations together?
Also, could you separate out the addition of the immediate cases from the addition of rem? Doing this in two patches will make it a bit easier to review.