These problems should be done on your own. As usual, we're not going to grade these strictly (we'll mainly look at whether you attempted them). But they reinforce knowledge and skills that the remaining labs will assume, so you ought to work through them carefully.
+------------+ +------------+ +------------+ +------------+
0xf0f02ffc | 0xf00f3007 | 0xff005ffc | 0xbebeebee | 0xffff1ffc | 0xd5202007 | 0xffff5ffc | 0xdeadbeef |
+------------+ +------------+ +------------+ +------------+
| ... | | ... | | ... | | ... |
+------------+ +------------+ +------------+ +------------+
0xf0f02800 | 0xff005007 | 0xff005800 | 0xf00f8000 | 0xffff1800 | 0xef005007 | 0xffff5800 | 0xff005000 |
+------------+ +------------+ +------------+ +------------+
| ... | | ... | | ... | | ... |
+------------+ +------------+ +------------+ +------------+
0xf0f02000 | 0xffff5007 | 0xff005000 | 0xc5201000 | 0xffff1000 | 0xf0f02007 | 0xffff5000 | 0xc5202000 |
+------------+ +------------+ +------------+ +------------+
int *ptr1 = (int *) 0x0;
int *ptr2 = (int *) 0x200ffc;
printf("%x %x\n", *ptr1, *ptr2);
[context switch] 0x500 movl 0x200000, %eax # move data in address 0x200000 to register %eax 0x504 incl %eax, 1 # add one to %eax 0x508 movl %eax, 0x300000 # move register %eax to memory location 0x300000
Write your answers in a text file. Name the file answers.txt and upload it on GauchoSpace
Last updated: 2019-02-22 14:18:09 -0800 [validate xhtml]