CMPSC 64 Lecture Notes - Lecture 5: Toro Rosso Str3, Memory Address, Truth Table

52 views4 pages
21 Mar 2018
School
Course
Professor

Document Summary

Lecture 5: mips assembly: use of memory and flow. Mips does not have a not command, but it has a nor (not or) How to make a not function using nor instead: Note that 0 nor x = not x. In the absence of a not function, use a nor with 0 as inputs. is the register that syscall looks at to print out a result. To execute a mips program: spim -f myfile. asm li means "load immediate", and is an i type instruction. An i type instruction usually includes an immediate value, or an actual value. The more common r types like add or nor only deals with registers. is a special register that also contains the value 0. Operands in arithmetic instructions are limited and are done in a certain order. ** - registers are temporary holding places. ** unlike add and sub, mult requires two steps:

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