Question: 1. Read about two privileged x86 assembly instructions not mentioned in the presentations. For each instruction, explain, why it must be privileged, and propose

1. Read about two privileged x86 assembly instructions not mentioned in the 

1. Read about two privileged x86 assembly instructions not mentioned in the presentations. For each instruction, explain, why it must be privileged, and propose a scenario justifying your explanation. 2. The following are the contents of some x86 segment registers: Base (start) Size Permissions CS 0x1230 0x2400 --x (execute only) DS Ox5200 0x6000 rw- (read-write) SS 0x4000 Ox1000 rw- (read-write) The CPU executes the following instruction that moves a word from the register EAX into the memory location counter: MOV [counter], EAX (remember, the direction of data movement is from the second operand into the first operand). The address of the counter in the segment is 0x78FE. Will this instruction violate memory protection? If yes, why? If not, then what is the physical address of the accessed memory location? (Show your work.) 3. Explain why the first program crashes but the second does not. Hint: Find out the stack size used by your C compiler.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!