CMPSC 64 Lecture Notes - Lecture 5: Toro Rosso Str3, Memory Address, Truth Table
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: