Unless otherwise noted, you may collaborate with other CSE370 students on the homework assignments. Do not look at homework or exam solutions from previous years. You must spend at least 15 minutes working on a problem before seeking assistance. Collaboration means that you may discuss the problems and make notes during the discussion, but you may not look at other student’s work when writing up your homework.. Your homework represents your own work—the homework must show that you understand the material and have worked as an individual on every problem. You may not divide up the task of doing the problem sets in the interpretation of collaboration. You may discuss lecture material with anyone.
Name | Enc | Abbr | R Behavior | PC Behav. |
---|---|---|---|---|
Arithmetic Op | Reg | ADD,SUB,etc | rd = rs op rt | PC++ |
Set on less than | Reg | SLT | rd = (rs < rt)? 1:0 | PC++ |
Jump Register | Reg | JR | No change | PC=rs |
I-Format Instructions | ||||
Load Word from Memory | Imm | LW | rt = MEM[rs+SE(immed)] | PC++ |
Store Word to Memory | Imm | SW | MEM[rs+SE(immed)] = rt | PC++ |
Add Immediate | Imm | ADDI | rt = rs + SE(immed[15:0]) | PC++ |
Or Immediate | Imm | ORI | rt = rs | {ZERO[15:0],immed} | PC++ |
Load Upper Immed. | Imm | LUI | rt = immed[15:0],zeros[15:0] | PC++ |
Branch if equal | Imm | BEQ | No change | PC = PC+1+((rs == rt)? SE(immed) : 0) |
J-Format Instructions | ||||
Jump | Jmp | J | No change | PC = {(PC+1)[31:26],Inst[25:0]} |
Jump and Link | Jmp | JAL | r31=PC+1 | PC = {(PC+1)[31:26],Inst[25:0]} |