Topic 3 - Logic, Conditions, Loops

Topic 3 - Logic, Conditions, Loops - Computer Architecture...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: Computer Architecture Logical and Decision Operations Reading: Sections 2.6- 2.7 A Glance at the Schedule Whats coming in Hw0 - Today Whats going out Hw1 (Hint for #3: shifter: refers to the entire sll instruction. Convert the instruction to machine code before attempting the question.) Outline Logical operations Immediates Shift operators Alignment Conditionals Loops My basic principle is that you don't make decisions because they are easy; you don't make them because they are cheap; you don't make them because they're popular; you make them because they're right. Theodore Hesburg Logical Operations Operation C Java MIPS Shift left << << sll Shift right >> >>> Srl, sra Bitwise AND & & and, andi Bitwise OR | | or, ori Bitwise NOT ~ ~ nor n Useful for extracting and inserting groups of bits in a word Big Immediates What if we need more than 16 bits?...
View Full Document

Page1 / 17

Topic 3 - Logic, Conditions, Loops - Computer Architecture...

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

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