tutorial4

tutorial4 - CS 230 Tutorial 4 January 31, 2011 Jonathan...

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

View Full Document Right Arrow Icon
CS 230 Tutorial 4 January 31, 2011 Jonathan Rodriguez j2rodrig@uwaterloo.ca
Background image of page 1

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

View Full DocumentRight Arrow Icon
CS 230 Tutorial 4 • Assignment 1 Sample Solutions • Conditional Branches • Running high-level code
Background image of page 2
A1 Sample Solution #4a 35 + 13 = ? 100011 + 1101
Background image of page 3

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

View Full DocumentRight Arrow Icon
A1 Sample Solution #4a 35 + 13 = ? 1111 100011 + 1101 110000
Background image of page 4
A1 Sample Solution #5a 35 * 13 = ? 100011 * 1101
Background image of page 5

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

View Full DocumentRight Arrow Icon
A1 Sample Solution #5a 35 * 13 = ? 100011 * 1101 100011 100011 .. + 100011 ...
Background image of page 6
A1 Sample Solution #5a 35 * 13 = ? 100011 * 1101 100011 100011 .. + 100011 ... 111000111
Background image of page 7

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

View Full DocumentRight Arrow Icon
A1 Sample Solution #5b 130 / 23 = ? 10111 ) 10000010
Background image of page 8
A1 Sample Solution #5b 130 / 23 = ? 1 10111 ) 10000010 - 10111 10011
Background image of page 9

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

View Full DocumentRight Arrow Icon
A1 Sample Solution #5b 130 / 23 = ? 10 10111 ) 10000010 - 10111 100110
Background image of page 10
A1 Sample Solution #5b 130 / 23 = ? 101 10111 ) 10000010 - 10111 100110 - 10111 1111
Background image of page 11

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

View Full DocumentRight Arrow Icon
CS 230 Tutorial 4 • Assignment 1 Sample Solutions • Conditional Branches • Running high-level code
Background image of page 12
Testing for Equality : beq, bne Program 1: Set $3 to 1 if $1 and $2 are equal bne $1, $2, 1 ; skip next instruction if NOT equal.
Background image of page 13

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

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

This note was uploaded on 09/28/2011 for the course CS 230 taught by Professor Bb during the Spring '11 term at Waterloo.

Page1 / 28

tutorial4 - CS 230 Tutorial 4 January 31, 2011 Jonathan...

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

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