EE 308
Homework Assignment 2
Due Jan. 31, 2001
- Consider the following hexadecimal 8-bit numbers as unsigned. Find their
decimal equivalents:
- 0xE2
- 0x81
- 0x79
- 0x47
- Repeat Problem 1, considering the numbers as signed.
- Consider the hexadecimal 8-bit numbers below. Do the
indicated operation, and find the 8-bit result. Determine if a carry resulted.
Determine if an overflow resulted.
- 0x52 + 0x4F
- 0x8C + 0x81
- 0x91 - 0x8F
- 0xC2 - 0x51
- Write an instruction sequence take the 8-bit number at address
0x0900, subtract from it the eight-bit number at address
0x0901, and store the result into address 0x0902.
- Consider the program of Figure 1 of Lab 2.
- 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
0x0800 0x86
0x0801 0x0C
- How many instruction cycles will it take the HC12 to execute this program?
(Do not consider the swi instruction.)
How long will this take on an HC12 with an 8 MHz E-clock?
- 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?
(Do not consider the swi instruction.)
Bill Rison,
<rison@ee.nmt.edu >