ECE 470 Quiz: ECE470 Oakland Solutions Quiz 1

43 views1 pages

Document Summary

Solutions - quiz 1 (september 30th @ 5:30 pm) Perform the following operations of 8-bit unsigned integers. Determine whether there is an overflow (in the addition) and whether we need to borrow from a higher byte (in the subtraction). Perform the following operation using the 2"s complement representation with 8 bits. 13= in 2"s complement representation with 8 bits. 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 0xa000 to 0xbfff to this sram. The range 0xa000 to 0xbfff is akin to all possible cases with 13 bits. Thus, the sram size is 213 bytes = 8 kb. We only need 13 bits for 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.