CMPSC 64 Lecture Notes - Lecture 8: Opcode, Memory Address, Operand

72 views2 pages
21 Mar 2018
School
Course
Professor

Document Summary

Instruction format types: r vs i vs j. There are macros for more specific instructions in mips. This is actually 2 mips instructions: lui , upper-part-of memory address ori , , lower-part-of memory address lui = load upper immediate. This is all due to the fact that i-types of instructions can only deal with sixteen (16) bits of data at once and mips memory words are actually 32 bits. 32 bits are divided up into 5 fields, aka the r-type format: op code. The combination of the opcode and the funct code tell the processor what. The combination of the opcode and the funct code tell the processor what it is supposed to be doing. Using the mips reference card, write the 32 bit instruction (using the r- Express you answer in the hexadecimal add , , addu , , sub , , .

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