CSCE 2214 Lecture Notes - Lecture 11: Endianness, Operand

19 views3 pages

Document Summary

Lec 11 9-19-16 ch 2 mips i format instructions / Avoids having to load a constant from a register first. Used by the immediate and data transfer instructions. Having more than 32 registers would be harder in this format since the rs and rt fields would both need another bit to be able to access all registers. They contain constant data addi , , imm #r[rt]=r[rs]+signextimm rt: destination register number rs: source register number. Immediate value: sign extension is done to complete a 16 bit value to a 32 bit value. Mips dedicates a register to hold the constant value of 0, the. This register is useful for some common operations such as copying a value from one register to another add, , , . Unsigned arithmetic instructions addu: add unsigned numbers addu , , #r[rd] =r[rs]+r[t] addiu: add immediate unsigned addiu , , imm. #r[rt]=r[rs]+signextimm subu: subtract unsigned subu , , #r[rd]=r[rs]-r[t]

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents