CMPSC 64 Lecture Notes - Lecture 9: Opcode, Operand, Assembly Language

10 views4 pages
8 Jan 2020
School
Course
Professor

Document Summary

Lecture 9 mips instructions using the stack with. 12:25: midterm nov 6th, practice questions, everything up to 11/4. No digital logic design: bring: pencil, eraser, mips reference card (on 1 page, mips. Data alignment: instruction representation -- r op code. Rs -- 10 = a = 01010. Instruction representation -- i op code ss code rt code. Rs -- 16 = 10 = 10000. Address -- 124 = 0000 0000 0111 1100. Implementing functions: ability to execute code elsewhere. Branches and jumps: way to pass arguments in and out of the function. Jal (jump-and-link): jump to an address, store the location of the next instruction in . The only way to assign to . Jr (jump register): jump to the address stored in . "main": reserved words for labels, start here, write any functions above it. We want to call arbitrary functions without knowing the implementation details.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents