CIS 110 Spring 2013 - Introduction to Computer Programming

upenn.edu | directories | van pelt library
seas.upenn.edu | CETS | engineering library
computer graphics & game dev (SIGGRAPH @ Penn) | dining philosophers (DP) | science & tech wing (STWING) | women in cs (WICS)
CETS Answers

Recitation 5 Exercise

Goals

The goal of this week's recitation assignments is to familiarize yourselves with hexadecimal and TOY fundamentals.

Exercises

  • Please convert the following Hexadecimal numbers to decimal and binary numbers. Keep in mind that using an online converter defeats the purpose of the exercises, as you will not have a converter for the final exam, although for question 5 you may wish to use a calculator. If you have not seen it before, 0x simply signifies that the number is in Hexadecimal format.
    1. 0xA
    2. 0xE
    3. 0x10
    4. 0xAF
    5. 0xAEFF
  • What is the PC in Toy? That is, what does the acronym stand for and what is the function of the PC?
  • How many registers does Toy have? What is the difference between a register and a memory?