CS273
Homework 1
Due Friday, September 7, 2001
Read text pp 1-10 (but stop before you get to binary-coded decimal)
Please remember - how you get your answers is at least as important as the
answers themselves. Show all your work.
For all the problems that involve conversions to and from decimal, use the
multiplication method to convert to decimal, and the division method to convert
from decimal.
From the Book
from page 45 and 46
- 1-2 (8 points) (b), (e), (f), (g)
- 1-4 (10 points) (a), (c), (d), (f), (i)
- 1-5 (10 points) (b), (c), (e), (h), (j)
- 1-8 (2 points)
Not From the Book
- (2 points) Convert from 65410 to radix base 7.
- (4 points) Convert from 5fc16 to radix base 9.
- (4 points) Using the
algebric method discover the value of r given that
8r * 9r = 44r.
- (10 points) Using your Lab1
program, change the program to use the A accumulator instructions
and then answer the following questions using the simulator:
- Using your listing file, what opcode is shown for the
instruction performing loading (line 2)?
- Using you listing file, what opcode is shown for the
instructions performing adding (line 3)?
- What is in the A and B accumulators on cycle 0? (Note: no steps
have been executed in the simulator.)
- What is in the A and B accumulators on cycle 2?
- What is in the A and B accumulators on cycle 7?
- What is in the PC on cycle 7?
- What is the opcode for the ``bra'' instruction?
Last modified: Fri Aug 31 09:34:32 MDT 2001