CMPE12, Winter 2012, Section 01: Reading by week

 

What we are addressing

For each week, I will list what part of the book we are addressing and what you should look into to prepare for the quiz on the following week.  Quiz topics often address the material from the week previous (depending on how things went in lecture).

 

ReadingTopicsQuiz Date
Week 9,10

 

  1. Read the Floating Point parts of Chapter 2.
  2. Do Chapter 2 problems: 39, 40, 41, 52, 56.
  3. Read and understand the echo.asm program. Modify it so that the character it echos is the "rot-13"  of the input character.
  4. What are the HC11 addressing modes? Explain and give an example of each.
  5. How would you write an HC11 program to implement multiplication by 10 if there were no HC11 instruction for multiplication? That is, write it as you would have had to do it in LC-3, but use the HC11 instruction set and accumulator-based structure.
  6. Given the two bit patterns, B1= 00101010 and B2=11101010, give me for each:
    1. Logical left shift by 2
    2. Logical left shift by 3
    3. Logical right shift by 2
    4. Logical right shift by 3
    5. Arithmetic right shift by 2
    6. Arithmetic right shift by 3
    7. Rotate left by 2
    8. Rotate left by 3
    9. Rotate right by 2
    10. Rotate right by 3
Solutions to these problems
 March 15
Week 7,8

This week's homework comes from Chapter 10, but the Tuesday quiz will come from previous chapters on Assembly.  Also important in the reading this week is your HC11 manual.

Chapter 10: 1, 2, 4, 6, 8, 11, 17, 20

(FYI, when 10.11 mentions Appendix A.3, they really mean A.4)

Additional problems (since the book doesn't talk about row-major and column-major and I want to put it on the Thursday quiz):

  1. You have an array of integers with 24 rows and 30 columns, and the base address of the arry is 0x40FF
    1. Using row-major ordering, what are the addresses of the array item at these index pairs:
      [0,0], [5,5], [4,6], [6, 4] [23,29]?
    2. Using column major ordering, what are the addresses of the same items?
  2. Describe the difference between a stack and a queue. Why are queues not used to implement subroutine calls on the LC-3?
  3. What is the difference between callee saves and caller saves as assembly procedure implementation conventions? Give examples where each would be superior.

Homework 7 solutions

 March 6,8
Week 6

This week's homework comes from Chapter 9, but the quiz could come from any chapter on Assembly

Chapter 9: 2, 4, 5, 6, 8, 13, 16, 18

 

Homework 6 solutions

 Feb 23
Week 5

 This week's homework comes from Chapters 6, 7, and 8

  1. Chapter 6: 1, 2, 15, 16
  2. Chapter 7: 7, 10, 13, 17, 18, 24
  3. Chapter 8: 1, 2, 4, 7, 11, 13, 15

 Homework 5 solutions

 Feb 16
Week 4

We are continuing on in Chapters 4 and 5, but add in Chapter 7

  1. Chapter 4: 12
  2. Chapter 5: 9, 11, 15, 18, 32, 33
  3. Chapter 7: 1, 2, 4, 6, 8
Homework 4 solutions
Feb 9
Week 3

The quiz this week will actually be on Chapters 3 and 2.  The way the quarter started put us a  half a week behind the normal schedule, but we will make it up. For those of you wishing to study for the next quiz:

Read Chapters 4 and 5.

  1. Chapter 4: 1, 2, 5 (skip b3), 7, 9, 11
  2. Chapter 5: 1, 2, 5, 7, 8, 12, 14, 17, 22, 25, 31

 Homework 3 solutions

Feb 2
Week 2

This week we are on the end of Chapter 3 and the start of Chapter 2.

  1. Chapter 3: 24, 27, 29, 31, 34
  2. Chapter 2: 3, 4, 5, 8, 10, 11, 13, 15, 17, 18, 19, 20, 21, 25, 26, 27, 30, 33, 44, 46, 47, 48, 52

 Homework 2 Solutions

 Jan 19,26
Week 1

Read Chapters 1, 3, and 2, in that order.  I realize much of 3 assumes you read 2 already.  Just muddle through, ask questions when you need to, and rest confident in the assurance we will get to everything.

Problems:

    1. Chapter 1: 2, 4, 15, 16, 17, 23
    2. Chapter 3: 2, 4, 5, 6, 7, 9, 11, 13, 14, 15, 18abcd, 20, 22, 23

Your MSI tutor wrote up an excellent description of CMOS transistors and how inverters work.

 

Homework 1 Solutions (sorry this is just a text document.  Open it with Wordpad on a Windows box, and whatever you read text with on other systems.)

Jan 12