COMP226 Tutorial 1

Tutorials are usually an opportunity for students to ask questions regarding the material or the unit in general.

  1. How many different combinations can be represented by using:

    a. 4 bits
    b. 13 bits
    c. 32 bits

  2. Convert the following numbers to 8-bit binary: 37, -56, 0, -1. Use the following representations:

    a. Signed magnitude.
    b. Ones-complement.
    c. Twos-complement.

  3. Convert the twos-complement binary representations to hexdecimal and to octal, and show the corresponding C-language constant notations (such as 0x0f).

  4. If a byte contains 0xFF, what does this represent if it is treated as a twos-complement (signed) number? As ones-complement? As unsigned?

  5. Add the 6-bit twos-complement binary numbers 100101 and 100101. What is the result? Did you get an overflow?

Discussion

  1. What are the advantages and disadvantages of RISC and CISC architectures?

Kate and Mike, 2013. COMP226 home page