Computer Science 220
Assembly Language & Computer Architecture

Fall 2011, Siena College

Lecture 0x02: Logical and Bitwise Operations
Date: Tuesday, September 13, 2011

Agenda

Lecture Assignment 0x02

Due at the start of class, Thursday, September 15.

Please submit answers to these questions either as a hard copy (typeset or handwritten are OK) or by email to jteresco AT siena.edu by the start of class. Please use a clear subject line when submitting by email (e.g., CS 220 Lecture Assignment 0x02, Joe Student). We will discuss these questions at the start of class, so no late submissions are accepted.

  1. True or false: The signed product of two signed n-bit numbers can always be correctly expressed as a signed 2n-bit number. Justify your answer. (2 points)
  2. Compute each of the following assuming all numbers are stored as 6-bit 2's complement values: (5 points, 1 each)

Examples