onlycparra
onlycparra

Reputation: 775

How is the word format for MIPS lui instruction?

I'm a baby in MISP and I'm confused with this.
My question is very simple, lui is a I-type instruction in MISP:

+------+------+------+--------------------+
|opcode|  rs  |  st  |    16bits offset   |
+------+------+------+--------------------+

So, where goes the destination register? in rs or rt? Or am I wrong?

Upvotes: 3

Views: 3501

Answers (1)

user149341
user149341

Reputation:

For the lui instruction, rs is ignored (it's usually left as zero); st is the destination.

Upvotes: 5

Related Questions