How can I translate the following instructions in native assembly language and in machine language code in hex form:
bgti $s0,-7,-20: # branch if greater than immediate
divi t1, t3,2^22: # divide by immediate
I could not solve it because I could not find opcode or neither function code for these instructions.
These are not part of the MIPS assembly language but are pseudo-instructions that are translated into multiple instructions. Therefore you would have to turn bgti
into some combination of li
and bgt
and you can go from there.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.