lecture2 - Announcements Sections start THIS week Don't...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 ECE/CS314 Announcements Sections start THIS week Don’t miss them! They’re important! • First project available today (we won’t have covered all the material you need to finish, but you’ll be able to get started) – Due in two weeks! • First homework available today – Due in one week! 2 ECE/CS314 Announcements •G o t CMS ? – If you are not enrolled, post to the newsgroup – CMS link on web site http://cms3.csuglab.cornell.edu/web/guest/ • TA Office Hours start today – Schedule on web site • Reminder! Post questions to the newsgroups –Ema
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
3 ECE/CS314 Hennessy and Patterson • Read Chapter 1 to get the Big Picture (DONE) • Read Chapter 2 – 2.1 through 2.9 plus 3.1, 3.2 (DONE, RIGHT?) – 2.10 through 2.15 plus 2.17 for Thursday • Read Chapter 3 – 3.3-3.6 and 3.8-3.9 before February 6 • Read supplemental docs we give you – “Notes on Programming in C” (http://www.csl.cornell.edu/courses/ece314/tutorials/pike_C.html) – “MIPS Calling Convention” for Thursday – DO THE READING! 4 ECE/CS314 Yesterday’s Topic • A Simple Computer – Machine/Assembly Language – Fetch-Execute Cycle • Number Representation – Binary, Octal, Hexadecimal Bases – 2’s Complement for Negative Numbers
Background image of page 2
5 ECE/CS314 Converting between Data Sizes • Sign extension • Replicate leftmost bit • Why does this work? –Consider going from 8 to 16 bits: –If number is –b , then it’s 2 8 - b but now we want 2 16 - b 2 16 - b = (2 8 - b) + (2 16 -2 8) 2 16 -2 8 = 10000000000000000-100000000 (note that we’re subtracting 9-bits from 17-bits) =1111111100000000 Same as prepending 1s to get correct number of bits 6 ECE/CS314 Today’s Topic • MIPS ISA – load/store architecture (no arithmetic ops have memory operands)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 17

lecture2 - Announcements Sections start THIS week Don't...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online