This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Writing a C logic for moving MDH register contents after MUL instruction

i am trying to port an assembly logic which is as below

MUL R8,R9
MOV R4, MDH

i am trying to write the same logic in C. i need to move the MDH contents into a variable which i am not able to do.when i check the assembly listing of the C code, i find that always the MDL contents are being moved and not the MDH contents. has anyone encountered this problem.