ECE 470 Quiz: ECE470 Oakland Quiz 1

29 views1 pages

Document Summary

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. Determine whether the operation results in an overflow. 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. 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. Be specific, if for example the addressing mode is indexed, indicate which one in particular. Note that the movw instruction uses two addressing modes. D sty 2,x- movw c0,1,+y clrb adda # staa [0,y]