ECE331 SS-08 HOMEWORK #1: SOLUTION 1. Change the sign (negate) the following 8-bit, 2's complement numbers: a. 01010011 b. 10010111 c. 00000001 d. 00000000 e. 53, 97, 01, 00 2. Find the base-10 equivalent of the following 8-bit, 2's complement number
ECE331 SS-08 HOMEWORK #2: SOLUTION 1. See textbook section 1.2 last paragraph. 2. See textbook section 1.3. 3. `K' is equal to 2^10 or 1024. a. Address lines = log 2 (128 *1024) = 17 b. Data lines = 8 4. Circuit for detecting overflow:
5. An ALU is
ECE331 SS-08 HOMEWORK #5 Solution Problems from the textbook Chapter 2: Fundamental: 8. The effective address is calculated as the contents of X+20. The contents of this effective address are loaded into accumulator A. 10. Program: ORG 0000 FCB $12 F
ECE331 SS-08 HOMEWORK #6 Solution Problems from the textbook Chapter 2: Fundamental: 1. Memory mapped I/O partitions the address space into memory portion and I/O port portion. Advantages: Instructions used for operating on memory can be used. Also,
Microprocessor Fundamentals
Definitions
Microprocessor:
Single IC with a processor, control unit, memory and a clock. Example: Intel Pentium chips, AMD K, etc. Microprocessor with significant memory and I/O functions such as data ports. Example:
ECE331 SS-08 HOMEWORK #3 Solution
1. For each of the following problems determine the 8-bit result (give answers in hex) and the C, V, Z, N, and H flag values. a. $AF (C=0, V=0, Z=0, N=1, H=1/0) b. $09 (C=1, V=0, Z=0, N=0, H=1) c. $D1 (C=0, V= 0, Z=