Midterm Review. Format 10 multiple choice questions – 8 points each Typically have small code segment and you have to specify what the value of a register.

Slides:



Advertisements
Similar presentations
Goal: Write Programs in Assembly
Advertisements

Review of the MIPS Instruction Set Architecture. RISC Instruction Set Basics All operations on data apply to data in registers and typically change the.
ISA Issues; Performance Considerations. Testing / System Verilog: ECE385.
10/9: Lecture Topics Starting a Program Exercise 3.2 from H+P Review of Assembly Language RISC vs. CISC.
Fall EE 333 Lillevik 333f06-l4 University of Portland School of Engineering Computer Organization Lecture 4 Assembly language programming ALU and.
1 COMS 361 Computer Organization Title: Instructions Date: 9/28/2004 Lecture Number: 10.
10/11: Lecture Topics Slides on starting a program from last time Where we are, where we’re going RISC vs. CISC reprise Execution cycle Pipelining Hazards.
Assembly Process. Machine Code Generation Assembling a program entails translating the assembly language into binary machine code This requires more than.
1 A few words about the quiz Closed book, but you may bring in a page of handwritten notes. –You need to know what the “core” MIPS instructions do. –I.
Lecture 5 Sept 14 Goals: Chapter 2 continued MIPS assembly language instruction formats translating c into MIPS - examples.
1 Binary Arithmetic, Subtraction The rules for binary arithmetic are: = 0, carry = = 1, carry = = 1, carry = = 0, carry =
©UCB CPSC 161 Lecture 5 Prof. L.N. Bhuyan
1 Today  Finish-up procedures/stack  strlen example  Machine language, the binary representation for instructions. —We’ll see how it is designed for.
Binary Arithmetic Math For Computers.
© Janice Regan, CMPT 128, Jan CMPT 128: Introduction to Computing Science for Engineering Students Integer Data representation Addition and Multiplication.
CMPE 325 Computer Architecture II Cem Ergün Eastern Mediterranean University Integer Representation and the ALU.
Assembly Questions תרגול 12.
Memory and Addressing How and Where Information is Stored.
Topic 1Topic 2Topic 3Topic 4Topic
How Computers Work … and how you can work them. Art 315 Lecture 03 Dr. J Parker Fall 2010.
Chapter 10 The Assembly Process. What Assemblers Do Translates assembly language into machine code. Assigns addresses to all symbolic labels (variables.
1 Instruction Set Architecture (ISA) Alexander Titov 10/20/2012.
April 23, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 9: Assemblers, Linkers, and Loaders * Jeremy R. Johnson Mon. April 23,
Copyright 2006 by Timothy J. McGuire, Ph.D. 1 MIPS Assembly Language CS 333 Sam Houston State University Dr. Tim McGuire.
IFT 201: Unit 1 Lecture 1.3: Processor Architecture-3
MIPS coding. Review Shifting – Shift Left Logical (sll) – Shift Right Logical (srl) – Moves all of the bits to the left/right and fills in gap with 0’s.
9/29: Lecture Topics Conditional branch instructions
Computer Organization Instructions Language of The Computer (MIPS) 2.
Programming Fundamentals. Overview of Previous Lecture Phases of C++ Environment Program statement Vs Preprocessor directive Whitespaces Comments.
Computer Organization CS224 Fall 2012 Lessons 7 and 8.
CENG 311 Instruction Representation
Copyright 2006 by Timothy J. McGuire, Ph.D. 1 MIPS Assembly Language CS 333 Sam Houston State University Dr. Tim McGuire.
What is a program? A sequence of steps
The Assembly Process Computer Organization and Assembly Language: Module 10.
1 CS232 Exam 1 Solutions February 20, 2004 Name:  This exam has 5 pages, including this cover.  There are three questions, worth a total of 100 points.
Sudeshna Sarkar, IIT Kharagpur 1 Programming and Data Structure Sudeshna Sarkar Lecture 3.
FILES AND EXCEPTIONS Topics Introduction to File Input and Output Using Loops to Process Files Processing Records Exceptions.
CPEG323 Homework Review I Long Chen October, 17 th, 2005.
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
Computer Architecture & Operations I
CSCI206 - Computer Organization & Programming
MIPS Coding Continued.
Lecture 4: MIPS Instruction Set
Other Kinds of Arrays Chapter 11
Microcomputer Programming
CMSC201 Computer Science I for Majors Lecture 27 – Final Exam Review
Assembly Programming using MIPS R3000 CPU
Pick up the handout on your way in!!
Instructions - Type and Format
CSCI206 - Computer Organization & Programming
ECE232: Hardware Organization and Design
FIGURE 9-1 Graph for Example of Conversion from Infix to RPN
Instruction encoding The ISA defines Format = Encoding
Review.
The Processor Lecture 3.1: Introduction & Logic Design Conventions
The University of Adelaide, School of Computer Science
October 24 Programming problems? Read Section 6.1 for November 5
MIPS function continued
Instruction encoding The ISA defines Format = Encoding
Instruction encoding The ISA defines Format = Encoding
CMSC201 Computer Science I for Majors Final Exam Information
Assembly Programming using MIPS R3000 CPU
EECE.2160 ECE Application Programming
Instruction encoding The ISA defines Format = Encoding
MIPS Coding Continued.
MIPS assembly.
7/6/
MIPS instructions.
Presentation transcript:

Midterm Review

Format 10 multiple choice questions – 8 points each Typically have small code segment and you have to specify what the value of a register is after execution You can write a sentence to the side describing why you feel your answer is right and you may get partial credit depending on your answer Another good idea is to write comments next to each line of code. This will help you get the answer right and help me see your train of thought

Format 2 short answer – 10 points each 1 of these will be a longer equivalent to the multiple choice questions. That is, you’ll have a full program to parse through and you’ll need to say what the final output is 1 of these will be writing a short code segment based off a small passage of text. Typically the problem involves bit manipulation, so know your logic instructions well. You’ll have a code line limit (typically between 5 and 10 lines) and in going over, you’ll be deducted two points per extra line. Psudo-instructions will be expanded as indicated a few slides down Again, by writing a sentence or two describing your intent can potentially net you partial credit if you don’t get the question right

Others There will be a handout given (1 st page excerpt from the book) to be used for reference on the exam Calculators will not be allowed (and should not be needed) The exam will be 75 mins in length. I can give you a few minutes over that if necessary, but there is another class after ours and I can’t hold them up. Try not to spend too much time on any one question (a good estimate is 4 and a half minutes for each multiple choice and 15 for each short answer) and to move on if you start to get stuck If it appears that the majority of the class doesn’t finish, I will scale the exam accordingly. However, it’s still in your best interest to try and answer all the questions

What to Know: Numbers Binary->decimal Decimal -> binary Unsigned numbers Signed numbers Floating point numbers

What to Know: Basic MIPS How to write instructions How to do arithmetic / logic operations How memory is represented and how to load/store values from/to memory How branching works and how to implement if statements and loops

What to Know: More MIPS What instructions are pseudo-instructions and how many physical instructions they map to – blt/ble/bgt/bge ->slt, beq / slt, bne – li/la -> ori / lui / ori, lui (depending on value passed in) How to implement functions How to use the stack What the basics of interrupt handlers are – How to return to main – What registers you can use – How to use other registers

What will NOT be on the exam Interrupt programming Memory mapping Syscalls Recursion Floating point programming Sorting Encoding Characters / strings