Search for question
Question

3. Use CPUlator to write a simple code for each of the following instructions. A is the first 2 digits of your student ID (SIS ID) as decimal number and B is the last 2 digits of your ID. For example, if your ID is 123456789, A-12 and B-89. (a) Store 8-bit values A and B to locations 0x20000010 and 0x20000011, respectively. (b) Store the 8-bit value B to the location of 0x20000020. (c) Load a word value to register R2 from the location of Ox20000020. Take a screenshot of the values at those locations in the memory after the program executes. What's the content of R2? (10 pt)

Fig: 1