ECE 470 Midterm: ECE470 Oakland Midterm

32 views4 pages

Document Summary

Problem 1 (20 pts) (5 pts) complete the following table. 01001101 (5 pts) perform the following addition and subtraction of 8-bit unsigned integers. Indicate (every carry) or borrow from c0 to c8 (or b0 to b8). For the addition, determine whether there is an overflow. For the subtraction, determine whether we need to keep borrowing from a higher byte. 86 - 181 (5 pts) perform the following operations using the 2"s complement representation with 8 bits. Determine whether the operations result in an overflow. A microprocessor has a 16-bit address line, where each address contains 8 bits. An sram device is connected to the microprocessor. The microprocessor has assigned the addresses 0xd800 to 0xdfff to this sram. Given the following set of instructions, complete the following: Register values (in hexadecimal format) as the instructions are executed. The state of the memory contents (in hexadecimal format) after the last instruction has been executed.