EE 308

Homework Assignment 2
Due Jan. 30, 1998

  1. Consider the program of Figure 1 of Lab 2.
    1. Hand assemble this program. Determine the hexadecimal numbers which will be generated when this program is assembled, and at what locations they will be stored in the HC11. For example, the first instruction ldaa #12 will result in
          addr    code
         0x0100   0x86
         0x0101   0x0C
      
    2. How many instruction cycles will it take the HC11 to execute this program? How long will this take on an HC11 with a 2 MHz E-clock?

  2. Consider the program of Figure 3 of Lab 2. How many instruction cycles will it take to execute this program? How long will this take on your EVBU?

  3. Problem E1.15. Use your Programming Reference Guide rather than Table 1.5.

  4. Problem E1.16. Use your Programming Reference Guide rather than Table 1.5.

  5. Problem E1.18. Use your Programming Reference Guide.

  6. Problem E1.21.

  7. Problem E1.22.

  8. Problem E2.6. (Hint: Use the ADDD instruction.)

  9. Problem E2.11.

  10. Problem E2.12. Note that the result must be accumulated in a 16-bit register. (Hint: Use the ABX or ABY instruction.)


Bill Rison, <rison@ee.nmt.edu >