CSCI 112 Spring 2024
Exploring Computer Science
Archived Class
Charles Cusack
Computer Science
Hope College
Main
Schedule
Grading
Gradebook
Homework

Policies
Advice
College
    Policies

Notes
Programs
Tutorials

CSCI 125
CSCI 255
Others

Admin

Homework 11

Details

For each problem make sure you clearly and neatly show all of your work! Each part/problem is worth 5 points unless otherwise specified.

  1. Perform the following bitwise operations:
    1.     0010111
      AND 1001101
      
    2.     0010111
      OR  1001101
      
    3.     0010111
      XOR 1001101
      
  2. What is the result of doing each of the following to the byte with hexadecimal value C9. (Hint: convert to binary, perform the operation, convert back to hexadecimal.)
    1. Rotate (circular shift) right by 3 bits.
    2. Logical shift right by 3 bits.
    3. Arithmetic shift right by 3 bits.
  3. Write a program in the machine language we discussed that places CC in all memory cells from address A0 through C0. Your program should be in memory cells 00 through 13 (and no more). Note: All numbers in this problem given in Hexadecimal. Submit your answer to this problem via Moodle HW 11 as a file called Problem_11_3.txt. I should be able to run your program in one of the simulators.