Sergio Occhial
Sergio Occhial

Reputation: 11

How can I Translate Mips instructions?

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.

Upvotes: 1

Views: 430

Answers (1)

qwr
qwr

Reputation: 10891

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.

Upvotes: 2

Related Questions